-
Notifications
You must be signed in to change notification settings - Fork 2
/
note.hta
178 lines (166 loc) · 9.52 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!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.4.3"
>
<title>Note</title>
<link href='_note.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div id='upperRightBox'>
<button id='newButton' class='upperRightButton' onclick='showNewNoteBox();'><span class='btnIcon'>📜</span> New</button>
<button id='optionsButton' class='upperRightButton' onclick='showOptions();'><span class='btnIcon'>⚒</span> Settings</button>
<button id='aboutButton' class='upperRightButton' onclick='displayAbout();'><span class='btnIcon'>ℹ</span> About</button>
</div>
<div id='pinBox'></div>
<div id='noteList'></div>
<hr>
<h2 id='noteTitle'></h2>
<div id='noteBody'></div>
<div id='newNoteDiv'>
<form id='newNoteForm' 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 bottomButton' value='⇓ Add to Bottom' /><br />
</td></tr><tr><td></td><td>
<input type='button' class='smallFont bottomButton' value='⇖ Insert Above ...' onclick='insertItem();' />
</td>
</tr></table>
</form>
</div>
<div id='optionsDiv'>
<br />
<table><tr>
<td class='optionsColumn'>
<label id='header01'><h3><span id='symbol01'>▾</span> <span class='uline'>Background Color</span></h3></label>
<div id='section01' class='optionSections'>
<label id='ltgrayL'><input type='radio' name='bg' class='optionInput' value=0 /> Light Gray <span class='goItalic'>(default)</span> </label><br />
<label id='yellowL'><input type='radio' name='bg' class='optionInput' value=1 /> Yellow </label><br />
<label id='whiteL'><input type='radio' name='bg' class='optionInput' value=2 /> White </label><br />
<label id='pinkL'><input type='radio' name='bg' class='optionInput' value=3 /> Pink </label><br />
<label id='ltgreenL'><input type='radio' name='bg' class='optionInput' value=4 /> Light Green </label><br />
<label id='ltblueL'><input type='radio' name='bg' class='optionInput' value=5 /> Light Blue </label><br />
<label id='orangeL'><input type='radio' name='bg' class='optionInput' value=6 /> Orange </label><br />
<label id='charcoalL'><input type='radio' name='bg' class='optionInput' value=7 /> Charcoal Gray </label><br />
<label id='fgreenL'><input type='radio' name='bg' class='optionInput' value=8 /> Forest Green </label><br />
<label id='nblueL'><input type='radio' name='bg' class='optionInput' value=9 /> Navy Blue </label><br />
<label id='brownL'><input type='radio' name='bg' class='optionInput' value=10 /> Brown </label><br />
<label id='blackL'><input type='radio' name='bg' class='optionInput' value=11 /> Black </label></div>
</td>
<td class='optionsColumn'>
<label id='header02'><h3><span id='symbol02'>▾</span> <span class='uline'>Note Font</span></h3></label>
<div id='section02' class='optionSections'>
<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>
</div>
<br /><br /><br />
<label id='header03'><h3><span id='symbol03'>▾</span> <span class='uline'>Note Font Size</span></h3></label>
<div id='section03' class='optionSections'>
<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>
</div>
</td>
<td class='optionsColumn'>
<label id='header04'><h3><span id='symbol04'>▾</span> <span class='uline'>Size / Position</span></h3></label>
<div id='section04' class='optionSections'>
<input type='radio' name='screenPos' class='optionInput' value='mm'>
<input type='radio' name='screenPos' class='optionInput' value='cc'>
<button class='optButton' id='screenPosResetButton' onclick='resetPos();'>Reset Window Position</button><br />
<button class='optButton' id='screenSizeResetButton' onclick='resetSize();'>Reset Window Size</button>
</div>
<br /><br /><br />
<label id='header05'><h3><span id='symbol05'>▾</span> <span class='uline'>Backup / Restore</span></h3></label>
<div id='section05' class='optionSections'>
<button class='optButton' id='undeleteButton' onclick='Undelete()' disabled=true>Restore Last Deleted Item</button><br />
<button class='optButton' id='backupButton' onclick='dispBackupDiv();'>Backup...</button><br />
<button class='optButton' id='defaultButton' onclick='resetDefault();'>Restore Default Settings</button>
</div>
<br /><br /><br />
<label id='header06'><h3><span id='symbol06'>▾</span> <span class='uline'>Status Bar</span></h3></label>
<div id='section06' class='optionSections'>
<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><br />
</div>
</td>
</tr></table>
</div>
<div id='aboutDiv'>
<br /><br />
<p id='about_name'></p>
<p id='about_version'></p>
<p id='about_license'></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()' style='font-size: 1.15em;'>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>