forked from haochi/YNAB
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.html
87 lines (78 loc) · 3.5 KB
/
app.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
var securedPage = location.protocol === "https:" || location.hostname === "localhost";
if(!securedPage) location.href = location.href.replace(/^http:/i, "https:");
</script>
<title>YNAB</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/css/normalize.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/css/foundation.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro">
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/js/vendor/modernizr.min.js"></script>
</head>
<body>
<noscript>
<div class="alert alert-danger text-center">
<strong>Please enable JavaScript to use this application.</strong>
</div>
</noscript>
<div class="alert alert-danger text-center" data-bind="visible: errorMessage, text: errorMessage"></div>
<div data-bind="visible: budget.loadingProgress() !== 100">
<div class="progress">
<div class="progress-bar progress-bar-success" data-bind="style: { width: budget.loadingProgress() + '%' }"></div>
</div>
<div class="text-center" data-bind="foreach: budget.loadingMessages">
<p data-bind="text: $data"></p>
</div>
</div>
<ul class="small-block-grid-1">
<li>
<center>
<div class="large-circle" data-bind="css: { profitWarning: monthlyBudget.onTrack() < 0 }">
<span data-bind="text: numeral(monthlyBudget.onTrack()).format($root.numberFormat)"></span>
</div>
<span class="text-muted-small">Total</span>
<br/>
<span data-bind="text: numeral(monthlyBudget.dailyBudget()).format('$0,0') + ' daily budget'" class="text-muted-small"></span>
</center>
</li>
</ul>
<ul class="small-block-grid-3" data-bind="foreach: monthlyCategoryBudget.filteredMonthlyCategoryBudgets">
<li>
<center>
<div class="small-circle" data-bind="css: { profitWarning: onTrack < 0 }">
<span data-bind="text: numeral(onTrack).format($root.numberFormat)"></span>
</div>
<span data-bind="text: categoryName" class="text-muted-small"></span>
<br/>
<span data-bind="text: numeral(dailyBudget).format('$0,0') + ' daily budget'" class="text-muted-small"></span>
</center>
</li>
</ul>
<script src="https://www.dropbox.com/static/api/dropbox-datastores-1.0-latest.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.0.0/knockout-debug.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/async/0.9.0/async.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeral.js/1.5.3/numeral.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
<script src="client.js"></script>
<script src="app.js"></script>
<script>
var app;
if(securedPage) {
app = new App({ key: "b99sxqq4uqtlmh9"});
ko.applyBindings(app);
}
</script>
</body>
</html>