docs
[mirrors/Programs.git] / plugins / chrome-extensions / kybca2 / options.html
... / ...
CommitLineData
1<html>
2<head><title>Kyberia Notificator Options</title>
3<style>
4* {
5 color: lime;
6 background: black;
7}
8</style>
9</head>
10<script type="text/javascript">
11
12
13if(!localStorage["name"]) localStorage["name"] = "";
14if(!localStorage["pass"]) localStorage["pass"] = "";
15if(!localStorage["type"]) localStorage["type"] = "name";
16if(!localStorage["secs"]) localStorage["secs"] = 30;
17
18// Saves options to localStorage.
19function save_options() {
20 localStorage["name"] = document.getElementById("name").value;
21 localStorage["pass"] = document.getElementById("pass").value;
22 localStorage["type"] = document.getElementById("type").value;
23 localStorage["secs"] = document.getElementById("secs").value;
24 localStorage["reconnect"] = 1;
25}
26
27// Restores select box state to saved value from localStorage.
28function restore_options() {
29 document.getElementById("name").value = localStorage["name"];
30 document.getElementById("pass").value = localStorage["pass"];
31 document.getElementById("type").value = localStorage["type"];
32 document.getElementById("secs").value = localStorage["secs"];
33}
34
35</script>
36
37<body onload="restore_options()">
38
39<div style="text-align: center; width: 100%;">
40<pre><h1>Kyberia.sk Mail Notificator</h1>
41name: <input type="text" id="name" />
42pass: <input type="password" id="pass" />
43type: <input type="text" id="type" title="login type (name|id)" />
44secs: <input type="text" id="secs" title="refresh interval in seconds" />
45<button onclick="save_options()">Save</button></pre>
46</div>
47
48<pre style="float: right;">
49 ___ ___ __
50 / | \ _____ _______ ___ __|__| ____
51/ ~ \\__ \ \_ __ \\ \/ /| |_/ __ \
52\ Y / / __ \_ | | \/ \ / | |\ ___/
53 \___|_ / (____ / |__| \_/ |__| \___ >
54 \/ \/ \/
55
56Brought to you by <a href="https://kyberia.sk/id/3764224">Harvie</a> 2o1o (<a href="http://blog.harvie.cz/">blog</a>).
57</pre>
58<img src="ico-big.png" style="float: left;" />
59
60</body>
61</html>
62
This page took 0.345196 seconds and 5 git commands to generate.