|
1 | 1 | <DOCTYPE html>
|
2 | 2 | <html>
|
3 | 3 | <head>
|
4 |
| - <title>Quad -OS</title> |
| 4 | + <title>Quad-OS</title> |
5 | 5 | <link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-57x57.png" />
|
6 | 6 | <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114.png" />
|
7 | 7 | <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72.png" />
|
@@ -135,31 +135,31 @@ <h1>Something</h1>
|
135 | 135 | <script>
|
136 | 136 | var boxStatus = 1;
|
137 | 137 | var siBoxAllowed = localStorage.getItem("isBoxAllowed");
|
138 |
| - if (siBoxAllowed = 1) { |
| 138 | + if (siBoxAllowed == 1){ |
139 | 139 | document.getElementById("myonoffswitch").checked = true;
|
140 | 140 | } else {
|
141 | 141 | document.getElementById("myonoffswitch").checked = false;
|
142 | 142 | }
|
143 |
| - function boxAllowed() { |
144 |
| - document.getElementById("boxButton").style.visibility = "visible"; |
145 |
| - boxStatus = 1; |
| 143 | + function boxNotAllowed() { |
| 144 | + document.getElementById("boxButton").style.visibility = "hidden"; |
| 145 | + boxStatus = 0; |
146 | 146 | if (typeof(Storage) !== "undefined") {
|
147 | 147 | localStorage.setItem("isBoxAllowed", boxStatus);
|
148 | 148 | document.getElementById("example").innerHTML = localStorage.getItem("isBoxAllowed");
|
149 | 149 | } else {
|
150 | 150 | document.getElementById("example").innerHTML = "Sorry, your browser does not support Web Storage...";
|
151 | 151 | }
|
152 |
| - } |
153 |
| - function boxNotAllowed() { |
154 |
| - document.getElementById("boxButton").style.visibility = "hidden"; |
155 |
| - boxStatus = 0; |
| 152 | + function boxAllowed() { |
| 153 | + document.getElementById("boxButton").style.visibility = "visible"; |
| 154 | + boxStatus = 1; |
156 | 155 | if (typeof(Storage) !== "undefined") {
|
157 | 156 | localStorage.setItem("isBoxAllowed", boxStatus);
|
158 | 157 | document.getElementById("example").innerHTML = localStorage.getItem("isBoxAllowed");
|
159 | 158 | } else {
|
160 | 159 | document.getElementById("example").innerHTML = "Sorry, your browser does not support Web Storage...";
|
161 | 160 | }
|
162 | 161 | }
|
| 162 | + } |
163 | 163 | </script>
|
164 | 164 | </body>
|
165 | 165 | </html>
|
0 commit comments