Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
ec76ac4c
Commit
ec76ac4c
authored
Jul 20, 2020
by
Patrick
Browse files
Add Graph
parent
315cf590
Changes
8
Hide whitespace changes
Inline
Side-by-side
vcm/Restricted/index.html
View file @
ec76ac4c
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<div
class=
"title-box vcm_copyright_headerTitle"
></div>
<div
class=
"title-box vcm_copyright_headerTitle"
></div>
<!-- Drop down menu starts here -->
<!-- Drop down menu starts here -->
<div
class=
"dropdown hidden"
style=
"float: right; right:20px"
>
<div
class=
"dropdown hidden"
style=
"float: right; right:20px"
>
<i
class=
"fa fa-bars"
id=
"dropdownMenu"
style=
"font-size:1.8rem;color:
antiquewhite
; margin-top:1rem;"
></i>
<i
class=
"fa fa-bars"
id=
"dropdownMenu"
style=
"font-size:1.8rem;color:
white !important
; margin-top:1rem;"
></i>
<div
class=
"dropdown-content"
>
<div
class=
"dropdown-content"
>
<button
class=
"accordion"
>
Partizipation
</button>
<button
class=
"accordion"
>
Partizipation
</button>
<div
class=
"sub-menu"
>
<div
class=
"sub-menu"
>
...
@@ -174,6 +174,9 @@
...
@@ -174,6 +174,9 @@
<div
class=
"sub-menu"
>
<div
class=
"sub-menu"
>
<a
href=
"#"
onclick=
"EnergiekonzeptFunction('nothing')"
>
Stöckach
</a>
<a
href=
"#"
onclick=
"EnergiekonzeptFunction('nothing')"
>
Stöckach
</a>
</div>
</div>
<div
class=
"sub-menu"
>
<a
href=
"#"
onclick=
"nordbahnview()"
>
Nordbahnhof
</a>
</div>
<button
class=
"accordion"
>
Acoustics
</button>
<button
class=
"accordion"
>
Acoustics
</button>
<div
class=
"sub-menu"
>
<div
class=
"sub-menu"
>
<a
href=
"#"
>
Sub Menu 3
</a>
<a
href=
"#"
>
Sub Menu 3
</a>
...
...
vcm/config.json
View file @
ec76ac4c
...
@@ -1189,6 +1189,24 @@
...
@@ -1189,6 +1189,24 @@
"pitch"
:
-33.51784735784641
,
"pitch"
:
-33.51784735784641
,
"roll"
:
359.9542703265667
,
"roll"
:
359.9542703265667
,
"animate"
:
true
"animate"
:
true
},
{
"name"
:
"NordBView"
,
"cameraPosition"
:
[
9.196706687392629
,
48.787236688854634
,
452.8161295397872
],
"groundPosition"
:
[
9.197929833190297
,
48.7971060262033
,
-0.004254466513807599
],
"distance"
:
1190.703214339934
,
"heading"
:
4.680790508536784
,
"pitch"
:
-22.356993435657433
,
"roll"
:
0.016861192553048996
,
"animate"
:
true
}
}
]
]
}
}
\ No newline at end of file
vcm/index.html
View file @
ec76ac4c
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
<div
class=
"title-box vcm_copyright_headerTitle"
></div>
<div
class=
"title-box vcm_copyright_headerTitle"
></div>
<!-- Drop down menu starts here -->
<!-- Drop down menu starts here -->
<div
class=
"dropdown hidden"
style=
"float: right; right:20px"
>
<div
class=
"dropdown hidden"
style=
"float: right; right:20px"
>
<i
class=
"fa fa-bars"
id=
"dropdownMenu"
style=
"font-size:1.8rem;color:
antiquewhite
; margin-top:1rem;"
></i>
<i
class=
"fa fa-bars"
id=
"dropdownMenu"
style=
"font-size:1.8rem;color:
white !important
; margin-top:1rem;"
></i>
<div
class=
"dropdown-content"
>
<div
class=
"dropdown-content"
>
<button
class=
"accordion"
>
Partizipation
</button>
<button
class=
"accordion"
>
Partizipation
</button>
<div
class=
"sub-menu"
>
<div
class=
"sub-menu"
>
...
@@ -174,6 +174,8 @@
...
@@ -174,6 +174,8 @@
<button
class=
"accordion"
>
Energy
</button>
<button
class=
"accordion"
>
Energy
</button>
<div
class=
"sub-menu"
>
<div
class=
"sub-menu"
>
<a
href=
"#"
onclick=
"EnergiekonzeptFunction('nothing')"
>
Stöckach
</a>
<a
href=
"#"
onclick=
"EnergiekonzeptFunction('nothing')"
>
Stöckach
</a>
<a
href=
"#"
onclick=
"nordbahnview()"
>
Nordbahnhof
</a>
</div>
</div>
<button
class=
"accordion"
>
Acoustics
</button>
<button
class=
"accordion"
>
Acoustics
</button>
<div
class=
"sub-menu"
>
<div
class=
"sub-menu"
>
...
@@ -557,6 +559,7 @@
...
@@ -557,6 +559,7 @@
</div>
</div>
<!-- <div class='legend-source'>Source: <a href="#link to source">Name of source</a></div> -->
<!-- <div class='legend-source'>Source: <a href="#link to source">Name of source</a></div> -->
</div>
</div>
<div
style=
'width:100%;margin-top:200px;'
id=
"chartNordB"
></div>
<!-- <div id="slider-color"></div> -->
<!-- <div id="slider-color"></div> -->
</div>
</div>
...
@@ -579,6 +582,7 @@
...
@@ -579,6 +582,7 @@
<script
src=
'lib/vcm_thirdparty.js'
></script>
<script
src=
'lib/vcm_thirdparty.js'
></script>
<script
src=
"lib/vcm-compiled_api.js"
></script>
<script
src=
"lib/vcm-compiled_api.js"
></script>
<script
src=
"sources/nouislider.js"
></script>
<script
src=
"sources/nouislider.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/apexcharts"
></script>
<script
src=
"templates/slider.js"
></script>
<script
src=
"templates/slider.js"
></script>
<link
href=
"templates/sliders.css"
rel=
"stylesheet"
>
<link
href=
"templates/sliders.css"
rel=
"stylesheet"
>
...
...
vcm/templates/cus_Menu.js
View file @
ec76ac4c
...
@@ -10,4 +10,9 @@ var acc = document.getElementsByClassName("accordion");
...
@@ -10,4 +10,9 @@ var acc = document.getElementsByClassName("accordion");
subMenu
.
style
.
maxHeight
=
subMenu
.
scrollHeight
+
"
px
"
;
subMenu
.
style
.
maxHeight
=
subMenu
.
scrollHeight
+
"
px
"
;
}
}
});
});
}
}
\ No newline at end of file
function
nordbahnview
(){
var
viewp
=
vcs
.
vcm
.
Framework
.
getInstance
().
viewpoints
.
NordBView
vcs
.
vcm
.
Framework
.
getInstance
().
getActiveMap
().
gotoViewPoint
(
viewp
);
}
\ No newline at end of file
vcm/templates/custom.css
View file @
ec76ac4c
...
@@ -470,3 +470,6 @@ div.tour-top-navi {
...
@@ -470,3 +470,6 @@ div.tour-top-navi {
/* margin-top: -2px; */
/* margin-top: -2px; */
}
}
#dropdownMenu
{
color
:
white
!important
;
}
\ No newline at end of file
vcm/templates/custom.js
View file @
ec76ac4c
...
@@ -231,5 +231,7 @@ function NordbahnhofText() {
...
@@ -231,5 +231,7 @@ function NordbahnhofText() {
document
.
getElementById
(
"
Energiekonzept
"
).
style
.
display
=
"
none
"
;
document
.
getElementById
(
"
Energiekonzept
"
).
style
.
display
=
"
none
"
;
document
.
getElementById
(
"
UmfrageOne
"
).
style
.
display
=
"
none
"
;
document
.
getElementById
(
"
UmfrageOne
"
).
style
.
display
=
"
none
"
;
document
.
getElementById
(
"
NordbahnhofInfo
"
).
style
.
display
=
"
block
"
;
document
.
getElementById
(
"
NordbahnhofInfo
"
).
style
.
display
=
"
block
"
;
showTour
();
showTour
();
showgraph
();
}
}
\ No newline at end of file
vcm/templates/items.json
View file @
ec76ac4c
...
@@ -74,6 +74,26 @@
...
@@ -74,6 +74,26 @@
"animate"
:
true
"animate"
:
true
}
}
},
},
{
"id"
:
"NordBView"
,
"type"
:
"viewpoint"
,
"viewpoint"
:
{
"name"
:
"NordBView"
,
"cameraPosition"
:
[
9.196706687392629
,
48.787236688854634
,
452.8161295397872
],
"groundPosition"
:
[
9.197929833190297
,
48.7971060262033
,
-0.004254466513807599
],
"distance"
:
1190.703214339934
,
"heading"
:
4.680790508536784
,
"pitch"
:
-22.356993435657433
,
"roll"
:
0.016861192553048996
,
"animate"
:
true
}},
{
{
"id"
:
"Energiefahrrad"
,
"id"
:
"Energiefahrrad"
,
"type"
:
"viewpoint"
,
"type"
:
"viewpoint"
,
...
...
vcm/templates/newDevBahn.js
View file @
ec76ac4c
...
@@ -337,6 +337,49 @@ function oldZust(){
...
@@ -337,6 +337,49 @@ function oldZust(){
}
}
function
showgraph
(){
var
options
=
{
series
:
[{
name
:
"
Bisheriges Gebäude
"
,
data
:
[
376513
,
291342
,
187649
,
62589
,
3942
,
0
,
0
,
0
,
8
,
81966
,
231772
,
360644
]
},{
name
:
"
Neues Gebäude
"
,
data
:
[
37772
,
28936
,
17886
,
4169
,
128
,
1
,
0
,
0
,
44
,
7224
,
23163
,
36245
]
}],
chart
:
{
height
:
350
,
width
:
'
100%
'
,
type
:
'
line
'
,
zoom
:
{
enabled
:
false
}
},
dataLabels
:
{
enabled
:
false
},
stroke
:
{
curve
:
'
straight
'
},
title
:
{
text
:
'
Heating Demand by Month
'
,
align
:
'
left
'
},
grid
:
{
row
:
{
colors
:
[
'
#f3f3f3
'
,
'
transparent
'
],
// takes an array which will be repeated on columns
opacity
:
0.5
},
},
xaxis
:
{
categories
:
[
'
Jan
'
,
'
Feb
'
,
'
Mar
'
,
'
Apr
'
,
'
May
'
,
'
Jun
'
,
'
Jul
'
,
'
Aug
'
,
'
Sep
'
,
'
Okt
'
,
'
Nov
'
,
'
Dez
'
],
}
};
var
chart
=
new
ApexCharts
(
document
.
querySelector
(
"
#chartNordB
"
),
options
);
chart
.
render
();
}
\ No newline at end of file
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