-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (36 loc) · 1.38 KB
/
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
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<title>Visual Thermometer</title>
<!-- this order is important -->
<script type="text/javascript" src="jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="localstoragedb/localstoragedb.js"></script>
<script type="text/javascript" src="base64/base64.js"></script>
<script type="text/javascript" src="database.js"></script>
<script type="text/javascript" src="prototypes/page.js"></script>
<script type="text/javascript" src="prototypes/picture.js"></script>
<script type="text/javascript" src="prototypes/report.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
To debug: <br />
Hit F12 to open Developer Console. <br />
<br />
Example usage:<br />
<pre>
// create new page
var myPage = new Page();
myPage.description = "first page";
myPage.save();
// load existing page with ID "12"
var myExistingPage = new Page(12);
</pre>
<br />
Tips: <br />
- Click "Scripts" tab and select the appropriate Javascript file. You can set breakpoints here. <br />
- Click "Console" tab to input Javascript directly. <br />
- Use console.log() or alert() to help with debugging. <br />
- <a href="javascript:load_db_with_samples();">Load database with sample data</a><br />
- <a href="javascript:delete_database();create_database();">Delete local database</a><br />
</body>
</html>