-
Notifications
You must be signed in to change notification settings - Fork 134
/
index.html
81 lines (73 loc) · 3.69 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
<!DOCTYPE html>
<html lang="en">
<title>Tool Lending</title>
<meta charset='utf-8'>
<script type="text/javascript" src="js/ICanHaz.js"></script>
<script type="text/javascript" src='js/jquery.js'></script>
<script type="text/javascript" src='js/site.js'></script>
<script type="text/javascript" src='js/tabletop1.3.4.js'></script>
<link rel="shortcut icon" href="https://raw.githubusercontent.com/jlord/lending-library/gh-pages/favico.png"/>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,600,700,900' rel='stylesheet' type='text/css'>
<link media="screen" rel="stylesheet" type="text/css" href="css/site.css">
</head>
<body>
<header class="container">
<h1>Tool Lending</h1>
<ul class="nav">
<li><strong>LENDING IS LOVELY</strong></li>
<li>AN OPEN SOURCE, EASY TO DUPLICATE PROJECT</li>
<li><a href="#info">HERE'S HOW</a></li>
</ul>
</header>
<div id="filters" class="container">
<input id="toolSearch" type="search" placeholder="hammer.."></input>
<span class="clear sml-button">Clear</span>
<span id="showAvailable" class="sml-button">Show Available</span>
</div>
<div id="tools" class="container"><span class="flash animated">LOADING...</span></div>
<div id="info" class="container">
<div class="span1">
<h4>CONTRIBUTE TO THIS LIBRARY</h4>
<p>If you've been invited by the person who initiated this near you, you'll have access and the ability to edit the rows of the spreadsheet feeding data to this site.</p>
<p>Simply add the rows for the tools you have and add yes if an item is currently being borrowed. Easy, the Spreadsheet auto-saves, too!</p>
<p>More details for using this project <a href="http://www.github.com/jlord/lending-library" target="_blank">here</a>.
</div>
<div class="span1">
<h4>START YOUR OWN</h4>
<p>The site is open source (free for all), uses a Google Spreadsheet for the data and is designed to be duplicated and live in minutes (Fork-n-go!). You can set up your own by following the instructions attached to the <a href="http://www.github.com/jlord/lending-library" target="_blank">project's code</a> on GitHub. GitHub also hosts these pages for free with <a href="http://pages.github.com" target="_blank">GitHub Pages</a>.
<p>
<a class="imglink" href="http://jlord.github.io/forkngo" target="_blank">
<img src="https://raw.githubusercontent.com/jlord/forkngo/gh-pages/badges/charcoal.png" width="200">
</a>
</p>
<p>Built by <a href="http://www.twitter.com/jllord">@jllord</a>.
</div>
</div>
<script id="tools" type="text/html">
{{#rows}}
<div id="{{rowNumber}}" class="tool-box {{#checkedout}}not-{{/checkedout}}available">
<span class="tool-box-tool">{{tool}}</span>
<div class="tool-box-bottom {{rowNumber}}">
{{#checkedout}} <span class="tool-box-borrowed">ON LOAN</span>{{/checkedout}}
{{^checkedout}}<a href="mailto:{{owneremail}}?subject=Tool Lending: {{tool}}"><span class="tool-box-borrow btn">BORROW</span></a>{{/checkedout}}
<ul>
<li><small>WHO / WHERE : </small></li>
<li><a href="mailto:{{owneremail}}">{{owner}}</a></li>
<li>{{street}}, {{city}}, {{state}}</li>
<li><a href="https://maps.google.com/maps?q={{street}},{{city}},{{state}}" target="_blank"><small>MAP</small></a></li>
{{#tooldetails}}
<li><small>NOTES : </small>{{tooldetails}}</li>
{{/tooldetails}}
</ul>
</div>
</div>
{{/rows}}
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var URL = "0AvFUWxii39gXdGxhcjhzYzlBX2pyVFZZU2VjZ3BHZ3c"
Tabletop.init( { key: URL, callback: initialize, simpleSheet: true } )
})
</script>
</body>
</html>