-
Notifications
You must be signed in to change notification settings - Fork 1
/
Index.html
206 lines (189 loc) · 8.57 KB
/
Index.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<script type="text/javascript" src="src_v1.0.1/js/Evoque.js"></script>
<script type="text/javascript" src="src_v1.0.1/js/Evoque.Dialog.js"></script>
<script type="text/javascript" src="src_v1.0.1/js/adapter/Evoque.Dialog.Adapter.js"></script>
<script type="text/javascript" src="per.js"></script>
<link rel="stylesheet" type="text/css" href="src_v1.0.1/style/Evoque.Dialog.css" />
<script type="text/javascript" src="src/js/eDebugger.js"></script>
<!--<script type="text/javascript" src="debuggap.js"></script>-->
<script type="text/javascript">
function newClass() {
this.p1 = 'p1value';
console.debug(this);
return {
f1: function () {
console.debug(this.p1);
},
p2: 'p2value'
};
}
$(function () {
//var obj = new newClass();
//console.debug(obj);
//obj.f1();
alert($.app());
});
</script>
<script type="text/javascript">
window.addEventListener('load', function () {
var oo = Object.getOwnPropertyDescriptor(window, 'location');
console.debug(oo);
/*if (window.devicePixelRatio)
{
eDebugger.outputVar('deviceSize', {
'window_devicePixelRatio': window.devicePixelRatio,
'screen_width': screen.width,
'screen_height': screen.height,
'document_documentElement_clientWidth': document.documentElement.clientWidth,
'document_documentElement_clientHeight': document.documentElement.clientHeight,
'document_body_clientWidth': document.body.clientWidth,
'document_body_clientHeight': document.body.clientHeight
});
}*/
document.getElementById('ua').innerHTML = window.navigator.userAgent;
//alert(navigator.geolocation.getCurrentPosition);
//document.getElementById('ua').innerHTML = 'devicePixelRatio: ' + window.devicePixelRatio;
//document.getElementById('ua').innerHTML = 0.3 / 0.1;
//$('#ua>em').html('6'.padLeft(2));
//var o = testObj();
// console.debug(o.value);
// o.value = 3;
// o.fn = function () {
// var x = 2;
// };
// console.debug(o.value);
// var pa = Object.getOwnPropertyDescriptor(o, 'value');
// console.debug(pa);
// for (var pn in o) {
// pa = Object.getOwnPropertyDescriptor(o, pn);
// console.debug(pa);
// }
// var o1 = Object.create(o, {
// p1: {
// value: 555
// }
// });
// pa = Object.getOwnPropertyDescriptor(o1, 'name');
// console.debug(pa);
// pa = Object.getOwnPropertyDescriptor(o1, 'p1');
// console.debug(pa);
//o1.method1();
// var a = { name: 'a' };
// var b = { name: 'a' };
// var c = { name: 'c' };
// var arr = [ a, b, c ];
// console.debug(arr.contains(a));
// console.debug(arr.indexOf(a));
//console.debug($.checkType([]));
// var buffer = new ArrayBuffer(32);
// var int32Array = new Int32Array(buffer, 4, 2);
// var ff = int32Array.buffer;
//console.debug((1960.88 * 100 - 427.09 * 100) / 100);
//console.debug(1960.88.subtract(427.09));
}, false);
var sd = new Date();
function redirect(e)
{
//location.href = './demo/ApplicationCache.html';
$.cancelDefault(e);
}
function onhref() {
$('#testa').removeClass('c2');
}
function testObj() {
var _val = 0;
function outputThis() {
console.debug(this);
}
return {
get value() {
return _val;
},
set value(v) {
_val = v;
},
name: 'evoque',
method1: function () {
console.debug(this);
outputThis();
}
}
}
function outputHeight() {
var $con = $('#con');
var $d1 = $('#d1');
var $d2 = $('#d2');
console.debug('Con\'s height:' + $con[0].clientHeight);
console.debug('D1\'s height:' + $d1[0].clientHeight);
console.debug('D2\'s height:' + $d2[0].clientHeight);
}
</script>
<title>H5Demo</title>
</head>
<body>
<!--<button onclick="outputHeight();">output</button>
<button onclick="$('#d1').show();">show d1</button>
<button onclick="$('#d1').hide();">hide d1</button>
<button onclick="$('#d2').show();">show d2</button>
<button onclick="$('#d2').hide();">hide d2</button>
<div id="con">
<div id="d1" style="height: 300px; display: none;">dadva</div>
<div id="d2" style="height: 200px; display: block;">123241</div>
</div>-->
<a href="tujia://com.tujia.hotel/go/home?apponly=1&index=4">App发现频道</a>
<div id="ua"></div>
<ul>
<li><a href="tujia://?userid=1">call tujia app</a></li>
<li><a href="./demo/App.html" onclick="redirect();">ApplicationCache</a></li>
<li><a href="./demo/App.html">App</a></li>
<li><a href="./demo/Ajax.html">Ajax</a></li>
<li><a href="./demo/Button.html">Button</a></li>
<li><a href="./demo/Calendar.html">Calendar</a></li>
<li><a href="./demo/CalendarV2.html">CalendarV2</a></li>
<li><a href="./demo/CalendarV3.html">CalendarV3</a></li>
<li><a href="./demo/CalendarV4.html">CalendarV4</a></li>
<li><a href="./demo/Camera.html">Camera</a></li>
<li><a href="./demo/CardNo.html">CardNo</a></li>
<li><a href="./demo/Carousel.html">Carousel</a></li>
<li><a href="./demo/Container.html">Container</a></li>
<li><a href="./demo/CustomEvent.html">CustomEvent</a></li>
<li><a href="./demo/DateTimePicker.html">DateTimePicker</a></li>
<li><a href="./demo/Delegate.html">Delegate</a></li>
<li><a href="./demo/Dialog.html">Dialog</a></li>
<li><a href="./demo/DockForm.html">DockForm</a></li>
<li><a href="./demo/DockFormV2.html">DockFormV2</a></li>
<li><a href="./demo/Drag.html">Drag</a></li>
<li><a href="./demo/FileUpload.html">FileUpload</a></li>
<li><a href="./demo/Folder.html">Folder</a></li>
<li><a href="./demo/Geo.html">Geo</a></li>
<li><a href="./demo/History.html">History</a></li>
<li><a href="./demo/HistorySimple.html">HistorySimple</a></li>
<li><a href="./demo/ImageLoader.html">ImageLoader</a></li>
<li><a href="./demo/IETest.html">IETest</a></li>
<li><a href="./demo/JSONTest.html">JSONTest</a></li>
<li><a href="./demo/Knockout.html">Knockout</a></li>
<li><a href="./demo/LanunchApp.html">LanunchApp</a></li>
<li><a href="./demo/Loader.html">Loader</a></li>
<li><a href="./demo/Storage.html">LocalStorage</a></li>
<li><a href="./demo/Location.html">Location</a></li>
<li><a href="./demo/Orientation.html">Orientation</a></li>
<li><a href="./demo/Performance.html">Performance</a></li>
<li><a href="./demo/QuerySelector.html">QuerySelector</a></li>
<li><a href="./demo/RangeSelect.html">RangeSelect</a></li>
<li><a href="./demo/Sliderbar.html">Sliderbar</a></li>
<li><a href="./demo/SliderButton.html">SliderButton</a></li>
<li><a href="./demo/Scroll.html">Scroll</a></li>
<li><a href="./demo/ScrollBox.html">ScrollBox</a></li>
<li><a href="./demo/Swipe.html">Swipe</a></li>
<li><a href="./demo/TouchEvent.html">TouchEvent</a></li>
<li><a href="./demo/TouchClickEventFlow.html">TouchClickEventFlow</a></li>
<li><a href="./demo/TestUnload.html">TestUnload</a></li>
<li><a href="./demo/Tab.html">Tab</a></li>
<li><a href="./demo/WebWorker.html">WebWorker</a></li>
</ul>
</body>
</html>