-
Notifications
You must be signed in to change notification settings - Fork 2
/
note.hta
154 lines (143 loc) · 7.71 KB
/
note.hta
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
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<HTA:Application
ApplicationName = Note
ID = Note
Border = Thick
SingleInstance = yes
Scroll = no
Icon = "note_icon.ico"
navigable = no
version = "3.1.0"
>
<title>Note</title>
<link href='_note.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div id='upperRightBox'>
<button id='aboutButton' class='upperRightButton' onclick='displayAbout();'>About</button>
<button id='optionsButton' class='upperRightButton' onclick='showOptions();'>Options</button>
<button id='newButton' class='upperRightButton' onclick='showNewNoteBox();'>New Note</button>
</div>
<div id='noteList'></div>
<hr>
<h3 id='noteTitle'></h3>
<div id='noteBody'></div>
<div id='newNoteDiv'>
<form name='newNoteForm' onsubmit='createNewNote(newNoteInputBox.value);' action='#' >
<input type='text' size=20 id='newNoteInputBox' />
<input type='submit' value='Create' />
</form>
</div>
<div id='inputDiv'>
<br /><br />
<form name='inputForm' onsubmit='onSubmitted(inputBox.value, currentNote);' action='#' >
<table><tr>
<td>
<input type='text' size=100 id='inputBox' />
</td><td>
<input type='submit' class='smallFont' value='Add at Bottom' /><br />
</td></tr><tr><td></td><td>
<input type='button' class='smallFont' value='Insert Above ...' onclick='insertItem();' />
</td>
</tr></table>
</form>
</div>
<div id='optionsDiv'>
<br />
<table><tr>
<td class='optionsColumn'>
<button id='undeleteButton' onclick='Undelete()' disabled=true>Restore last deleted item</button><br />
<button id='backupButton' onclick='dispBackupDiv();'>Backup...</button>
<h4>Background Color:</h4>
<label><input type='radio' name='bg' class='optionInput' value='gray' /> Gray <span class='goItalic'>(default)</span></label><br />
<label><input type='radio' name='bg' class='optionInput' value='yellow' /> Yellow</label><br />
<label><input type='radio' name='bg' class='optionInput' value='white' /> White</label><br />
<label><input type='radio' name='bg' class='optionInput' value='pink' /> Pink</label><br />
<label><input type='radio' name='bg' class='optionInput' value='green' /> Green</label><br />
<label><input type='radio' name='bg' class='optionInput' value='blue' /> Blue</label><br />
<label><input type='radio' name='bg' class='optionInput' value='charcoal' /> Charcoal <span class='smallFont'>(white text)</span></label><br />
<label><input type='radio' name='bg' class='optionInput' value='black' /> Black <span class='smallFont'>(white text)</span></label>
</td>
<td class='optionsColumn'>
<h4>Note Font:</h4>
<label><input type='radio' name='font' id='localFontCheckBox0' class='optionInput' value='uf0' />
<div id='localFontDiv0' class='localFontDiv'> <span class='smallFont'>Choose any local font:</span>
<form name='localFontForm0' class='localFontForm' id='localFontForm0' onsubmit='setLocalFont(0);' action='#' >
<input type='text' size=10 id='localFontBox0' class='localFontBox' />
<input id='localFontSetButton0' disabled=true class='optionChangeButton' type='submit' value='Set' />
</form>
</div>
<div id='localFontShow0' class='localFontShow'>
<p id='localFontShowP0' class='localFontShowP'></p><button id='changeLocalFontButton0' class='optionChangeButton' onclick='getLocalFont(0);'>Change</button><br />
</div>
</label>
<label><input type='radio' name='font' id='localFontCheckBox1' class='optionInput' value='uf1' />
<div id='localFontDiv1' class='localFontDiv'> <span class='smallFont'>Choose any local font:</span>
<form name='localFontForm1' class='localFontForm' id='localFontForm1' onsubmit='setLocalFont(1);' action='#' >
<input type='text' size=10 id='localFontBox1' class='localFontBox' />
<input id='localFontSetButton1' disabled=true class='optionChangeButton' type='submit' value='Set' />
</form>
</div>
<div id='localFontShow1' class='localFontShow'>
<p id='localFontShowP1' class='localFontShowP'></p><button id='changeLocalFontButton1' class='optionChangeButton' onclick='getLocalFont(1);'>Change</button><br />
</div>
</label>
<label><input type='radio' name='font' id='localFontCheckBox2' class='optionInput' value='uf2' />
<div id='localFontDiv2' class='localFontDiv'> <span class='smallFont'>Choose any local font:</span>
<form name='localFontForm2' class='localFontForm' id='localFontForm2' onsubmit='setLocalFont(2);' action='#' >
<input type='text' size=10 id='localFontBox2' class='localFontBox' />
<input id='localFontSetButton2' disabled=true class='optionChangeButton' type='submit' value='Set' />
</form>
</div>
<div id='localFontShow2' class='localFontShow'>
<p id='localFontShowP2' class='localFontShowP'></p><button id='changeLocalFontButton2' class='optionChangeButton' onclick='getLocalFont(2);'>Change</button><br />
</div>
</label>
<label><input type='radio' name='font' id='localFontCheckBox3' class='optionInput' value='uf3' />
<div id='localFontDiv3' class='localFontDiv'> <span class='smallFont'>Choose any local font:</span>
<form name='localFontForm3' class='localFontForm' id='localFontForm3' onsubmit='setLocalFont(3);' action='#' >
<input type='text' size=10 id='localFontBox3' class='localFontBox' />
<input id='localFontSetButton3' disabled=true class='optionChangeButton' type='submit' value='Set' />
</form>
</div>
<div id='localFontShow3' class='localFontShow'>
<p id='localFontShowP3' class='localFontShowP'></p><button id='changeLocalFontButton3' class='optionChangeButton' onclick='getLocalFont(3);'>Change</button><br />
</div>
</label>
<label class='sans'><input type='radio' name='font' class='optionInput' id='sansRadio' value='p1' /> Sans Serif</label><br />
<label class='serif'><input type='radio' name='font' class='optionInput' value='p2' /> Serif <span class='goItalic'>(default)</span></label>
<br /><br />
<h4>Note Font Size:</h4>
<label class='smallFont'><input type='radio' name='textSize' class='optionInput' value='small'> Small</label><br />
<label class='mediumFont'><input type='radio' name='textSize' class='optionInput' value='medium'> Medium <span class='goItalic'>(default)</span></label><br />
<label class='largeFont'><input type='radio' name='textSize' class='optionInput' value='large'> Large</label>
</td>
<td class='optionsColumn'>
<h4>Screen Position:</h4>
<label><input type='radio' name='screenPos' class='optionInput' value='mm'> Centered <span class='goItalic'>(default)</span></label><br />
<label><input type='radio' name='screenPos' class='optionInput' value='cc'> Custom: <span id='coords' class='smallFont'></span>
<br /><span class='smallFont'>   (Drag to desired position)</span></label>
<h4>Status Bar:</h4>
<label><input type='radio' name='statusOption' class='optionInput' value='Hide' /> Hide</label><br />
<label><input type='radio' name='statusOption' class='optionInput' value='Show' /> Show <span class='goItalic'>(default)</span></label>
</td>
</tr></table>
</div>
<div id='aboutDiv'>
<br /><br />
<p id='versionInfo'></p>
</div>
<div id='backupDiv'>
<br /><br />
<span id='backupText'>Location of backup folder:</span><br /><br />
<div id='backupDispDiv'></div><button onclick='ChangeBackup()'>Change...</button>
<br /><br /><br />
<button onclick='Backup()'>Backup</button><br />
</div>
<div id='statusBar'><hr><div id='statusBarText'> </div><div id='clock'></div></div>
<script language='vbscript' src='_note.vbs'></script>
<script language='javascript' src='_note.js'></script>
</body>
</html>