Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
dd923837
Commit
dd923837
authored
Mar 14, 2019
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.geoint.mx:mario.chirinos/GeoInt_SIDT into dev
parents
edc3123b
9bea0d16
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
1 deletion
+80
-1
scldata.css
reports/static/reports/css/scldata.css
+13
-0
draggable.js
reports/static/reports/js/draggable.js
+54
-0
aside.html
reports/templates/aside.html
+11
-0
sclData.html
reports/templates/sclData.html
+2
-1
No files found.
reports/static/reports/css/scldata.css
View file @
dd923837
...
...
@@ -74,3 +74,16 @@ body
opacity
:
0.7
;
border-radius
:
50%
;
}
#draggable
{
padding
:
0px
;
position
:
absolute
;
z-index
:
-1
;
text-align
:
center
;
/* border: 1px solid #d3d3d3; */
opacity
:
.5
;
}
#draggable
:hover
{
opacity
:
1
;
}
\ No newline at end of file
reports/static/reports/js/draggable.js
0 → 100644
View file @
dd923837
function
dragElement
(
elmnt
)
{
var
pos1
=
0
,
pos2
=
0
,
pos3
=
0
,
pos4
=
0
;
if
(
document
.
getElementById
(
elmnt
.
id
+
"header"
))
{
/* if present, the header is where you move the DIV from:*/
document
.
getElementById
(
elmnt
.
id
+
"header"
).
onmousedown
=
dragMouseDown
;
}
else
{
/* otherwise, move the DIV from anywhere inside the DIV:*/
elmnt
.
onmousedown
=
dragMouseDown
;
}
function
dragMouseDown
(
e
)
{
e
=
e
||
window
.
event
;
e
.
preventDefault
();
// get the mouse cursor position at startup:
pos3
=
e
.
clientX
;
pos4
=
e
.
clientY
;
document
.
onmouseup
=
closeDragElement
;
// call a function whenever the cursor moves:
document
.
onmousemove
=
elementDrag
;
}
function
elementDrag
(
e
)
{
e
=
e
||
window
.
event
;
e
.
preventDefault
();
// calculate the new cursor position:
pos1
=
pos3
-
e
.
clientX
;
pos2
=
pos4
-
e
.
clientY
;
pos3
=
e
.
clientX
;
pos4
=
e
.
clientY
;
// set the element's new position:
elmnt
.
style
.
top
=
(
elmnt
.
offsetTop
-
pos2
)
+
"px"
;
elmnt
.
style
.
left
=
(
elmnt
.
offsetLeft
-
pos1
)
+
"px"
;
}
function
closeDragElement
()
{
/* stop moving when mouse button is released:*/
document
.
onmouseup
=
null
;
document
.
onmousemove
=
null
;
}
}
function
showGraph
(){
if
(
$
(
'.showChart'
).
is
(
':visible'
)){
$
(
"#draggable"
).
css
(
'z-index'
,
10
);
$
(
".showChart"
).
hide
();
$
(
".hideChart"
).
show
();
}
else
{
$
(
"#draggable"
).
css
(
'z-index'
,
-
1
);
$
(
".showChart"
).
show
();
$
(
".hideChart"
).
hide
();
}
}
dragElement
(
document
.
getElementById
(
"draggable"
));
\ No newline at end of file
reports/templates/aside.html
View file @
dd923837
...
...
@@ -155,5 +155,16 @@
</span>
</a>
</li>
<li>
<a
class=
"treeview "
href=
"#"
onclick=
"showGraph()"
>
<i
class=
"fa fa-eye showChart"
></i>
<i
class=
"fa fa-eye-slash hideChart"
style=
"display:none"
></i>
<span
class=
"showChart"
>
Show Chart
</span>
<span
class=
"hideChart"
style=
"display:none"
>
Hidden Chart
</span>
<span
class=
"pull-right-container"
>
<span
class=
"label label-primary pull-right"
></span>
</span>
</a>
</li>
</ul>
</div>
\ No newline at end of file
reports/templates/sclData.html
View file @
dd923837
...
...
@@ -146,7 +146,7 @@
</div>
</div>
<div
class=
"col-md-
8
"
>
<div
class=
"col-md-
6"
id=
"draggable
"
>
<!-- AREA CHART -->
<div
class=
"box box-primary"
>
<div
class=
"box-header with-border"
>
...
...
@@ -470,4 +470,5 @@
<script
type=
"text/javascript"
src=
"{% static 'reports/js/reportImg.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'reports/js/reportPdf.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'reports/js/minimap.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'reports/js/draggable.js' %}"
></script>
{% endblock %}
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