Commit 8d58b37daaec486ce98041343108b9bf629e30d1

Authored by Palak Handa
1 parent 2d6a9fbea9
Exists in master and in 1 other branch paytm

change rajor keyid

Showing 2 changed files with 5 additions and 5 deletions   Show diff stats
1 <div class="header"> 1 <div class="header">
2 <img src="images/white.png" class="logo"> 2 <img src="images/white.png" class="logo">
3 </div> 3 </div>
4 <!-- CLOSE HEADER --> 4 <!-- CLOSE HEADER -->
5 <form name="applicantForm" id="signupForm"> 5 <form name="applicantForm" id="signupForm">
6 <div class="col-xs-12 col-md-10 col-md-offset-1"> 6 <div class="col-xs-12 col-md-10 col-md-offset-1">
7 <p class="select-stage">Please select one stage.</p> 7 <p class="select-stage">Please select one stage.</p>
8 <div class="stage-shadow"> 8 <div class="stage-shadow">
9 <div class="stages card-align"> 9 <div class="stages card-align">
10 <div class="col-xs-4 no-padding"> 10 <div class="col-xs-4 no-padding">
11 <div class="card stages-card"> 11 <div class="card stages-card">
12 <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')"> 12 <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')">
13 <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="ideation"> 13 <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="ideation">
14 <img class="stage-img stage-idea" src="images/idea-stage.png" alt="Lights"> 14 <img class="stage-img stage-idea" src="images/idea-stage.png" alt="Lights">
15 <div class="card-content f-family"> 15 <div class="card-content f-family">
16 <p align="center">Idea</p> 16 <p align="center">Idea</p>
17 </div> 17 </div>
18 </label> 18 </label>
19 </div> 19 </div>
20 <div class="clearfix"></div> 20 <div class="clearfix"></div>
21 <div class="cards-content hidden-xs"> 21 <div class="cards-content hidden-xs">
22 <p> 22 <p>
23 &#x26AC; Have an idea and need execution help?<br> 23 &#x26AC; Have an idea and need execution help?<br>
24 &#x26AC; Get feedback from mentors<br> 24 &#x26AC; Get feedback from mentors<br>
25 &#x26AC; Validate your idea. 25 &#x26AC; Validate your idea.
26 </p> 26 </p>
27 </div> 27 </div>
28 </div> 28 </div>
29 <div class="col-xs-4 no-padding-mobile"> 29 <div class="col-xs-4 no-padding-mobile">
30 <div class="card stages-card margin-auto-mobile"> 30 <div class="card stages-card margin-auto-mobile">
31 <input type="radio" ng-model="data.stage" class="stageRadio" value="Product" name="Idea" id="Proof" ng-required="Product" ng-click="stage('Product')"> 31 <input type="radio" ng-model="data.stage" class="stageRadio" value="Product" name="Idea" id="Proof" ng-required="Product" ng-click="stage('Product')">
32 <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Proof"> 32 <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Proof">
33 <img class="stage-img stage-product" src="images/production-stage.png" alt="Lights"> 33 <img class="stage-img stage-product" src="images/production-stage.png" alt="Lights">
34 <div class="card-content f-family"> 34 <div class="card-content f-family">
35 <p align="center">Product</p> 35 <p align="center">Product</p>
36 </div> 36 </div>
37 </label> 37 </label>
38 </div> 38 </div>
39 <div class="clearfix"></div> 39 <div class="clearfix"></div>
40 <div class="cards-content hidden-xs"> 40 <div class="cards-content hidden-xs">
41 <p> 41 <p>
42 &#x26AC; Have a prototype and want to take it to next level?<br> 42 &#x26AC; Have a prototype and want to take it to next level?<br>
43 &#x26AC; Advice on fundraising<br> 43 &#x26AC; Advice on fundraising<br>
44 &#x26AC; Advice on go-to-market strategy 44 &#x26AC; Advice on go-to-market strategy
45 </p> 45 </p>
46 </div> 46 </div>
47 </div> 47 </div>
48 <div class="col-xs-4 no-padding"> 48 <div class="col-xs-4 no-padding">
49 <div class="card stages-card right-stage-card"> 49 <div class="card stages-card right-stage-card">
50 <input type="radio" ng-model="data.stage" class="stageRadio" value="Growth" name="Idea" id="Beta" ng-required="Growth" ng-click="stage('Growth')"> 50 <input type="radio" ng-model="data.stage" class="stageRadio" value="Growth" name="Idea" id="Beta" ng-required="Growth" ng-click="stage('Growth')">
51 <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Beta"> 51 <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Beta">
52 <img class="stage-img stage-growth" src="images/growth-stage.png" alt="Lights"> 52 <img class="stage-img stage-growth" src="images/growth-stage.png" alt="Lights">
53 <div class="card-content f-family"> 53 <div class="card-content f-family">
54 <p align="center">Growth</p> 54 <p align="center">Growth</p>
55 </div> 55 </div>
56 </label> 56 </label>
57 </div> 57 </div>
58 <div class="clearfix"></div> 58 <div class="clearfix"></div>
59 <div class="cards-content hidden-xs"> 59 <div class="cards-content hidden-xs">
60 <p> 60 <p>
61 &#x26AC; Have traction and looking to scale up?<br> 61 &#x26AC; Have traction and looking to scale up?<br>
62 &#x26AC; Connect with Series A investors<br> 62 &#x26AC; Connect with Series A investors<br>
63 &#x26AC; Connect and hire top startups 63 &#x26AC; Connect and hire top startups
64 </p> 64 </p>
65 </div> 65 </div>
66 </div> 66 </div>
67 <div class="clearfix"></div> 67 <div class="clearfix"></div>
68 </div> 68 </div>
69 <div class="clearfix"></div> 69 <div class="clearfix"></div>
70 </div> 70 </div>
71 <div class="hidden-sm hidden-md hidden-lg"> 71 <div class="hidden-sm hidden-md hidden-lg">
72 <div class="cards-content" ng-if="data.stage == 'Idea'"> 72 <div class="cards-content" ng-if="data.stage == 'Idea'">
73 <p> 73 <p>
74 &#x26AC; Have an idea and need execution help?<br> 74 &#x26AC; Have an idea and need execution help?<br>
75 &#x26AC; Get feedback from mentors<br> 75 &#x26AC; Get feedback from mentors<br>
76 &#x26AC; Validate your idea. 76 &#x26AC; Validate your idea.
77 </p> 77 </p>
78 </div> 78 </div>
79 <div class="cards-content" ng-if="data.stage == 'Product'"> 79 <div class="cards-content" ng-if="data.stage == 'Product'">
80 <p> 80 <p>
81 &#x26AC; Have a prototype and want to take it to next level?<br> 81 &#x26AC; Have a prototype and want to take it to next level?<br>
82 &#x26AC; Advice on fundraising<br> 82 &#x26AC; Advice on fundraising<br>
83 &#x26AC; Advice on go-to-market strategy 83 &#x26AC; Advice on go-to-market strategy
84 </p> 84 </p>
85 </div> 85 </div>
86 <div class="cards-content" ng-if="data.stage == 'Growth'"> 86 <div class="cards-content" ng-if="data.stage == 'Growth'">
87 <p> 87 <p>
88 &#x26AC; Have traction and looking to scale up?<br> 88 &#x26AC; Have traction and looking to scale up?<br>
89 &#x26AC; Connect with Series A investors<br> 89 &#x26AC; Connect with Series A investors<br>
90 &#x26AC; Connect and hire top startups 90 &#x26AC; Connect and hire top startups
91 </p> 91 </p>
92 </div> 92 </div>
93 </div> 93 </div>
94 <!-- CLOSE STAGE SHADOW --> 94 <!-- CLOSE STAGE SHADOW -->
95 <div class="form-all"> 95 <div class="form-all">
96 <table style="width: 100%;"> 96 <table style="width: 100%;">
97 <tr> 97 <tr>
98 <td> 98 <td>
99 <div class="step-one-form"> 99 <div class="step-one-form">
100 <!-- form step 1 --> 100 <!-- form step 1 -->
101 <div class="col-xs-12 col-md-6 input-wrapper"> 101 <div class="col-xs-12 col-md-6 input-wrapper">
102 <div id="snackbar">Error ! Please fill in all fields.</div> 102 <div id="snackbar">Error ! Please fill in all fields.</div>
103 <div class="icon-circle-c"> 103 <div class="icon-circle-c">
104 <i class="material-icons" style="line-height: 31px;">assignment_ind</i> 104 <i class="material-icons" style="line-height: 31px;">assignment_ind</i>
105 </div> 105 </div>
106 <input type="text" class="text-input" required ng-model="data.name" placeholder="Name" id="myBtn" name="name" ng-change="entername(data.name); namekeyPress(data.name)"> 106 <input type="text" class="text-input" required ng-model="data.name" placeholder="Name" id="myBtn" name="name" ng-change="entername(data.name); namekeyPress(data.name)">
107 </div> 107 </div>
108 <div class="col-xs-12 col-md-6 input-wrapper"> 108 <div class="col-xs-12 col-md-6 input-wrapper">
109 <div id="snackbar">Error ! Please fill in all fields.</div> 109 <div id="snackbar">Error ! Please fill in all fields.</div>
110 <div class="icon-circle-d"> 110 <div class="icon-circle-d">
111 <i class="material-icons" style="line-height: 30px;">email</i> 111 <i class="material-icons" style="line-height: 30px;">email</i>
112 </div> 112 </div>
113 <input type="email" name="email" 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)"> 113 <input type="email" name="email" 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)">
114 <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> 114 <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label>
115 <label ng-if="check">Email already exist.</label> 115 <label ng-if="check">Email already exist.</label>
116 </div> 116 </div>
117 <div class="col-xs-12 col-md-6 input-wrapper"> 117 <div class="col-xs-12 col-md-6 input-wrapper">
118 <div class="icon-circle-e"> 118 <div class="icon-circle-e">
119 <i class="material-icons" style="line-height: 30px;">phone</i> 119 <i class="material-icons" style="line-height: 30px;">phone</i>
120 </div> 120 </div>
121 <input type="number" required class="text-input" ng-model="data.number" placeholder="Mobile No." ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)"> 121 <input type="number" required class="text-input" ng-model="data.number" placeholder="Mobile No." ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)">
122 <label ng-if="numberCheck">Contact Number already exist.</label> 122 <label ng-if="numberCheck">Contact Number already exist.</label>
123 </div> 123 </div>
124 <div class="col-xs-12 col-md-6 input-wrapper f-family"> 124 <div class="col-xs-12 col-md-6 input-wrapper f-family">
125 <div class="icon-circle-f"> 125 <div class="icon-circle-f">
126 <i class="material-icons" style="line-height: 30px;">location_city</i> 126 <i class="material-icons" style="line-height: 30px;">location_city</i>
127 </div> 127 </div>
128 <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;"> 128 <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;">
129 <option name="city" selected disabled value="">Choose City</option> 129 <option name="city" selected disabled value="">Choose City</option>
130 <option value="Ahmedabad">Ahmedabad</option> 130 <option value="Ahmedabad">Ahmedabad</option>
131 <option value="Bangalore">Bangalore</option> 131 <option value="Bangalore">Bangalore</option>
132 <option value="NCR">Delhi-NCR</option> 132 <option value="NCR">Delhi-NCR</option>
133 <option value="Hyderabad">Hyderabad</option> 133 <option value="Hyderabad">Hyderabad</option>
134 <option value="Jaipur">Jaipur</option> 134 <option value="Jaipur">Jaipur</option>
135 <option value="Mumbai">Mumbai</option> 135 <option value="Mumbai">Mumbai</option>
136 <option value="Pune">Pune</option> 136 <option value="Pune">Pune</option>
137 <option value="Indore">Indore</option> 137 <option value="Indore">Indore</option>
138 <option value="Chandigarh">Chandigarh</option> 138 <option value="Chandigarh">Chandigarh</option>
139 <option>Any other</option> 139 <option value="anyOther">Any other</option>
140 </select> 140 </select>
141 </div> 141 </div>
142 <div class="clearfix"></div> 142 <div class="clearfix"></div>
143 <div class="col-xs-12 text-right"> 143 <div class="col-xs-12 text-right">
144 <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" ng-click="next()"> 144 <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" ng-click="next()">
145 Next 145 Next
146 </button> 146 </button>
147 </div> 147 </div>
148 </div> 148 </div>
149 <!-- close step-one-form --> 149 <!-- close step-one-form -->
150 </td> 150 </td>
151 </tr> 151 </tr>
152 </table> 152 </table>
153 </div> 153 </div>
154 <!-- CLOSE form-all --> 154 <!-- CLOSE form-all -->
155 <div class="step-two-form" ng-show="infoForm"> 155 <div class="step-two-form" ng-show="infoForm">
156 <div class="sectors-card"> 156 <div class="sectors-card">
157 <div class="icon-circle-b"> 157 <div class="icon-circle-b">
158 <i class="material-icons" style="line-height: 31px;">open_with</i> 158 <i class="material-icons" style="line-height: 31px;">open_with</i>
159 </div> 159 </div>
160 <div class="sector-question"> 160 <div class="sector-question">
161 <div class="col-xs-12 font f-family"> 161 <div class="col-xs-12 font f-family">
162 To which sector would you relate your company? 162 To which sector would you relate your company?
163 </div> 163 </div>
164 <div class="clearfix"></div> 164 <div class="clearfix"></div>
165 </div> 165 </div>
166 <div class="clearfix" style="height:15px;"></div> 166 <div class="clearfix" style="height:15px;"></div>
167 <div class="sector-align"> 167 <div class="sector-align">
168 <div class="col-xs-6 col-md-3"> 168 <div class="col-xs-6 col-md-3">
169 <label class="card-small"> 169 <label class="card-small">
170 <input type="radio" required value="retail" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 170 <input type="radio" required value="retail" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
171 <img src="images/retail.png"> 171 <img src="images/retail.png">
172 <label class="f-family">Retail</label> 172 <label class="f-family">Retail</label>
173 </label> 173 </label>
174 </div> 174 </div>
175 <div class="col-xs-6 col-md-3"> 175 <div class="col-xs-6 col-md-3">
176 <label class="card-small"> 176 <label class="card-small">
177 <input type="radio" required value="travel" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 177 <input type="radio" required value="travel" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
178 <img src="images/transport.png"> 178 <img src="images/transport.png">
179 <label class="f-family">Travel</label> 179 <label class="f-family">Travel</label>
180 </label> 180 </label>
181 </div> 181 </div>
182 <div class="col-xs-6 col-md-3"> 182 <div class="col-xs-6 col-md-3">
183 <label class="card-small"> 183 <label class="card-small">
184 <input type="radio" required value="b2b commerce" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 184 <input type="radio" required value="b2b commerce" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
185 <img src="images/paymens.png"> 185 <img src="images/paymens.png">
186 <label class="f-family">B2B commerce</label> 186 <label class="f-family">B2B commerce</label>
187 </label> 187 </label>
188 </div> 188 </div>
189 <div class="col-xs-6 col-md-3"> 189 <div class="col-xs-6 col-md-3">
190 <label class="card-small"> 190 <label class="card-small">
191 <input type="radio" required value="agritech" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 191 <input type="radio" required value="agritech" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
192 <img src="images/food.png"> 192 <img src="images/food.png">
193 <label class="f-family">Agritech</label> 193 <label class="f-family">Agritech</label>
194 </label> 194 </label>
195 </div> 195 </div>
196 <div class="col-xs-6 col-md-3"> 196 <div class="col-xs-6 col-md-3">
197 <label class="card-small"> 197 <label class="card-small">
198 <input type="radio" required value="fintech" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 198 <input type="radio" required value="fintech" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
199 <img src="images/online_media.png"> 199 <img src="images/online_media.png">
200 <label class="f-family">Fintech</label> 200 <label class="f-family">Fintech</label>
201 </label> 201 </label>
202 </div> 202 </div>
203 <div class="col-xs-6 col-md-3"> 203 <div class="col-xs-6 col-md-3">
204 <label class="card-small"> 204 <label class="card-small">
205 <input type="radio" required value="hyperlocal services" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 205 <input type="radio" required value="hyperlocal services" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
206 <img src="images/hardware.png"> 206 <img src="images/hardware.png">
207 <label class="f-family">Hyperlocal services</label> 207 <label class="f-family">Hyperlocal services</label>
208 </label> 208 </label>
209 </div> 209 </div>
210 <div class="col-xs-6 col-md-3"> 210 <div class="col-xs-6 col-md-3">
211 <label class="card-small"> 211 <label class="card-small">
212 <input type="radio" required value="education" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 212 <input type="radio" required value="education" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
213 <img src="images/education.png"> 213 <img src="images/education.png">
214 <label class="f-family">Education</label> 214 <label class="f-family">Education</label>
215 </label> 215 </label>
216 </div> 216 </div>
217 <div class="col-xs-6 col-md-3"> 217 <div class="col-xs-6 col-md-3">
218 <label class="card-small"> 218 <label class="card-small">
219 <input type="radio" required value="rural" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors"> 219 <input type="radio" required value="rural" ng-model="data.sector" class="option-input radio" ng-change="sector(data.sector); sectorkeyPress()" name="sectors">
220 <img src="images/RURAL_ICON.png"> 220 <img src="images/RURAL_ICON.png">
221 <label class="f-family">Rural</label> 221 <label class="f-family">Rural</label>
222 </label> 222 </label>
223 </div> 223 </div>
224 </div> 224 </div>
225 <div class="clearfix"></div> 225 <div class="clearfix"></div>
226 </div> 226 </div>
227 <!-- CLOSE sectors-card --> 227 <!-- CLOSE sectors-card -->
228 <div class="col-xs-11 col-md-12 f-family line-adjust"> 228 <div class="col-xs-11 col-md-12 f-family line-adjust">
229 <strong>What technology are you using in the product?</strong> 229 <strong>What technology are you using in the product?</strong>
230 <p class="line-space" >Please explain in detail the technologies that you are using or plan to use in the product?</p> 230 <p class="line-space" >Please explain in detail the technologies that you are using or plan to use in the product?</p>
231 </div> 231 </div>
232 <div class="col-xs-12 col-md-12 input-wrapper"> 232 <div class="col-xs-12 col-md-12 input-wrapper">
233 <div class="icon-circle-h"> 233 <div class="icon-circle-h">
234 <i class="material-icons" style="line-height: 30px;">phone_android</i> 234 <i class="material-icons" style="line-height: 30px;">phone_android</i>
235 </div> 235 </div>
236 <input type="text" class="text-input" ng-model="data.technology" placeholder="Technology" ng-change="entertechnology(data.technology); technologykeyPress(data.technology)" required> 236 <input type="text" class="text-input" ng-model="data.technology" placeholder="Technology" ng-change="entertechnology(data.technology); technologykeyPress(data.technology)" required>
237 </div> 237 </div>
238 <div class="col-xs-11 col-md-12 f-family line-adjust"> 238 <div class="col-xs-11 col-md-12 f-family line-adjust">
239 <strong>Tell us about the problem that your company is trying to address. </strong> 239 <strong>Tell us about the problem that your company is trying to address. </strong>
240 <p class="line-space" ></p> 240 <p class="line-space" ></p>
241 </div> 241 </div>
242 <div class="col-xs-12 col-md-12 input-wrapper"> 242 <div class="col-xs-12 col-md-12 input-wrapper">
243 <div class="icon-circle-i"> 243 <div class="icon-circle-i">
244 <i class="material-icons" style="line-height: 30px;">report_problem</i> 244 <i class="material-icons" style="line-height: 30px;">report_problem</i>
245 </div> 245 </div>
246 <textarea name="Problem" class="text-input textarea" ng-model="data.problem" placeholder="Problem" ng-change="enterproblem(data.problem); problemkeyPress(data.problem)" required></textarea> 246 <textarea name="Problem" class="text-input textarea" ng-model="data.problem" placeholder="Problem" ng-change="enterproblem(data.problem); problemkeyPress(data.problem)" required></textarea>
247 </div> 247 </div>
248 <div class="col-xs-12 col-md-12 f-family line-adjust"> 248 <div class="col-xs-12 col-md-12 f-family line-adjust">
249 <strong>Tell us about the solution that your product/company has come up with.</strong> 249 <strong>Tell us about the solution that your product/company has come up with.</strong>
250 <p class="line-space" ></p> 250 <p class="line-space" ></p>
251 </div> 251 </div>
252 <div class="col-xs-12 col-md-12 input-wrapper"> 252 <div class="col-xs-12 col-md-12 input-wrapper">
253 <div class="icon-circle-j"> 253 <div class="icon-circle-j">
254 <i class="material-icons" style="line-height: 30px;">help</i> 254 <i class="material-icons" style="line-height: 30px;">help</i>
255 </div> 255 </div>
256 <textarea name="solution" class="text-input textarea" ng-model="data.solution" placeholder="Solution" ng-change="entersolution(data.solution); solutionkeyPress(data.solution)" required></textarea> 256 <textarea name="solution" class="text-input textarea" ng-model="data.solution" placeholder="Solution" ng-change="entersolution(data.solution); solutionkeyPress(data.solution)" required></textarea>
257 </div> 257 </div>
258 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="businessmodel"> 258 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="businessmodel">
259 <strong>What is your business model?</strong> 259 <strong>What is your business model?</strong>
260 <p class="line-space" >How do you plan to make money?</p> 260 <p class="line-space" >How do you plan to make money?</p>
261 </div> 261 </div>
262 <div class="col-xs-12 col-md-12 input-wrapper f-family" ng-if="businessmodel"> 262 <div class="col-xs-12 col-md-12 input-wrapper f-family" ng-if="businessmodel">
263 <div class="icon-circle-p"> 263 <div class="icon-circle-p">
264 <i class="material-icons" style="line-height: 30px;">business_center</i> 264 <i class="material-icons" style="line-height: 30px;">business_center</i>
265 </div> 265 </div>
266 <select name="businessmodel" ng-model="data.business" ng-change="enterbusiness(data.business); businesskeyPress(data.business)" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> 266 <select name="businessmodel" ng-model="data.business" ng-change="enterbusiness(data.business); businesskeyPress(data.business)" required style="background-color: #fff;border-radius: 0; font-size: 12px;">
267 <option selected disabled value="">Business Model</option> 267 <option selected disabled value="">Business Model</option>
268 <option value="B2B">B2B</option> 268 <option value="B2B">B2B</option>
269 <option value="B2C">B2C</option> 269 <option value="B2C">B2C</option>
270 <option value="B2G">B2G</option> 270 <option value="B2G">B2G</option>
271 </select> 271 </select>
272 </div> 272 </div>
273 <div class="clearfix"></div> 273 <div class="clearfix"></div>
274 <!-- **************************For Quiz All About Input********************** --> 274 <!-- **************************For Quiz All About Input********************** -->
275 <div class="question-shadow"> 275 <div class="question-shadow">
276 <div class="icon-circle-x"> 276 <div class="icon-circle-x">
277 <i class="material-icons" style="line-height: 30px;">question_answer</i> 277 <i class="material-icons" style="line-height: 30px;">question_answer</i>
278 </div> 278 </div>
279 <div class="sector-question"> 279 <div class="sector-question">
280 <div class="col-xs-12 font f-family"> 280 <div class="col-xs-12 font f-family">
281 You can share the top 5 problems that your startup is facing at the momentโ€“ and we will share those problems with our mentors who will give their feedback on what is the right approach to solve that problem. 281 You can share the top 5 problems that your startup is facing at the momentโ€“ and we will share those problems with our mentors who will give their feedback on what is the right approach to solve that problem.
282 </div> 282 </div>
283 <div class="clearfix"></div> 283 <div class="clearfix"></div>
284 </div> 284 </div>
285 <div class="stages q-card-align"> 285 <div class="stages q-card-align">
286 <div class="col-sm-8 group"> 286 <div class="col-sm-8 group">
287 <input type="text" class="text-input" ng-model="data.question1" name="snpid" placeholder="Question1" ng-change="abc(); questionkeyPress(data.question1)" required> 287 <input type="text" class="text-input" ng-model="data.question1" name="snpid" placeholder="Question1" ng-change="abc(); questionkeyPress(data.question1)" required>
288 <span class="highlight"></span> 288 <span class="highlight"></span>
289 <span class="bar"></span> 289 <span class="bar"></span>
290 </div> 290 </div>
291 <div class="col-sm-3 col-md-offset-1"> 291 <div class="col-sm-3 col-md-offset-1">
292 <select class="drop-down" ng-model="data.typeQ1" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required> 292 <select class="drop-down" ng-model="data.typeQ1" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
293 <option value="typeQ1">Select</option> 293 <option value="typeQ1">Select</option>
294 <option>Sales</option> 294 <option>Sales</option>
295 <option>Marketing</option> 295 <option>Marketing</option>
296 <option>Technology</option> 296 <option>Technology</option>
297 <option>Scale</option> 297 <option>Scale</option>
298 <option>Fund-raising</option> 298 <option>Fund-raising</option>
299 <option>Go-to-market strategy</option> 299 <option>Go-to-market strategy</option>
300 <option>Team/hiring issues</option> 300 <option>Team/hiring issues</option>
301 <option>Emotional/personal issues</option> 301 <option>Emotional/personal issues</option>
302 <option>Any other</option> 302 <option>Any other</option>
303 </select> 303 </select>
304 </div> 304 </div>
305 <div class="col-sm-8 group"> 305 <div class="col-sm-8 group">
306 <input type="text" class="text-input" ng-model="data.question2" name="snpid" placeholder="Question2" ng-change="abc(); questionkeyPress(data.question2)" required> 306 <input type="text" class="text-input" ng-model="data.question2" name="snpid" placeholder="Question2" ng-change="abc(); questionkeyPress(data.question2)" required>
307 <span class="highlight"></span> 307 <span class="highlight"></span>
308 <span class="bar"></span> 308 <span class="bar"></span>
309 </div> 309 </div>
310 <div class="col-sm-3 col-md-offset-1"> 310 <div class="col-sm-3 col-md-offset-1">
311 <select class="drop-down" ng-model="data.typeQ2" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required> 311 <select class="drop-down" ng-model="data.typeQ2" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
312 <option value="typeQ2">Select</option> 312 <option value="typeQ2">Select</option>
313 <option>Sales</option> 313 <option>Sales</option>
314 <option>Marketing</option> 314 <option>Marketing</option>
315 <option>Technology</option> 315 <option>Technology</option>
316 <option>Scale</option> 316 <option>Scale</option>
317 <option>Fund-raising</option> 317 <option>Fund-raising</option>
318 <option>Go-to-market strategy</option> 318 <option>Go-to-market strategy</option>
319 <option>Team/hiring issues</option> 319 <option>Team/hiring issues</option>
320 <option>Emotional/personal issues</option> 320 <option>Emotional/personal issues</option>
321 <option>Any other</option> 321 <option>Any other</option>
322 </select> 322 </select>
323 </div> 323 </div>
324 <div class="col-sm-8 group"> 324 <div class="col-sm-8 group">
325 <input type="text" class="text-input" ng-model="data.question3" name="snpid" placeholder="Question3" ng-change="abc(); questionkeyPress(data.question3)" required> 325 <input type="text" class="text-input" ng-model="data.question3" name="snpid" placeholder="Question3" ng-change="abc(); questionkeyPress(data.question3)" required>
326 <span class="highlight"></span> 326 <span class="highlight"></span>
327 <span class="bar"></span> 327 <span class="bar"></span>
328 </div> 328 </div>
329 <div class="col-sm-3 col-md-offset-1"> 329 <div class="col-sm-3 col-md-offset-1">
330 <select class="drop-down" ng-model="data.typeQ3" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required> 330 <select class="drop-down" ng-model="data.typeQ3" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
331 <option value="typeQ3">Select</option> 331 <option value="typeQ3">Select</option>
332 <option>Sales</option> 332 <option>Sales</option>
333 <option>Marketing</option> 333 <option>Marketing</option>
334 <option>Technology</option> 334 <option>Technology</option>
335 <option>Scale</option> 335 <option>Scale</option>
336 <option>Fund-raising</option> 336 <option>Fund-raising</option>
337 <option>Go-to-market strategy</option> 337 <option>Go-to-market strategy</option>
338 <option>Team/hiring issues</option> 338 <option>Team/hiring issues</option>
339 <option>Emotional/personal issues</option> 339 <option>Emotional/personal issues</option>
340 <option>Any other</option> 340 <option>Any other</option>
341 </select> 341 </select>
342 </div> 342 </div>
343 <div class="col-sm-8 group"> 343 <div class="col-sm-8 group">
344 <input type="text" class="text-input" ng-model="data.question4" name="snpid" placeholder="Question4" ng-change="abc(); questionkeyPress(data.question4)" required> 344 <input type="text" class="text-input" ng-model="data.question4" name="snpid" placeholder="Question4" ng-change="abc(); questionkeyPress(data.question4)" required>
345 <span class="highlight"></span> 345 <span class="highlight"></span>
346 <span class="bar"></span> 346 <span class="bar"></span>
347 </div> 347 </div>
348 <div class="col-sm-3 col-md-offset-1"> 348 <div class="col-sm-3 col-md-offset-1">
349 <select class="drop-down" ng-model="data.typeQ4" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required> 349 <select class="drop-down" ng-model="data.typeQ4" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
350 <option value="typeQ4">Select</option> 350 <option value="typeQ4">Select</option>
351 <option>Sales</option> 351 <option>Sales</option>
352 <option>Marketing</option> 352 <option>Marketing</option>
353 <option>Technology</option> 353 <option>Technology</option>
354 <option>Scale</option> 354 <option>Scale</option>
355 <option>Fund-raising</option> 355 <option>Fund-raising</option>
356 <option>Go-to-market strategy</option> 356 <option>Go-to-market strategy</option>
357 <option>Team/hiring issues</option> 357 <option>Team/hiring issues</option>
358 <option>Emotional/personal issues</option> 358 <option>Emotional/personal issues</option>
359 <option>Any other</option> 359 <option>Any other</option>
360 </select> 360 </select>
361 </div> 361 </div>
362 <div class="col-sm-8 group"> 362 <div class="col-sm-8 group">
363 <input type="text" class="text-input" ng-model="data.question5" name="snpid" placeholder="Question5" ng-change="abc(); questionkeyPress(data.question5)" required> 363 <input type="text" class="text-input" ng-model="data.question5" name="snpid" placeholder="Question5" ng-change="abc(); questionkeyPress(data.question5)" required>
364 <span class="highlight"></span> 364 <span class="highlight"></span>
365 <span class="bar"></span> 365 <span class="bar"></span>
366 </div> 366 </div>
367 <div class="col-sm-3 col-md-offset-1"> 367 <div class="col-sm-3 col-md-offset-1">
368 <select class="drop-down" ng-model="data.typeQ5" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required> 368 <select class="drop-down" ng-model="data.typeQ5" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
369 <option value="typeQ5">Select</option> 369 <option value="typeQ5">Select</option>
370 <option>Sales</option> 370 <option>Sales</option>
371 <option>Marketing</option> 371 <option>Marketing</option>
372 <option>Technology</option> 372 <option>Technology</option>
373 <option>Scale</option> 373 <option>Scale</option>
374 <option>Fund-raising</option> 374 <option>Fund-raising</option>
375 <option>Go-to-market strategy</option> 375 <option>Go-to-market strategy</option>
376 <option>Team/hiring issues</option> 376 <option>Team/hiring issues</option>
377 <option>Emotional/personal issues</option> 377 <option>Emotional/personal issues</option>
378 <option>Any other</option> 378 <option>Any other</option>
379 </select> 379 </select>
380 </div> 380 </div>
381 <div class="clearfix"></div> 381 <div class="clearfix"></div>
382 </div> 382 </div>
383 <div class="clearfix"></div> 383 <div class="clearfix"></div>
384 </div> 384 </div>
385 <!--CLOSE question-shadow --> 385 <!--CLOSE question-shadow -->
386 <div class="clearfix"></div> 386 <div class="clearfix"></div>
387 <!-- **************************CLOSE QUIZ FORM********************** --> 387 <!-- **************************CLOSE QUIZ FORM********************** -->
388 <div class="hideform" ng-if="prototyp"> 388 <div class="hideform" ng-if="prototyp">
389 <div class="col-xs-12 col-md-12 f-family line-adjust"> 389 <div class="col-xs-12 col-md-12 f-family line-adjust">
390 <strong>Do you have a prototype ready?</strong> 390 <strong>Do you have a prototype ready?</strong>
391 <p class="line-space" >If yes, please share the link to demo/website/application</p> 391 <p class="line-space" >If yes, please share the link to demo/website/application</p>
392 </div> 392 </div>
393 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="prototyp"> 393 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="prototyp">
394 <div class="icon-circle-k"> 394 <div class="icon-circle-k">
395 <i class="material-icons" style="line-height: 30px;">device_hub</i> 395 <i class="material-icons" style="line-height: 30px;">device_hub</i>
396 </div> 396 </div>
397 <textarea name="prototyp" ng-required="prototyp" class="text-input textarea" ng-model="data.prototype" ng-if="prototyp" placeholder="Prototype" ng-change="abc(); prototypekeyPress(data.prototype)"></textarea> 397 <textarea name="prototyp" ng-required="prototyp" class="text-input textarea" ng-model="data.prototype" ng-if="prototyp" placeholder="Prototype" ng-change="abc(); prototypekeyPress(data.prototype)"></textarea>
398 </div> 398 </div>
399 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="market"> 399 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="market">
400 <strong>What is your go-to-market strategy?</strong> 400 <strong>What is your go-to-market strategy?</strong>
401 <p class="line-space" ></p> 401 <p class="line-space" ></p>
402 </div> 402 </div>
403 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="market"> 403 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="market">
404 <div class="icon-circle-l"> 404 <div class="icon-circle-l">
405 <i class="material-icons" style="line-height: 30px;">multiline_chart</i> 405 <i class="material-icons" style="line-height: 30px;">multiline_chart</i>
406 </div> 406 </div>
407 <textarea name="market" ng-required="market" class="text-input textarea" ng-model="data.market" ng-if="market" placeholder="Go to market strategy" ng-change="abc(); marketkeyPress(data.market)"></textarea> 407 <textarea name="market" ng-required="market" class="text-input textarea" ng-model="data.market" ng-if="market" placeholder="Go to market strategy" ng-change="abc(); marketkeyPress(data.market)"></textarea>
408 </div> 408 </div>
409 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="risks"> 409 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="risks">
410 <strong>Who are your existing competitors and potential risk factors?</strong> 410 <strong>Who are your existing competitors and potential risk factors?</strong>
411 <p class="line-space" ></p> 411 <p class="line-space" ></p>
412 </div> 412 </div>
413 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="risks"> 413 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="risks">
414 <div class="icon-circle-m"> 414 <div class="icon-circle-m">
415 <i class="material-icons" style="line-height: 30px;">adjust</i> 415 <i class="material-icons" style="line-height: 30px;">adjust</i>
416 </div> 416 </div>
417 <textarea name="risks" ng-required="risks" class="text-input textarea" ng-model="data.risks" ng-if="risks" placeholder="Competition and risks" ng-change="abc(); riskkeyPress(data.risks)"></textarea> 417 <textarea name="risks" ng-required="risks" class="text-input textarea" ng-model="data.risks" ng-if="risks" placeholder="Competition and risks" ng-change="abc(); riskkeyPress(data.risks)"></textarea>
418 </div> 418 </div>
419 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="team"> 419 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="team">
420 <strong>Who all are there in your team?</strong> 420 <strong>Who all are there in your team?</strong>
421 <p class="line-space" >What are their backgrounds?</p> 421 <p class="line-space" >What are their backgrounds?</p>
422 </div> 422 </div>
423 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="team"> 423 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="team">
424 <div class="icon-circle-n" ng-if="team"> 424 <div class="icon-circle-n" ng-if="team">
425 <i class="material-icons" style="line-height: 30px;">games</i> 425 <i class="material-icons" style="line-height: 30px;">games</i>
426 </div> 426 </div>
427 <textarea name="team" ng-required="team" class="text-input textarea" ng-model="data.team" ng-if="team" placeholder="Team" ng-change="abc(); teamkeyPress(data.team)"></textarea> 427 <textarea name="team" ng-required="team" class="text-input textarea" ng-model="data.team" ng-if="team" placeholder="Team" ng-change="abc(); teamkeyPress(data.team)"></textarea>
428 </div> 428 </div>
429 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="pitch"> 429 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="pitch">
430 <strong>Provide the Google Docs link for pitch-deck/presentation (mentioning the details of your startup).</strong> 430 <strong>Provide the Google Docs link for pitch-deck/presentation (mentioning the details of your startup).</strong>
431 <p class="line-space" ></p> 431 <p class="line-space" ></p>
432 </div> 432 </div>
433 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="pitch"> 433 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="pitch">
434 <div class="icon-circle-z"> 434 <div class="icon-circle-z">
435 <i class="material-icons" style="line-height: 30px;">offline_pin</i> 435 <i class="material-icons" style="line-height: 30px;">offline_pin</i>
436 </div> 436 </div>
437 <input type="text" ng-required="pitch" class="text-input" ng-model="data.pitch" ng-if="pitch" placeholder="Provide pitch deck" ng-change="abc(); pitchkeyPress(data.pitch)"> 437 <input type="text" ng-required="pitch" class="text-input" ng-model="data.pitch" ng-if="pitch" placeholder="Provide pitch deck" ng-change="abc(); pitchkeyPress(data.pitch)">
438 </div> 438 </div>
439 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="financials"> 439 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="financials">
440 <strong>Provide the Google Docs link for financial projections (funding requirements of your startup).</strong> 440 <strong>Provide the Google Docs link for financial projections (funding requirements of your startup).</strong>
441 <p class="line-space" ></p> 441 <p class="line-space" ></p>
442 </div> 442 </div>
443 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="financials"> 443 <div class="col-xs-12 col-md-12 input-wrapper" ng-if="financials">
444 <div class="icon-circle-q"> 444 <div class="icon-circle-q">
445 <i class="material-icons" style="line-height: 30px;">timeline</i> 445 <i class="material-icons" style="line-height: 30px;">timeline</i>
446 </div> 446 </div>
447 <input type="text" name="financials" ng-required="financials" class="text-input" ng-model="data.financials" ng-if="financials" placeholder="Provide financials" ng-change="abc(); financialskeyPress(data.financials)"> 447 <input type="text" name="financials" ng-required="financials" class="text-input" ng-model="data.financials" ng-if="financials" placeholder="Provide financials" ng-change="abc(); financialskeyPress(data.financials)">
448 </div> 448 </div>
449 <div class="clearfix"></div> 449 <div class="clearfix"></div>
450 </div> 450 </div>
451 <div class="identity-shadow"> 451 <div class="identity-shadow">
452 <div class="icon-circle-ab"> 452 <div class="icon-circle-ab">
453 <i class="material-icons" style="line-height: 30px;">perm_identity</i> 453 <i class="material-icons" style="line-height: 30px;">perm_identity</i>
454 </div> 454 </div>
455 <div class="identity-question"> 455 <div class="identity-question">
456 <div class="col-xs-12 font f-family" style="margin:10px 10px 0px 10px;"> 456 <div class="col-xs-12 font f-family" style="margin:10px 10px 0px 10px;">
457 <b>Who are you?</b> 457 <b>Who are you?</b>
458 <p style="color:grey">kindly choose one option.</p> 458 <p style="color:grey">kindly choose one option.</p>
459 </div> 459 </div>
460 <div class="clearfix"></div> 460 <div class="clearfix"></div>
461 </div> 461 </div>
462 <div class="stages identity-align"> 462 <div class="stages identity-align">
463 <div class="col-xs-12"> 463 <div class="col-xs-12">
464 <label class="card-small margin-right-label"> 464 <label class="card-small margin-right-label">
465 <input type="radio" required value="student" ng-model="data.identity" class="option-input-a radio-a pull-left" id="studentRadio" ng-change="student(data.identity); studentkeyPress()" name="file" ng-click="show='a'"> 465 <input type="radio" required value="student" ng-model="data.identity" class="option-input-a radio-a pull-left" id="studentRadio" ng-change="student(data.identity); studentkeyPress()" name="file" ng-click="show='a'">
466 <!-- <img src="images/RURAL_ICON.png"> --> 466 <!-- <img src="images/RURAL_ICON.png"> -->
467 <label class="f-family pull-left width-auto" for="studentRadio">Student</label> 467 <label class="f-family pull-left width-auto" for="studentRadio">Student</label>
468 </label> 468 </label>
469 <label class="card-small margin-right-label"> 469 <label class="card-small margin-right-label">
470 <input type="radio" required value="others" ng-model="data.identity" class="option-input-a radio-a pull-left" id="othersRadio" ng-change="student(data.identity); studentkeyPress()" name="file" ng-click="show='b'"> 470 <input type="radio" required value="others" ng-model="data.identity" class="option-input-a radio-a pull-left" id="othersRadio" ng-change="student(data.identity); studentkeyPress()" name="file" ng-click="show='b'">
471 <!-- <img src="images/education.png"> --> 471 <!-- <img src="images/education.png"> -->
472 <label class="f-family pull-left width-auto" for="othersRadio">Others</label> 472 <label class="f-family pull-left width-auto" for="othersRadio">Others</label>
473 </label> 473 </label>
474 </div> 474 </div>
475 </div> 475 </div>
476 <!-- CLOSE stages identity-align --> 476 <!-- CLOSE stages identity-align -->
477 <div class="clearfix"></div> 477 <div class="clearfix"></div>
478 </div> 478 </div>
479 <!-- CLOSE identity-shadow --> 479 <!-- CLOSE identity-shadow -->
480 <div class="col-xs-12 input-wrapper"> 480 <div class="col-xs-12 input-wrapper">
481 <div class="referel-icon" style="z-index: 999;"> 481 <div class="referel-icon" style="z-index: 999;">
482 <i class="material-icons" style="line-height: 30px;">phone_android</i> 482 <i class="material-icons" style="line-height: 30px;">code</i>
483 </div> 483 </div>
484 <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> 484 <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)">
485 <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> 485 <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i>
486 <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> 486 <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i>
487 <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> 487 <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button>
488 </div> 488 </div>
489 <div class="clearfix"></div> 489 <div class="clearfix"></div>
490 <div class="text-center"> 490 <div class="text-center">
491 <input type="submit" class="btn submit-button" data-toggle="modal" data-target="#myModal" ng-disabled="applicantForm.$invalid|| check|| numberCheck" value="Submit" ng-click="calculateAmount()"> 491 <input type="submit" class="btn submit-button" data-toggle="modal" data-target="#myModal" ng-disabled="applicantForm.$invalid|| check|| numberCheck" value="Submit" ng-click="calculateAmount()">
492 </div> 492 </div>
493 </div> 493 </div>
494 <!-- CLOSE step-two-form --> 494 <!-- CLOSE step-two-form -->
495 </div> 495 </div>
496 <!-- col-xs-12 col-md-8 col-md-offset-2 --> 496 <!-- col-xs-12 col-md-8 col-md-offset-2 -->
497 </form> 497 </form>
498 <!-- CLOSE FORM --> 498 <!-- CLOSE FORM -->
499 <footer> 499 <footer>
500 <img id="footer" class="img-responsive banner"> 500 <img id="footer" class="img-responsive banner">
501 <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technolgies.</a> </center> 501 <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technolgies.</a> </center>
502 </footer> 502 </footer>
503 <!-- </div> CLOSE CHECK VIEW --> 503 <!-- </div> CLOSE CHECK VIEW -->
504 <div ng-if="verifyView"> 504 <div ng-if="verifyView">
505 <div style="margin-bottom: 0px;" class="text-center"> 505 <div style="margin-bottom: 0px;" class="text-center">
506 <input type="button" class="btn submit-button" ng-disabled="applicantForm.$invalid" value="check the status" ng-click="update()"> 506 <input type="button" class="btn submit-button" ng-disabled="applicantForm.$invalid" value="check the status" ng-click="update()">
507 </div> 507 </div>
508 </div> 508 </div>
509 </div> <!-- CLOSE NEW-CONTROLLER --> 509 </div> <!-- CLOSE NEW-CONTROLLER -->
510 <div id="snacsskbar">Registration done successfully.</div> 510 <div id="snacsskbar">Registration done successfully.</div>
511 <div class="modal fade" id="myModal" role="dialog"> 511 <div class="modal fade" id="myModal" role="dialog">
512 <div class="modal-dialog" style="left: auto;"> 512 <div class="modal-dialog" style="left: auto;">
513 <div class="modal-content"> 513 <div class="modal-content">
514 <table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" style="border:1px solid #f6f6eb;margin-top:10px"> 514 <table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" style="border:1px solid #f6f6eb;margin-top:10px">
515 <tbody style="background-color:#f9f9f9"> 515 <tbody style="background-color:#f9f9f9">
516 <tr> 516 <tr>
517 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> 517 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td>
518 </tr> 518 </tr>
519 <tr> 519 <tr>
520 <td align="left" valign="top" style="padding:10px"> 520 <td align="left" valign="top" style="padding:10px">
521 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 521 <table width="100%" border="0" cellspacing="0" cellpadding="0">
522 <tbody> 522 <tbody>
523 <tr> 523 <tr>
524 <td align="left" valign="middle" style="color:#5e5e5e;font-size:20px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Summary</td> 524 <td align="left" valign="middle" style="color:#5e5e5e;font-size:20px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Summary</td>
525 </tr> 525 </tr>
526 </tbody> 526 </tbody>
527 </table> 527 </table>
528 </td> 528 </td>
529 </tr> 529 </tr>
530 </tbody> 530 </tbody>
531 <tbody> 531 <tbody>
532 <tr> 532 <tr>
533 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> 533 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td>
534 </tr> 534 </tr>
535 <tr> 535 <tr>
536 <td align="left" valign="top" style="padding:10px"> 536 <td align="left" valign="top" style="padding:10px">
537 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 537 <table width="100%" border="0" cellspacing="0" cellpadding="0">
538 <tbody> 538 <tbody>
539 <tr> 539 <tr>
540 <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Amount</td> 540 <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Amount</td>
541 <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{ticketAmnt}}</td> 541 <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{ticketAmnt}}</td>
542 </tr> 542 </tr>
543 </tbody> 543 </tbody>
544 </table> 544 </table>
545 </td> 545 </td>
546 </tr> 546 </tr>
547 <tr> 547 <tr>
548 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> 548 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td>
549 </tr> 549 </tr>
550 <tr> 550 <tr>
551 <td align="left" valign="top" style="padding:10px"> 551 <td align="left" valign="top" style="padding:10px">
552 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 552 <table width="100%" border="0" cellspacing="0" cellpadding="0">
553 <tbody> 553 <tbody>
554 <tr> 554 <tr>
555 <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Discount</td> 555 <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Discount</td>
556 <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{discountAmount}}</td> 556 <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{discountAmount}}</td>
557 </tr> 557 </tr>
558 </tbody> 558 </tbody>
559 </table> 559 </table>
560 </td> 560 </td>
561 </tr> 561 </tr>
562 <tr> 562 <tr>
563 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> 563 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td>
564 </tr> 564 </tr>
565 <tr> 565 <tr>
566 <td align="left" valign="top" style="padding:10px"> 566 <td align="left" valign="top" style="padding:10px">
567 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 567 <table width="100%" border="0" cellspacing="0" cellpadding="0">
568 <tbody> 568 <tbody>
569 <tr> 569 <tr>
570 <td align="left" valign="middle" style="color:#5e5e5e;font-size:14px;line-height:26px;font-family:Avenir-Medium,arial,sans-serif">GST</td> 570 <td align="left" valign="middle" style="color:#5e5e5e;font-size:14px;line-height:26px;font-family:Avenir-Medium,arial,sans-serif">GST</td>
571 <td align="right" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{taxTotal}}</td> 571 <td align="right" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{taxTotal}}</td>
572 </tr> 572 </tr>
573 </tbody> 573 </tbody>
574 </table> 574 </table>
575 </td> 575 </td>
576 </tr> 576 </tr>
577 <tr> 577 <tr>
578 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> 578 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td>
579 </tr> 579 </tr>
580 <tr> 580 <tr>
581 <td align="left" valign="top" bgcolor="#f9f9f9" style="padding:10px"> 581 <td align="left" valign="top" bgcolor="#f9f9f9" style="padding:10px">
582 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 582 <table width="100%" border="0" cellspacing="0" cellpadding="0">
583 <tbody> 583 <tbody>
584 <tr> 584 <tr>
585 <td align="left" valign="middle" style="color:#5e5e5e;font-size:22px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Total Amount</td> 585 <td align="left" valign="middle" style="color:#5e5e5e;font-size:22px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Total Amount</td>
586 <td align="right" valign="middle" style="color:#29bd9d;font-size:24px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{payingAmnt}}</td> 586 <td align="right" valign="middle" style="color:#29bd9d;font-size:24px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{payingAmnt}}</td>
587 </tr> 587 </tr>
588 </tbody> 588 </tbody>
589 </table> 589 </table>
590 </td> 590 </td>
591 </tr> 591 </tr>
592 <tr> 592 <tr>
593 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> 593 <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td>
594 </tr> 594 </tr>
595 </tbody> 595 </tbody>
596 </table> 596 </table>
597 <div style="text-align:center;margin-bottom:5%"> 597 <div style="text-align:center;margin-bottom:5%">
598 <button type="button" style="color:#fff;background-color:#4CAF50;margin-top:5%" class="btn btn-default" data-dismiss="modal" ng-click="create()">Proceed to Pay</button> 598 <button type="button" style="color:#fff;background-color:#4CAF50;margin-top:5%" class="btn btn-default" data-dismiss="modal" ng-click="create()">Proceed to Pay</button>
599 </div> 599 </div>
600 </div> 600 </div>
601 </div> 601 </div>
602 </div> 602 </div>
1 // create the module and name it scotchApp 1 // create the module and name it scotchApp
2 var scotchApp = angular.module('scotchApp', ['ngRoute']); 2 var scotchApp = angular.module('scotchApp', ['ngRoute']);
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 paymentVerify page 14 // route for the paymentVerify page
15 .when('/paymentVerification/:id', { 15 .when('/paymentVerification/:id', {
16 templateUrl: 'pages/verify.html', 16 templateUrl: 'pages/verify.html',
17 controller: 'verifyController' 17 controller: 'verifyController'
18 }) 18 })
19 19
20 // route for the ambassador page 20 // route for the ambassador page
21 .when('/ambassador', { 21 .when('/ambassador', {
22 templateUrl: 'pages/ambassador.html', 22 templateUrl: 'pages/ambassador.html',
23 controller: 'ambassadorController' 23 controller: 'ambassadorController'
24 }) 24 })
25 }); 25 });
26 26
27 scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api") 27 scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api")
28 28
29 // create the controller and inject Angular's $scope 29 // create the controller and inject Angular's $scope
30 scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL) { 30 scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL) {
31 $scope.data = { 31 $scope.data = {
32 show: true, 32 show: true,
33 hide: false 33 hide: false
34 }; 34 };
35 35
36 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ 36 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
37 37
38 $scope.max = 100; 38 $scope.max = 100;
39 $scope.current = 0; 39 $scope.current = 0;
40 $scope.payingAmnt = 0; 40 $scope.payingAmnt = 0;
41 if ($scope.data.stage == 'select') { 41 if ($scope.data.stage == 'select') {
42 console.log("sdsaasd"); 42 console.log("sdsaasd");
43 43
44 } 44 }
45 45
46 $scope.author = 'Swarn Singh'; 46 $scope.author = 'Swarn Singh';
47 $scope.data = {}; 47 $scope.data = {};
48 $scope.data.stage = 'Idea'; 48 $scope.data.stage = 'Idea';
49 $scope.discountAmount = 0; 49 $scope.discountAmount = 0;
50 $scope.check = false; 50 $scope.check = false;
51 $scope.numberCheck = false; 51 $scope.numberCheck = false;
52 $scope.paymentResult = {}; 52 $scope.paymentResult = {};
53 var data = { 53 var data = {
54 "amount": $scope.payingAmnt, 54 "amount": $scope.payingAmnt,
55 "currency": "INR", 55 "currency": "INR",
56 "status": "pending" 56 "status": "pending"
57 } 57 }
58 58
59 $scope.removeError = function() { 59 $scope.removeError = function() {
60 $('#invalidEmail').css('display', 'none'); 60 $('#invalidEmail').css('display', 'none');
61 $('#alreadyExist').css('display', 'none'); 61 $('#alreadyExist').css('display', 'none');
62 }; 62 };
63 63
64 $scope.emailcheck = function(val) { 64 $scope.emailcheck = function(val) {
65 if (val == undefined) { 65 if (val == undefined) {
66 $('#invalidEmail').css('display', 'block'); 66 $('#invalidEmail').css('display', 'block');
67 } else { 67 } else {
68 $http({ 68 $http({
69 method: 'GET', 69 method: 'GET',
70 url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', 70 url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}',
71 headers: {} 71 headers: {}
72 }).then(function mySuccess(searchResult) { 72 }).then(function mySuccess(searchResult) {
73 console.log("searchResult1===>", searchResult) 73 console.log("searchResult1===>", searchResult)
74 if (searchResult.data.length == 0) { 74 if (searchResult.data.length == 0) {
75 $scope.check = false; 75 $scope.check = false;
76 } else { 76 } else {
77 $scope.check = true; 77 $scope.check = true;
78 $('#alreadyExist').css('display', 'block'); 78 $('#alreadyExist').css('display', 'block');
79 } 79 }
80 }, function myError(error) {}); 80 }, function myError(error) {});
81 } 81 }
82 }; 82 };
83 83
84 $scope.removeNoError = function() { 84 $scope.removeNoError = function() {
85 $('#noExist').css('display', 'none'); 85 $('#noExist').css('display', 'none');
86 }; 86 };
87 87
88 $scope.numbercheck = function(number) { 88 $scope.numbercheck = function(number) {
89 $http({ 89 $http({
90 method: 'GET', 90 method: 'GET',
91 url: BASE_URL + '/applicants?filter={"where": {"phone": {"like":"%25' + number + '%25"}}}', 91 url: BASE_URL + '/applicants?filter={"where": {"phone": {"like":"%25' + number + '%25"}}}',
92 data: $scope.data, 92 data: $scope.data,
93 headers: {} 93 headers: {}
94 }).then(function mySuccess(searchResult) { 94 }).then(function mySuccess(searchResult) {
95 console.log("searchResult===>", searchResult) 95 console.log("searchResult===>", searchResult)
96 if (searchResult.data.length == 0) { 96 if (searchResult.data.length == 0) {
97 $scope.numberCheck = false; 97 $scope.numberCheck = false;
98 98
99 } else { 99 } else {
100 $scope.numberCheck = true; 100 $scope.numberCheck = true;
101 $('#noExist').css('display', 'block'); 101 $('#noExist').css('display', 'block');
102 } 102 }
103 }, function myError(error) {}); 103 }, function myError(error) {});
104 }; 104 };
105 105
106 $rootScope.tokenCall = function(val) { 106 $rootScope.tokenCall = function(val) {
107 console.log('val-------->', val); 107 console.log('val-------->', val);
108 if (val == undefined) { 108 if (val == undefined) {
109 $('#invalidEmail').css('display', 'block'); 109 $('#invalidEmail').css('display', 'block');
110 } else { 110 } else {
111 val = val.toUpperCase(); 111 val = val.toUpperCase();
112 $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": {"like":"%25' + val + '%25"}}}') 112 $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": {"like":"%25' + val + '%25"}}}')
113 .then(function(searchResult) { 113 .then(function(searchResult) {
114 if (searchResult.data.length == 0) { 114 if (searchResult.data.length == 0) {
115 $scope.tokencheck = false; 115 $scope.tokencheck = false;
116 $scope.discountAmount = 0; 116 $scope.discountAmount = 0;
117 } else { 117 } else {
118 $scope.tokencheck = true; 118 $scope.tokencheck = true;
119 } 119 }
120 },function(err){ 120 },function(err){
121 console.log(err) 121 console.log(err)
122 }); 122 });
123 123
124 } 124 }
125 }; 125 };
126 126
127 /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/ 127 /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/
128 $(document).ready( 128 $(document).ready(
129 function() { 129 function() {
130 $('input:submit').attr('disabled', true); 130 $('input:submit').attr('disabled', true);
131 $('input:file').change( 131 $('input:file').change(
132 function() { 132 function() {
133 if ($("#picture").val()) { 133 if ($("#picture").val()) {
134 $('input:submit').removeAttr('disabled'); 134 $('input:submit').removeAttr('disabled');
135 } else { 135 } else {
136 $('input:submit').attr('disabled', true); 136 $('input:submit').attr('disabled', true);
137 } 137 }
138 }); 138 });
139 }); 139 });
140 140
141 /*****THIS IS FOR STEP ONE FORM ******/ 141 /*****THIS IS FOR STEP ONE FORM ******/
142 $scope.next = function() { 142 $scope.next = function() {
143 $scope.data.status = null 143 $scope.data.status = null
144 if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { 144 if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) {
145 var x = document.getElementById("snackbar") 145 var x = document.getElementById("snackbar")
146 x.className = "show"; 146 x.className = "show";
147 setTimeout(function() { 147 setTimeout(function() {
148 x.className = x.className.replace("show", ""); 148 x.className = x.className.replace("show", "");
149 }, 3000); 149 }, 3000);
150 } else if ($scope.data.stage != undefined && $scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { 150 } else if ($scope.data.stage != undefined && $scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) {
151 $scope.infoForm = true; 151 $scope.infoForm = true;
152 console.log("sdasdasdsa"); 152 console.log("sdasdasdsa");
153 $scope.data.stage = $scope.data.stage; 153 $scope.data.stage = $scope.data.stage;
154 $scope.detail = {}; 154 $scope.detail = {};
155 $scope.data.phone = "+91" + $scope.data.number; 155 $scope.data.phone = "+91" + $scope.data.number;
156 $http({ 156 $http({
157 method: 'POST', 157 method: 'POST',
158 url: BASE_URL + '/information', 158 url: BASE_URL + '/information',
159 data: $scope.data, 159 data: $scope.data,
160 headers: {} 160 headers: {}
161 }).then(function mySuccess(result) { 161 }).then(function mySuccess(result) {
162 console.log("result", result) 162 console.log("result", result)
163 $scope.detail = result; 163 $scope.detail = result;
164 data.applicantId = result.data.id; 164 data.applicantId = result.data.id;
165 $scope.userId = result.data.id; 165 $scope.userId = result.data.id;
166 166
167 }, function myError(error) {}); 167 }, function myError(error) {});
168 } 168 }
169 169
170 } 170 }
171 171
172 $scope.calculateAmount = function(){ 172 $scope.calculateAmount = function(){
173 if ($scope.data.stage == "Idea") { 173 if ($scope.data.stage == "Idea") {
174 console.log("$scope.data", $scope.data) 174 console.log("$scope.data", $scope.data)
175 $scope.ticketAmnt = 500; 175 $scope.ticketAmnt = 500;
176 } 176 }
177 177
178 if ($scope.data.stage == "Product") { 178 if ($scope.data.stage == "Product") {
179 $scope.ticketAmnt = 1000; 179 $scope.ticketAmnt = 1000;
180 } 180 }
181 181
182 if ($scope.data.stage == "Growth") { 182 if ($scope.data.stage == "Growth") {
183 $scope.ticketAmnt = 2000; 183 $scope.ticketAmnt = 2000;
184 } 184 }
185 185
186 if($scope.tokencheck == true){ 186 if($scope.tokencheck == true){
187 var amount = $scope.ticketAmnt 187 var amount = $scope.ticketAmnt
188 $scope.discountAmount = (amount * 10)/100 188 $scope.discountAmount = (amount * 10)/100
189 console.log("finalAmount====>",$scope.payingAmnt) 189 console.log("finalAmount====>",$scope.payingAmnt)
190 } 190 }
191 191
192 var taxAmount = $scope.ticketAmnt - $scope.discountAmount 192 var taxAmount = $scope.ticketAmnt - $scope.discountAmount
193 $scope.taxTotal = (taxAmount * 18)/100 193 $scope.taxTotal = (taxAmount * 18)/100
194 $scope.payingAmnt = taxAmount + $scope.taxTotal 194 $scope.payingAmnt = taxAmount + $scope.taxTotal
195 console.log("taxincludedamount----", $scope.payingAmnt) 195 console.log("taxincludedamount----", $scope.payingAmnt)
196 } 196 }
197 197
198 /*****THIS IS FOR STEP THREE FORM ******/ 198 /*****THIS IS FOR STEP THREE FORM ******/
199 $scope.create = function() { 199 $scope.create = function() {
200 if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { 200 if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) {
201 var x = document.getElementById("snackbar") 201 var x = document.getElementById("snackbar")
202 x.className = "show"; 202 x.className = "show";
203 setTimeout(function() { 203 setTimeout(function() {
204 x.className = x.className.replace("show", ""); 204 x.className = x.className.replace("show", "");
205 }, 3000); 205 }, 3000);
206 } else if ($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { 206 } else if ($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) {
207 $scope.infoForm = true; 207 $scope.infoForm = true;
208 console.log("sdasdasdsa"); 208 console.log("sdasdasdsa");
209 $scope.data.stage = $scope.data.stage; 209 $scope.data.stage = $scope.data.stage;
210 $scope.detail = {}; 210 $scope.detail = {};
211 $scope.data.phone = "+91" + $scope.data.number; 211 $scope.data.phone = "+91" + $scope.data.number;
212 $http({ 212 $http({
213 method: 'POST', 213 method: 'POST',
214 url: BASE_URL + '/applicants', 214 url: BASE_URL + '/applicants',
215 data: $scope.data, 215 data: $scope.data,
216 headers: {} 216 headers: {}
217 }).then(function mySuccess(result) { 217 }).then(function mySuccess(result) {
218 218
219 console.log("=====result=====", result) 219 console.log("=====result=====", result)
220 $scope.detail = result; 220 $scope.detail = result;
221 data.applicantId = result.data.id; 221 data.applicantId = result.data.id;
222 $scope.userId = result.data.id; 222 $scope.userId = result.data.id;
223 console.log("=====data=====", data) 223 console.log("=====data=====", data)
224 data.amount = $scope.payingAmnt; 224 data.amount = $scope.payingAmnt;
225 if ($scope.detail != null) { 225 if ($scope.detail != null) {
226 $http({ 226 $http({
227 method: 'POST', 227 method: 'POST',
228 url: BASE_URL + '/payments', 228 url: BASE_URL + '/payments',
229 data: data, 229 data: data,
230 headers: {} 230 headers: {}
231 }).then(function mySuccess(paymentResult) { 231 }).then(function mySuccess(paymentResult) {
232 $scope.paymentResult = paymentResult; 232 $scope.paymentResult = paymentResult;
233 }, function myError(error) {}); 233 }, function myError(error) {});
234 } 234 }
235 var i = 0; 235 var i = 0;
236 $scope.payingAmnt = $scope.payingAmnt * 100; 236 $scope.payingAmnt = $scope.payingAmnt * 100;
237 var options = { 237 var options = {
238 "key": "rzp_test_YwHsVFiDIQ2WUQ", 238 "key": "rzp_live_mhSE1uOBlXvFyJ",
239 "amount": $scope.payingAmnt, 239 "amount": $scope.payingAmnt,
240 240
241 "name": "Startup Jalsa", 241 "name": "Startup Jalsa",
242 "description": "amount", 242 "description": "amount",
243 "currency": "INR", 243 "currency": "INR",
244 "status": "done", 244 "status": "done",
245 245
246 "theme": { 246 "theme": {
247 "color": "#2196f3 ", 247 "color": "#2196f3 ",
248 "image_padding": "NO" 248 "image_padding": "NO"
249 }, 249 },
250 "modal": { 250 "modal": {
251 "ondismiss": function() {} 251 "ondismiss": function() {}
252 }, 252 },
253 "handler": function(response) { 253 "handler": function(response) {
254 createPayment(response); 254 createPayment(response);
255 } 255 }
256 }; 256 };
257 var rzp1 = new Razorpay(options); 257 var rzp1 = new Razorpay(options);
258 rzp1.open(); 258 rzp1.open();
259 $scope.paymentResponse = {}; 259 $scope.paymentResponse = {};
260 260
261 function createPayment(response) { 261 function createPayment(response) {
262 $route.reload(); 262 $route.reload();
263 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; 263 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
264 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; 264 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId;
265 $scope.paymentResponse.amount = data.amount; 265 $scope.paymentResponse.amount = data.amount;
266 $scope.paymentResponse.currency = "INR"; 266 $scope.paymentResponse.currency = "INR";
267 $scope.paymentResponse.status = "captured"; 267 $scope.paymentResponse.status = "captured";
268 $http({ 268 $http({
269 method: 'PUT', 269 method: 'PUT',
270 url: BASE_URL + '/payments/' + $scope.paymentResult.data.id, 270 url: BASE_URL + '/payments/' + $scope.paymentResult.data.id,
271 data: $scope.paymentResponse, 271 data: $scope.paymentResponse,
272 headers: {} 272 headers: {}
273 }).then(function mySuccess(searchResult) { 273 }).then(function mySuccess(searchResult) {
274 console.log("searchResult", searchResult) 274 console.log("searchResult", searchResult)
275 $scope.showToastr() 275 $scope.showToastr()
276 //toaster.success("Registration done successfully"); 276 //toaster.success("Registration done successfully");
277 277
278 }, function myError(error) {}); 278 }, function myError(error) {});
279 } 279 }
280 280
281 }, function myError(error) {}); 281 }, function myError(error) {});
282 } 282 }
283 283
284 } 284 }
285 285
286 $scope.showToastr = function() { 286 $scope.showToastr = function() {
287 console.log("called toast") 287 console.log("called toast")
288 var x = document.getElementById("snacsskbar") 288 var x = document.getElementById("snacsskbar")
289 x.className = "show"; 289 x.className = "show";
290 setTimeout(function() { 290 setTimeout(function() {
291 x.className = x.className.replace("show", ""); 291 x.className = x.className.replace("show", "");
292 }, 3000); 292 }, 3000);
293 } 293 }
294 294
295 /*kk***This code for change data when click to chooses stages***/ 295 /*kk***This code for change data when click to chooses stages***/
296 $scope.businessmodel = true; 296 $scope.businessmodel = true;
297 $scope.Idea = true; 297 $scope.Idea = true;
298 $scope.current = true; 298 $scope.current = true;
299 299
300 $scope.stage = function(stage) { 300 $scope.stage = function(stage) {
301 $scope.stagekeyPress(); 301 $scope.stagekeyPress();
302 console.log("stage--2",stage) 302 console.log("stage--2",stage)
303 if (stage == 'Idea') { 303 if (stage == 'Idea') {
304 $scope.current = 10; 304 $scope.current = 10;
305 $scope.prototyp = false; 305 $scope.prototyp = false;
306 $scope.market = false; 306 $scope.market = false;
307 $scope.risks = false; 307 $scope.risks = false;
308 $scope.team = false; 308 $scope.team = false;
309 $scope.pitch = false; 309 $scope.pitch = false;
310 $scope.financials = false; 310 $scope.financials = false;
311 $scope.businessmodel = true; 311 $scope.businessmodel = true;
312 $scope.data.stage = stage; 312 $scope.data.stage = stage;
313 // for right content 313 // for right content
314 $scope.Idea = true; 314 $scope.Idea = true;
315 $scope.Product = false; 315 $scope.Product = false;
316 $scope.Growth = false; 316 $scope.Growth = false;
317 } else if (stage == 'Product') { 317 } else if (stage == 'Product') {
318 $scope.current = 10; 318 $scope.current = 10;
319 $scope.prototyp = true; 319 $scope.prototyp = true;
320 $scope.market = true; 320 $scope.market = true;
321 $scope.risks = true; 321 $scope.risks = true;
322 $scope.team = true; 322 $scope.team = true;
323 $scope.pitch = true; 323 $scope.pitch = true;
324 $scope.financials = true; 324 $scope.financials = true;
325 $scope.businessmodel = false; 325 $scope.businessmodel = false;
326 $scope.data.stage = stage; 326 $scope.data.stage = stage;
327 // for right content 327 // for right content
328 $scope.Idea = false; 328 $scope.Idea = false;
329 $scope.Product = true; 329 $scope.Product = true;
330 $scope.Growth = false; 330 $scope.Growth = false;
331 } else if (stage == 'Growth') { 331 } else if (stage == 'Growth') {
332 $scope.current = 10; 332 $scope.current = 10;
333 $scope.prototyp = true; 333 $scope.prototyp = true;
334 $scope.market = true; 334 $scope.market = true;
335 $scope.risks = true; 335 $scope.risks = true;
336 $scope.team = true; 336 $scope.team = true;
337 $scope.pitch = true; 337 $scope.pitch = true;
338 $scope.financials = true; 338 $scope.financials = true;
339 $scope.businessmodel = false; 339 $scope.businessmodel = false;
340 // for right content 340 // for right content
341 $scope.Idea = false; 341 $scope.Idea = false;
342 $scope.Product = false; 342 $scope.Product = false;
343 $scope.Growth = true; 343 $scope.Growth = true;
344 $scope.data.stage = stage; 344 $scope.data.stage = stage;
345 } 345 }
346 } 346 }
347 $scope.enterbusiness = function(business) { 347 $scope.enterbusiness = function(business) {
348 console.log("business", business); 348 console.log("business", business);
349 if (name == undefined) { 349 if (name == undefined) {
350 $scope.current = false; 350 $scope.current = false;
351 351
352 } else if (name != undefined) { 352 } else if (name != undefined) {
353 $scope.current = true; 353 $scope.current = true;
354 } 354 }
355 } 355 }
356 /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/ 356 /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/
357 $scope.stagekeyPress = function() { 357 $scope.stagekeyPress = function() {
358 $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)'); 358 $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)');
359 } 359 }
360 $scope.sectorkeyPress = function() { 360 $scope.sectorkeyPress = function() {
361 $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)'); 361 $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)');
362 } 362 }
363 363
364 $scope.studentkeyPress = function() { 364 $scope.studentkeyPress = function() {
365 $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)'); 365 $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)');
366 } 366 }
367 367
368 $scope.namekeyPress = function(name) { 368 $scope.namekeyPress = function(name) {
369 console.log("name", name); 369 console.log("name", name);
370 if (name == undefined) { 370 if (name == undefined) {
371 $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); 371 $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)');
372 } else { 372 } else {
373 $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)'); 373 $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)');
374 } 374 }
375 } 375 }
376 $scope.emailkeyPress = function(email) { 376 $scope.emailkeyPress = function(email) {
377 console.log("email", email); 377 console.log("email", email);
378 if (email == undefined) { 378 if (email == undefined) {
379 $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); 379 $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)');
380 } else { 380 } else {
381 $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)'); 381 $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)');
382 } 382 }
383 } 383 }
384 384
385 385
386 $scope.phonekeyPress = function(number) { 386 $scope.phonekeyPress = function(number) {
387 console.log("number", number); 387 console.log("number", number);
388 if (number == undefined) { 388 if (number == undefined) {
389 $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); 389 $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)');
390 } else { 390 } else {
391 $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)'); 391 $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)');
392 } 392 }
393 } 393 }
394 394
395 $scope.citykeyPress = function(city) { 395 $scope.citykeyPress = function(city) {
396 console.log("city", city); 396 console.log("city", city);
397 if (city == undefined) { 397 if (city == undefined) {
398 $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); 398 $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)');
399 } else { 399 } else {
400 $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)'); 400 $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)');
401 } 401 }
402 } 402 }
403 403
404 $scope.questionkeyPress = function(q) { 404 $scope.questionkeyPress = function(q) {
405 if (q == undefined) { 405 if (q == undefined) {
406 $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); 406 $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)');
407 } else { 407 } else {
408 $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)'); 408 $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)');
409 } 409 }
410 } 410 }
411 411
412 $scope.technologykeyPress = function(technology) { 412 $scope.technologykeyPress = function(technology) {
413 if (technology == undefined) { 413 if (technology == undefined) {
414 $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); 414 $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)');
415 } else { 415 } else {
416 $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)'); 416 $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)');
417 } 417 }
418 } 418 }
419 $scope.problemkeyPress = function(problem) { 419 $scope.problemkeyPress = function(problem) {
420 if (problem == undefined) { 420 if (problem == undefined) {
421 $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); 421 $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)');
422 } else { 422 } else {
423 $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)'); 423 $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)');
424 } 424 }
425 } 425 }
426 $scope.solutionkeyPress = function(solution) { 426 $scope.solutionkeyPress = function(solution) {
427 if (solution == undefined) { 427 if (solution == undefined) {
428 $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); 428 $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)');
429 } else { 429 } else {
430 $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)'); 430 $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)');
431 } 431 }
432 } 432 }
433 $scope.businesskeyPress = function(business) { 433 $scope.businesskeyPress = function(business) {
434 $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)'); 434 $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)');
435 } 435 }
436 436
437 $scope.prototypekeyPress = function(prototype) { 437 $scope.prototypekeyPress = function(prototype) {
438 if (prototype == undefined) { 438 if (prototype == undefined) {
439 $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); 439 $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)');
440 } else { 440 } else {
441 $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)'); 441 $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)');
442 } 442 }
443 } 443 }
444 444
445 $scope.marketkeyPress = function(market) { 445 $scope.marketkeyPress = function(market) {
446 if (market == undefined) { 446 if (market == undefined) {
447 $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); 447 $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)');
448 } else { 448 } else {
449 $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)'); 449 $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)');
450 } 450 }
451 } 451 }
452 452
453 $scope.riskkeyPress = function(risk) { 453 $scope.riskkeyPress = function(risk) {
454 if (risk == undefined) { 454 if (risk == undefined) {
455 $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); 455 $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)');
456 } else { 456 } else {
457 $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)'); 457 $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)');
458 } 458 }
459 } 459 }
460 460
461 $scope.teamkeyPress = function(team) { 461 $scope.teamkeyPress = function(team) {
462 if (team == undefined) { 462 if (team == undefined) {
463 $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); 463 $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)');
464 } else { 464 } else {
465 $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)'); 465 $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)');
466 } 466 }
467 } 467 }
468 468
469 $scope.pitchkeyPress = function(pitch) { 469 $scope.pitchkeyPress = function(pitch) {
470 if (pitch == undefined) { 470 if (pitch == undefined) {
471 $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); 471 $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)');
472 } else { 472 } else {
473 $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)'); 473 $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)');
474 } 474 }
475 } 475 }
476 476
477 $scope.financialskeyPress = function(financial) { 477 $scope.financialskeyPress = function(financial) {
478 console.log("financial", financial); 478 console.log("financial", financial);
479 if (financial == undefined) { 479 if (financial == undefined) {
480 $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); 480 $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)');
481 } else { 481 } else {
482 $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); 482 $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)');
483 } 483 }
484 } 484 }
485 $scope.changeReferalIconColor = function(referalToken){ 485 $scope.changeReferalIconColor = function(referalToken){
486 if (referalToken == undefined || referalToken == '') { 486 if (referalToken == undefined || referalToken == '') {
487 $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); 487 $('.referel-icon').css('background-color', 'rgb(102, 102, 102)');
488 }else { 488 }else {
489 $('.referel-icon').css('background-color', 'rgb(66, 181, 73)'); 489 $('.referel-icon').css('background-color', 'rgb(66, 181, 73)');
490 } 490 }
491 } 491 }
492 492
493 }); 493 });
494 494
495 scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { 495 scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) {
496 $scope.pendingPaymentId = $route.current.params.id 496 $scope.pendingPaymentId = $route.current.params.id
497 $http({ 497 $http({
498 method: "GET", 498 method: "GET",
499 url: BASE_URL + '/applicants/' + $scope.pendingPaymentId, 499 url: BASE_URL + '/applicants/' + $scope.pendingPaymentId,
500 }).then(function mySuccess(response) { 500 }).then(function mySuccess(response) {
501 $scope.data = response.data; 501 $scope.data = response.data;
502 console.log("response-1", response); 502 console.log("response-1", response);
503 $scope.pendingPaymentId = $route.current.params.id; 503 $scope.pendingPaymentId = $route.current.params.id;
504 504
505 $http({ 505 $http({
506 method: "GET", 506 method: "GET",
507 url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}', 507 url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}',
508 }).then(function mySuccess(response) { 508 }).then(function mySuccess(response) {
509 $scope.paymentRecord = response.data; 509 $scope.paymentRecord = response.data;
510 }, function myError(response) { 510 }, function myError(response) {
511 }); 511 });
512 }, function myError(response) { 512 }, function myError(response) {
513 $scope.myWelcome = response.statusText; 513 $scope.myWelcome = response.statusText;
514 }); 514 });
515 515
516 $scope.checkView = false; 516 $scope.checkView = false;
517 $scope.verifyView = false; 517 $scope.verifyView = false;
518 518
519 $scope.pendingPaymentId = ''; 519 $scope.pendingPaymentId = '';
520 520
521 $scope.update = function() { 521 $scope.update = function() {
522 522
523 $http({ 523 $http({
524 method: 'GET', 524 method: 'GET',
525 url: BASE_URL + '/payments?filter={"where":{"applicantId": ' + $scope.pendingPaymentId + '}}', 525 url: BASE_URL + '/payments?filter={"where":{"applicantId": ' + $scope.pendingPaymentId + '}}',
526 headers: {} 526 headers: {}
527 }).then(function mySuccess(searchResult) { 527 }).then(function mySuccess(searchResult) {
528 if (searchResult.data[0].status == "pending") { 528 if (searchResult.data[0].status == "pending") {
529 $scope.checkView = true; 529 $scope.checkView = true;
530 $scope.verifyView = false; 530 $scope.verifyView = false;
531 $scope.amount = searchResult.data[0].amount * 100; 531 $scope.amount = searchResult.data[0].amount * 100;
532 console.log('pending data', searchResult); 532 console.log('pending data', searchResult);
533 var i = 0; 533 var i = 0;
534 var options = { 534 var options = {
535 "key": "rzp_test_YwHsVFiDIQ2WUQ", 535 "key": "rzp_live_mhSE1uOBlXvFyJ",
536 "amount": $scope.amount, 536 "amount": $scope.amount,
537 537
538 "name": "Startup Jalsa", 538 "name": "Startup Jalsa",
539 "description": "amount", 539 "description": "amount",
540 "currency": "INR", 540 "currency": "INR",
541 "status": "done", 541 "status": "done",
542 542
543 "theme": { 543 "theme": {
544 "color": "#2196f3 ", 544 "color": "#2196f3 ",
545 "image_padding": "NO" 545 "image_padding": "NO"
546 }, 546 },
547 "modal": { 547 "modal": {
548 "ondismiss": function() {} 548 "ondismiss": function() {}
549 }, 549 },
550 "handler": function(response) { 550 "handler": function(response) {
551 createPayment(response); 551 createPayment(response);
552 } 552 }
553 }; 553 };
554 var rzp1 = new Razorpay(options); 554 var rzp1 = new Razorpay(options);
555 rzp1.open(); 555 rzp1.open();
556 $scope.paymentResponse = {}; 556 $scope.paymentResponse = {};
557 557
558 function createPayment(response) { 558 function createPayment(response) {
559 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; 559 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
560 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; 560 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId;
561 $scope.paymentResponse.amount = $scope.amount; 561 $scope.paymentResponse.amount = $scope.amount;
562 $scope.paymentResponse.currency = "INR"; 562 $scope.paymentResponse.currency = "INR";
563 $scope.paymentResponse.status = "captured"; 563 $scope.paymentResponse.status = "captured";
564 $scope.paymentResponse.applicantId = $scope.userId; 564 $scope.paymentResponse.applicantId = $scope.userId;
565 console.log("$scope.paymentResponse", $scope.paymentResponse) 565 console.log("$scope.paymentResponse", $scope.paymentResponse)
566 $http({ 566 $http({
567 method: 'PUT', 567 method: 'PUT',
568 url: BASE_URL + '/payments/' + $scope.paymentResult.data.id, 568 url: BASE_URL + '/payments/' + $scope.paymentResult.data.id,
569 data: $scope.paymentResponse, 569 data: $scope.paymentResponse,
570 headers: {} 570 headers: {}
571 }).then(function mySuccess(searchResult) { 571 }).then(function mySuccess(searchResult) {
572 572
573 }, function myError(error) { 573 }, function myError(error) {
574 574
575 }); 575 });
576 } 576 }
577 } else { 577 } else {
578 578
579 } 579 }
580 580
581 }, function myError(error) {}); 581 }, function myError(error) {});
582 } 582 }
583 }); 583 });
584 584
585 scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { 585 scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) {
586 $scope.data = {}; 586 $scope.data = {};
587 $scope.submit = function() { 587 $scope.submit = function() {
588 console.log($scope.data.name) 588 console.log($scope.data.name)
589 var randomNumber = ""+Math.random(); 589 var randomNumber = ""+Math.random();
590 var nameSpliced = $scope.data.name.slice(0,3); 590 var nameSpliced = $scope.data.name.slice(0,3);
591 var numberSpliced = randomNumber.slice(2,5); 591 var numberSpliced = randomNumber.slice(2,5);
592 $scope.data.referalToken = nameSpliced+numberSpliced; 592 $scope.data.referalToken = nameSpliced+numberSpliced;
593 $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); 593 $scope.data.referalToken = $scope.data.referalToken.toUpperCase();
594 594
595 $http({ 595 $http({
596 method: 'POST', 596 method: 'POST',
597 url: BASE_URL + '/ambassadors', 597 url: BASE_URL + '/ambassadors',
598 data: $scope.data, 598 data: $scope.data,
599 headers: {} 599 headers: {}
600 }).then(function mySuccess(result) { 600 }).then(function mySuccess(result) {
601 console.log("result", result) 601 console.log("result", result)
602 $scope.detail = result; 602 $scope.detail = result;
603 $('#myModal').modal('show'); 603 $('#myModal').modal('show');
604 $scope.data.name = ''; 604 $scope.data.name = '';
605 $scope.data.email = ''; 605 $scope.data.email = '';
606 $scope.data.mobile = ''; 606 $scope.data.mobile = '';
607 607
608 }, function myError(error) {}); 608 }, function myError(error) {});
609 console.log($scope.data) 609 console.log($scope.data)
610 } 610 }
611 }); 611 });
612 612
613 613