-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdata.html
More file actions
27 lines (27 loc) · 939 Bytes
/
Copy pathdata.html
File metadata and controls
27 lines (27 loc) · 939 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
26
27
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript">
/*
* This weirdness allows us to handle loading both from
* the filesystem, and through the tornado parser.
*/
function getUrl(str) {
if (str.indexOf("{" + "{") != 0) return str;
return str.match(/\"(.*)\"/)[1];
}
var scripts = ['{{ static_url("js/db_worker.js") }}',
'{{ static_url("js/md5.js") }}',
'{{ static_url("js/sql.js") }}',
'{{ static_url("js/sqlite.js") }}'];
for (var i = 0; i < scripts.length; i++) {
var url = getUrl(scripts[i]);
document.write('<script type="text/javascript" src="' + url + '">');
document.write('<' + '/script>');
}
</script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
</html>