-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·225 lines (197 loc) · 8.67 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>AntParlor - Online Discovery of Stylists & Beauty Professionals</title>
<link rel="shortcut icon" type="image/x-icon" href="ban.ico">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Stylesheet for fonts -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Responsive website by Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- External stylesheet and JavaScript -->
<link rel="stylesheet" href="index.css">
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.208.0.min.js"></script>
<!-- Angular -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<!-- Google API -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAJjKdJJ6WLeSrQqI0cHadAfuvL9rZ5Hr4&sensor=false" type="text/javascript"></script>
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="navbarcontainer container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">AntParlor</a>
</div> <!-- close navbar header div -->
<div class="collapse navbar-collapse" id="fake-nav">
<ul class="nav navbar-nav navbar-right">
<li><a href="#register" v-on:click="open('register', $event)">Register</a></li>
<li><a href="#login" v-on:click="open('login', $event)">Login</a></li>
<li><a href="contact.html" id="clickedContact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- Sign up Section -->
<div class="user-modal-container" id="login-modal" v-on:click="close">
<div class="user-modal">
<!-- Form Switching -->
<ul class="form-switcher">
<li v-on:click="flip('register', $event)"><a href="" id="register-form">Register</a></li>
<li v-on:click="flip('login', $event)"><a href="" id="login-form">Login</a></li>
</ul>
<!-- Form Register Fields -->
<div class="form-register" id="form-register">
<div class="error-message" v-text="registerError"></div>
<input type="text" name="name" placeholder="Name" v-model="registerName" v-on:keyup.enter="submit('register', $event) | key 'enter'">
<input type="email" name="email" placeholder="Email" v-model="registerEmail" v-on:keyup.enter="submit('register', $event) | key 'enter'">
<input type="password" name="password" placeholder="Password" v-model="registerPassword" v-on:keyup.enter="submit('register', $event) | key 'enter'">
<input type="submit" v-on:click="submit('register', $event)" v-model="registerSubmit" id="registerSubmit">
<div class="links">
<a href="" v-on:click="flip('login', $event)">Already have an account?</a>
</div>
</div>
<!-- Form Register Fields -->
<div class="form-login" id="form-login">
<div class="error-message" v-text="loginError"></div>
<input type="text" name="user" placeholder="Email or Username" v-model="loginUser" v-on:keyup.enter="submit('login', $event) | key 'enter'" id='loginEmail'required>
<input type="password" name="password" placeholder="Password" v-model="loginPassword" v-on:keyup.enter="submit('login', $event) | key 'enter'" id='loginPw' required>
<input type="submit" v-model="loginSubmit" id="loginSubmit">
<div class="links">
<a href="" v-on:click="flip('password', $event)">Forgot your password?</a>
</div>
</div>
<!-- Form Password Fields -->
<div class="form-password" id="form-password">
<div class="error-message" v-text="passwordError"></div>
<input type="text" name="email" placeholder="Email" v-model="passwordEmail" v-on:keyup.enter="submit('password', $event) | key 'enter'">
<input type="submit" v-on:click="submit('password', $event)" v-model="passwordSubmit" id="passwordSubmit">
</div>
</div>
</div>
<!-- Searchbar Section -->
<header class="searchbar-section" id="searchbar">
<div class="container text-center">
<div class="row">
<div class="col-sm-12">
<h1 id="caption">Discover & book beauty and barber appointments.</h1>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="search-form-and-button page-link">
<form action="search.html" method="GET">
<span class="fa fa-search"></span>
<input type="text" name="searchTerm" placeholder="Haircut, salon name, stylist name" class="search-form" method="GET"/>
<button title="Search" ng-click="search(searchComponentIdentifier, $event)" class="search-button">Search</button>
</form>
</div>
</div>
</div>
<div class="row">
<button class="priceRecButton" onclick="testPriceFunc('$')">$</button>
<button class="priceRecButton" onclick="testPriceFunc('$$')">$$</button>
<button class="priceRecButton" onclick="testPriceFunc('$$$')">$$$</button>
<button class="priceRecButton" onclick="switchType('amateur')">Amateur</button>
<button class="priceRecButton" onclick="switchType('professional')">Professional</button>
</div>
</div>
</header>
<!-- Recommendation Page -->
<header class="recommendation-section" id="recommendation">
<div class="container text-center">
<div class="row">
<div class="col-sm-12">
<h1>Popular Recommendations</h1>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="outerContainer" id="popRec">
<div class="samplePics">
<a href="profile.html?email={{ oneE }}"><img src="img/hairSamp.jpg"></a>
<p class="recLabel">{{ one }}</p>
</div>
<div class="samplePics">
<a href="profile.html?email={{ twoE }}"><img src="img/hairSamp.jpg"></a>
<p class="recLabel">{{ two }}</p>
</div>
<div class="samplePics">
<a href="profile.html?email={{ threeE }}"><img src="img/hairSamp.jpg"></a>
<p class="recLabel">{{ three }}</p>
</div>
<div class="samplePics">
<a href="profile.html?email={{ fourE }}"><img src="img/hairSamp.jpg"></a>
<p class="recLabel">{{ four }}</p>
</div>
<div class="samplePics">
<a href="profile.html?email={{ fiveE }}"><img src="img/hairSamp.jpg"></a>
<p class="recLabel">{{ five }}</p>
</div>
<div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h1>Top Category Recommendations</h1>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="outerContainer" id="closestAvail">
<div class="samplePics">
<a href="profile.html?email={{ BarberEmail }}"><img src="img/hairSamp.jpg"></a>
<p class="recLabel">{{ Barber }}</p>
</div>
<div class="samplePics">
<a href="profile.html?email={{ NailsEmail }}"><img src="img/nailSamp.jpg"></a>
<p class="recLabel">{{ Nails }}</p>
</div>
<div class="samplePics">
<a href="profile.html?email={{ ThreadingEmail }}"><img src="img/threadingSamp.jpg"></a>
<p class="recLabel">{{ Threading }}</p>
</div>
<div class="samplePics">
<a href="profile.html?email={{ MakeupEmail }}"><img src="img/makeupSamp.png"></a>
<p class="recLabel">{{ Makeup }}</p>
</div>
<div>
</div>
</div>
</header>
</body>
<!-- JavaScript / Vue -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="signup.js"></script>
<script src="index.js"></script>
<!-- Facebook -->
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '527924507594555',
cookie : true,
xfbml : true,
version : 'v2.12'
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</html>