This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (73 loc) · 3.28 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>UNL Textbook Buyback Comparison</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:600,400" rel="stylesheet" type="text/css">
<link type="text/css" href="site.css" rel="stylesheet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/knockout/knockout-2.1.0.js"></script>
<script type="text/javascript" src="site.js"></script>
</head>
<body>
<header>
</header>
<section id="content">
<div id="welcome" data-bind="if: books().length == 0">
<span>UNL students, get the most money for your textbooks!</span><br/>
To begin, search for an ISBN. The ISBN can usually be found near the barcode on the back cover of a book.
</div>
<div id="search" data-bind="css: { 'welcome-search': books().length == 0 }">
<form data-bind="submit: search">
<script type="text/javascript">
var numInput = '<input type="number" pattern="[0-9]*" size="13" placeholder="Enter an ISBN" data-bind="value: inputIsbn">';
var textInput = '<input type="text" size="13" placeholder="Enter an ISBN" data-bind="value: inputIsbn">';
if (/Android|iPhone|iPad|iPod|BlackBerry|webOS/i.test(navigator.userAgent)) {
document.write(numInput);
} else {
document.write(textInput);
}
</script>
<input type="submit" value="Search">
</form>
<!--
<form data-bind="submit: Utils.test">
<input type="submit" value="t">
</form>
-->
</div>
<!-- ko if: books().length > 0 -->
<div id="results">
<!-- ko foreach: books -->
<div class="result">
<span class="isbn" data-bind="text: isbn"></span>
<span class="loading" data-bind="visible: isLoading">Loading...</span>
<span class="title" data-bind="text: title"></span>
<table>
<tr data-bind="foreach: providers">
<td data-bind="css: { best: isBest() }">
<span data-bind="text: provider"></span><br/>
<span data-bind="text: displayPrice"></span>
</td>
</tr>
</table>
</div>
<!-- /ko -->
</div>
<!-- /ko -->
</section>
<footer data-bind="css: { 'footer-search': books().length > 0 }">
Prices are not guaranteed. Amazon payments are only in the form of an Amazon.com Gift Card. All other listed buyers have a cash or check option.
</footer>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16890062-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>