-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·226 lines (201 loc) · 11.2 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.lime-indigo.min.css" />
<link href="https://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" type="text/css" href="dialog-polyfill.css" />
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Add your site or application content here -->
<!-- LOGIN DIALOG -->
<div class="login-splash">
<div id="loginDialog" class="form-signin">
<!-- <img class="mb-4" src="https://getbootstrap.com/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72"> -->
<h1><strong>Fin<span style="color: #25F18B">Mod</span></strong></h1>
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="inputEmail" class="sr-only">Email address</label>
<input type="email" id="loginEmail" class="form-control" placeholder="Email address" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="loginPassword" class="form-control" placeholder="Password" required>
<div class="checkbox mb-3">
<label>
<input type="checkbox" value="remember-me"> Remember me
</label>
</div>
<button id="loginBtn" class="btn btn-lg btn-primary btn-block">Sign In</button>
<div id="loginProgress" class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active"></div>
<button id="showSignupBtn" class="btn btn-lg btn-warning btn-block">New? Create an account</button>
<p class="mt-5 mb-3 text-muted">© 2017-2018</p>
</div>
<div id="signupDialog" class="form-signin">
<!-- <img class="mb-4" src="https://getbootstrap.com/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72"> -->
<h1><strong>Fin<span style="color: #25F18B">Mod</span></strong></h1>
<h1 class="h3 mb-3 font-weight-normal">Sign up</h1>
<p id="signupError"></p>
<label for="inputEmail" class="sr-only">Email address</label>
<input type="email" id="signupEmail" class="form-control" placeholder="Email address" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="signupPassword" class="form-control" placeholder="Password" required>
<label for="inputPassword" class="sr-only">Confirm Password</label>
<input type="password" id="confirmPassword" class="form-control" placeholder="Confirm Password" required>
<div class="checkbox mb-3">
<label>
<input type="checkbox" value="remember-me"> Remember me
</label>
</div>
<button id="signupBtn" class="btn btn-lg btn-primary btn-block">Sign Up</button>
<div id="loginProgress" class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active"></div>
<btn id="backtoSigninBtn" class="btn btn-default">Already have an account? <span style="text-decoration: underline"></span>Sign in</btn>
<p class="mt-5 mb-3 text-muted">© 2017-2018</p>
</div>
</div>
<!-- MAIN PAGE CONTENTS -->
<div class="container-fluid">
<div class="row">
<main role="main" class="col-md-12 ml-sm-auto col-lg-12 pt-3 px-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
<h1>Dashboard | <span id="user-info-right" style="font-size: 24px; color: #25F18B"></span></h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group mr-2">
<button id="showUpdateModalBtn" class="btn btn-sm btn-outline-secondary" data-toggle="modal" data-target="#updateModal">Update Your Numbers</button>
<!--<button class="btn btn-sm btn-outline-secondary">Export</button>-->
</div>
<button class="btn btn-sm btn-outline-secondary dropdown-toggle">
<span data-feather="calendar"></span>
This week
</button>
<button id="logoutBtn" class="btn btn-sm btn-primary btn-outline">Sign Out <i class="button-right-icon material-icons">account_circle</i></button>
</div>
</div>
<div class="row">
<div class="col">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h2 class="display-5">For <span id="currentMonth"></span> You Need</h2>
<hr class="my-4">
<h3><span id="summary"></span> new paid user per week</h3>
</div>
</div>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h2>Current Assumptions</h2>
<hr class="my-4">
<div class="row">
<div class="col col-assumptions">
<h3>Price: $<span id="assumptionPrice">5</span></h3>
</div>
<div class="col col-assumptions">
<h3>Cost: $<span id="assumptionCost">5</span></h3>
</div>
<div class="col col-assumptions">
<h3>Payment fee: <span id="assumptionFee">5</span></h3>
</div>
</div>
<a class="btn btn-primary btn-lg" href="#" role="button">Change</a>
</div>
</div>
</div>
<div class="col">
<h2>Forecast</h2>
<canvas class="my-4" id="myChart" width="100%" height="50%"></canvas>
</div>
</div>
<h2>1 Year Financial Model</h2>
<div class="table-responsive">
<table class="table table-striped table-sm table-hover">
<thead>
<tr>
<th>#</th>
</tr>
</thead>
<tbody id="tableBody">
<tr id="users">
</tr>
<tr id="price">
</tr>
<tr id="mrr">
</tr>
<tr id="cost">
</tr>
</tbody>
</table>
</div>
</main>
</div>
</div>
<!-- UPDATE NUMBERS MODAL -->
<!-- Modal -->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="updateModalLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-row">
<div class="col">
<label for="inputPlan" class="sr-only">Pricing plan</label>
<input type="number" id="updatePlan" class="form-control" placeholder="Pricing here" value="Pricing Plan" required autofocus>
</div>
<div class="col">
<label for="inputCosts" class="sr-only">Costs</label>
<input type="number" id="updateCosts" class="form-control" placeholder="Costs here" required>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button id="updateNumbersBtn" type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<script src="js/vendor/modernizr-3.5.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://www.gstatic.com/firebasejs/4.9.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBzx3-KhEDIPOoMtR3t_d-yhxoUk269DwI",
authDomain: "finmod-9ac13.firebaseapp.com",
databaseURL: "https://finmod-9ac13.firebaseio.com",
projectId: "finmod-9ac13",
storageBucket: "finmod-9ac13.appspot.com",
messagingSenderId: "457839316448"
};
firebase.initializeApp(config);
</script>
<!-- Graphs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
<script src="dialog-polyfill.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
</body>
</html>