Commit 88dd26b3d97b6a762f87bf96c15f5cc1e428d94c
1 parent
67098c3a34
Exists in
master
and in
1 other branch
update
Showing
2 changed files
with
622 additions
and
402 deletions
Show diff stats
pages/registration.html
1 | <div class="header"> | 1 | <div class="header"> |
2 | <div style="float: left;"> | 2 | <div style="float: left;"> |
3 | <a href="http://startupjalsa.com/" target="_blank"> | 3 | <a href="http://startupjalsa.com/" target="_blank"> |
4 | <img src="images/white.png" class="logo" > | 4 | <img src="images/white.png" class="logo" > |
5 | </a> | 5 | </a> |
6 | </div> | 6 | </div> |
7 | <!-- <div style="float: right;" class="right-side-links"> | 7 | <!-- <div style="float: right;" class="right-side-links"> |
8 | <a class="hyperColor" ng-click="openyoutube16()">Glipmses of 2016</a> | 8 | <a class="hyperColor" ng-click="openyoutube16()">Glipmses of 2016</a> |
9 | <a class="hyperColor" ng-click="openyoutube17()">Concept for 2017</a> | 9 | <a class="hyperColor" ng-click="openyoutube17()">Concept for 2017</a> |
10 | </div> --> | 10 | </div> --> |
11 | <div class="clearfix"></div> | 11 | <div class="clearfix"></div> |
12 | </div> | 12 | </div> |
13 | <!-- CLOSE HEADER --> | 13 | <!-- CLOSE HEADER --> |
14 | <form name="applicantForm" id="signupForm"> | 14 | |
15 | <div class="col-xs-12 col-md-10 col-md-offset-1"> | 15 | <div class="col-xs-12 col-md-10 col-md-offset-1"> |
16 | <p class="select-stage" style="font-size:16px;"><b>Please select one stage.</b></p> | 16 | <p class="select-stage" style="font-size:16px;"><b>Please select one city.</b></p> |
17 | <div class="stage-shadow"> | 17 | <div class="stage-shadow"> |
18 | <div class="stages card-align"> | 18 | <div class="stages card-align"> |
19 | <div class="col-xs-4 no-padding"> | 19 | <div class="row"> |
20 | <div class="card stages-card"> | 20 | <div class="col-md-3"> |
21 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Idea" name="Idea" id="ideation" ng-required="Idea" ng-checked="true" checked="true" ng-click="stage('Idea')"> | 21 | <div class="card" style="width:100%"> |
22 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="ideation"> | 22 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> |
23 | <img class="stage-img stage-idea" src="images/idea-stage.png" alt="Lights"> | 23 | <img class="card-img-top" src="images/chennai.png" style="width:100%"> |
24 | <div class="card-content f-family"> | 24 | <div class="card-block"> |
25 | <p align="center">Idea</p> | 25 | <div class="pull-left"> |
26 | <h4 class="card-title">Chennai</h4> | ||
27 | <label class="card-sub-title">9th November,2017</label> | ||
28 | </div> | ||
29 | <div class="pull-right"> | ||
30 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" data-toggle="collapse" ng-click="register('chennai')">Apply</button> | ||
31 | </div> | ||
32 | <div class="clearfix"></div> | ||
33 | </div> | ||
34 | <div class="card-text2"> | ||
35 | <span><b>Location</b></span> | ||
36 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
37 | </div> | ||
38 | </label> | ||
39 | </div> | ||
40 | </div> | ||
41 | <div class="col-md-3"> | ||
42 | <div class="card" style="width:100%"> | ||
43 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
44 | <img class="card-img-top" src="images/pune.png" style="width:100%"> | ||
45 | <div class="card-block"> | ||
46 | <div class="pull-left"> | ||
47 | <h4 class="card-title">Pune</h4> | ||
48 | <label class="card-sub-title">11th November,2017</label> | ||
49 | </div> | ||
50 | <div class="pull-right"> | ||
51 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('pune')">Apply</button> | ||
52 | </div> | ||
53 | <div class="clearfix"></div> | ||
54 | </div> | ||
55 | <div class="card-text2"> | ||
56 | <span><b>Location</b></span> | ||
57 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
58 | </div> | ||
59 | </label> | ||
60 | </div> | ||
61 | </div> | ||
62 | <div class="col-md-3"> | ||
63 | <div class="card" style="width:100%"> | ||
64 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
65 | <img class="card-img-top" src="images/Mumbai.png" style="width:100%"> | ||
66 | <div class="card-block"> | ||
67 | <div class="pull-left"> | ||
68 | <h4 class="card-title">Mumbai</h4> | ||
69 | <label class="card-sub-title">13th November,2017</label> | ||
70 | </div> | ||
71 | <div class="pull-right"> | ||
72 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('mumbai')">Apply</button> | ||
73 | </div> | ||
74 | <div class="clearfix"></div> | ||
75 | </div> | ||
76 | <div class="card-text2"> | ||
77 | <span><b>Location</b></span> | ||
78 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
79 | </div> | ||
80 | </label> | ||
81 | </div> | ||
82 | </div> | ||
83 | <div class="col-md-3"> | ||
84 | <div class="card" style="width:100%"> | ||
85 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
86 | <img class="card-img-top" src="images/Ahmedabad (1).png" style="width:100%"> | ||
87 | <div class="card-block"> | ||
88 | <div class="pull-left"> | ||
89 | <h4 class="card-title">Ahmedabad</h4> | ||
90 | <label class="card-sub-title">15th November,2017</label> | ||
91 | </div> | ||
92 | <div class="pull-right"> | ||
93 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('ahmedabad')">Apply</button> | ||
94 | </div> | ||
95 | <div class="clearfix"></div> | ||
96 | </div> | ||
97 | <div class="card-text2"> | ||
98 | <span><b>Location</b></span> | ||
99 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
100 | </div> | ||
101 | </label> | ||
102 | </div> | ||
103 | </div> | ||
104 | </div> | ||
105 | </div> | ||
106 | <div class="clearfix"></div> | ||
107 | <div class="stages card-align" style="margin-top: 2%;"> | ||
108 | <div class="row"> | ||
109 | <div class="col-md-3"> | ||
110 | <div class="card" style="width:100%"> | ||
111 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
112 | <img class="card-img-top" src="images/jaipur_2.jpg" style="width:100%"> | ||
113 | <div class="card-block"> | ||
114 | <div class="pull-left"> | ||
115 | <h4 class="card-title">Jaipur</h4> | ||
116 | <label class="card-sub-title">17th November,2017</label> | ||
117 | </div> | ||
118 | <div class="pull-right"> | ||
119 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('jaipur')">Apply</button> | ||
120 | </div> | ||
121 | <div class="clearfix"></div> | ||
122 | </div> | ||
123 | <div class="card-text2"> | ||
124 | <span><b>Location</b></span> | ||
125 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
126 | </div> | ||
127 | </label> | ||
128 | </div> | ||
129 | </div> | ||
130 | <div class="col-md-3"> | ||
131 | <div class="card" style="width:100%"> | ||
132 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
133 | <img class="card-img-top" src="images/Delhi.png" style="width:100%"> | ||
134 | <div class="card-block"> | ||
135 | <div class="pull-left"> | ||
136 | <h4 class="card-title">Delhi</h4> | ||
137 | <label class="card-sub-title">19th November,2017</label> | ||
138 | </div> | ||
139 | <div class="pull-right"> | ||
140 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('delhi')">Apply</button> | ||
141 | </div> | ||
142 | <div class="clearfix"></div> | ||
143 | </div> | ||
144 | <div class="card-text2"> | ||
145 | <span><b>Location</b></span> | ||
146 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
147 | </div> | ||
148 | </label> | ||
149 | </div> | ||
150 | </div> | ||
151 | <div class="col-md-3"> | ||
152 | <div class="card" style="width:100%"> | ||
153 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
154 | <img class="card-img-top" src="images/bangalore.png" style="width:100%"> | ||
155 | <div class="card-block"> | ||
156 | <div class="pull-left"> | ||
157 | <h4 class="card-title">Bangalore</h4> | ||
158 | <label class="card-sub-title">21st November,2017(Tentative)</label> | ||
159 | </div> | ||
160 | <div class="pull-right"> | ||
161 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('bangalore')">Apply</button> | ||
162 | </div> | ||
163 | <div class="clearfix"></div> | ||
164 | </div> | ||
165 | <div class="card-text2"> | ||
166 | <span><b>Location</b></span> | ||
167 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
168 | </div> | ||
169 | </label> | ||
170 | </div> | ||
171 | </div> | ||
172 | <div class="col-md-3"> | ||
173 | <div class="card" style="width:100%"> | ||
174 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
175 | <img class="card-img-top" src="images/Hyderabad.png" style="width:100%"> | ||
176 | <div class="card-block"> | ||
177 | <div class="pull-left"> | ||
178 | <h4 class="card-title">Hyderabad</h4> | ||
179 | <label class="card-sub-title">23rd November,2017(Tentative)</label> | ||
180 | </div> | ||
181 | <div class="pull-right"> | ||
182 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('hyderabad')">Apply</button> | ||
183 | </div> | ||
184 | <div class="clearfix"></div> | ||
185 | </div> | ||
186 | <div class="card-text2"> | ||
187 | <span><b>Location</b></span> | ||
188 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
189 | </div> | ||
190 | </label> | ||
191 | </div> | ||
192 | </div> | ||
193 | <div class="col-md-3" style="margin-top: 2%;"> | ||
194 | <div class="card" style="width:100%"> | ||
195 | <label style="cursor:pointer; padding: 0;" class="thumbnail radius-border stage-thumbnail"> | ||
196 | <img class="card-img-top" src="images/Chandigarh.png" style="width:100%"> | ||
197 | <div class="card-block"> | ||
198 | <div class="pull-left"> | ||
199 | <h4 class="card-title">Chandigarh</h4> | ||
200 | <label class="card-sub-title">1st December,2017(Tentative)</label> | ||
201 | </div> | ||
202 | <div class="pull-right"> | ||
203 | <button class="btn btn-info float-right btn-sm button-aligment" style="float:right;padding:3px 9px;" ng-click="register('chandigarh')">Apply</button> | ||
204 | </div> | ||
205 | <div class="clearfix"></div> | ||
206 | </div> | ||
207 | <div class="card-text2"> | ||
208 | <span><b>Location</b></span> | ||
209 | <div class="card-text">BT Seminar Hall, IIT Madras</div> | ||
210 | </div> | ||
211 | </label> | ||
212 | </div> | ||
213 | </div> | ||
214 | </div> | ||
215 | </div> | ||
216 | <div class="clearfix"></div> | ||
217 | </div> | ||
218 | </div> | ||
219 | <div class="clearfix"></div> | ||
220 | <div style="display: none;" class="hiddenForm"> | ||
221 | <div class="collapse navbar-collapse"> | ||
222 | <form name="applicantForm" id="signupForm"> | ||
223 | <div class="col-xs-12 col-md-10 col-md-offset-1"> | ||
224 | <p class="select-stage" style="font-size:16px;"><b>Please select one stage.</b></p> | ||
225 | <div class="stage-shadow"> | ||
226 | <div class="stages card-align"> | ||
227 | <div class="col-xs-4 no-padding"> | ||
228 | <div class="card stages-card"> | ||
229 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Idea" name="Idea" id="ideation" ng-required="Idea" ng-checked="true" checked="true" ng-click="stage('Idea')"> | ||
230 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="ideation"> | ||
231 | <img class="stage-img stage-idea" src="images/idea-stage.png" alt="Lights"> | ||
232 | <div class="card-content f-family"> | ||
233 | <p align="center">Idea</p> | ||
234 | </div> | ||
235 | </label> | ||
236 | </div> | ||
237 | <div class="clearfix"></div> | ||
238 | <div class="cards-content hidden-xs"> | ||
239 | <p> | ||
240 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> | ||
241 | ⚬ Get feedback from mentors<br> | ||
242 | ⚬ Validate your idea. | ||
243 | </p> | ||
26 | </div> | 244 | </div> |
27 | </label> | 245 | </div> |
246 | <div class="col-xs-4 no-padding-mobile"> | ||
247 | <div class="card stages-card margin-auto-mobile"> | ||
248 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Product" name="Idea" id="Proof" ng-required="Product" ng-click="stage('Product')"> | ||
249 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Proof"> | ||
250 | <img class="stage-img stage-product" src="images/production-stage.png" alt="Lights"> | ||
251 | <div class="card-content f-family"> | ||
252 | <p align="center">Product</p> | ||
253 | </div> | ||
254 | </label> | ||
255 | </div> | ||
256 | <div class="clearfix"></div> | ||
257 | <div class="cards-content hidden-xs"> | ||
258 | <p> | ||
259 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> | ||
260 | ⚬ Advice on fundraising<br> | ||
261 | ⚬ Advice on go-to-market strategy | ||
262 | </p> | ||
263 | </div> | ||
264 | </div> | ||
265 | <div class="col-xs-4 no-padding"> | ||
266 | <div class="card stages-card right-stage-card"> | ||
267 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Growth" name="Idea" id="Beta" ng-required="Growth" ng-click="stage('Growth')"> | ||
268 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Beta"> | ||
269 | <img class="stage-img stage-growth" src="images/growth-stage.png" alt="Lights"> | ||
270 | <div class="card-content f-family"> | ||
271 | <p align="center">Growth</p> | ||
272 | </div> | ||
273 | </label> | ||
274 | </div> | ||
275 | <div class="clearfix"></div> | ||
276 | <div class="cards-content hidden-xs"> | ||
277 | <p> | ||
278 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> | ||
279 | ⚬ Connect with Series A investors<br> | ||
280 | ⚬ Connect and hire top startups | ||
281 | </p> | ||
282 | </div> | ||
283 | </div> | ||
284 | <div class="clearfix"></div> | ||
28 | </div> | 285 | </div> |
29 | <div class="clearfix"></div> | 286 | <div class="clearfix"></div> |
30 | <div class="cards-content hidden-xs"> | 287 | </div> |
288 | <div class="hidden-sm hidden-md hidden-lg"> | ||
289 | <div class="cards-content" ng-if="data.stage == 'Idea'"> | ||
31 | <p> | 290 | <p> |
32 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> | 291 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> |
33 | ⚬ Get feedback from mentors<br> | 292 | ⚬ Get feedback from mentors<br> |
34 | ⚬ Validate your idea. | 293 | ⚬ Validate your idea. |
35 | </p> | 294 | </p> |
36 | </div> | 295 | </div> |
37 | </div> | 296 | <div class="cards-content" ng-if="data.stage == 'Product'"> |
38 | <div class="col-xs-4 no-padding-mobile"> | ||
39 | <div class="card stages-card margin-auto-mobile"> | ||
40 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Product" name="Idea" id="Proof" ng-required="Product" ng-click="stage('Product')"> | ||
41 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Proof"> | ||
42 | <img class="stage-img stage-product" src="images/production-stage.png" alt="Lights"> | ||
43 | <div class="card-content f-family"> | ||
44 | <p align="center">Product</p> | ||
45 | </div> | ||
46 | </label> | ||
47 | </div> | ||
48 | <div class="clearfix"></div> | ||
49 | <div class="cards-content hidden-xs"> | ||
50 | <p> | 297 | <p> |
51 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> | 298 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> |
52 | ⚬ Advice on fundraising<br> | 299 | ⚬ Advice on fundraising<br> |
53 | ⚬ Advice on go-to-market strategy | 300 | ⚬ Advice on go-to-market strategy |
54 | </p> | 301 | </p> |
55 | </div> | 302 | </div> |
56 | </div> | 303 | <div class="cards-content" ng-if="data.stage == 'Growth'"> |
57 | <div class="col-xs-4 no-padding"> | ||
58 | <div class="card stages-card right-stage-card"> | ||
59 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Growth" name="Idea" id="Beta" ng-required="Growth" ng-click="stage('Growth')"> | ||
60 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Beta"> | ||
61 | <img class="stage-img stage-growth" src="images/growth-stage.png" alt="Lights"> | ||
62 | <div class="card-content f-family"> | ||
63 | <p align="center">Growth</p> | ||
64 | </div> | ||
65 | </label> | ||
66 | </div> | ||
67 | <div class="clearfix"></div> | ||
68 | <div class="cards-content hidden-xs"> | ||
69 | <p> | 304 | <p> |
70 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> | 305 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> |
71 | ⚬ Connect with Series A investors<br> | 306 | ⚬ Connect with Series A investors<br> |
72 | ⚬ Connect and hire top startups | 307 | ⚬ Connect and hire top startups |
73 | </p> | 308 | </p> |
74 | </div> | 309 | </div> |
75 | </div> | 310 | </div> |
76 | <div class="clearfix"></div> | 311 | <!-- CLOSE STAGE SHADOW --> |
77 | </div> | 312 | <div class="form-all"> |
78 | <div class="clearfix"></div> | 313 | <div class="col-xs-12 col-md-6 input-wrapper"> |
79 | </div> | 314 | <div id="snackbar">Error ! Please fill in all fields.</div> |
80 | <div class="hidden-sm hidden-md hidden-lg"> | 315 | <div class="icon-circle-c"> |
81 | <div class="cards-content" ng-if="data.stage == 'Idea'"> | 316 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> |
82 | <p> | 317 | </div> |
83 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> | 318 | <input type="text" class="text-input" required ng-model="data.firstName" placeholder="First Name *" id="myBtn" name="firstName" ng-change="entername(data.firstName); firstNamekeyPress(data.firstName)"> |
84 | ⚬ Get feedback from mentors<br> | ||
85 | ⚬ Validate your idea. | ||
86 | </p> | ||
87 | </div> | ||
88 | <div class="cards-content" ng-if="data.stage == 'Product'"> | ||
89 | <p> | ||
90 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> | ||
91 | ⚬ Advice on fundraising<br> | ||
92 | ⚬ Advice on go-to-market strategy | ||
93 | </p> | ||
94 | </div> | ||
95 | <div class="cards-content" ng-if="data.stage == 'Growth'"> | ||
96 | <p> | ||
97 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> | ||
98 | ⚬ Connect with Series A investors<br> | ||
99 | ⚬ Connect and hire top startups | ||
100 | </p> | ||
101 | </div> | ||
102 | </div> | ||
103 | <!-- CLOSE STAGE SHADOW --> | ||
104 | <div class="form-all"> | ||
105 | <div class="col-xs-12 col-md-6 input-wrapper"> | ||
106 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
107 | <div class="icon-circle-c"> | ||
108 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> | ||
109 | </div> | ||
110 | <input type="text" class="text-input" required ng-model="data.firstName" placeholder="First Name *" id="myBtn" name="firstName" ng-change="entername(data.firstName); firstNamekeyPress(data.firstName)"> | ||
111 | </div> | ||
112 | <div class="col-xs-12 col-md-6 input-wrapper"> | ||
113 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
114 | <div class="icon-circle-x"> | ||
115 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> | ||
116 | </div> | ||
117 | <input type="text" class="text-input" required ng-model="data.lastName" placeholder="Last Name *" id="myBtn" name="lastName" ng-change="entername(data.lastName); lastNamekeyPress(data.lastName)"> | ||
118 | </div> | ||
119 | <div class="col-xs-12 col-md-6 input-wrapper"> | ||
120 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
121 | <div class="icon-circle-d"> | ||
122 | <i class="material-icons" style="line-height: 30px;">email</i> | ||
123 | </div> | ||
124 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)" ng-keyup="emailTest($event)"> | ||
125 | <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> | ||
126 | <label ng-if="check">Email already exist.</label> | ||
127 | <label style="color: #ff0000;margin: 5px 4px -5px 0px" ng-if="space == true" >Please remove the space.</label> | ||
128 | </div> | ||
129 | <div class="col-xs-12 col-md-6 input-wrapper f-family"> | ||
130 | <div class="icon-circle-f"> | ||
131 | <i class="material-icons" style="line-height: 30px;">location_city</i> | ||
132 | </div> | ||
133 | <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" required style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;"> | ||
134 | <option name="city" selected disabled value="">Choose City *</option> | ||
135 | <option value="Agra">Agra</option> | ||
136 | <option value="Ahmedabad">Ahmedabad</option> | ||
137 | <option value="Ajmer">Ajmer</option> | ||
138 | <option value="Aligarh">Aligarh</option> | ||
139 | <option value="Allahabad">Allahabad</option> | ||
140 | <option value="Ambattur">Ambattur</option> | ||
141 | <option value="Amravati">Amravati</option> | ||
142 | <option value="Amritsar">Amritsar</option> | ||
143 | <option value="Asansol">Asansol</option> | ||
144 | <option value="Aurangabad">Aurangabad</option> | ||
145 | <option value="Bareilly">Bareilly</option> | ||
146 | <option value="Belgaum">Belgaum</option> | ||
147 | <option value="Bengaluru">Bengaluru</option> | ||
148 | <option value="Bhavnagar">Bhavnagar</option> | ||
149 | <option value="Bhayander">Bhayander</option> | ||
150 | <option value="Bhilai Nagar">Bhilai Nagar</option> | ||
151 | <option value="Bhiwandi">Bhiwandi</option> | ||
152 | <option value="Bhopal">Bhopal</option> | ||
153 | <option value="Bhubaneswar">Bhubaneswar</option> | ||
154 | <option value="Bikaner">Bikaner</option> | ||
155 | <option value="Chandigarh">Chandigarh</option> | ||
156 | <option value="Chennai">Chennai</option> | ||
157 | <option value="Chinchwad">Chinchwad</option> | ||
158 | <option value="Coimbatore">Coimbatore</option> | ||
159 | <option value="Cuttack">Cuttack</option> | ||
160 | <option value="Dehradun">Dehradun</option> | ||
161 | <option value="Delhi-NCR">Delhi-NCR</option> | ||
162 | <option value="Dhanbad">Dhanbad</option> | ||
163 | <option value="Dharwad">Dharwad</option> | ||
164 | <option value="Dombivali">Dombivali</option> | ||
165 | <option value="Durgapur">Durgapur</option> | ||
166 | <option value="Faridabad">Faridabad</option> | ||
167 | <option value="Firozabad">Firozabad</option> | ||
168 | <option value="Gaya">Gaya</option> | ||
169 | <option value="Ghaziabad">Ghaziabad</option> | ||
170 | <option value="Gorakhpur">Gorakhpur</option> | ||
171 | <option value="Gulbarga">Gulbarga</option> | ||
172 | <option value="Guntur">Guntur</option> | ||
173 | <option value="Gurgaon">Gurgaon</option> | ||
174 | <option value="Guwahati">Guwahati</option> | ||
175 | <option value="Gwalior">Gwalior</option> | ||
176 | <option value="Haora">Haora</option> | ||
177 | <option value="Hubli">Hubli</option> | ||
178 | <option value="Hyderabad">Hyderabad</option> | ||
179 | <option value="Indore">Indore</option> | ||
180 | <option value="Jabalpur">Jabalpur</option> | ||
181 | <option value="Jaipur">Jaipur</option> | ||
182 | <option value="Jalandhar">Jalandhar</option> | ||
183 | <option value="Jalgaon">Jalgaon</option> | ||
184 | <option value="Jammu">Jammu</option> | ||
185 | <option value="Jamnagar">Jamnagar</option> | ||
186 | <option value="Jamshedpur">Jamshedpur</option> | ||
187 | <option value="Jhansi">Jhansi</option> | ||
188 | <option value="Jodhpur">Jodhpur</option> | ||
189 | <option value="Kalyan">Kalyan</option> | ||
190 | <option value="Kanpur">Kanpur</option> | ||
191 | <option value="Kochi">Kochi</option> | ||
192 | <option value="Kolapur">Kolapur</option> | ||
193 | <option value="Kolkata">Kolkata</option> | ||
194 | <option value="Kota">Kota</option> | ||
195 | <option value="Loni">Loni</option> | ||
196 | <option value="Lucknow">Lucknow</option> | ||
197 | <option value="Ludhiana">Ludhiana</option> | ||
198 | <option value="Madurai">Madurai</option> | ||
199 | <option value="Maheshtala">Maheshtala</option> | ||
200 | <option value="Malegoan">Malegoan</option> | ||
201 | <option value="Mangalore">Mangalore</option> | ||
202 | <option value="Meerut">Meerut</option> | ||
203 | <option value="Mira">Mira</option> | ||
204 | <option value="Moradabad">Moradabad</option> | ||
205 | <option value="Mumbai">Mumbai</option> | ||
206 | <option value="Mysore">Mysore</option> | ||
207 | <option value="Nagpur">Nagpur</option> | ||
208 | <option value="Nanded Waghala">Nanded Waghala</option> | ||
209 | <option value="Nashik">Nashik</option> | ||
210 | <option value="Navi Mumbai">Navi Mumbai</option> | ||
211 | <option value="Nellore">Nellore</option> | ||
212 | <option value="Noida">Noida</option> | ||
213 | <option value="Patna">Patna</option> | ||
214 | <option value="Pimpri">Pimpri</option> | ||
215 | <option value="Pune">Pune</option> | ||
216 | <option value="Raipur">Raipur</option> | ||
217 | <option value="Rajkot">Rajkot</option> | ||
218 | <option value="Ranchi">Ranchi</option> | ||
219 | <option value="Saharanpur">Saharanpur</option> | ||
220 | <option value="Salem">Salem</option> | ||
221 | <option value="Sangli Miraj Kupwad">Sangli Miraj Kupwad</option> | ||
222 | <option value="Siliguri">Siliguri</option> | ||
223 | <option value="Solapur">Solapur</option> | ||
224 | <option value="Srinagar">Srinagar</option> | ||
225 | <option value="Surat">Surat</option> | ||
226 | <option value="Thane">Thane</option> | ||
227 | <option value="Thiruvananthapuram">Thiruvananthapuram</option> | ||
228 | <option value="Tiruchirappalli">Tiruchirappalli</option> | ||
229 | <option value="Tirunelveli">Tirunelveli</option> | ||
230 | <option value="Udaipur">Udaipur</option> | ||
231 | <option value="Ujjain">Ujjain</option> | ||
232 | <option value="Ulhasnagar">Ulhasnagar</option> | ||
233 | <option value="Vadodara">Vadodara</option> | ||
234 | <option value="Varanasi">Varanasi</option> | ||
235 | <option value="Vasai Virar">Vasai Virar</option> | ||
236 | <option value="Vijayawada">Vijayawada</option> | ||
237 | <option value="Visakhapatnam">Visakhapatnam</option> | ||
238 | <option value="Warangal">Warangal</option> | ||
239 | <option value="anyOther">Any other</option> | ||
240 | </select> | ||
241 | </div> | ||
242 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | ||
243 | <strong>Which city meet-up would you like to attend? </strong> | ||
244 | <p class="line-space" ></p> | ||
245 | </div> | ||
246 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | ||
247 | <div class="icon-circle-p"> | ||
248 | <i class="material-icons" style="line-height: 30px;">location_city</i> | ||
249 | </div> | ||
250 | <select name="citymeetup" ng-model="data.citymeetup" ng-change="enterbusiness(data.citymeetup); businesskeyPress(data.citymeetup)" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> | ||
251 | <option selected disabled value="">City meet-up *</option> | ||
252 | <option value="Chennai">November 9: Chennai</option> | ||
253 | <option value="Pune">November 11: Pune</option> | ||
254 | <option value="Ahmedabad">November 13: Ahmedabad</option> | ||
255 | <option value="Mumbai">November 17: Mumbai</option> | ||
256 | <option value="Bengaluru">November 23: Bengaluru</option> | ||
257 | <option value="Delhi">November 25: Delhi</option> | ||
258 | <option value="Hyderabad">November 17: Hyderabad</option> | ||
259 | <option value="Chandigarh">December 1: Chandigarh</option> | ||
260 | </select> | ||
261 | </div> | ||
262 | <div class="col-xs-12 col-md-6 input-wrapper"> | ||
263 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
264 | <div class="icon-circle-e"> | ||
265 | <i class="material-icons" style="line-height: 30px;">phone</i> | ||
266 | </div> | ||
267 | <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-blur="numbercheck(data.number)" ng-model="data.number" placeholder="Mobile No.*" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)"> | ||
268 | <label ng-if="numberCheck">Contact Number already exist.</label> | ||
269 | </div> | ||
270 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> | ||
271 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
272 | <div class="icon-circle-h"> | ||
273 | <i class="material-icons" style="line-height: 31px;">link</i> | ||
274 | </div> | ||
275 | <input type="text" class="text-input" ng-model="data.linkedInUrl" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="LinkedIn URL" id="myBtn" name="linkedInUrl" ng-change="entername(data.linkedInUrl); linkedInkeyPress(data.linkedInUrl)"> | ||
276 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.linkedInUrl == undefined || data.linkedInUrl == ''" style="position:absolute; top: 10px; left: 116px; color: #999">*</span> | ||
277 | </div> | ||
278 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | ||
279 | <strong>Explain your idea/product briefly</strong> | ||
280 | <p class="line-space" ></p> | ||
281 | </div> | ||
282 | <div class="col-xs-12 col-md-12 input-wrapper"> | ||
283 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
284 | <div class="icon-circle-q"> | ||
285 | <i class="material-icons" style="line-height: 31px;">thumb_up</i> | ||
286 | </div> | ||
287 | <textarea type="text" maxlength="300" class="text-input" required ng-model="data.idea" placeholder="Idea/Product *" id="myBtn" name="Idea" ng-focus="removeNooError()" ng-change="entername(data.idea); ideakeyPress(data.idea)"> | ||
288 | </textarea> | ||
289 | <label class="error-message f-family" id="invalidIdea">Please answer using 300 words only.</label> | ||
290 | </div> | ||
291 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | ||
292 | <div class="icon-circle-abcdefg"> | ||
293 | <i class="material-icons" style="line-height: 30px;">open_with</i> | ||
294 | </div> | ||
295 | <select name="industry" ng-model="data.industry" ng-change="industry(data.industry); industrykeyPress()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="dataIndustry"> | ||
296 | <option selected disabled value="">Choose Industry *</option> | ||
297 | <option value="Travel">Travel</option> | ||
298 | <option value="Retail">Retail</option> | ||
299 | <option value="Editech">Editech</option> | ||
300 | <option value="Fintech">Fintech</option> | ||
301 | <option value="Hardware">Hardware</option> | ||
302 | <option value="Digital">Digital</option> | ||
303 | <option value="Rural">Rural</option> | ||
304 | <option value="others">Others</option> | ||
305 | </select> | ||
306 | </div> | ||
307 | <div class="col-xs-12 col-md-12 input-wrapper" ng-if="addOther"> | ||
308 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
309 | <div class="icon-circle-o"> | ||
310 | <i class="material-icons" style="line-height: 31px;">open_with</i> | ||
311 | </div> | ||
312 | <input type="text" class="text-input" ng-change="industry(data.industryName); industryNamekeyPress((data.industryName))" ng-model="data.industryName" placeholder="Please mention other industry name"> | ||
313 | </div> | ||
314 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> | ||
315 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
316 | <div class="icon-circle-i"> | ||
317 | <i class="material-icons" style="line-height: 31px;">business</i> | ||
318 | </div> | ||
319 | <input type="text" class="text-input" ng-model="data.companyName" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="Company Name" id="myBtn" name="companyName" ng-change="entername(data.companyName); companykeyPress(data.companyName)"> | ||
320 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.companyName == undefined || data.companyName == ''" style="position:absolute; top: 10px; left: 130px; color: #999">*</span> | ||
321 | </div> | ||
322 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> | ||
323 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
324 | <div class="icon-circle-j"> | ||
325 | <i class="material-icons" style="line-height: 31px;">view_comfy</i> | ||
326 | </div> | ||
327 | <input type="text" class="text-input" ng-model="data.productName" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="Product Name" id="myBtn" name="productName" ng-change="entername(data.productName); productNamekeyPress(data.productName)"> | ||
328 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.productName == undefined || data.productName == ''" style="position:absolute; top: 10px; left: 120px; color: #999">*</span> | ||
329 | </div> | ||
330 | <div class="hideform" ng-if="prototyp"> | ||
331 | <div class="hideform" ng-if="protyp"> | ||
332 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | ||
333 | <strong>Product Launched? </strong> | ||
334 | <p class="line-space" ></p> | ||
335 | </div> | ||
336 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | ||
337 | <div class="icon-circle-ab"> | ||
338 | <i class="material-icons" style="line-height: 30px;">launch</i> | ||
339 | </div> | 319 | </div> |
340 | <select name="productLaunch" ng-model="data.productLaunch" ng-change="productLaunch(data.productLaunch); productLaunchkeyPress()" ng-click="productCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="productDiv"> | 320 | <div class="col-xs-12 col-md-6 input-wrapper"> |
341 | <option selected disabled value="">Select *</option> | 321 | <div id="snackbar">Error ! Please fill in all fields.</div> |
342 | <option value="yes">Yes</option> | 322 | <div class="icon-circle-x"> |
343 | <option value="no">No</option> | 323 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> |
344 | </select> | 324 | </div> |
345 | </div> | 325 | <input type="text" class="text-input" required ng-model="data.lastName" placeholder="Last Name *" id="myBtn" name="lastName" ng-change="entername(data.lastName); lastNamekeyPress(data.lastName)"> |
346 | <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="Productshow == 'yes'"> | ||
347 | <strong>Product Launch Period </strong> | ||
348 | <p class="line-space" ></p> | ||
349 | </div> | ||
350 | <div class="col-xs-12 col-md-12 input-wrapper f-family" ng-if="Productshow == 'yes'"> | ||
351 | <div class="icon-circle-abc"> | ||
352 | <i class="material-icons" style="line-height: 30px;">launch</i> | ||
353 | </div> | 326 | </div> |
354 | <select name="launchPeriod" ng-model="data.launchPeriod" ng-change="launchPeriod(data.launchPeriod); launchPeriodkeyPress()" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> | 327 | <div class="col-xs-12 col-md-6 input-wrapper"> |
355 | <option selected disabled value="">Select</option> | 328 | <div id="snackbar">Error ! Please fill in all fields.</div> |
356 | <option value="less than 1 Month">less than one month</option> | 329 | <div class="icon-circle-d"> |
357 | <option value="less than 6 Months">less than 6 months</option> | 330 | <i class="material-icons" style="line-height: 30px;">email</i> |
358 | <option value="more than 6 Months">more than 6 months</option> | 331 | </div> |
359 | </select> | 332 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)" ng-keyup="emailTest($event)"> |
360 | </div> | 333 | <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> |
361 | </div> | 334 | <label ng-if="check">Email already exist.</label> |
362 | <div class="col-xs-12 col-md-6 input-wrapper"> | 335 | <label style="color: #ff0000;margin: 5px 4px -5px 0px" ng-if="space == true" >Please remove the space.</label> |
363 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
364 | <div class="icon-circle-k"> | ||
365 | <i class="material-icons" style="line-height: 31px;">web</i> | ||
366 | </div> | 336 | </div> |
367 | <input type="text" class="text-input" ng-model="data.websiteUrl" ng-required="Productshow == 'yes'" placeholder="Website URL *" id="myBtn" name="websiteUrl" ng-change="entername(data.websiteUrl); websitekeyPress(data.websiteUrl)"> | 337 | <div class="col-xs-12 col-md-6 input-wrapper f-family"> |
368 | </div> | 338 | <div class="icon-circle-f"> |
369 | <div class="col-xs-12 col-md-6 input-wrapper"> | 339 | <i class="material-icons" style="line-height: 30px;">location_city</i> |
370 | <div id="snackbar">Error ! Please fill in all fields.</div> | 340 | </div> |
371 | <div class="icon-circle-m"> | 341 | <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" required style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;"> |
372 | <i class="material-icons" style="line-height: 31px;">link</i> | 342 | <option name="city" selected disabled value="">Choose City *</option> |
343 | <option value="Agra">Agra</option> | ||
344 | <option value="Ahmedabad">Ahmedabad</option> | ||
345 | <option value="Ajmer">Ajmer</option> | ||
346 | <option value="Aligarh">Aligarh</option> | ||
347 | <option value="Allahabad">Allahabad</option> | ||
348 | <option value="Ambattur">Ambattur</option> | ||
349 | <option value="Amravati">Amravati</option> | ||
350 | <option value="Amritsar">Amritsar</option> | ||
351 | <option value="Asansol">Asansol</option> | ||
352 | <option value="Aurangabad">Aurangabad</option> | ||
353 | <option value="Bareilly">Bareilly</option> | ||
354 | <option value="Belgaum">Belgaum</option> | ||
355 | <option value="Bengaluru">Bengaluru</option> | ||
356 | <option value="Bhavnagar">Bhavnagar</option> | ||
357 | <option value="Bhayander">Bhayander</option> | ||
358 | <option value="Bhilai Nagar">Bhilai Nagar</option> | ||
359 | <option value="Bhiwandi">Bhiwandi</option> | ||
360 | <option value="Bhopal">Bhopal</option> | ||
361 | <option value="Bhubaneswar">Bhubaneswar</option> | ||
362 | <option value="Bikaner">Bikaner</option> | ||
363 | <option value="Chandigarh">Chandigarh</option> | ||
364 | <option value="Chennai">Chennai</option> | ||
365 | <option value="Chinchwad">Chinchwad</option> | ||
366 | <option value="Coimbatore">Coimbatore</option> | ||
367 | <option value="Cuttack">Cuttack</option> | ||
368 | <option value="Dehradun">Dehradun</option> | ||
369 | <option value="Delhi-NCR">Delhi-NCR</option> | ||
370 | <option value="Dhanbad">Dhanbad</option> | ||
371 | <option value="Dharwad">Dharwad</option> | ||
372 | <option value="Dombivali">Dombivali</option> | ||
373 | <option value="Durgapur">Durgapur</option> | ||
374 | <option value="Faridabad">Faridabad</option> | ||
375 | <option value="Firozabad">Firozabad</option> | ||
376 | <option value="Gaya">Gaya</option> | ||
377 | <option value="Ghaziabad">Ghaziabad</option> | ||
378 | <option value="Gorakhpur">Gorakhpur</option> | ||
379 | <option value="Gulbarga">Gulbarga</option> | ||
380 | <option value="Guntur">Guntur</option> | ||
381 | <option value="Gurgaon">Gurgaon</option> | ||
382 | <option value="Guwahati">Guwahati</option> | ||
383 | <option value="Gwalior">Gwalior</option> | ||
384 | <option value="Haora">Haora</option> | ||
385 | <option value="Hubli">Hubli</option> | ||
386 | <option value="Hyderabad">Hyderabad</option> | ||
387 | <option value="Indore">Indore</option> | ||
388 | <option value="Jabalpur">Jabalpur</option> | ||
389 | <option value="Jaipur">Jaipur</option> | ||
390 | <option value="Jalandhar">Jalandhar</option> | ||
391 | <option value="Jalgaon">Jalgaon</option> | ||
392 | <option value="Jammu">Jammu</option> | ||
393 | <option value="Jamnagar">Jamnagar</option> | ||
394 | <option value="Jamshedpur">Jamshedpur</option> | ||
395 | <option value="Jhansi">Jhansi</option> | ||
396 | <option value="Jodhpur">Jodhpur</option> | ||
397 | <option value="Kalyan">Kalyan</option> | ||
398 | <option value="Kanpur">Kanpur</option> | ||
399 | <option value="Kochi">Kochi</option> | ||
400 | <option value="Kolapur">Kolapur</option> | ||
401 | <option value="Kolkata">Kolkata</option> | ||
402 | <option value="Kota">Kota</option> | ||
403 | <option value="Loni">Loni</option> | ||
404 | <option value="Lucknow">Lucknow</option> | ||
405 | <option value="Ludhiana">Ludhiana</option> | ||
406 | <option value="Madurai">Madurai</option> | ||
407 | <option value="Maheshtala">Maheshtala</option> | ||
408 | <option value="Malegoan">Malegoan</option> | ||
409 | <option value="Mangalore">Mangalore</option> | ||
410 | <option value="Meerut">Meerut</option> | ||
411 | <option value="Mira">Mira</option> | ||
412 | <option value="Moradabad">Moradabad</option> | ||
413 | <option value="Mumbai">Mumbai</option> | ||
414 | <option value="Mysore">Mysore</option> | ||
415 | <option value="Nagpur">Nagpur</option> | ||
416 | <option value="Nanded Waghala">Nanded Waghala</option> | ||
417 | <option value="Nashik">Nashik</option> | ||
418 | <option value="Navi Mumbai">Navi Mumbai</option> | ||
419 | <option value="Nellore">Nellore</option> | ||
420 | <option value="Noida">Noida</option> | ||
421 | <option value="Patna">Patna</option> | ||
422 | <option value="Pimpri">Pimpri</option> | ||
423 | <option value="Pune">Pune</option> | ||
424 | <option value="Raipur">Raipur</option> | ||
425 | <option value="Rajkot">Rajkot</option> | ||
426 | <option value="Ranchi">Ranchi</option> | ||
427 | <option value="Saharanpur">Saharanpur</option> | ||
428 | <option value="Salem">Salem</option> | ||
429 | <option value="Sangli Miraj Kupwad">Sangli Miraj Kupwad</option> | ||
430 | <option value="Siliguri">Siliguri</option> | ||
431 | <option value="Solapur">Solapur</option> | ||
432 | <option value="Srinagar">Srinagar</option> | ||
433 | <option value="Surat">Surat</option> | ||
434 | <option value="Thane">Thane</option> | ||
435 | <option value="Thiruvananthapuram">Thiruvananthapuram</option> | ||
436 | <option value="Tiruchirappalli">Tiruchirappalli</option> | ||
437 | <option value="Tirunelveli">Tirunelveli</option> | ||
438 | <option value="Udaipur">Udaipur</option> | ||
439 | <option value="Ujjain">Ujjain</option> | ||
440 | <option value="Ulhasnagar">Ulhasnagar</option> | ||
441 | <option value="Vadodara">Vadodara</option> | ||
442 | <option value="Varanasi">Varanasi</option> | ||
443 | <option value="Vasai Virar">Vasai Virar</option> | ||
444 | <option value="Vijayawada">Vijayawada</option> | ||
445 | <option value="Visakhapatnam">Visakhapatnam</option> | ||
446 | <option value="Warangal">Warangal</option> | ||
447 | <option value="anyOther">Any other</option> | ||
448 | </select> | ||
373 | </div> | 449 | </div> |
374 | <input type="text" class="text-input" ng-model="data.demoLink" ng-required="Productshow == 'yes'" placeholder="Link to your product/app/demo *" id="myBtn" name="demoLink" ng-change="entername(data.demoLink); annualkeyPress(data.demoLink)"> | 450 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> |
375 | </div> | 451 | <strong>Which city meet-up would you like to attend? </strong> |
376 | <div class="col-xs-12 col-md-6 input-wrapper"> | 452 | <p class="line-space" ></p> |
377 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
378 | <div class="icon-circle-l"> | ||
379 | <i class="material-icons" style="line-height: 31px;">format_list_numbered</i> | ||
380 | </div> | 453 | </div> |
381 | <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-required="Productshow == 'yes'" ng-model="data.numberOfEmployees" placeholder="Number of Employees *" id="myBtn" name="numberOfEmployees" ng-change="entername(data.numberOfEmployees); employeekeyPress(data.numberOfEmployees)"> | 454 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
382 | </div> | 455 | <div class="icon-circle-p"> |
383 | <div class="col-xs-12 col-md-6 input-wrapper"> | 456 | <i class="material-icons" style="line-height: 30px;">location_city</i> |
384 | <div id="snackbar">Error ! Please fill in all fields.</div> | 457 | </div> |
385 | <div class="icon-circle-n"> | 458 | <select name="citymeetup" ng-model="data.citymeetup" ng-change="enterbusiness(data.citymeetup); businesskeyPress(data.citymeetup)" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> |
386 | <i class="material-icons" style="line-height: 31px;">view_stream</i> | 459 | <option selected disabled value="">City meet-up *</option> |
460 | <option value="Chennai">November 9: Chennai</option> | ||
461 | <option value="Pune">November 11: Pune</option> | ||
462 | <option value="Ahmedabad">November 13: Ahmedabad</option> | ||
463 | <option value="Mumbai">November 17: Mumbai</option> | ||
464 | <option value="Bengaluru">November 23: Bengaluru</option> | ||
465 | <option value="Delhi">November 25: Delhi</option> | ||
466 | <option value="Hyderabad">November 27: Hyderabad</option> | ||
467 | <option value="Chandigarh">December 1: Chandigarh</option> | ||
468 | </select> | ||
469 | </div> --> | ||
470 | <div class="col-xs-12 col-md-6 input-wrapper"> | ||
471 | <div id="snackbar">Error ! Please fill in all fields.</div> | ||
472 | <div class="icon-circle-e"> | ||
473 | <i class="material-icons" style="line-height: 30px;">phone</i> | ||
474 | </div> | ||
475 | <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-blur="numbercheck(data.number)" ng-model="data.number" placeholder="Mobile No.*" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)"> | ||
476 | <label ng-if="numberCheck">Contact Number already exist.</label> | ||
387 | </div> | 477 | </div> |
388 | <input type="text" class="text-input" ng-model="data.revenueMonth" ng-required="Productshow == 'yes'" placeholder="Monthly Revenue *" id="myBtn" name="revenueMonth" ng-change="entername(data.revenueMonth); revenuekeyPress(data.revenueMonth)"> | 478 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> |
389 | </div> | 479 | <div id="snackbar">Error ! Please fill in all fields.</div> |
390 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 480 | <div class="icon-circle-h"> |
391 | <p><b>Have you risen any funding yet?</b></p> | 481 | <i class="material-icons" style="line-height: 31px;">link</i> |
392 | <div class="icon-circle-bc"> | 482 | </div> |
393 | <i class="material-icons" style="line-height: 30px;">payment</i> | 483 | <input type="text" class="text-input" ng-model="data.linkedInUrl" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="LinkedIn URL" id="myBtn" name="linkedInUrl" ng-change="entername(data.linkedInUrl); linkedInkeyPress(data.linkedInUrl)"> |
484 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.linkedInUrl == undefined || data.linkedInUrl == ''" style="position:absolute; top: 10px; left: 116px; color: #999">*</span> | ||
394 | </div> | 485 | </div> |
395 | <select name="amount" ng-model="data.amount" ng-required="Productshow == 'yes'" ng-change="amount(data.amount); amountkeyPress()" ng-click="textCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="fundingDiv"> | 486 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
396 | <option selected disabled value="">Select *</option> | 487 | <strong>Explain your idea/product briefly</strong> |
397 | <option value="yes">Yes</option> | 488 | <p class="line-space" ></p> |
398 | <option value="no">No</option> | ||
399 | </select> | ||
400 | </div> | ||
401 | <div class="col-xs-12 col-md-12 input-wrapper" ng-if="Textshow == 'yes'"> | ||
402 | <div class="icon-circle-y" > | ||
403 | <i class="material-icons" style="line-height: 31px;">money</i> | ||
404 | </div> | 489 | </div> |
405 | <input type="text" name="fund" class="text-input" ng-model="data.fund" placeholder="Fill amount" ng-change="fund(data.fund); fundkeyPress(data.fund)"></input> | 490 | <div class="col-xs-12 col-md-12 input-wrapper"> |
406 | </div> | 491 | <div id="snackbar">Error ! Please fill in all fields.</div> |
407 | </div> | 492 | <div class="icon-circle-q"> |
408 | <!-- <div class="identity-shadow"> | 493 | <i class="material-icons" style="line-height: 31px;">thumb_up</i> |
409 | <div class="icon-circle-bc"> | 494 | </div> |
410 | <i class="material-icons" style="line-height: 30px;">payment</i> | 495 | <textarea type="text" maxlength="300" class="text-input" required ng-model="data.idea" placeholder="Idea/Product *" id="myBtn" name="Idea" ng-focus="removeNooError()" ng-change="entername(data.idea); ideakeyPress(data.idea)"> |
411 | </div> | 496 | </textarea> |
412 | <div class="identity-question"> | 497 | <label class="error-message f-family" id="invalidIdea">Please answer using 300 words only.</label> |
413 | <div class="col-xs-12 font f-family" style="margin:10px 10px 0px 10px;"> | 498 | </div> |
414 | <b>Have you risen any funding yet?</b> | 499 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
415 | <p style="color:grey"></p> | 500 | <div class="icon-circle-abcdefg"> |
501 | <i class="material-icons" style="line-height: 30px;">open_with</i> | ||
502 | </div> | ||
503 | <select name="industry" ng-model="data.industry" ng-change="industry(data.industry); industrykeyPress()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="dataIndustry"> | ||
504 | <option selected disabled value="">Choose Industry *</option> | ||
505 | <option value="Travel">Travel</option> |
script.js
1 | // create the module and name it scotchApp | 1 | // create the module and name it scotchApp |
2 | var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']); | 2 | var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']); |
3 | 3 | ||
4 | // configure our routes | 4 | // configure our routes |
5 | scotchApp.config(function($routeProvider) { | 5 | scotchApp.config(function($routeProvider) { |
6 | $routeProvider | 6 | $routeProvider |
7 | 7 | ||
8 | // route for the Home page | 8 | // route for the Home page |
9 | .when('/', { | 9 | .when('/', { |
10 | templateUrl: 'pages/Home.html', | 10 | templateUrl: 'pages/Home.html', |
11 | controller: 'mainController' | 11 | controller: 'mainController' |
12 | }) | 12 | }) |
13 | 13 | ||
14 | // route for the registration page | 14 | // route for the registration page |
15 | .when('/registration', { | 15 | .when('/registration', { |
16 | templateUrl: 'pages/registration.html', | 16 | templateUrl: 'pages/registration.html', |
17 | controller: 'mainController' | 17 | controller: 'mainController' |
18 | }) | 18 | }) |
19 | 19 | ||
20 | // route for the paymentVerify page | 20 | // route for the paymentVerify page |
21 | .when('/pendingPayment/:id', { | 21 | .when('/pendingPayment/:id', { |
22 | templateUrl: 'pages/verify.html', | 22 | templateUrl: 'pages/verify.html', |
23 | controller: 'verifyController' | 23 | controller: 'verifyController' |
24 | }) | 24 | }) |
25 | 25 | ||
26 | // route for the ambassador page | 26 | // route for the ambassador page |
27 | .when('/ambassador', { | 27 | .when('/ambassador', { |
28 | templateUrl: 'pages/ambassador.html', | 28 | templateUrl: 'pages/ambassador.html', |
29 | controller: 'ambassadorController' | 29 | controller: 'ambassadorController' |
30 | }) | 30 | }) |
31 | 31 | ||
32 | // route for the confirmation page | 32 | // route for the confirmation page |
33 | .when('/confirmation', { | 33 | .when('/confirmation', { |
34 | templateUrl: 'pages/confirmation.html', | 34 | templateUrl: 'pages/confirmation.html', |
35 | controller: 'mainController' | 35 | controller: 'mainController' |
36 | }) | 36 | }) |
37 | 37 | ||
38 | }); | 38 | }); |
39 | 39 | ||
40 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { | 40 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { |
41 | // Add configuration code as desired | 41 | // Add configuration code as desired |
42 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code | 42 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code |
43 | 43 | ||
44 | // Track all routes (default is true). | 44 | // Track all routes (default is true). |
45 | AnalyticsProvider.trackPages(true); | 45 | AnalyticsProvider.trackPages(true); |
46 | 46 | ||
47 | // Track all URL query params (default is false). | 47 | // Track all URL query params (default is false). |
48 | AnalyticsProvider.trackUrlParams(true); | 48 | AnalyticsProvider.trackUrlParams(true); |
49 | 49 | ||
50 | }]).run(['Analytics', function(Analytics) { }]); | 50 | }]).run(['Analytics', function(Analytics) { }]); |
51 | 51 | ||
52 | scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api") | 52 | scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api") |
53 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api") | 53 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api") |
54 | 54 | ||
55 | // create the controller and inject Angular's $scope | 55 | // create the controller and inject Angular's $scope |
56 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { | 56 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { |
57 | $scope.data = { | 57 | $scope.data = { |
58 | show: true, | 58 | show: true, |
59 | hide: false | 59 | hide: false |
60 | }; | 60 | }; |
61 | 61 | ||
62 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 62 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
63 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 63 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
64 | // $scope.Textshow = "yes" | 64 | // $scope.Textshow = "yes" |
65 | $scope.max = 100; | 65 | $scope.max = 100; |
66 | $scope.formPage = false; | ||
66 | $scope.current = 0; | 67 | $scope.current = 0; |
67 | $scope.payingAmnt = 0; | 68 | $scope.payingAmnt = 0; |
68 | if ($scope.data.stage == 'select') { | 69 | if ($scope.data.stage == 'select') { |
69 | 70 | ||
70 | } | 71 | } |
71 | 72 | ||
72 | //$scope.author = 'Swarn Singh'; | 73 | //$scope.author = 'Swarn Singh'; |
73 | $scope.data = {}; | 74 | $scope.data = {}; |
74 | $scope.data.stage = 'Idea'; | 75 | $scope.data.stage = 'Idea'; |
75 | $scope.discountAmount = 0; | 76 | $scope.discountAmount = 0; |
76 | $scope.check = false; | 77 | $scope.check = false; |
77 | $scope.numberCheck = false; | 78 | $scope.numberCheck = false; |
78 | $scope.paymentResult = {}; | 79 | $scope.paymentResult = {}; |
79 | var data = { | 80 | var data = { |
80 | "amount": $scope.payingAmnt, | 81 | "amount": $scope.payingAmnt, |
81 | "currency": "INR", | 82 | "currency": "INR", |
82 | "status": "pending" | 83 | "status": "pending" |
83 | } | 84 | } |
84 | 85 | ||
85 | /*open videos in modal*/ | 86 | /*open videos in modal*/ |
86 | // $scope.openyoutube16 = function(){ | 87 | // $scope.openyoutube16 = function(){ |
87 | // $('#videoModel').modal('show'); | 88 | // $('#videoModel').modal('show'); |
88 | // } | 89 | // } |
89 | 90 | ||
90 | // $scope.openyoutube17 = function(){ | 91 | // $scope.openyoutube17 = function(){ |
91 | // $('#videoModels').modal('show'); | 92 | // $('#videoModels').modal('show'); |
92 | // } | 93 | // } |
93 | 94 | ||
94 | // $scope.closeModal = function(){ | 95 | // $scope.closeModal = function(){ |
95 | // var url = $('#youtubePlayer').attr('src'); | 96 | // var url = $('#youtubePlayer').attr('src'); |
96 | // $('#youtubePlayer').attr('src', ''); | 97 | // $('#youtubePlayer').attr('src', ''); |
97 | // $('#youtubePlayer').attr('src', url); | 98 | // $('#youtubePlayer').attr('src', url); |
98 | // } | 99 | // } |
99 | 100 | ||
100 | 101 | ||
101 | // $scope.closed = function(){ | 102 | // $scope.closed = function(){ |
102 | // var url = $('#youtubePlayersss').attr('src'); | 103 | // var url = $('#youtubePlayersss').attr('src'); |
103 | // $('#youtubePlayersss').attr('src', ''); | 104 | // $('#youtubePlayersss').attr('src', ''); |
104 | // $('#youtubePlayersss').attr('src', url); | 105 | // $('#youtubePlayersss').attr('src', url); |
105 | // } | 106 | // } |
106 | /*open videos ends here*/ | 107 | /*open videos ends here*/ |
107 | $scope.apply = function() { | 108 | $scope.apply = function() { |
108 | Analytics.trackEvent('register', 'click', 'django.mp4'); | 109 | Analytics.trackEvent('register', 'click', 'django.mp4'); |
109 | $location.path("/registration") | 110 | $location.path("/registration") |
110 | } | 111 | } |
112 | $scope.data.citymeetup = ''; | ||
113 | $scope.register = function(value){ | ||
114 | $scope.data.citymeetup = value; | ||
115 | $('.hiddenForm').slideDown(); | ||
116 | $('html, body').animate({ | ||
117 | scrollTop: $('.hiddenForm').offset().top | ||
118 | }, 1000); | ||
119 | console.log('gdggsg', value); | ||
120 | } | ||
111 | 121 | ||
112 | $scope.removeError = function() { | 122 | $scope.removeError = function() { |
113 | $('#invalidEmail').css('display', 'none'); | 123 | $('#invalidEmail').css('display', 'none'); |
114 | $('#alreadyExist').css('display', 'none'); | 124 | $('#alreadyExist').css('display', 'none'); |
115 | }; | 125 | }; |
116 | 126 | ||
117 | $scope.emailcheck = function(val) { | 127 | $scope.emailcheck = function(val) { |
118 | console.log(val) | 128 | console.log(val) |
119 | $scope.space = /\s/g.test(val); | 129 | $scope.space = /\s/g.test(val); |
120 | console.log("space",$scope.space) | 130 | console.log("space",$scope.space) |
121 | if (val == undefined) { | 131 | if (val == undefined) { |
122 | $('#invalidEmail').css('display', 'block'); | 132 | $('#invalidEmail').css('display', 'block'); |
123 | } else { | 133 | } else { |
124 | $http({ | 134 | $http({ |
125 | method: 'GET', | 135 | method: 'GET', |
126 | url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', | 136 | url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', |
127 | headers: {} | 137 | headers: {} |
128 | }).then(function mySuccess(searchResult) { | 138 | }).then(function mySuccess(searchResult) { |
129 | console.log("searchResult1===>", searchResult) | 139 | console.log("searchResult1===>", searchResult) |
130 | if (searchResult.data.length == 0) { | 140 | if (searchResult.data.length == 0) { |
131 | $scope.check = false; | 141 | $scope.check = false; |
132 | } else { | 142 | } else { |
133 | $scope.check = true; | 143 | $scope.check = true; |
134 | $('#alreadyExist').css('display', 'block'); | 144 | $('#alreadyExist').css('display', 'block'); |
135 | } | 145 | } |
136 | }, function myError(error) {}); | 146 | }, function myError(error) {}); |
137 | } | 147 | } |
138 | }; | 148 | }; |
139 | 149 | ||
140 | $scope.removeNoError = function() { | 150 | $scope.removeNoError = function() { |
141 | $('#noExist').css('display', 'none'); | 151 | $('#noExist').css('display', 'none'); |
142 | }; | 152 | }; |
143 | 153 | ||
144 | $scope.numbercheck = function(number) { | 154 | $scope.numbercheck = function(number) { |
145 | $http({ | 155 | $http({ |
146 | method: 'GET', | 156 | method: 'GET', |
147 | url: BASE_URL + '/applicants?filter={"where": {"phone": {"like":"%25' + number + '%25"}}}', | 157 | url: BASE_URL + '/applicants?filter={"where": {"phone": {"like":"%25' + number + '%25"}}}', |
148 | data: $scope.data, | 158 | data: $scope.data, |
149 | headers: {} | 159 | headers: {} |
150 | }).then(function mySuccess(searchResult) { | 160 | }).then(function mySuccess(searchResult) { |
151 | console.log("searchResult===>", searchResult) | 161 | console.log("searchResult===>", searchResult) |
152 | if (searchResult.data.length == 0) { | 162 | if (searchResult.data.length == 0) { |
153 | $scope.numberCheck = false; | 163 | $scope.numberCheck = false; |
154 | 164 | ||
155 | } else { | 165 | } else { |
156 | $scope.numberCheck = true; | 166 | $scope.numberCheck = true; |
157 | $('#noExist').css('display', 'block'); | 167 | $('#noExist').css('display', 'block'); |
158 | } | 168 | } |
159 | }, function myError(error) {}); | 169 | }, function myError(error) {}); |
160 | }; | 170 | }; |
161 | 171 | ||
162 | $rootScope.tokenCall = function(val) { | 172 | $rootScope.tokenCall = function(val) { |
163 | console.log('val-------->', val); | 173 | console.log('val-------->', val); |
164 | if (val == undefined) { | 174 | if (val == undefined) { |
165 | $('#invalidEmail').css('display', 'block'); | 175 | $('#invalidEmail').css('display', 'block'); |
166 | } else { | 176 | } else { |
167 | val = val.toUpperCase(); | 177 | val = val.toUpperCase(); |
168 | $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": {"like":"%25' + val + '%25"}}}') | 178 | $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": {"like":"%25' + val + '%25"}}}') |
169 | .then(function(searchResult) { | 179 | .then(function(searchResult) { |
170 | if (searchResult.data.length == 0) { | 180 | if (searchResult.data.length == 0) { |
171 | $scope.tokencheck = false; | 181 | $scope.tokencheck = false; |
172 | $scope.discountAmount = 0; | 182 | $scope.discountAmount = 0; |
173 | } else { | 183 | } else { |
174 | $scope.tokencheck = true; | 184 | $scope.tokencheck = true; |
175 | } | 185 | } |
176 | },function(err){ | 186 | },function(err){ |
177 | console.log(err) | 187 | console.log(err) |
178 | }); | 188 | }); |
179 | 189 | ||
180 | } | 190 | } |
181 | }; | 191 | }; |
182 | 192 | ||
183 | 193 | ||
184 | 194 | ||
185 | 195 | ||
186 | /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/ | 196 | /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/ |
187 | $(document).ready( | 197 | $(document).ready( |
188 | function() { | 198 | function() { |
189 | $('input:submit').attr('disabled', true); | 199 | $('input:submit').attr('disabled', true); |
190 | $('input:file').change( | 200 | $('input:file').change( |
191 | function() { | 201 | function() { |
192 | if ($("#picture").val()) { | 202 | if ($("#picture").val()) { |
193 | $('input:submit').removeAttr('disabled'); | 203 | $('input:submit').removeAttr('disabled'); |
194 | } else { | 204 | } else { |
195 | $('input:submit').attr('disabled', true); | 205 | $('input:submit').attr('disabled', true); |
196 | } | 206 | } |
197 | }); | 207 | }); |
198 | }); | 208 | }); |
199 | 209 | ||
200 | /*****THIS IS FOR STEP ONE FORM ******/ | 210 | /*****THIS IS FOR STEP ONE FORM ******/ |
201 | // $scope.next = function() { | 211 | // $scope.next = function() { |
202 | // $scope.data.status = null | 212 | // $scope.data.status = null |
203 | // if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { | 213 | // if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { |
204 | // var x = document.getElementById("snackbar") | 214 | // var x = document.getElementById("snackbar") |
205 | // x.className = "show"; | 215 | // x.className = "show"; |
206 | // setTimeout(function() { | 216 | // setTimeout(function() { |
207 | // x.className = x.className.replace("show", ""); | 217 | // x.className = x.className.replace("show", ""); |
208 | // }, 3000); | 218 | // }, 3000); |
209 | // } else if ($scope.data.stage != undefined && $scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { | 219 | // } else if ($scope.data.stage != undefined && $scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { |
210 | // $scope.infoForm = true; | 220 | // $scope.infoForm = true; |
211 | // console.log("sdasdasdsa"); | 221 | // console.log("sdasdasdsa"); |
212 | // $scope.data.stage = $scope.data.stage; | 222 | // $scope.data.stage = $scope.data.stage; |
213 | // $scope.detail = {}; | 223 | // $scope.detail = {}; |
214 | // $scope.data.phone = "+91" + $scope.data.number; | 224 | // $scope.data.phone = "+91" + $scope.data.number; |
215 | // $http({ | 225 | // $http({ |
216 | // method: 'POST', | 226 | // method: 'POST', |
217 | // url: BASE_URL + '/information', | 227 | // url: BASE_URL + '/information', |
218 | // data: $scope.data, | 228 | // data: $scope.data, |
219 | // headers: {} | 229 | // headers: {} |
220 | // }).then(function mySuccess(result) { | 230 | // }).then(function mySuccess(result) { |
221 | // Analytics.trackEvent('information', 'click', 'django.mp4'); | 231 | // Analytics.trackEvent('information', 'click', 'django.mp4'); |
222 | // console.log("result", result) | 232 | // console.log("result", result) |
223 | // $scope.detail = result; | 233 | // $scope.detail = result; |
224 | // data.applicantId = result.data.id; | 234 | // data.applicantId = result.data.id; |
225 | // $scope.userId = result.data.id; | 235 | // $scope.userId = result.data.id; |
226 | 236 | ||
227 | // }, function myError(error) {}); | 237 | // }, function myError(error) {}); |
228 | 238 | ||
229 | // } | 239 | // } |
230 | 240 | ||
231 | // } | 241 | // } |
232 | 242 | ||
233 | $scope.calculateAmount = function(){ | 243 | $scope.calculateAmount = function(){ |
234 | if ($scope.data.stage == undefined || $scope.data.firstName == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { | 244 | if ($scope.data.stage == undefined || $scope.data.firstName == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { |
235 | var x = document.getElementById("snackbar") | 245 | var x = document.getElementById("snackbar") |
236 | x.className = "show"; | 246 | x.className = "show"; |
237 | setTimeout(function() { | 247 | setTimeout(function() { |
238 | x.className = x.className.replace("show", ""); | 248 | x.className = x.className.replace("show", ""); |
239 | }, 3000); | 249 | }, 3000); |
240 | } else if ($scope.data.stage != undefined && $scope.data.firstName != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { | 250 | } else if ($scope.data.stage != undefined && $scope.data.firstName != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { |
241 | $scope.infoForm = true; | 251 | $scope.infoForm = true; |
242 | console.log("sdasdasdsa"); | 252 | console.log("sdasdasdsa"); |
243 | $scope.data.stage = $scope.data.stage; | 253 | $scope.data.stage = $scope.data.stage; |
244 | $scope.detail = {}; | 254 | $scope.detail = {}; |
245 | $scope.data.phone = "+91" + $scope.data.number; | 255 | $scope.data.phone = "+91" + $scope.data.number; |
246 | $http({ | 256 | $http({ |
247 | method: 'POST', | 257 | method: 'POST', |
248 | url: BASE_URL + '/applicants', | 258 | url: BASE_URL + '/applicants', |
249 | data: $scope.data, | 259 | data: $scope.data, |
250 | headers: {} | 260 | headers: {} |
251 | }).then(function mySuccess(result) { | 261 | }).then(function mySuccess(result) { |
252 | Analytics.trackEvent('applicants', 'click', 'django.mp4'); | 262 | Analytics.trackEvent('applicants', 'click', 'django.mp4'); |
253 | console.log("result", result) | 263 | console.log("result", result) |
254 | $scope.detail = result; | 264 | $scope.detail = result; |
255 | data.applicantId = result.data.id; | 265 | data.applicantId = result.data.id; |
256 | //$scope.userId = result.data.id; | 266 | //$scope.userId = result.data.id; |
257 | 267 | ||
258 | if ($scope.data.stage == "Idea") { | 268 | if ($scope.data.stage == "Idea") { |
259 | console.log("$scope.data", $scope.data) | 269 | console.log("$scope.data", $scope.data) |
260 | $scope.ticketAmnt = 500; | 270 | $scope.ticketAmnt = 500; |
261 | } | 271 | } |
262 | 272 | ||
263 | if ($scope.data.stage == "Product") { | 273 | if ($scope.data.stage == "Product") { |
264 | $scope.ticketAmnt = 1000; | 274 | $scope.ticketAmnt = 1000; |
265 | } | 275 | } |
266 | 276 | ||
267 | if ($scope.data.stage == "Growth") { | 277 | if ($scope.data.stage == "Growth") { |
268 | $scope.ticketAmnt = 1000; | 278 | $scope.ticketAmnt = 1000; |
269 | } | 279 | } |
270 | var amount = $scope.ticketAmnt * 100 | 280 | var amount = $scope.ticketAmnt * 100 |
271 | if($scope.tokencheck == true){ | 281 | if($scope.tokencheck == true){ |
272 | var amount = $scope.ticketAmnt | 282 | var amount = $scope.ticketAmnt |
273 | // $scope.discountAmount = (amount * 10)/100 | 283 | // $scope.discountAmount = (amount * 10)/100 |
274 | console.log("finalAmount====>",$scope.payingAmnt) | 284 | console.log("finalAmount====>",$scope.payingAmnt) |
275 | } | 285 | } |
276 | 286 | ||
277 | var taxAmount = $scope.ticketAmnt | 287 | var taxAmount = $scope.ticketAmnt |
278 | // $scope.taxTotal = (taxAmount * 18)/100 | 288 | // $scope.taxTotal = (taxAmount * 18)/100 |
279 | $scope.payingAmnt = taxAmount | 289 | $scope.payingAmnt = taxAmount |
280 | console.log("taxincludedamount----", $scope.payingAmnt) | 290 | console.log("taxincludedamount----", $scope.payingAmnt) |
281 | // } | 291 | // } |
282 | 292 | ||
283 | /*****THIS IS FOR STEP THREE FORM ******/ | 293 | /*****THIS IS FOR STEP THREE FORM ******/ |
284 | // $scope.create = function() { | 294 | // $scope.create = function() { |
285 | // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { | 295 | // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { |
286 | // var x = document.getElementById("snackbar") | 296 | // var x = document.getElementById("snackbar") |
287 | // x.className = "show"; | 297 | // x.className = "show"; |
288 | // setTimeout(function() { | 298 | // setTimeout(function() { |
289 | // x.className = x.className.replace("show", ""); | 299 | // x.className = x.className.replace("show", ""); |
290 | // }, 3000); | 300 | // }, 3000); |
291 | // } else if ($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { | 301 | // } else if ($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { |
292 | // $scope.infoForm = true; | 302 | // $scope.infoForm = true; |
293 | // console.log("sdasdasdsa"); | 303 | // console.log("sdasdasdsa"); |
294 | // $scope.data.stage = $scope.data.stage; | 304 | // $scope.data.stage = $scope.data.stage; |
295 | // $scope.detail = {}; | 305 | // $scope.detail = {}; |
296 | // $scope.data.phone = "+91" + $scope.data.number; | 306 | // $scope.data.phone = "+91" + $scope.data.number; |
297 | // $http({ | 307 | // $http({ |
298 | // method: 'POST', | 308 | // method: 'POST', |
299 | // url: BASE_URL + '/applicants', | 309 | // url: BASE_URL + '/applicants', |
300 | // data: $scope.data, | 310 | // data: $scope.data, |
301 | // headers: {} | 311 | // headers: {} |
302 | // }).then(function mySuccess(result) { | 312 | // }).then(function mySuccess(result) { |
303 | 313 | ||
304 | // console.log("=====result=====", result) | 314 | // console.log("=====result=====", result) |
305 | // $scope.detail = result; | 315 | // $scope.detail = result; |
306 | // data.applicantId = result.data.id; | 316 | // data.applicantId = result.data.id; |
307 | // $scope.userId = result.data.id; | 317 | // $scope.userId = result.data.id; |
308 | // console.log("=====data=====", data) | 318 | // console.log("=====data=====", data) |
309 | data.amount = $scope.payingAmnt; | 319 | data.amount = $scope.payingAmnt; |
310 | if ($scope.detail != null) { | 320 | if ($scope.detail != null) { |
311 | $http({ | 321 | $http({ |
312 | method: 'POST', | 322 | method: 'POST', |
313 | url: BASE_URL + '/payments', | 323 | url: BASE_URL + '/payments', |
314 | data: data, | 324 | data: data, |
315 | headers: {} | 325 | headers: {} |
316 | }).then(function mySuccess(paymentResult) { | 326 | }).then(function mySuccess(paymentResult) { |
317 | Analytics.trackEvent('payments', 'click', 'django.mp4'); | 327 | Analytics.trackEvent('payments', 'click', 'django.mp4'); |
318 | console.log("paymentResult",paymentResult) | 328 | console.log("paymentResult",paymentResult) |
319 | $scope.paymentResult = paymentResult; | 329 | $scope.paymentResult = paymentResult; |
320 | }, function myError(error) {}); | 330 | }, function myError(error) {}); |
321 | } | 331 | } |
322 | var i = 0; | 332 | var i = 0; |
323 | $scope.payingAmnt = $scope.payingAmnt * 100; | 333 | $scope.payingAmnt = $scope.payingAmnt * 100; |
324 | var options = { | 334 | var options = { |
325 | "key": "rzp_live_mhSE1uOBlXvFyJ", | 335 | "key": "rzp_live_mhSE1uOBlXvFyJ", |
326 | "amount": $scope.payingAmnt, | 336 | "amount": $scope.payingAmnt, |
327 | 337 | ||
328 | "name": "Startup Jalsa", | 338 | "name": "Startup Jalsa", |
329 | "description": "amount", | 339 | "description": "amount", |
330 | "currency": "INR", | 340 | "currency": "INR", |
331 | "status": "done", | 341 | "status": "done", |
332 | 342 | ||
333 | "theme": { | 343 | "theme": { |
334 | "color": "#2196f3 ", | 344 | "color": "#2196f3 ", |
335 | "image_padding": "NO" | 345 | "image_padding": "NO" |
336 | }, | 346 | }, |
337 | "modal": { | 347 | "modal": { |
338 | "ondismiss": function() {} | 348 | "ondismiss": function() {} |
339 | }, | 349 | }, |
340 | "handler": function(response) { | 350 | "handler": function(response) { |
341 | createPayment(response); | 351 | createPayment(response); |
342 | } | 352 | } |
343 | }; | 353 | }; |
344 | var rzp1 = new Razorpay(options); | 354 | var rzp1 = new Razorpay(options); |
345 | rzp1.open(); | 355 | rzp1.open(); |
346 | $scope.paymentResponse = {}; | 356 | $scope.paymentResponse = {}; |
347 | 357 | ||
348 | function createPayment(response) { | 358 | function createPayment(response) { |
349 | Analytics.trackEvent('payments', 'click', 'django.mp4'); | 359 | Analytics.trackEvent('payments', 'click', 'django.mp4'); |
350 | console.log("response====from===razorpay",response) | 360 | console.log("response====from===razorpay",response) |
351 | $route.reload(); | 361 | $route.reload(); |
352 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; | 362 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; |
353 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; | 363 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; |
354 | $scope.paymentResponse.amount = data.amount; | 364 | $scope.paymentResponse.amount = data.amount; |
355 | $scope.paymentResponse.currency = "INR"; | 365 | $scope.paymentResponse.currency = "INR"; |
356 | $scope.paymentResponse.status = $scope.paymentResult.data.status; | 366 | $scope.paymentResponse.status = $scope.paymentResult.data.status; |
357 | $http({ | 367 | $http({ |
358 | method: 'PUT', | 368 | method: 'PUT', |
359 | url: BASE_URL + '/payments/' + $scope.paymentResult.data.id, | 369 | url: BASE_URL + '/payments/' + $scope.paymentResult.data.id, |
360 | data: $scope.paymentResponse, | 370 | data: $scope.paymentResponse, |
361 | headers: {} | 371 | headers: {} |
362 | }).then(function mySuccess(searchResult) { | 372 | }).then(function mySuccess(searchResult) { |
363 | Analytics.trackEvent('payments', 'click', 'django.mp4'); | 373 | Analytics.trackEvent('payments', 'click', 'django.mp4'); |
364 | console.log("searchResult", searchResult) | 374 | console.log("searchResult", searchResult) |
365 | $location.path("/confirmation") | 375 | $location.path("/confirmation") |
366 | //$scope.showToastr() | 376 | //$scope.showToastr() |
367 | //toaster.success("Registration done successfully"); | 377 | //toaster.success("Registration done successfully"); |
368 | 378 | ||
369 | }, function myError(error) {}); | 379 | }, function myError(error) {}); |
370 | } | 380 | } |
371 | }, function myError(error) {}); | 381 | }, function myError(error) {}); |
372 | } | 382 | } |
373 | 383 | ||
374 | } | 384 | } |
375 | 385 | ||
376 | //}, function myError(error) {}); | 386 | //}, function myError(error) {}); |
377 | //} | 387 | //} |
378 | 388 | ||
379 | //} | 389 | //} |
380 | 390 | ||
381 | // $scope.showToastr = function() { | 391 | // $scope.showToastr = function() { |
382 | // console.log("called toast") | 392 | // console.log("called toast") |
383 | // var x = document.getElementById("snacsskbar") | 393 | // var x = document.getElementById("snacsskbar") |
384 | // x.className = "show"; | 394 | // x.className = "show"; |
385 | // setTimeout(function() { | 395 | // setTimeout(function() { |
386 | // x.className = x.className.replace("show", ""); | 396 | // x.className = x.className.replace("show", ""); |
387 | // }, 3000); | 397 | // }, 3000); |
388 | // } | 398 | // } |
389 | 399 | ||
390 | /*kk***This code for change data when click to chooses stages***/ | 400 | /*kk***This code for change data when click to chooses stages***/ |
391 | $scope.proto = true; | 401 | $scope.proto = true; |
392 | $scope.businessmodel = true; | 402 | $scope.businessmodel = true; |
393 | $scope.Idea = true; | 403 | $scope.Idea = true; |
394 | $scope.current = true; | 404 | $scope.current = true; |
395 | 405 | ||
396 | $scope.stage = function(stage) { | 406 | $scope.stage = function(stage) { |
397 | $scope.stagekeyPress(); | 407 | $scope.stagekeyPress(); |
398 | console.log("stage--2",stage) | 408 | console.log("stage--2",stage) |
399 | 409 | ||
400 | if (stage == 'Idea') { | 410 | if (stage == 'Idea') { |
401 | $scope.Productshow = "no"; | 411 | $scope.Productshow = "no"; |
402 | $scope.current = 10; | 412 | $scope.current = 10; |
403 | $scope.proto = true; | 413 | $scope.proto = true; |
404 | $scope.prototyp = false; | 414 | $scope.prototyp = false; |
405 | $scope.protyp = false; | 415 | $scope.protyp = false; |
406 | $scope.market = false; | 416 | $scope.market = false; |
407 | $scope.risks = false; | 417 | $scope.risks = false; |
408 | $scope.team = false; | 418 | $scope.team = false; |
409 | $scope.pitch = false; | 419 | $scope.pitch = false; |
410 | $scope.financials = false; | 420 | $scope.financials = false; |
411 | $scope.businessmodel = true; | 421 | $scope.businessmodel = true; |
412 | $scope.data.stage = stage; | 422 | $scope.data.stage = stage; |
413 | // for right content | 423 | // for right content |
414 | $scope.Idea = true; | 424 | $scope.Idea = true; |
415 | $scope.Product = false; | 425 | $scope.Product = false; |
416 | $scope.Growth = false; | 426 | $scope.Growth = false; |
417 | } else if (stage == 'Product') { | 427 | } else if (stage == 'Product') { |
418 | $scope.Productshow = "no"; | 428 | $scope.Productshow = "no"; |
419 | $scope.current = 10; | 429 | $scope.current = 10; |
420 | $scope.proto = true; | 430 | $scope.proto = true; |
421 | $scope.prototyp = true; | 431 | $scope.prototyp = true; |
422 | $scope.protyp = true; | 432 | $scope.protyp = true; |
423 | $scope.market = true; | 433 | $scope.market = true; |
424 | $scope.risks = true; | 434 | $scope.risks = true; |
425 | $scope.team = true; | 435 | $scope.team = true; |
426 | $scope.pitch = true; | 436 | $scope.pitch = true; |
427 | $scope.financials = true; | 437 | $scope.financials = true; |
428 | $scope.businessmodel = false; | 438 | $scope.businessmodel = false; |
429 | $scope.data.stage = stage; | 439 | $scope.data.stage = stage; |
430 | // for right content | 440 | // for right content |
431 | $scope.Idea = false; | 441 | $scope.Idea = false; |
432 | $scope.Product = true; | 442 | $scope.Product = true; |
433 | $scope.Growth = false; | 443 | $scope.Growth = false; |
434 | } else if (stage == 'Growth') { | 444 | } else if (stage == 'Growth') { |
435 | $scope.Productshow = "yes"; | 445 | $scope.Productshow = "yes"; |
436 | $scope.current = 10; | 446 | $scope.current = 10; |
437 | $scope.proto = false; | 447 | $scope.proto = false; |
438 | $scope.prototyp = true; | 448 | $scope.prototyp = true; |
439 | $scope.protyp = false; | 449 | $scope.protyp = false; |
440 | $scope.market = true; | 450 | $scope.market = true; |
441 | $scope.risks = true; | 451 | $scope.risks = true; |
442 | $scope.team = true; | 452 | $scope.team = true; |
443 | $scope.pitch = true; | 453 | $scope.pitch = true; |
444 | $scope.financials = true; | 454 | $scope.financials = true; |
445 | $scope.businessmodel = false; | 455 | $scope.businessmodel = false; |
446 | // for right content | 456 | // for right content |
447 | $scope.Idea = false; | 457 | $scope.Idea = false; |
448 | $scope.Product = false; | 458 | $scope.Product = false; |
449 | $scope.Growth = true; | 459 | $scope.Growth = true; |
450 | $scope.data.stage = stage; | 460 | $scope.data.stage = stage; |
451 | } | 461 | } |
452 | } | 462 | } |
453 | 463 | ||
454 | $scope.emailTest = function(s){ | 464 | $scope.emailTest = function(s){ |
455 | $scope.space = /\s/g.test(s.delegateTarget.value); | 465 | $scope.space = /\s/g.test(s.delegateTarget.value); |
456 | console.log("space",$scope.space) | 466 | console.log("space",$scope.space) |
457 | 467 | ||
458 | } | 468 | } |
459 | // $scope.enterbusiness = function(business) { | 469 | // $scope.enterbusiness = function(business) { |
460 | // console.log("business", business); | 470 | // console.log("business", business); |
461 | // if (name == undefined) { | 471 | // if (name == undefined) { |
462 | // $scope.current = false; | 472 | // $scope.current = false; |
463 | 473 | ||
464 | // } else if (name != undefined) { | 474 | // } else if (name != undefined) { |
465 | // $scope.current = true; | 475 | // $scope.current = true; |
466 | // } | 476 | // } |
467 | // } | 477 | // } |
468 | /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/ | 478 | /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/ |
469 | $scope.stagekeyPress = function() { | 479 | $scope.stagekeyPress = function() { |
470 | $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)'); | 480 | $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)'); |
471 | } | 481 | } |
472 | $scope.sectorkeyPress = function() { | 482 | $scope.sectorkeyPress = function() { |
473 | $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)'); | 483 | $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)'); |
474 | } | 484 | } |
475 | 485 | ||
476 | $scope.productLaunchkeyPress = function() { | 486 | $scope.productLaunchkeyPress = function() { |
477 | $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)'); | 487 | $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)'); |
478 | } | 488 | } |
479 | 489 | ||
480 | $scope.launchPeriodkeyPress = function() { | 490 | $scope.launchPeriodkeyPress = function() { |
481 | $('.icon-circle-abc').css('background-color', 'rgb(66, 181, 73)'); | 491 | $('.icon-circle-abc').css('background-color', 'rgb(66, 181, 73)'); |
482 | } | 492 | } |
483 | 493 | ||
484 | $scope.industrykeyPress = function() { | 494 | $scope.industrykeyPress = function() { |
485 | $scope.addOther = false; | 495 | $scope.addOther = false; |
486 | $scope.hideSelectBox = true; | 496 | $scope.hideSelectBox = true; |
487 | $('.icon-circle-abcdefg').css('background-color', 'rgb(66, 181, 73)'); | 497 | $('.icon-circle-abcdefg').css('background-color', 'rgb(66, 181, 73)'); |
488 | var e = document.getElementById("dataIndustry"); | 498 | var e = document.getElementById("dataIndustry"); |
489 | var dataIndustry = e.options[e.selectedIndex].value; | 499 | var dataIndustry = e.options[e.selectedIndex].value; |
490 | if(dataIndustry == "others") { | 500 | if(dataIndustry == "others") { |
491 | $scope.addOther = true; | 501 | $scope.addOther = true; |
492 | $scope.hideSelectBox = false; | 502 | $scope.hideSelectBox = false; |
493 | } | 503 | } |
494 | } | 504 | } |
495 | 505 | ||
496 | $scope.industryNamekeyPress = function(firstName) { | 506 | $scope.industryNamekeyPress = function(firstName) { |
497 | console.log("lastName==", firstName); | 507 | console.log("lastName==", firstName); |
498 | if (firstName == undefined) { | 508 | if (firstName == undefined) { |
499 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 509 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
500 | } else { | 510 | } else { |
501 | $('.icon-circle-o').css('background-color', 'rgb(66, 181, 73)'); | 511 | $('.icon-circle-o').css('background-color', 'rgb(66, 181, 73)'); |
502 | } | 512 | } |
503 | } | 513 | } |
504 | 514 | ||
505 | $scope.amountkeyPress = function() { | 515 | $scope.amountkeyPress = function() { |
506 | $('.icon-circle-bc').css('background-color', 'rgb(66, 181, 73)'); | 516 | $('.icon-circle-bc').css('background-color', 'rgb(66, 181, 73)'); |
507 | } | 517 | } |
508 | 518 | ||
509 | $scope.firstNamekeyPress = function(firstName) { | 519 | $scope.firstNamekeyPress = function(firstName) { |
510 | console.log("lastName==", firstName); | 520 | console.log("lastName==", firstName); |
511 | if (firstName == undefined) { | 521 | if (firstName == undefined) { |
512 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); | 522 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); |
513 | } else { | 523 | } else { |
514 | $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)'); | 524 | $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)'); |
515 | } | 525 | } |
516 | } | 526 | } |
517 | 527 | ||
518 | $scope.emailkeyPress = function(email) { | 528 | $scope.emailkeyPress = function(email) { |
519 | console.log("email", email); | 529 | console.log("email", email); |
520 | if (email == undefined) { | 530 | if (email == undefined) { |
521 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); | 531 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); |
522 | } else { | 532 | } else { |
523 | $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)'); | 533 | $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)'); |
524 | } | 534 | } |
525 | } | 535 | } |
526 | 536 | ||
527 | $scope.textCheck = function(){ | 537 | $scope.textCheck = function(){ |
528 | console.log("Val1:::", $scope.textCheck); | 538 | console.log("Val1:::", $scope.textCheck); |
529 | var e = document.getElementById("fundingDiv"); | 539 | var e = document.getElementById("fundingDiv"); |
530 | var funding = e.options[e.selectedIndex].value; | 540 | var funding = e.options[e.selectedIndex].value; |
531 | $scope.Textshow = "no"; | 541 | $scope.Textshow = "no"; |
532 | if(funding == "yes") { | 542 | if(funding == "yes") { |
533 | $scope.Textshow = "yes"; | 543 | $scope.Textshow = "yes"; |
534 | console.log("Val:::", $scope.Textshow); | 544 | console.log("Val:::", $scope.Textshow); |
535 | } | 545 | } |
536 | 546 | ||
537 | } | 547 | } |
538 | 548 | ||
539 | $scope.productCheck = function(){ | 549 | $scope.productCheck = function(){ |
540 | console.log("Val2:::", $scope.productCheck); | 550 | console.log("Val2:::", $scope.productCheck); |
541 | var e = document.getElementById("productDiv"); | 551 | var e = document.getElementById("productDiv"); |
542 | var product = e.options[e.selectedIndex].value; | 552 | var product = e.options[e.selectedIndex].value; |
543 | $scope.Productshow = "no"; | 553 | $scope.Productshow = "no"; |
544 | if(product == "yes") { | 554 | if(product == "yes") { |
545 | $scope.Productshow = "yes"; | 555 | $scope.Productshow = "yes"; |
546 | console.log("Val1:::", $scope.Productshow); | 556 | console.log("Val1:::", $scope.Productshow); |
547 | } | 557 | } |
548 | 558 | ||
549 | } | 559 | } |
550 | 560 | ||
551 | $scope.phonekeyPress = function(number) { | 561 | $scope.phonekeyPress = function(number) { |
552 | console.log("number", number); | 562 | console.log("number", number); |
553 | if (number == undefined || number == '') { | 563 | if (number == undefined || number == '') { |
554 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); | 564 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); |
555 | } else { | 565 | } else { |
556 | $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)'); | 566 | $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)'); |
557 | } | 567 | } |
558 | } | 568 | } |
559 | 569 | ||
560 | $scope.citykeyPress = function(city) { | 570 | $scope.citykeyPress = function(city) { |
561 | console.log("city", city); | 571 | console.log("city", city); |
562 | if (city == undefined) { | 572 | if (city == undefined) { |
563 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); | 573 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); |
564 | } else { | 574 | } else { |
565 | $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)'); | 575 | $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)'); |
566 | } | 576 | } |
567 | } | 577 | } |
568 | 578 | ||
569 | $scope.lastNamekeyPress = function(q) { | 579 | $scope.lastNamekeyPress = function(q) { |
570 | if (q == undefined) { | 580 | if (q == undefined) { |
571 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); | 581 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); |
572 | } else { | 582 | } else { |
573 | $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)'); | 583 | $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)'); |
574 | } | 584 | } |
575 | } | 585 | } |
576 | 586 | ||
577 | $scope.linkedInkeyPress = function(technology) { | 587 | $scope.linkedInkeyPress = function(technology) { |
578 | if (technology == undefined || technology == '') { | 588 | if (technology == undefined || technology == '') { |
579 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); | 589 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); |
580 | } else { | 590 | } else { |
581 | $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)'); | 591 | $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)'); |
582 | } | 592 | } |
583 | } | 593 | } |
584 | $scope.companykeyPress = function(problem) { | 594 | $scope.companykeyPress = function(problem) { |
585 | if (problem == undefined) { | 595 | if (problem == undefined) { |
586 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); | 596 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); |
587 | } else { | 597 | } else { |
588 | $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)'); | 598 | $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)'); |
589 | } | 599 | } |
590 | } | 600 | } |
591 | $scope.productNamekeyPress = function(solution) { | 601 | $scope.productNamekeyPress = function(solution) { |
592 | if (solution == undefined) { | 602 | if (solution == undefined) { |
593 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); | 603 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); |
594 | } else { | 604 | } else { |
595 | $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)'); | 605 | $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)'); |
596 | } | 606 | } |
597 | } | 607 | } |
598 | $scope.businesskeyPress = function(business) { | 608 | $scope.businesskeyPress = function(business) { |
599 | $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)'); | 609 | $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)'); |
600 | } | 610 | } |
601 | 611 | ||
602 | $scope.websitekeyPress = function(prototype) { | 612 | $scope.websitekeyPress = function(prototype) { |
603 | if (prototype == undefined || prototype == '') { | 613 | if (prototype == undefined || prototype == '') { |
604 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); | 614 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); |
605 | } else { | 615 | } else { |
606 | $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)'); | 616 | $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)'); |
607 | } | 617 | } |
608 | } | 618 | } |
609 | 619 | ||
610 | $scope.employeekeyPress = function(market) { | 620 | $scope.employeekeyPress = function(market) { |
611 | if (market == undefined || market == '') { | 621 | if (market == undefined || market == '') { |
612 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); | 622 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); |
613 | } else { | 623 | } else { |
614 | $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)'); | 624 | $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)'); |
615 | } | 625 | } |
616 | } | 626 | } |
617 | 627 | ||
618 | $scope.annualkeyPress = function(risk) { | 628 | $scope.annualkeyPress = function(risk) { |
619 | if (risk == undefined || risk == '') { | 629 | if (risk == undefined || risk == '') { |
620 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); | 630 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); |
621 | } else { | 631 | } else { |
622 | $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)'); | 632 | $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)'); |
623 | } | 633 | } |
624 | } | 634 | } |
625 | 635 | ||
626 | $scope.revenuekeyPress = function(team) { | 636 | $scope.revenuekeyPress = function(team) { |
627 | if (team == undefined || team == '') { | 637 | if (team == undefined || team == '') { |
628 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); | 638 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); |
629 | } else { | 639 | } else { |
630 | $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)'); | 640 | $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)'); |
631 | } | 641 | } |
632 | } | 642 | } |
633 | 643 | ||
634 | $scope.descriptionkeyPress = function(pitch) { | 644 | $scope.descriptionkeyPress = function(pitch) { |
635 | if (pitch == undefined) { | 645 | if (pitch == undefined) { |
636 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); | 646 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); |
637 | } else { | 647 | } else { |
638 | $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)'); | 648 | $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)'); |
639 | } | 649 | } |
640 | } | 650 | } |
641 | 651 | ||
642 | $scope.removeNooError = function() { | 652 | $scope.removeNooError = function() { |
643 | $('#invalidIdea').css('display', 'block'); | 653 | $('#invalidIdea').css('display', 'block'); |
644 | $('#noExist').css('display', 'none'); | 654 | $('#noExist').css('display', 'none'); |
645 | }; | 655 | }; |
646 | 656 | ||
647 | $scope.ideakeyPress = function(financial) { | 657 | $scope.ideakeyPress = function(financial) { |
648 | console.log("financial", financial); | 658 | console.log("financial", financial); |
649 | if (financial == undefined) { | 659 | if (financial == undefined) { |
650 | $('#invalidIdea').css('display', 'block'); | 660 | $('#invalidIdea').css('display', 'block'); |
651 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); | 661 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); |
652 | } else { | 662 | } else { |
653 | $('#invalidIdea').css('display', 'none'); | 663 | $('#invalidIdea').css('display', 'none'); |
654 | $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); | 664 | $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); |
655 | } | 665 | } |
656 | } | 666 | } |
657 | 667 | ||
658 | $scope.fundkeyPress = function(financial) { | 668 | $scope.fundkeyPress = function(financial) { |
659 | console.log("financial", financial); | 669 | console.log("financial", financial); |
660 | if (financial == undefined) { | 670 | if (financial == undefined) { |
661 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); | 671 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); |
662 | } else { | 672 | } else { |
663 | $('.icon-circle-y').css('background-color', 'rgb(66, 181, 73)'); | 673 | $('.icon-circle-y').css('background-color', 'rgb(66, 181, 73)'); |
664 | } | 674 | } |
665 | } | 675 | } |
666 | 676 | ||
667 | $scope.changeReferalIconColor = function(referalToken){ | 677 | $scope.changeReferalIconColor = function(referalToken){ |
668 | if (referalToken == undefined || referalToken == '') { | 678 | if (referalToken == undefined || referalToken == '') { |
669 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); | 679 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); |
670 | }else { | 680 | }else { |
671 | $('.referel-icon').css('background-color', 'rgb(66, 181, 73)'); | 681 | $('.referel-icon').css('background-color', 'rgb(66, 181, 73)'); |
672 | } | 682 | } |
673 | } | 683 | } |
674 | 684 | ||
675 | }); | 685 | }); |
676 | 686 | ||
677 | scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { | 687 | scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { |
678 | $scope.pendingPaymentId = $route.current.params.id | 688 | $scope.pendingPaymentId = $route.current.params.id |
679 | $http({ | 689 | $http({ |
680 | method: "GET", | 690 | method: "GET", |
681 | url: BASE_URL + '/applicants/' + $scope.pendingPaymentId, | 691 | url: BASE_URL + '/applicants/' + $scope.pendingPaymentId, |
682 | }).then(function mySuccess(response) { | 692 | }).then(function mySuccess(response) { |
683 | $scope.data = response.data; | 693 | $scope.data = response.data; |
684 | console.log("response-1", response); | 694 | console.log("response-1", response); |
685 | $scope.pendingPaymentId = $route.current.params.id; | 695 | $scope.pendingPaymentId = $route.current.params.id; |
686 | 696 | ||
687 | $http({ | 697 | $http({ |
688 | method: "GET", | 698 | method: "GET", |
689 | url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}', | 699 | url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}', |
690 | }).then(function mySuccess(response) { | 700 | }).then(function mySuccess(response) { |
691 | $scope.paymentRecord = response.data; | 701 | $scope.paymentRecord = response.data; |
692 | }, function myError(response) { | 702 | }, function myError(response) { |
693 | }); | 703 | }); |
694 | }, function myError(response) { | 704 | }, function myError(response) { |
695 | $scope.myWelcome = response.statusText; | 705 | $scope.myWelcome = response.statusText; |
696 | }); | 706 | }); |
697 | 707 | ||
698 | $scope.checkView = false; | 708 | $scope.checkView = false; |
699 | $scope.verifyView = false; | 709 | $scope.verifyView = false; |
700 | 710 | ||
701 | $scope.pendingPaymentId = ''; | 711 | $scope.pendingPaymentId = ''; |
702 | 712 | ||
703 | $scope.update = function() { | 713 | $scope.update = function() { |
704 | 714 | ||
705 | $http({ | 715 | $http({ |
706 | method: 'GET', | 716 | method: 'GET', |
707 | url: BASE_URL + '/payments?filter={"where":{"applicantId": ' + $scope.pendingPaymentId + '}}', | 717 | url: BASE_URL + '/payments?filter={"where":{"applicantId": ' + $scope.pendingPaymentId + '}}', |
708 | headers: {} | 718 | headers: {} |
709 | }).then(function mySuccess(searchResult) { | 719 | }).then(function mySuccess(searchResult) { |
710 | if (searchResult.data[0].status == "created") { | 720 | if (searchResult.data[0].status == "created") { |
711 | //if (searchResult.data[0].status == "cancelled") { | 721 | //if (searchResult.data[0].status == "cancelled") { |
712 | $scope.checkView = true; | 722 | $scope.checkView = true; |
713 | $scope.verifyView = false; | 723 | $scope.verifyView = false; |
714 | $scope.amount = searchResult.data[0].amount; | 724 | $scope.amount = searchResult.data[0].amount; |
715 | $scope.searchResult = searchResult.data[0]; | 725 | $scope.searchResult = searchResult.data[0]; |
716 | console.log('====searchResult===', searchResult); | 726 | console.log('====searchResult===', searchResult); |
717 | console.log("searchResult=====",searchResult.data[0].razorOrderId) | 727 | console.log("searchResult=====",searchResult.data[0].razorOrderId) |
718 | var i = 0; | 728 | var i = 0; |
719 | $scope.amount = $scope.amount * 100; | 729 | $scope.amount = $scope.amount * 100; |
720 | var options = { | 730 | var options = { |
721 | "key": "rzp_live_mhSE1uOBlXvFyJ", | 731 | "key": "rzp_live_mhSE1uOBlXvFyJ", |
722 | //"key" : "rzp_test_YwHsVFiDIQ2WUQ", | 732 | //"key" : "rzp_test_YwHsVFiDIQ2WUQ", |
723 | "amount": $scope.amount, | 733 | "amount": $scope.amount, |
724 | 734 | ||
725 | "name": "Startup Jalsa", | 735 | "name": "Startup Jalsa", |
726 | "description": "amount", | 736 | "description": "amount", |
727 | "currency": "INR", | 737 | "currency": "INR", |
728 | "status": "done", | 738 | "status": "done", |
729 | 739 | ||
730 | "theme": { | 740 | "theme": { |
731 | "color": "#2196f3 ", | 741 | "color": "#2196f3 ", |
732 | "image_padding": "NO" | 742 | "image_padding": "NO" |
733 | }, | 743 | }, |
734 | "modal": { | 744 | "modal": { |
735 | "ondismiss": function() {} | 745 | "ondismiss": function() {} |
736 | }, | 746 | }, |
737 | "handler": function(response) { | 747 | "handler": function(response) { |
738 | createPayment(response); | 748 | createPayment(response); |
739 | } | 749 | } |
740 | }; | 750 | }; |
741 | var rzp1 = new Razorpay(options); | 751 | var rzp1 = new Razorpay(options); |
742 | rzp1.open(); | 752 | rzp1.open(); |
743 | $scope.paymentResponse = {}; | 753 | $scope.paymentResponse = {}; |
744 | function createPayment(response) { | 754 | function createPayment(response) { |
745 | $scope.amount = $scope.amount / 100; | 755 | $scope.amount = $scope.amount / 100; |
746 | console.log("response======retepaymen",response); | 756 | console.log("response======retepaymen",response); |
747 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; | 757 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; |
748 | $scope.paymentResponse.razorOrderId = $scope.searchResult.razorOrderId; | 758 | $scope.paymentResponse.razorOrderId = $scope.searchResult.razorOrderId; |
749 | $scope.paymentResponse.amount = $scope.amount; | 759 | $scope.paymentResponse.amount = $scope.amount; |
750 | $scope.paymentResponse.currency = $scope.searchResult.currency; | 760 | $scope.paymentResponse.currency = $scope.searchResult.currency; |
751 | $scope.paymentResponse.status = $scope.searchResult.status; | 761 | $scope.paymentResponse.status = $scope.searchResult.status; |
752 | $scope.paymentResponse.applicantId = $scope.searchResult.applicantId; | 762 | $scope.paymentResponse.applicantId = $scope.searchResult.applicantId; |
753 | console.log("$scope.paymentResponse", $scope.paymentResponse) | 763 | console.log("$scope.paymentResponse", $scope.paymentResponse) |
754 | $http({ | 764 | $http({ |
755 | method: 'PUT', | 765 | method: 'PUT', |
756 | url: BASE_URL + '/payments/' + $scope.searchResult.id, | 766 | url: BASE_URL + '/payments/' + $scope.searchResult.id, |
757 | data: $scope.paymentResponse, | 767 | data: $scope.paymentResponse, |
758 | headers: {} | 768 | headers: {} |
759 | }).then(function mySuccess(searchResult) { | 769 | }).then(function mySuccess(searchResult) { |
760 | console.log("finalsearchResult",searchResult) | 770 | console.log("finalsearchResult",searchResult) |
761 | $location.path("/confirmation") | 771 | $location.path("/confirmation") |
762 | }, function myError(error) { | 772 | }, function myError(error) { |
763 | 773 | ||
764 | }); | 774 | }); |
765 | } | 775 | } |
766 | } else { | 776 | } else { |
767 | 777 | ||
768 | } | 778 | } |
769 | 779 | ||
770 | }, function myError(error) {}); | 780 | }, function myError(error) {}); |
771 | } | 781 | } |
772 | }); | 782 | }); |
773 | 783 | ||
774 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { | 784 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { |
775 | $scope.data = {}; | 785 | $scope.data = {}; |
776 | $scope.check = false; | 786 | $scope.check = false; |
777 | $scope.numberCheck = false; | 787 | $scope.numberCheck = false; |
778 | 788 | ||
779 | /*open videos in modal*/ | 789 | /*open videos in modal*/ |
780 | $scope.openyoutube16 = function(){ | 790 | $scope.openyoutube16 = function(){ |
781 | $('#videoModel').modal('show'); | 791 | $('#videoModel').modal('show'); |
782 | } | 792 | } |
783 | 793 | ||
784 | $scope.openyoutube17 = function(){ | 794 | $scope.openyoutube17 = function(){ |
785 | $('#videoModels').modal('show'); | 795 | $('#videoModels').modal('show'); |
786 | } | 796 | } |
787 | 797 | ||
788 | $scope.closeModal = function(){ | 798 | $scope.closeModal = function(){ |
789 | var url = $('#youtubePlayer').attr('src'); | 799 | var url = $('#youtubePlayer').attr('src'); |
790 | $('#youtubePlayer').attr('src', ''); | 800 | $('#youtubePlayer').attr('src', ''); |
791 | $('#youtubePlayer').attr('src', url); | 801 | $('#youtubePlayer').attr('src', url); |
792 | } | 802 | } |
793 | /*open videos ends here*/ | 803 | /*open videos ends here*/ |
794 | 804 | ||
795 | $scope.removeError = function() { | 805 | $scope.removeError = function() { |
796 | console.log("doooo") | 806 | console.log("doooo") |
797 | $('#invalidEmail').css('display', 'none'); | 807 | $('#invalidEmail').css('display', 'none'); |
798 | $('#alreadyExist').css('display', 'none'); | 808 | $('#alreadyExist').css('display', 'none'); |
799 | }; | 809 | }; |
800 | 810 | ||
801 | $scope.emailcheck = function(val) { | 811 | $scope.emailcheck = function(val) { |
802 | consol.log("kdsbd") | 812 | consol.log("kdsbd") |
803 | $scope.space = /\s/g.test(val); | 813 | $scope.space = /\s/g.test(val); |
804 | console.log("space",$scope.space) | 814 | console.log("space",$scope.space) |
805 | if (val == undefined) { | 815 | if (val == undefined) { |
806 | $('#invalidEmail').css('display', 'block'); | 816 | $('#invalidEmail').css('display', 'block'); |
807 | } else { | 817 | } else { |
808 | $http({ | 818 | $http({ |
809 | method: 'GET', | 819 | method: 'GET', |
810 | url: BASE_URL + '/ambassadors?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', | 820 | url: BASE_URL + '/ambassadors?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', |
811 | headers: {} | 821 | headers: {} |
812 | }).then(function mySuccess(searchResult) { | 822 | }).then(function mySuccess(searchResult) { |
813 | console.log("searchResult1===>", searchResult) | 823 | console.log("searchResult1===>", searchResult) |
814 | if (searchResult.data.length == 0) { | 824 | if (searchResult.data.length == 0) { |
815 | $scope.check = false; | 825 | $scope.check = false; |
816 | } else { | 826 | } else { |
817 | $scope.check = true; | 827 | $scope.check = true; |
818 | $('#alreadyExist').css('display', 'block'); | 828 | $('#alreadyExist').css('display', 'block'); |
819 | } | 829 | } |
820 | }, function myError(error) {}); | 830 | }, function myError(error) {}); |
821 | } | 831 | } |
822 | }; | 832 | }; |
823 | 833 | ||
824 | $scope.removeNoError = function() { | 834 | $scope.removeNoError = function() { |
825 | $('#invalidNumber').css('display', 'none'); | 835 | $('#invalidNumber').css('display', 'none'); |
826 | $('#noExist').css('display', 'none'); | 836 | $('#noExist').css('display', 'none'); |
827 | }; | 837 | }; |
828 | 838 | ||
829 | $scope.numbercheck = function(number) { | 839 | $scope.numbercheck = function(number) { |
830 | // if (val == undefined) { | 840 | // if (val == undefined) { |
831 | // $('#invalidNumber').css('display', 'block'); | 841 | // $('#invalidNumber').css('display', 'block'); |
832 | // } else { | 842 | // } else { |
833 | $http({ | 843 | $http({ |
834 | method: 'GET', | 844 | method: 'GET', |
835 | url: BASE_URL + '/ambassadors?filter={"where": {"mobile": {"like":"%25' + number + '%25"}}}', | 845 | url: BASE_URL + '/ambassadors?filter={"where": {"mobile": {"like":"%25' + number + '%25"}}}', |
836 | data: $scope.data, | 846 | data: $scope.data, |
837 | headers: {} | 847 | headers: {} |
838 | }).then(function mySuccess(searchResult) { | 848 | }).then(function mySuccess(searchResult) { |
839 | console.log("searchResult===>", searchResult) | 849 | console.log("searchResult===>", searchResult) |
840 | if (searchResult.data.length == 0) { | 850 | if (searchResult.data.length == 0) { |
841 | $scope.numberCheck = false; | 851 | $scope.numberCheck = false; |
842 | } else { | 852 | } else { |
843 | $scope.numberCheck = true; | 853 | $scope.numberCheck = true; |
844 | $('#noExist').css('display', 'block'); | 854 | $('#noExist').css('display', 'block'); |
845 | } | 855 | } |
846 | }, function myError(error) {}); | 856 | }, function myError(error) {}); |
847 | //} | 857 | //} |
848 | 858 | ||
849 | }; | 859 | }; |
850 | 860 | ||
851 | $scope.submit = function() { | 861 | $scope.submit = function() { |
852 | console.log($scope.data.name) | 862 | console.log($scope.data.name) |
853 | var randomNumber = ""+Math.random(); | 863 | var randomNumber = ""+Math.random(); |
854 | var nameSpliced = $scope.data.name.slice(0,3); | 864 | var nameSpliced = $scope.data.name.slice(0,3); |
855 | var numberSpliced = randomNumber.slice(2,5); | 865 | var numberSpliced = randomNumber.slice(2,5); |
856 | $scope.data.referalToken = nameSpliced+numberSpliced; | 866 | $scope.data.referalToken = nameSpliced+numberSpliced; |
857 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); | 867 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); |
858 | 868 | ||
859 | $http({ | 869 | $http({ |
860 | method: 'POST', | 870 | method: 'POST', |
861 | url: BASE_URL + '/ambassadors', | 871 | url: BASE_URL + '/ambassadors', |
862 | data: $scope.data, | 872 | data: $scope.data, |
863 | headers: {} | 873 | headers: {} |
864 | }).then(function mySuccess(result) { | 874 | }).then(function mySuccess(result) { |
865 | console.log("result", result) | 875 | console.log("result", result) |
866 | $scope.detail = result; | 876 | $scope.detail = result; |
867 | $('#myModal').modal('show'); | 877 | $('#myModal').modal('show'); |
868 | $scope.data.name = ''; | 878 | $scope.data.name = ''; |
869 | $scope.data.email = ''; | 879 | $scope.data.email = ''; |
870 | $scope.data.mobile = ''; | 880 | $scope.data.mobile = ''; |
871 | 881 | ||
872 | }, function myError(error) { | 882 | }, function myError(error) { |
873 | console.log(error) | 883 | console.log(error) |
874 | console.log(error.data.error.message) | 884 | console.log(error.data.error.message) |
875 | }); | 885 | }); |
876 | console.log($scope.data) | 886 | console.log($scope.data) |
877 | } | 887 | } |
878 | }); | 888 | }); |
879 | 889 | ||
880 | 890 | ||
881 | 891 | ||
882 | 892 |