-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
68 lines (63 loc) · 2.71 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
<!DOCTYPE html>
<html>
<head>
<title>Kiva app</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/client.js"></script>
<link rel="stylesheet" href="/css/jquery-ui-1.10.3.custom.min.css"></link>
<link rel="stylesheet" href="/css/site_jui.css"></link>
<link rel="stylesheet" href="/css/demo_table_jui.css"></link>
<link rel="stylesheet" href="/css/index.css"></link>
</head>
<body>
<div class="container">
<div class="right">
<a href="/myapi" >My Api</a>
</div>
<div class="heading">
<img src='http://www.kiva.org/img/200x200/1.jpg' >
</div>
<br>
<div>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="loans-table"></table>
</div>
<br>
<div class="right">
<button id="save" type="button" >Save to Local MySQL Database</button>
</div>
</div>
<!-- Modal -->
<div id="loan-view" title="Up Close And Personal"></div>
</body>
<!-- Templates -->
<script id="loan-template" type="text/x-handlebars-template">
<section class="halfsection">
<div class="container">
<img src='http://www.kiva.org/img/{{imgwidth}}x{{imgheight}}/{{image.id}}.jpg'>
</div>
</section>
<section class="halfsection">
<div class="description-title">
Activity: <span class="description"> {{activity}}</span><br>
Basket Amount: <span class="description"> {{basket_amount}}</span><br>
Borrower Count: <span class="description"> {{borrower_count}}</span><br>
Description: <span class="description"> {{description_text}}</span><br>
Funded Amount: <span class="description"> {{funded_amount}}</span><br>
Id: <span class="description"> {{id}}</span><br>
Loan Amount: <span class="description"> {{loan_amount}}</span><br>
Location: <span class="description"> {{location_text}}</span><br>
Name: <span class="description"> {{name}}</span><br>
Partner Id: <span class="description"> {{partner_id}}</span><br>
Percentage Complete: <span class="description"> {{percentage}}%</span><br>
Planned Expiration Date: <span class="description"> {{planned_expiration_date}}</span><br>
Posted Date: <span class="description"> {{posted_date}}</span><br>
Sector: <span class="description"> {{sector}}</span><br>
Status: <span class="description"> {{status}}</span><br>
Use: <span class="description"> {{use}}</span><br>
<a href="http://www.kiva.org/lend/{{id}}" id="kiva-link">Check out this loan!</a>
</div>
</section>
</script>