-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (28 loc) · 833 Bytes
/
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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Storage test</title>
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
</head>
<body>
<div id="target">Hello</div>
<script src="src/localstorage.js"></script>
<script>
ClientStorage.set({
key : 'name',
value: 'codemarker'
});
var target = document.getElementById('target');
target.innerHTML = 'Support localstorage: ' + !!window.localStorage + ',' + ClientStorage.get({
key: 'name'
});
</script>
<script id="__bs_script__">//<![CDATA[
if(location.hostname === 'localhost') {
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?v=2.18.5'><\/script>".replace("HOST", location.hostname));
}
//]]></script>
</body>
</html>