forked from gillyb/tt-trakr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (48 loc) · 2.06 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
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
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="trakrApp">
<head>
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/font-awesome.min.css" rel="stylesheet" />
<link href="css/Site.css" rel="stylesheet" />
<script src="js/winstate.js"></script>
<!-- 3rd party frameworks -->
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/angular/angular.js"></script>
<script src="js/angular/angular-resource.js"></script>
<script src="js/angular/angular-route.js"></script>
<script src="js/angular/angular-sanitize.js"></script>
<script src="js/angular/angular-animate.js"></script>
<script src="js/angular/angular-touch.js"></script>
<!-- angularjs app -->
<script src="js/common.js"></script>
<script src="js/task.js"></script>
<script src="js/task-manager.js"></script>
<script src="js/settings.js"></script>
<script src="js/app.js"></script>
<script src="js/controllers/home-controller.js"></script>
<title>tt-trakr</title>
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<div class="main-container container-fluid" ng-view>
<!-- AngularJS Template Here -->
</div>
<script language="javascript" type="text/javascript">
var nw = require('nw.gui');
var win = nw.Window.get();
var tray;
win.on('focus', function() {
$('#new-task').focus();
});
win.on('minimize', function() {
this.hide();
tray = new nw.Tray({icon:'icon.png'});
tray.on('click', function() {
win.show();
this.remove();
tray = null;
});
});
</script>
</body>
</html>