-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUCONN4.00.htm
109 lines (87 loc) · 3.79 KB
/
UCONN4.00.htm
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
<!DOCTYPE html>
<html>
<head>
<!--<title>Personalize!</title> -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
</head>
<body>
<div data-role="content">
<div class="ui-grid-solo">
<div class="ui-block-a">
<div data-role="fieldcontain" class="ui-field-contain">
<fieldset data-role="controlgroup" class="ui-controlgroup ui-controlgroup-vertical ui-corner-all"><div role="heading" class="ui-controlgroup-label"><legend>Date Style:</legend></div><div class="ui-controlgroup-controls ">
<div class="ui-radio"><label for="date_style_0" style="border-top-right-radius:8px" class="ui-btn ui-corner-all ui-btn-inherit ui-btn-icon-left ui-first-child ui-radio-off">May 8, 2015</label><input type="radio" name="date_style" id="date_style_0" value="0" checked data-cacheval="false"></div>
<div class="ui-radio"><label for="date_style_1" class="ui-btn ui-corner-all ui-btn-inherit ui-btn-icon-left ui-radio-off">8 May 2015</label><input type="radio" name="date_style" id="date_style_1" value="1" data-cacheval="false"></div>
<script>
//Setup for Saved Date value:
if(localStorage.getItem("savedDateType")) {
var DateValue = localStorage.getItem('savedDateType');
if (DateValue == 0) {
document.getElementById("date_style_0").checked = 1;
} else { //Must be 1
document.getElementById("date_style_1").checked= 1;
}
} else { //Default to 0
document.getElementById("date_style_0").checked = 1;
}
</script>
</div></fieldset>
</div>
</div>
<HR>
<div class="ui-body ui-body-a">
<fieldset class="ui-grid-solo">
<div class="ui-block-a"><button type="submit" data-theme="b" id="b-submit">Submit</button></div>
<div class="ui-block-a"><button type="submit" data-theme="c" id="b-cancel">Cancel</button></div>
</fieldset>
</div>
</center>
<P><P> Made by WA1OUI
</div>
</div>
<div align="left">
Version 4.00
</div>
<script>
function getQueryParam(variable, default_) {
var query = location.search.substring(1);
var vars = query.split('&');
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split('=');
if (pair[0] == variable)
return decodeURIComponent(pair[1]);
}
return default_ || false;
}
function saveOptions(){
var date_info = "us";
if (document.getElementById("date_style_1").checked) {
date_info = "intl";
}
var options = {
"0" : date_info,
}
return options;
}
$().ready(function() {
$("#b-cancel").click(function() {
document.location = getQueryParam('return_to', 'pebblejs://close');
});
$("#b-submit").click(function() {
if (document.getElementById("date_style_0").checked == 1) {
var savedDate = 0;
} else {
var savedDate = 1;
}
localStorage.setItem('savedDateType', savedDate);
var return_to = getQueryParam('return_to', 'pebblejs://close#');
document.location = return_to + encodeURIComponent(JSON.stringify(saveOptions()));
});
});
</script>
</body>
</html>