forked from sphalt/myRoomies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebts.html
247 lines (192 loc) · 9.55 KB
/
debts.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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE HTML>
<!--
MyRoomies by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>MyRoomies</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assets/css/main.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
<link href='https://fonts.googleapis.com/css?family=Oswald:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel='stylesheet prefetch' href='https://ilt-insightdlp-static.s3.amazonaws.com/css/default.css'>
<link rel="stylesheet" href="assets/css/debts.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
// Get the modal
var payModal = document.getElementById('payModal');
var settleModal = document.getElementById('settleModal');
var remindModal = document.getElementById('remindModal');
// Get the button that opens the modal
var payBtn = document.getElementById("payBtn");
var settleBtn = document.getElementById("settleBtn");
var remindBtn = document.getElementById("remindBtn");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
//var settleSpan = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
payBtn.onclick = function() {
payModal.style.display = "block";
}
settleBtn.onclick = function() {
settleModal.style.display = "block";
}
remindBtn.onclick = function() {
remindModal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
payModal.style.display = "none";
settleModal.style.display = "none";
}
// settleSpan.onclick = function() {
// settleModal.style.display = "none";
// }
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == payModal) {
payModal.style.display = "none";
}
if (event.target == settleModal) {
settleModal.style.display = "none";
}
if (event.target == remindModal) {
remindModal.style.display = "none";
}
}
});
function settleConfirm() {
settleModal.style.display = "none";
var confirm = document.getElementById("owe")
confirm.style.setProperty("text-decoration", "line-through");
document.getElementById("payBtn").style.display='none';
document.getElementById("settleBtn").style.display='none';
}
function settleNo() {
settleModal.style.display = "none";
remindModal.style.display = "none";
}
</script>
</head>
<body class="homepage">
<div id="page-wrapper">
<!-- Header -->
<div id="header-wrapper">
<div id="header">
<!-- Logo -->
<h1><a href="index.html">MyRoomies</a></h1>
<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="chat.html">Chat</a></li>
<li class="current"><a href="debts.html">Debts</a></li>
<li><a href="settings.html">Settings</a></li>
</ul>
</nav>
<!-- Banner -->
<section id="banner">
<header>
<!--<h2>Howdy. This is MyRoomies.</h2>-->
<!--<p>A responsive template by HTML5 UP</p>-->
<div class="card card-inverse col-lg-4" style="background-color: white">
<div class="card-block" id="cardText" style="color: white">
<div style="float: left">
<img class="roommate2" src="images/Jeff.png" style="width: 100px;height: 100px"> <br/>Jeff
</div>
<div align="inline" style="float: right">
<span style="display: inline" id="owe">You owe Dave $20 </span><button id = "payBtn" class="ctrl-standard typ-subhed fx-sliderIn">PAY</button> <button id="settleBtn" class="ctrl-standard typ-subhed fx-sliderIn">SETTLE</button><br/><br/>
Lucy owes you $50 <button class="ctrl-standard typ-subhed fx-sliderIn" id="remindBtn">REMIND</button><br/>
</div>
</div>
</div>
<!-- The Modal -->
<div id="payModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<p>You will be redirected to PayPal</p><br/>
<button class="ctrl-standard typ-subhed fx-sliderIn" style="background-color: #4CAF50;"><a href="https://www.paypal.com/us/home">Continue</a></button>
</div>
</div>
<div id="settleModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<p>Are you sure you want to settle?</p><br/>
<button class="ctrl-standard typ-subhed fx-sliderIn" style="background-color: #4CAF50;" onclick="settleConfirm()">YES</button>
<button class="ctrl-standard typ-subhed fx-sliderIn" style="background-color: orangered;" onclick="settleNo()">NO</button>
</div>
</div>
<div id="remindModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<p>A reminder has been send to Lucy!</p><br/>
<button class="ctrl-standard typ-subhed fx-sliderIn" style="background-color: orangered;" onclick="settleNo()">Close</button>
</div>
</div>
</header>
</section>
</div>
<div class="timecontainer">
<h1>Payment History Timeline</h1>
</div>
<section class="timeline" style="background: #456990;padding-bottom: 50px;padding-top: 50px;">
<ul>
<li>
<div>
<time>APR 10,2018</time>
<br/>You payed Lucy 10$
</div>
</li>
<li>
<div>
<time>APR 16,2018</time>
<br/>Lucy payed Dave 50$
</div>
</li>
<li>
<div>
<time>APR 28,2018</time>
<br/>Dave payed You 15$
</div>
</li>
<li>
<div>
<time>May 1,2018</time>
<br/>Lucy payed Dave 20$
</div>
</li>
</ul>
</section>
</div>
<!-- Footer -->
<div id="footer-wrapper">
<section id="footer" >
<div class="row">
<div class="12u">
<!-- Copyright -->
<div id="copyright">
<ul class="links">
<li>© MyRoomies. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</div>
</div>
</section>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/skel-viewport.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
</body>
</html>