-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
150 lines (130 loc) · 7.17 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
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!--<script src="app.js"></script>-->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="styles.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<script type="text/javascript" src="http://www.parsecdn.com/js/parse-1.3.0.min.js"></script>
<script src="annyang/annyang.js"></script>
<link type="text/css" rel="stylesheet" href="https://www.gstatic.com/freebase/suggest/4_2/suggest.min.css">
<script type="text/javascript" src="https://www.gstatic.com/freebase/suggest/4_2/suggest.min.js"></script>
<script type="text/javascript">
$(function() {
$("#searchinput").suggest({"key" : "AIzaSyCmabXvjmNjN6uKrj4OySb_m4X3n2koJC8"});
});
</script>
<script type="text/javascript"> //food
(function(){
var ow = document.createElement('script');
ow.type = 'text/javascript'; ow.async = true; ow.src = '//menus.ordr.in/js/widget.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ow, s);
})();
</script>
<script type="text/javascript">
window.onload = function() {
var startPos;
var geoSuccess = function(position) {
startPos = position;
};
navigator.geolocation.getCurrentPosition(geoSuccess);
};
</script>
</head>
<body onload="document.getElementById('searchinput').focus();">
<script>
Parse.initialize('Xbx1p6suP8Fd2FjL2qr98AktVB5WfV5fRom9a1Dy', 'Q5Br45nLQaq08jtkpoIix1C1DheI9d6wV7SqoFNv');
</script>
<script src="js/ebayAPIHandler.js"></script>
<script src="js/flickrAPIHandler.js"></script>
<script src="js/spotifyAPIHandler.js"></script>
<script type="text/javascript" src="js/voicehandler.js"></script>
<div class="ordrin-embed hidden" id="food" data-target="web" data-servers="test" data-pubKey="tkcAgJaKppAp_JYMEHXi6TOyrP19bFsJXdI6kyt7fOE" data-addr=getCurrentPosition() data-city="Lincoln" data-state="ME" data-zip="04457"> </div>
<div class="container">
<div id="login-modal" class="hidden">
<div class="login-box">
<form>
<table>
<div class="form-group">
<tr>
<th colspan="3" style="text-align:center" margin-bottom:"3">Registration</th>
</tr>
<tr>
<td><label for="inputEmail" class="form-label">Email</label></td>
<td><input type="email" class="form-controll" id="inputEmail" placeholder="Email"><td>
</tr>
<tr>
<td><label for="inputUsername" class="form-label">Username</label></td>
<td><input type="text" class="form-controll" id="inputUsername" placeholder="Username"><td>
</tr>
</div>
<div class="form-group">
<tr>
<td><label for="inputPassword" class="form-label">Password</label></td>
<td><input type="password" class="form-controll" id="inputPassword" placeholder="Password"></td>
</tr>
</div>
</table>
<!-- <div class="checkbox">
<label><input type="checkbox"> Remember me</label>
</div> -->
<input id="submitLogin" type="submit" class="btn-extra btn btn-default pull-right"><!--Login/Create New Account--></input>
</form>
</div>
</div>
<nav id="navigation" class="nav-extra navbar navbar-default navbar-inverse" role="navigation">
<div class="collapse navbar-collapse">
<!-- <ul class="nav navbar-header" id="navElems"> -->
<!-- <li id="navigationText"><a><span class="queryPrefix"></span>
</a></li>
-->
</ul>
<!--<h1 id="logo" class="logo2 pull-left">smart<b>box</b></h1>-->
<a href="javascript:history.go(0)"><img id="small-logo" src="images/logo.png" class="logo2 pull-left" width="170" height="60"></img></a>
<a id="login-button" style="cursor:pointer" class="btn btn-extra btn-default btn-lg pull-right">login</a>
</div>
</nav>
<div style="z-index:98" class="searchbox">
<div><img src="images/big_logo.png" class="logo"></img></div>
<input id="searchinput" type="text" placeholder="what can we do for you?"></input>
<br/><br/>
<!-- <a style="font-size: 14px; left: 0; right: 0;" href="https://play.google.com/store/music/category/CLASSICAL?hl=en">Feeling relaxed?</a> -->
</div>
<!--<div style="z-index:98" class="searchbox">
<!-- <span style="color:#8a68e0; font-weight: 300">smart</span>box</h1> -->
<!-- <div><img src="images/big_logo.png" alt=""></div>
<input id="searchinput" type="text" placeholder="What can we do for you?" ></input>
</div>-->
<div id="resultContainer">
</div>
</div>
<script type="text/template" id="result_item" style="visibility:hidden">
<a href=<%= url%> target=newtab style="width:100% height 100%"><div class="itemCont">
<img src=<%= pic%>>
<h3 style="color:#8a68e0"><%=title%></h3>
</div></a>
</script>
<script type="text/template" id="spotifyelement">
<div id="songContainer" class="panel panel-default">
<div class="panel-heading"><%= song %> by <%= artistName %></div>
<div class="panel-body">
<img src=<%= imgURL %>>
</div>
</div>
</script>
<script src="js/frontend_backbone.js"></script>
<script type="text/javascript">
$( "#searchinput" ).keypress(function() {
console.log(document.getElementById('searchinput').value)
if (document.getElementById('searchinput').value.substring(0,"buy".length)==="buy" || document.getElementById('searchinput').value.substring(0,"show".length)==="show"){
console.log('yea')
throw { name: 'FatalError', message: 'Something went badly wrong' };
}
});
</script>
</body>
</html>