1
0
Fork 0

Verbesserungen bei Web-Apps

This commit is contained in:
Findus23 2015-01-02 13:42:37 +01:00
parent 183666e095
commit 2eccc3bd8f
2 changed files with 11 additions and 3 deletions

View file

@ -121,7 +121,11 @@
</div>
<script type="text/javascript">
if (window.navigator.standalone) { // Wenn die Seite als Webapp aufgerufen wird, soll die Navigationsleiste verschwinden
document.getElementById('nav').style.display = 'none';
document.getElementById('nav').style.display = 'none';
document.getElementById('auswahl').style.fontSize = "85%";
var showlegend="onmouseover"
} else {
var showlegend="always"
}
g = new Dygraph(
document.getElementById("graphdiv"),
@ -150,7 +154,7 @@ g = new Dygraph(
strokeWidth: 3, // Liniendicke
rollPeriod: 10, // Runden standardmäßig auf 10 setzen
visibility: [false, false, true, false, false, true, true, true, false, false],
legend: "always"
legend: showlegend
// highlightSeriesOpts: {
// strokeWidth: 5,
// strokeBorderWidth: 1,

View file

@ -124,6 +124,10 @@
<script type="text/javascript">
if (window.navigator.standalone) { // Wenn die Seite als Webapp aufgerufen wird, soll die Navigationsleiste verschwinden
document.getElementById('nav').style.display = 'none';
document.getElementById('auswahl').style.fontSize = "85%";
var showlegend="onmouseover";
} else {
var showlegend="always";
}
g = new Dygraph(
document.getElementById("graphdiv"),
@ -152,7 +156,7 @@ g = new Dygraph(
strokeWidth: 3, // Liniendicke
rollPeriod: 10, // Runden standardmäßig auf 10 setzen
visibility: [true, true, false, true, false, false, false, false, true, false],
legend: "always"
legend: showlegend
// highlightSeriesOpts: {
// strokeWidth: 5,
// strokeBorderWidth: 1,