-
Notifications
You must be signed in to change notification settings - Fork 6
/
dns-flusher-options.html
129 lines (115 loc) · 2.17 KB
/
dns-flusher-options.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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
body{
background-color:#F2F5F6
color:#333;
font-family:Helvetica, Arial, sans-serif;
}
.content{
width:560px;
margin:26px auto 20px;
padding:24px;
background-color:#fff;
border-radius:2px;
box-shadow:0px 0px 10px rgba(65, 63, 65, 1);
}
h1{
text-align:center;
}
h1 span{
background-color: #07678a;
color:#fff;
padding:2px 10px;
border-radius:2px;
}
h2{
padding:16px 0 0;
font-size:20px;
}
h3{
font-size:16px;
line-height:1.6
}
h1, h2, h3, p{
color: #696969;
}
p{
line-height:1.6
}
label{
padding-right:50px
}
code{
line-height:1.8;
background-color:#D6D2D4;
padding:8px;
border-radius:6px;
}
p.ff{
text-align:right;
padding-top:20px;
}
.copyright{
color:#999;
font-size:14px;
padding:14px;
text-align:center
}
</style>
</head>
<body>
<div class="content">
<h1><span>D</span>NS Flusher for Chrome</h1>
<h2 id="optionName"></h2>
<p><label id="optionLabel"></label><input type="checkbox" id="reload-setting" /><span id="optionDescription"></span></p>
<hr />
<h2 id="attentionName"></h2>
<p id="attentionDescription"></p>
<h3>Windows:</h3>
<p>
<code>your_chrome_path/chrome.exe --enable-benchmarking</code>
</p>
<h3>Linux:</h3>
<p>
<code>google-chrome --enable-benchmarking</code>
</p>
<h3>Mac:</h3>
<p>
<code>open /applications/google\ chrome.app --args --enable-benchmarking</code>
</p>
<p class="ff" id="ffOption"></p>
</div>
<div class="copyright">© 2012, Sway Deng</div>
<script>
var _m = chrome.i18n.getMessage;
function $(id){
return document.getElementById(id);
}
function setMsg(id){
$(id).innerHTML = _m(id);
}
function initI18N(){
document.title = _m('optionPageTitle') + ' - DNS Flusher for Chrome';
setMsg('optionName');
setMsg('optionLabel');
setMsg('optionDescription');
setMsg('attentionName');
setMsg('attentionDescription');
setMsg('ffOption');
}
function initReloadUI(){
var el = $('reload-setting'),
reload = localStorage.getItem('reload');
el.checked = 'true' === reload;
el.onclick = function(){
localStorage.setItem('reload', el.checked);
}
}
initI18N();
initReloadUI();
</script>
</body>
</html>