This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.html
executable file
·135 lines (115 loc) · 3.34 KB
/
config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Translation//EN">
<html>
<head>
<title>Detailansicht</title>
<meta name="publisher" content="Fabian Wiesmann">
<meta name="copyright" content="Fabian Wiesmann">
<meta name="page-topic" content="PSE">
<meta name="author" content="Fabian Wiesmann">
<meta name="language" content="de">
<script src="js\jquery-ui-1.10.1.custom\js\jquery.min.js"></script>
<script src="js\hammer.js-master/dist/hammer.js"></script>
<script src="js\changeText/changeText.js"></script>
<script src="js\cookie\cookie.js"></script>
<script src="var\b.js"></script>
<script src="var\h.js"></script>
<script src="var\p.js"></script>
<link rel="stylesheet" href="css\PSE.css" />
<link rel="stylesheet" href="css\detail.css" />
</head>
<script>
function back()
{
window.location.href = "details3.html" + location.search, "_self";
}
</script>
<body bgcolor="#000000">
<div class="appleIPadMiniViewport blau font no-shadow" style="position: fixed; top: 0px; left: 0px;">
<div style='top:10px; left:10px; position:fixed;'><a href='#' onClick='back(); return false'><img src='img/sym/Pfeil_links_obenw.png' width='40px' height='40px' alt='Zurück'></a></img></div>
<div id='sup' style='width:90%; top:10px; right:10px; position: absolute;'>
<div id='con' style='float:left'>abcdefghijklmnopqrstuvwxyz</div>
<div id='uni'>
<table>
<tbody>
<tr><td>Temperatur</td><td>
<form action="#">
<input type="button" name="C" value="°C"
onclick="setCookie('a','c',400)">
<input type="button" name="K" value="K"
onclick="setCookie('a','k',400)">
</form>
</td></tr>
<tr><td>Masse</td><td>
<form action="#">
<input type="button" name="u" value="u"
onclick="setCookie('m','u',400)">
<input type="button" name="kg" value="kg"
onclick="setCookie('m','kg',400)">
</form>
</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<script>
var temp = "";
temp = temp + "<div id='alpha' style='float:left'><form name='eins' action='#'>";
for (var i = 0; i < 25; i++)
{
if(getCookie(i)=="+")
{
temp = temp + "<input type='checkbox' checked='checked' name='" + i + "' value='" + b[i] +
"'onclick='save()'>" + b[i] + "<br>";
}
else
{
temp = temp + "<input type='checkbox' name='" + i + "' value='" + b[i] +
"'onclick='save()'>" + b[i] + "<br>";
}
}
temp = temp + "</form></div>"
temp = temp + "<div id='beta' style='float:left'><form name='zwei' action='#'>";
for (var i = 25; i < b.length; i++)
{
if(getCookie(i)=="+")
{
temp = temp + "<input type='checkbox' checked='checked' name='" + i + "' value='" + b[i] +
"'onclick='save()'>" + b[i] + "<br>";
}
else
{
temp = temp + "<input type='checkbox' name='" + i + "' value='" + b[i] +
"'onclick='save()'>" + b[i] + "<br>";
}
}
temp = temp + "</form></div>";
changeText("con",temp);
function save()
{
for(var i = 0;i < 25;i++)
{
if(document.eins.elements[i].checked)
{
setCookie(i,"+",400);
}
else if(!document.eins.elements[i].checked)
{
setCookie(i,"-",400);
}
}
for(var i = 0;i < b.length-25;i++)
{
if(document.zwei.elements[i].checked)
{
setCookie(i+25,"+",400);
}
else if(!document.zwei.elements[i].checked)
{
setCookie(i+25,"-",400);
}
}
}
</script>
</body>
</html>