forked from luofei614/SocketLog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.js
More file actions
25 lines (19 loc) · 706 Bytes
/
Copy pathoptions.js
File metadata and controls
25 lines (19 loc) · 706 Bytes
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
document.addEventListener('DOMContentLoaded', init, false);
function init()
{
if(localStorage.getItem('online_domain'))
{
document.getElementById('online_domain').value=localStorage.getItem('online_domain');
}
if(localStorage.getItem('special_domain'))
{
document.getElementById('special_domain').value=localStorage.getItem('special_domain');
}
document.getElementById('save').addEventListener('click',save,false);
}
function save()
{
localStorage.setItem('online_domain',document.getElementById('online_domain').value);
localStorage.setItem('special_domain',document.getElementById('special_domain').value);
alert('保存成功');
}