Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
8c350621
Commit
8c350621
authored
Nov 19, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve css.
parent
05a8798f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
22 deletions
+12
-22
dream/platform/static/css/demo-new.css
dream/platform/static/css/demo-new.css
+6
-2
dream/platform/static/index.html
dream/platform/static/index.html
+4
-9
dream/platform/static/src/jsonPlumb.js
dream/platform/static/src/jsonPlumb.js
+2
-11
No files found.
dream/platform/static/css/demo-new.css
View file @
8c350621
...
...
@@ -251,11 +251,11 @@ path, ._jsPlumb_endpoint { cursor:pointer; }
}
.Dream-Exit
{
background-color
:
#
fee
;
background-color
:
#
eef
;
}
.Dream-Repairman
{
background-color
:
#
eef
;
background-color
:
#
fdd
;
}
.window
{
...
...
@@ -269,3 +269,7 @@ path, ._jsPlumb_endpoint { cursor:pointer; }
padding-top
:
0.9em
;
font-size
:
0.9em
;
}
#debug
textarea
{
width
:
100%
;
}
dream/platform/static/index.html
View file @
8c350621
...
...
@@ -54,18 +54,13 @@
</div>
<div
id=
"debug"
>
<div
class=
"
five columns
"
>
<div
class=
"
six columns alpha
"
>
<div>
Input
</div>
<textarea
rows=
"20"
cols=
"47"
id=
"json_output"
style=
"align:left; width:100%"
>
</textarea>
</div>
<textarea
rows=
"20"
cols=
"47"
id=
"json_output"
></textarea>
</div>
<div
class=
"
five columns
"
>
<div
class=
"
six columns alpha
"
>
<div>
Result
</div>
<textarea
rows=
"20"
cols=
"47"
id=
"json_result"
style=
"align:left; width:100%"
>
</textarea>
<td></td>
</div>
<textarea
rows=
"20"
cols=
"47"
id=
"json_result"
></textarea>
</div>
</div>
...
...
dream/platform/static/src/jsonPlumb.js
View file @
8c350621
...
...
@@ -25,7 +25,6 @@
priv
.
initJsPlumb
=
function
()
{
jsPlumb
.
setRenderMode
(
jsPlumb
.
SVG
);
var
color
=
"
#00f
"
;
var
gradient_color
=
"
#09098e
"
;
jsPlumb
.
importDefaults
({
// default drag options
DragOptions
:
{
...
...
@@ -50,18 +49,12 @@
location
:
1
,
id
:
"
arrow
"
,
length
:
14
,
width
:
12
,
foldback
:
0.8
}]
],
PaintStyle
:
{
gradient
:
{
stops
:
[
[
0
,
color
],
[
0.5
,
gradient_color
],
[
1
,
color
]
]
},
lineWidth
:
5
,
lineWidth
:
2
,
strokeStyle
:
color
},
Anchor
:
"
Continuous
"
,
...
...
@@ -307,11 +300,9 @@
// Add endPoint to allow drawing connections
var
color
=
"
#00f
"
;
var
gradient_color
=
"
#09098e
"
;
// Different endpoint color for Repairman
if
(
element
.
_class
===
"
Dream.Repairman
"
)
{
color
=
"
rgb(189,11,11)
"
;
gradient_color
=
"
rgb(255,0,0)
"
;
}
var
endpoint
=
{
endpoint
:
"
Rectangle
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment