-
Notifications
You must be signed in to change notification settings - Fork 2
/
test-src.html
62 lines (48 loc) · 2.27 KB
/
test-src.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>taskpaper - jQuery feed parser plugin - test</title>
<link rel="stylesheet" href="lib/treeview/jquery.treeview.css" />
<link rel="stylesheet" href="src/css/taskpaper.treeview.css" />
<link rel="stylesheet" href="src/css/taskpaper.screen.css" />
<!-- jQuery and sortables custom ui -->
<!-- <script type="text/javascript" src="lib/jquery/jquery-1.3.1.js"></script> -->
<script type="text/javascript" src="lib/jquery-ui-1.7.custom/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="lib/jquery-ui-1.7.custom/js/jquery-ui-1.7.custom.min.js"></script>
<script src="src/taskpaper.panel.js" type="text/javascript"></script>
<script src="src/jquery.fn.js" type="text/javascript"></script>
<script src="src/taskpaper.js" type="text/javascript"></script>
<script src="src/taskpaper.treeview.js" type="text/javascript"></script>
<script src="src/taskpaper.control.item.js" type="text/javascript"></script>
<script src="src/taskpaperitem.js" type="text/javascript"></script>
<script src="src/taskpaperresults.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
var feedsUrls = ['tests/data/sample.taskpaper'];
for(var i = 0; i < feedsUrls.length; i++) {
$('#todo').taskpaper({url: feedsUrls[i], tagsControl: '#tags', projectsControl: '#projects', filterControl: '#filter',
success: function(feed) {
// here's old school testing to the console
window.console.log(feed)
window.console.log('feed version: ' + feed.version);
}
});
}
});
</script>
</head>
<body>
<h1>taskpaper - jQuery feed parser plugin - test</h1>
<p>Please open Firefox + Firebug console and look at the object</p>
<p>Tests are here: <a href="tests/specs.html">specs</a></p>
<ol>
<li>Double click on task to make it done</li>
<li>Select a tag from the drop-down to toggle highlight in the list</li>
</ol>
<div id="todocontrol"> <span id="tags"> </span> <span id="projects"></span> <span id="filter"/></div>
<div><span><button id="send">View</button></span><span id="quick-entry"/></div>
<div><ul id="todo"></div>
</body>
</html>