Commit c70ffa5acc2765336dbbe15d9d35fc66e2986993

Authored by apple
1 parent a006f2b110
Exists in master and in 1 other branch paytm

add one text field

Showing 2 changed files with 13 additions and 17 deletions   Show diff stats
pages/registration.html
1 <div class="header"> 1 <div class="header">
2 <div> 2 <div>
3 <!-- <img src="images/LOGO.png" class="logojalsa"><span class="jalsaheadr" style="">2018</span> --> 3 <!-- <img src="images/LOGO.png" class="logojalsa"><span class="jalsaheadr" style="">2018</span> -->
4 <!-- <img src="images/SartupJalsa_Logo.png" style="width:200px;position:relative;"> --> 4 <!-- <img src="images/SartupJalsa_Logo.png" style="width:200px;position:relative;"> -->
5 </div> 5 </div>
6 <div class="clearfix"></div> 6 <div class="clearfix"></div>
7 </div> 7 </div>
8 <!-- CLOSE HEADER --> 8 <!-- CLOSE HEADER -->
9 <form name="applicantForm"> 9 <form name="applicantForm">
10 <div class="col-xs-12 col-md-8 col-md-offset-2"> 10 <div class="col-xs-12 col-md-8 col-md-offset-2">
11 <div class="form-all"> 11 <div class="form-all">
12 <h4 class="title">General Information</h4> 12 <h4 class="title">General Information</h4>
13 <!-- <table style="width: 100%;"> 13 <!-- <table style="width: 100%;">
14 <tr> 14 <tr>
15 <td> 15 <td>
16 <div class="step-one-form" > --> 16 <div class="step-one-form" > -->
17 <!-- form step 1 --> 17 <!-- form step 1 -->
18 <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" > 18 <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" >
19 <div class="form-group"> 19 <div class="form-group">
20 <label>Name:</label> 20 <label>Name:</label>
21 <input type="name" class="form-control" ng-model="data.name"> 21 <input type="name" class="form-control" ng-model="data.name">
22 </div> 22 </div>
23 <div class="form-group"> 23 <div class="form-group">
24 <label>Startup Name:</label> 24 <label>Startup Name:</label>
25 <input type="text" class="form-control" ng-model="data.startupName"> 25 <input type="text" class="form-control" ng-model="data.startupName">
26 </div> 26 </div>
27 <div class="form-group"> 27 <div class="form-group">
28 <label>Phone No:</label> 28 <label>Phone No:</label>
29 <input type="number" class="form-control" ng-model="data.number"> 29 <input type="number" class="form-control" ng-model="data.number">
30 </div> 30 </div>
31 <div class="form-group"> 31 <div class="form-group">
32 <label>Email:</label> 32 <label>Email:</label>
33 <input type="email" class="form-control" ng-model="data.email"> 33 <input type="email" class="form-control" ng-model="data.email">
34 </div> 34 </div>
35 <div class="form-group"> 35 <div class="form-group">
36 <label>Website:</label> 36 <label>Website:</label>
37 <input type="text" class="form-control" ng-model="data.website"> 37 <input type="text" class="form-control" ng-model="data.website">
38 </div> 38 </div>
39 <div class="form-group"> 39 <div class="form-group">
40 <label>Founding Year:</label> 40 <label>Founding Year:</label>
41 <input type="text" class="form-control" ng-model="data.founder"> 41 <input type="text" class="form-control" ng-model="data.founder">
42 </div> 42 </div>
43 <div class="form-group"> 43 <div class="form-group">
44 <label>Business Types:</label> 44 <label>Business Types:</label>
45 <select class="form-control" ng-model="data.business" required> 45 <select class="form-control" ng-model="data.business" required>
46 <option name="business" selected disabled value="">Choose business type</option> 46 <option name="business" selected disabled value="">Choose business type</option>
47 <option value="B2B">B2B</option> 47 <option value="B2B">B2B</option>
48 <option value="B2C">B2C</option> 48 <option value="B2C">B2C</option>
49 </select> 49 </select>
50 </div> 50 </div>
51 <div class="form-group"> 51 <div class="form-group">
52 <label>Stage:</label> 52 <label>Stage:</label>
53 <select class="form-control" ng-model="data.stage" required> 53 <select class="form-control" ng-model="data.stage" required>
54 <option name="stage" selected disabled value="">Choose Startup Stage</option> 54 <option name="stage" selected disabled value="">Choose Startup Stage</option>
55 <option value="Idea">Idea</option> 55 <option value="Idea">Idea</option>
56 <option value="Prototype">Prototype</option> 56 <option value="Prototype">Prototype</option>
57 </select> 57 </select>
58 </div> 58 </div>
59 <div class="form-group"> 59 <div class="form-group">
60 <label>Sector:</label> 60 <label>Sector:</label>
61 <select class="form-control" ng-model="data.sector"> 61 <select class="form-control" ng-model="data.sector" ng-change="GetValue()">
62 <option name="sector" selected disabled value="">Choose sector</option> 62 <option name="sector" selected disabled value="">Choose sector</option>
63 <option value="Agriculture">Agriculture</option> 63 <option value="Agriculture">Agriculture</option>
64 <option value="Healthcare">Healthcare</option> 64 <option value="Healthcare">Healthcare</option>
65 <option value="e-Governance">e-Governance</option> 65 <option value="e-Governance">e-Governance</option>
66 <option value="Retail">Retail</option> 66 <option value="Retail">Retail</option>
67 <option value="Food and Beverages">Food and Beverages</option> 67 <option value="Food and Beverages">Food and Beverages</option>
68 <option value="Hardware">Hardware</option> 68 <option value="Hardware">Hardware</option>
69 <option value="Software">Software</option> 69 <option value="Software">Software</option>
70 <option value="Media and Entertainment">Media and Entertainment</option> 70 <option value="Media and Entertainment">Media and Entertainment</option>
71 <option value="AI">AI</option> 71 <option value="AI">AI</option>
72 <option value="AR&VR">AR&VR</option> 72 <option value="AR&VR">AR&VR</option>
73 <option value="Automobile">Automobile</option> 73 <option value="Automobile">Automobile</option>
74 <option value="Other">Other</option> 74 <option value="Other">Other</option>
75 </select> 75 </select>
76 </div> 76 </div>
77 <!-- <div class="form-group"> 77 <div class="form-group" ng-if="ngShowhide">
78 <div class="toggle-panel" ng-if="ngShowhide"> 78 <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name">
79 <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name"> 79 </div>
80 </div>
81 </div> -->
82 <div class="form-group"> 80 <div class="form-group">
83 <label>Introduction:</label> 81 <label>Introduction:</label>
84 <textarea type="text" class="form-control" ng-model="data.intro" placeholder="Give us a brief introduction in two lines" rows="3"></textarea> 82 <textarea type="text" class="form-control" ng-model="data.intro" placeholder="Give us a brief introduction in two lines" rows="3"></textarea>
85 </div> 83 </div>
86 <div class="form-group"> 84 <div class="form-group">
87 <label>Revenue:</label> 85 <label>Revenue:</label>
88 <textarea type="text" class="form-control" ng-model="data.revenue" placeholder="Are you generating any revenue? If yes, then mention your numbers" rows="3"></textarea> 86 <textarea type="text" class="form-control" ng-model="data.revenue" placeholder="Are you generating any revenue? If yes, then mention your numbers" rows="3"></textarea>
89 </div> 87 </div>
90 <div class="form-group"> 88 <div class="form-group">
91 <label>Previous Investments:</label> 89 <label>Previous Investments:</label>
92 <textarea type="text" class="form-control" ng-model="data.investment" placeholder="Did you receive any previous investment? If yes, then mention the investment amount and the equity you diluted?" rows="3"></textarea> 90 <textarea type="text" class="form-control" ng-model="data.investment" placeholder="Did you receive any previous investment? If yes, then mention the investment amount and the equity you diluted?" rows="3"></textarea>
93 </div> 91 </div>
94 <div class="form-group"> 92 <div class="form-group">
95 <label>Coupon Code:</label> 93 <label>Coupon Code:</label>
96 <input type="text" class="form-control" placeholder="If you have a coupon code then apply here"ng-model="data.referalToken"> 94 <input type="text" class="form-control" placeholder="If you have a coupon code then apply here"ng-model="data.referalToken">
97 <!-- <input type="text" class="form-control" ng-model="data.referalToken" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> 95 <!-- <input type="text" class="form-control" ng-model="data.referalToken" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)">
98 <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> 96 <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i>
99 <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> 97 <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i>
100 <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> --> 98 <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> -->
101 </div> 99 </div>
102 <div class="form-group"> 100 <div class="form-group">
103 <label>Attach Pitch Deck:</label> 101 <label>Attach Pitch Deck:</label>
104 <input type="file" class="form-control-file" file-model="base64textString" id="filePicker" accept=".png, .jpg, .jpeg, .pdf, .ppt" /> 102 <input type="file" class="form-control-file" file-model="base64textString" id="filePicker" accept=".png, .jpg, .jpeg, .pdf, .ppt" />
105 </div> 103 </div>
106 </div> 104 </div>
107 <!-- <div class="col-xs-12 col-md-6 input-wrapper" > 105 <!-- <div class="col-xs-12 col-md-6 input-wrapper" >
108 <div id="snackbar">Error ! Please fill in all fields.</div> 106 <div id="snackbar">Error ! Please fill in all fields.</div>
109 <div class="icon-circle-c"> 107 <div class="icon-circle-c">
110 <i class="material-icons" style="line-height: 31px;">person</i> 108 <i class="material-icons" style="line-height: 31px;">person</i>
111 </div> 109 </div>
112 <input type="text" class="text-input" required ng-model="data.name" placeholder="Name *" id="myBtn" name="name" ng-change="entername(data.name); firstNamekeyPress(data.name)"> 110 <input type="text" class="text-input" required ng-model="data.name" placeholder="Name *" id="myBtn" name="name" ng-change="entername(data.name); firstNamekeyPress(data.name)">
113 </div> 111 </div>
114 <div class="col-xs-12 col-md-6 input-wrapper" > 112 <div class="col-xs-12 col-md-6 input-wrapper" >
115 <div id="snackbar">Error ! Please fill in all fields.</div> 113 <div id="snackbar">Error ! Please fill in all fields.</div>
116 <div class="icon-circle-d"> 114 <div class="icon-circle-d">
117 <i class="material-icons" style="line-height: 30px;">email</i> 115 <i class="material-icons" style="line-height: 30px;">email</i>
118 </div> 116 </div>
119 <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" ng-blur="emailcheck(data.email)" ng-focus="removeError()" placeholder="Email Address *" ng-change="enteremail(data.email); emailkeyPress(data.email)"> 117 <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" ng-blur="emailcheck(data.email)" ng-focus="removeError()" placeholder="Email Address *" ng-change="enteremail(data.email); emailkeyPress(data.email)">
120 <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> 118 <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label>
121 </div> 119 </div>
122 <div class="col-xs-12 col-md-6 input-wrapper"> 120 <div class="col-xs-12 col-md-6 input-wrapper">
123 <div class="icon-circle-f"> 121 <div class="icon-circle-f">
124 <i class="material-icons" style="line-height: 30px;">location_city</i> 122 <i class="material-icons" style="line-height: 30px;">location_city</i>
125 </div> 123 </div>
126 <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> 124 <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required>
127 <option name="city" selected disabled value="">{{data.city}}</option> 125 <option name="city" selected disabled value="">{{data.city}}</option>
128 <option value="Ahmedabad">Ahmedabad</option> 126 <option value="Ahmedabad">Ahmedabad</option>
129 <option value="Bengaluru">Bengaluru</option> 127 <option value="Bengaluru">Bengaluru</option>
130 <option value="Chennai">Chennai</option> 128 <option value="Chennai">Chennai</option>
131 <option value="Delhi">Delhi</option> 129 <option value="Delhi">Delhi</option>
132 <option value="Hyderabad">Hyderabad</option> 130 <option value="Hyderabad">Hyderabad</option>
133 <option value="Jaipur">Jaipur</option> 131 <option value="Jaipur">Jaipur</option>
134 <option value="Kanpur">Kanpur</option> 132 <option value="Kanpur">Kanpur</option>
135 <option value="Kolkata">Kolkata</option> 133 <option value="Kolkata">Kolkata</option>
136 <option value="Mumbai">Mumbai</option> 134 <option value="Mumbai">Mumbai</option>
137 </select> 135 </select>
138 </div> 136 </div>
139 <div class="col-xs-12 col-md-6 input-wrapper" > 137 <div class="col-xs-12 col-md-6 input-wrapper" >
140 <div class="icon-circle-e"> 138 <div class="icon-circle-e">
141 <i class="material-icons" style="line-height: 30px;">phone</i> 139 <i class="material-icons" style="line-height: 30px;">phone</i>
142 </div> 140 </div>
143 <input type="phone" name="phone" ng-pattern="/^\d*(?:\.\d{1,2})?$/" maxlength="10" class="text-input" required class="" ng-model="data.number" ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" placeholder="Mobile No.*" ng-change="enternumber(data.number); phonekeyPress(data.number)"> 141 <input type="phone" name="phone" ng-pattern="/^\d*(?:\.\d{1,2})?$/" maxlength="10" class="text-input" required class="" ng-model="data.number" ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" placeholder="Mobile No.*" ng-change="enternumber(data.number); phonekeyPress(data.number)">
144 <label class="error-message f-family" id="invalidNumber">Please enter only numeric value.</label> 142 <label class="error-message f-family" id="invalidNumber">Please enter only numeric value.</label>
145 </div> 143 </div>
146 <div class="col-xs-12 col-md-6 input-wrapper"> 144 <div class="col-xs-12 col-md-6 input-wrapper">
147 <div class="icon-circle-i"> 145 <div class="icon-circle-i">
148 <i class="material-icons" style="line-height: 30px;">perm_identity</i> 146 <i class="material-icons" style="line-height: 30px;">perm_identity</i>
149 </div> 147 </div>
150 <input type="text" class="text-input" ng-model="data.companyName" placeholder="Company Name *" ng-change="enternumber(data.companyName); companykeyPress(data.companyName)" required> 148 <input type="text" class="text-input" ng-model="data.companyName" placeholder="Company Name *" ng-change="enternumber(data.companyName); companykeyPress(data.companyName)" required>
151 </div> 149 </div>
152 <div class="col-xs-12 col-md-6 input-wrapper"> 150 <div class="col-xs-12 col-md-6 input-wrapper">
153 <div class="icon-circle-n"> 151 <div class="icon-circle-n">
154 <i class="material-icons" style="line-height: 30px;">web</i> 152 <i class="material-icons" style="line-height: 30px;">web</i>
155 </div> 153 </div>
156 <input name="website" class="text-input" ng-model="data.website" placeholder="Website link" ng-change="enterwebsite(data.website); revenuekeyPress(data.website)"></input> 154 <input name="website" class="text-input" ng-model="data.website" placeholder="Website link" ng-change="enterwebsite(data.website); revenuekeyPress(data.website)"></input>
157 </div> 155 </div>
158 <div class="col-xs-12 col-md-6 input-wrapper"> 156 <div class="col-xs-12 col-md-6 input-wrapper">
159 <div class="icon-circle-y"> 157 <div class="icon-circle-y">
160 <i class="material-icons" style="line-height: 30px;">assignment</i> 158 <i class="material-icons" style="line-height: 30px;">assignment</i>
161 </div> 159 </div>
162 <select ng-model="data.stage" ng-change="selectechnology(data.stage); fundkeyPress(data.stage)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> 160 <select ng-model="data.stage" ng-change="selectechnology(data.stage); fundkeyPress(data.stage)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required>
163 <option name="stage" selected disabled value="">Choose Startup Stage *</option> 161 <option name="stage" selected disabled value="">Choose Startup Stage *</option>
164 <option value="Idea">Idea</option> 162 <option value="Idea">Idea</option>
165 <option value="Prototype">Prototype</option> 163 <option value="Prototype">Prototype</option>
166 </select> 164 </select>
167 </div> 165 </div>
168 <div class="col-xs-12 col-md-6 input-wrapper"> 166 <div class="col-xs-12 col-md-6 input-wrapper">
169 <div class="icon-circle-q"> 167 <div class="icon-circle-q">
170 <i class="material-icons" style="line-height: 30px;">business</i> 168 <i class="material-icons" style="line-height: 30px;">business</i>
171 </div> 169 </div>
172 <select ng-model="data.business" ng-change="selectechnology(data.business); ideakeyPress(data.business)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> 170 <select ng-model="data.business" ng-change="selectechnology(data.business); ideakeyPress(data.business)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required>
173 <option name="business" selected disabled value="">Type of business *</option> 171 <option name="business" selected disabled value="">Type of business *</option>
174 <option value="B2B">B2B</option> 172 <option value="B2B">B2B</option>
175 <option value="B2C">B2C</option> 173 <option value="B2C">B2C</option>
176 <option value="Other">Other</option> 174 <option value="Other">Other</option>
177 </select> 175 </select>
178 </div> 176 </div>
179 <div class="col-xs-12 col-md-12 f-family line-adjust"> 177 <div class="col-xs-12 col-md-12 f-family line-adjust">
180 <strong>How many founders/teammates will be attending pitch session? *</strong> 178 <strong>How many founders/teammates will be attending pitch session? *</strong>
181 <p class="line-space" ></p> 179 <p class="line-space" ></p>
182 </div> 180 </div>
183 <div class="col-xs-12 col-md-12 input-wrapper" > 181 <div class="col-xs-12 col-md-12 input-wrapper" >
184 <div class="icon-circle-o"> 182 <div class="icon-circle-o">
185 <i class="material-icons" style="line-height: 30px;">confirmation_number</i> 183 <i class="material-icons" style="line-height: 30px;">confirmation_number</i>
186 </div> 184 </div>
187 <select ng-model="data.founder" ng-change="selectfounder(data.founder); discountkeyPress(data.founder)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> 185 <select ng-model="data.founder" ng-change="selectfounder(data.founder); discountkeyPress(data.founder)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required>
188 <option name="founder" selected disabled value="">Choose</option> 186 <option name="founder" selected disabled value="">Choose</option>
189 <option value="1">1</option> 187 <option value="1">1</option>
190 <option value="2">2</option> 188 <option value="2">2</option>
191 <option value="3">3</option> 189 <option value="3">3</option>
192 <option value="more than 3">more than 3</option> 190 <option value="more than 3">more than 3</option>
193 </select> 191 </select>
194 </div> --> 192 </div> -->
195 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> 193 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust">
196 <strong>In which city is your startup registered at?</strong> 194 <strong>In which city is your startup registered at?</strong>
197 <p class="line-space" ></p> 195 <p class="line-space" ></p>
198 </div> --> 196 </div> -->
199 <!-- <div class="col-xs-12 col-md-12 input-wrapper"> 197 <!-- <div class="col-xs-12 col-md-12 input-wrapper">
200 <div class="icon-circle-m"> 198 <div class="icon-circle-m">
201 <i class="material-icons" style="line-height: 30px;">assessment</i> 199 <i class="material-icons" style="line-height: 30px;">assessment</i>
202 </div> 200 </div>
203 <input type="text" class="text-input" ng-model="data.cityRegister" placeholder="Your Answer.." ng-change="entertechnology(data.cityRegister); annualkeyPress(data.cityRegister)"> 201 <input type="text" class="text-input" ng-model="data.cityRegister" placeholder="Your Answer.." ng-change="entertechnology(data.cityRegister); annualkeyPress(data.cityRegister)">
204 </div> --> 202 </div> -->
205 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> 203 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust">
206 <strong>Give us a brief introduction about your startup. *</strong> 204 <strong>Give us a brief introduction about your startup. *</strong>
207 <p class="line-space" >Kindly write a powerful Twitter Pitch (characters limit - 200).</p> 205 <p class="line-space" >Kindly write a powerful Twitter Pitch (characters limit - 200).</p>
208 </div> 206 </div>
209 <div class="col-xs-12 col-md-12 input-wrapper"> 207 <div class="col-xs-12 col-md-12 input-wrapper">
210 <div class="icon-circle-x"> 208 <div class="icon-circle-x">
211 <i class="material-icons" style="line-height: 30px;">line_weight</i> 209 <i class="material-icons" style="line-height: 30px;">line_weight</i>
212 </div> 210 </div>
213 <textarea name="intro" class="text-input textarea" ng-model="data.intro" placeholder="Your Answer.." maxlength="200" ng-change="enterproblem(data.intro); startupNamekeyPress(data.intro)" required></textarea> 211 <textarea name="intro" class="text-input textarea" ng-model="data.intro" placeholder="Your Answer.." maxlength="200" ng-change="enterproblem(data.intro); startupNamekeyPress(data.intro)" required></textarea>
214 </div> 212 </div>
215 <div class="col-xs-12 col-md-12 f-family line-adjust"> 213 <div class="col-xs-12 col-md-12 f-family line-adjust">
216 <strong>Who are your customers? *</strong> 214 <strong>Who are your customers? *</strong>
217 <p class="line-space" >We are looking for a simple and clear answer of who you are selling to (characters limit - 512).</p> 215 <p class="line-space" >We are looking for a simple and clear answer of who you are selling to (characters limit - 512).</p>
218 </div> 216 </div>
219 <div class="col-xs-12 col-md-12 input-wrapper"> 217 <div class="col-xs-12 col-md-12 input-wrapper">
220 <div class="icon-circle-k"> 218 <div class="icon-circle-k">
221 <i class="material-icons" style="line-height: 30px;">help</i> 219 <i class="material-icons" style="line-height: 30px;">help</i>
222 </div> 220 </div>
223 <textarea name="customer" class="text-input textarea" ng-model="data.customer" placeholder="Your Answer.." maxlength="512" ng-change="entersolution(data.customer); websitekeyPress(data.customer)" required></textarea> 221 <textarea name="customer" class="text-input textarea" ng-model="data.customer" placeholder="Your Answer.." maxlength="512" ng-change="entersolution(data.customer); websitekeyPress(data.customer)" required></textarea>
224 </div> --> 222 </div> -->
225 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> 223 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust">
226 <strong>What problem you are solving for them? *</strong> 224 <strong>What problem you are solving for them? *</strong>
227 <p class="line-space" >We want to understand how clearly you know the pain point, and how big of a problem it is for the customers.</p> 225 <p class="line-space" >We want to understand how clearly you know the pain point, and how big of a problem it is for the customers.</p>
228 </div> 226 </div>
229 <div class="col-xs-12 col-md-12 input-wrapper f-family"> 227 <div class="col-xs-12 col-md-12 input-wrapper f-family">
230 <div class="icon-circle-p"> 228 <div class="icon-circle-p">
231 <i class="material-icons" style="line-height: 30px;">business_center</i> 229 <i class="material-icons" style="line-height: 30px;">business_center</i>
232 </div> 230 </div>
233 <textarea name="problem" class="text-input textarea" ng-model="data.problem" placeholder="Your Answer.." ng-change="enterbusiness(data.problem); businesskeyPress(data.problem)" required> 231 <textarea name="problem" class="text-input textarea" ng-model="data.problem" placeholder="Your Answer.." ng-change="enterbusiness(data.problem); businesskeyPress(data.problem)" required>
234 </textarea> 232 </textarea>
235 </div> --> 233 </div> -->
236 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> 234 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust">
237 <strong>Link your pitch deck presentation. *</strong> 235 <strong>Link your pitch deck presentation. *</strong>
238 <p class="line-space" > Kindly upload the link to your pitch deck (Dropbox/Google Drive, if on google drive make the link open to all).</p> 236 <p class="line-space" > Kindly upload the link to your pitch deck (Dropbox/Google Drive, if on google drive make the link open to all).</p>
239 </div> 237 </div>
240 <div class="col-xs-12 col-md-12 input-wrapper f-family"> 238 <div class="col-xs-12 col-md-12 input-wrapper f-family">
241 <div class="icon-circle-h"> 239 <div class="icon-circle-h">
242 <i class="material-icons" style="line-height: 30px;">web</i> 240 <i class="material-icons" style="line-height: 30px;">web</i>
243 </div> 241 </div>
244 <input name="link" class="text-input" ng-pattern="/^(http[s]?:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/" ng-blur="emailcheck(data.link)" ng-focus="removeError()" ng-model="data.link" placeholder="link" ng-change="enterbusiness(data.link); linkedInkeyPress(data.link)" required> 242 <input name="link" class="text-input" ng-pattern="/^(http[s]?:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/" ng-blur="emailcheck(data.link)" ng-focus="removeError()" ng-model="data.link" placeholder="link" ng-change="enterbusiness(data.link); linkedInkeyPress(data.link)" required>
245 <label class="error-message f-family" id="invalidEmail">Please enter a valid link.</label> 243 <label class="error-message f-family" id="invalidEmail">Please enter a valid link.</label>
246 </div> --> 244 </div> -->
247 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> 245 <!-- <div class="col-xs-12 col-md-12 f-family line-adjust">
248 <strong>Coupon Code.</strong> 246 <strong>Coupon Code.</strong>
249 <p class="line-space" >Only applicable for venue partner ecosystem</p> 247 <p class="line-space" >Only applicable for venue partner ecosystem</p>
250 </div> 248 </div>
251 <div class="col-xs-12 input-wrapper"> 249 <div class="col-xs-12 input-wrapper">
252 <div class="referel-icon" style="z-index: 999;"> 250 <div class="referel-icon" style="z-index: 999;">
253 <i class="material-icons" style="line-height: 30px;">code</i> 251 <i class="material-icons" style="line-height: 30px;">code</i>
254 </div> 252 </div>
255 <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> 253 <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)">
256 <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> 254 <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i>
257 <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> 255 <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i>
258 <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> 256 <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button>
259 </div> --> 257 </div> -->
260 <div class="clearfix"></div> 258 <div class="clearfix"></div>
261 <!-- </div> --> 259 <!-- </div> -->
262 <!-- close step-one-form --> 260 <!-- close step-one-form -->
263 <!-- </td> 261 <!-- </td>
264 </tr> 262 </tr>
265 </table> --> 263 </table> -->
266 <div class="text-center"> 264 <div class="text-center">
267 <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()"> 265 <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()">
268 </div> 266 </div>
269 </div> 267 </div>
270 <!-- CLOSE form-all --> 268 <!-- CLOSE form-all -->
271 <!-- </div> --> 269 <!-- </div> -->
272 <!-- <div class="clearfix"></div> 270 <!-- <div class="clearfix"></div>
273 <div class="text-center"> 271 <div class="text-center">
274 <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()"> 272 <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()">
275 </div> --> 273 </div> -->
276 </div> 274 </div>
277 <!-- col-xs-12 col-md-8 col-md-offset-2 --> 275 <!-- col-xs-12 col-md-8 col-md-offset-2 -->
278 <!-- <footer> 276 <!-- <footer>
279 <img id="footer" class="img-responsive banner"> 277 <img id="footer" class="img-responsive banner">
280 <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> 278 <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a>
281 </center> 279 </center>
282 </footer> --> 280 </footer> -->
283 </form> 281 </form>
284 <!-- CLOSE FORM --> 282 <!-- CLOSE FORM -->
285 <!-- </div> CLOSE CHECK VIEW --> 283 <!-- </div> CLOSE CHECK VIEW -->
286 <span ng-show="span == true"> 284 <span ng-show="span == true">
287 <span id="chennai"></span> 285 <span id="chennai"></span>
288 <span id="mumbai"></span> 286 <span id="mumbai"></span>
289 <span id="hyderabad"></span> 287 <span id="hyderabad"></span>
290 <span id="kolkata"></span> 288 <span id="kolkata"></span>
291 <span id="delhi"></span> 289 <span id="delhi"></span>
292 <span id="ahmedabad"></span> 290 <span id="ahmedabad"></span>
293 <span id="bengaluru"></span> 291 <span id="bengaluru"></span>
294 <span id="jaipur"></span>kanpur 292 <span id="jaipur"></span>kanpur
295 <span id="kanpur"></span> 293 <span id="kanpur"></span>
296 <span id="dharamsala"></span> 294 <span id="dharamsala"></span>
297 </span> 295 </span>
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,$locationProvider) { 5 scotchApp.config(function($routeProvider,$locationProvider) {
6 6
7 // use the HTML5 History API 7 // use the HTML5 History API
8 // $locationProvider.html5Mode({ 8 // $locationProvider.html5Mode({
9 // enabled: true, 9 // enabled: true,
10 // requireBase: false 10 // requireBase: false
11 // }); 11 // });
12 //$locationProvider.hashPrefix('!'); 12 //$locationProvider.hashPrefix('!');
13 $routeProvider 13 $routeProvider
14 // route for the Home page 14 // route for the Home page
15 .when('/', { 15 .when('/', {
16 templateUrl: 'pages/Home.html', 16 templateUrl: 'pages/Home.html',
17 controller: 'mainController' 17 controller: 'mainController'
18 }) 18 })
19 19
20 // route for the caricatures page 20 // route for the caricatures page
21 .when('/caricatures', { 21 .when('/caricatures', {
22 templateUrl: 'pages/caricatures.html', 22 templateUrl: 'pages/caricatures.html',
23 controller: 'mainController' 23 controller: 'mainController'
24 }) 24 })
25 25
26 // route for the paymentVerify page 26 // route for the paymentVerify page
27 .when('/pendingPayment/:id', { 27 .when('/pendingPayment/:id', {
28 templateUrl: 'pages/verify.html', 28 templateUrl: 'pages/verify.html',
29 controller: 'verifyController' 29 controller: 'verifyController'
30 }) 30 })
31 31
32 // route for the registration page 32 // route for the registration page
33 .when('/registration', { 33 .when('/registration', {
34 templateUrl: 'pages/registration.html', 34 templateUrl: 'pages/registration.html',
35 controller: 'registrationController' 35 controller: 'registrationController'
36 }) 36 })
37 37
38 //route for the ambassador page 38 //route for the ambassador page
39 // .when('/startupJalsaPromocode', { 39 // .when('/startupJalsaPromocode', {
40 // templateUrl: 'pages/ambassador.html', 40 // templateUrl: 'pages/ambassador.html',
41 // controller: 'ambassadorController' 41 // controller: 'ambassadorController'
42 // }) 42 // })
43 43
44 // route for the confirmation page 44 // route for the confirmation page
45 .when('/confirmation', { 45 .when('/confirmation', {
46 templateUrl: 'pages/confirmation.html', 46 templateUrl: 'pages/confirmation.html',
47 controller: 'registrationController' 47 controller: 'registrationController'
48 }) 48 })
49 49
50 .otherwise({ 50 .otherwise({
51 redirectTo: '/' 51 redirectTo: '/'
52 }); 52 });
53 53
54 }); 54 });
55 55
56 scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { 56 scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) {
57 // Add configuration code as desired 57 // Add configuration code as desired
58 AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code 58 AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code
59 59
60 // Track all routes (default is true). 60 // Track all routes (default is true).
61 AnalyticsProvider.trackPages(true); 61 AnalyticsProvider.trackPages(true);
62 62
63 // Track all URL query params (default is false). 63 // Track all URL query params (default is false).
64 AnalyticsProvider.trackUrlParams(true); 64 AnalyticsProvider.trackUrlParams(true);
65 65
66 }]).run(['Analytics', function(Analytics) { }]); 66 }]).run(['Analytics', function(Analytics) { }]);
67 67
68 scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") 68 scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1")
69 //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") 69 //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1")
70 70
71 // create the controller and inject Angular's $scope 71 // create the controller and inject Angular's $scope
72 scotchApp.controller('mainController', function($scope, $http, $window, $location, $route, $rootScope, BASE_URL, Analytics) { 72 scotchApp.controller('mainController', function($scope, $http, $window, $location, $route, $rootScope, BASE_URL, Analytics) {
73 $scope.data = { 73 $scope.data = {
74 show: true, 74 show: true,
75 hide: false 75 hide: false
76 }; 76 };
77 window.onload = function(){ 77 window.onload = function(){
78 var element = document.getElementById("defaultcountry"); 78 var element = document.getElementById("defaultcountry");
79 element.classList.add("btn-active"); 79 element.classList.add("btn-active");
80 //document.getElementById("ahmedabad").src = "images/Ahmedabad_1.png"; 80 //document.getElementById("ahmedabad").src = "images/Ahmedabad_1.png";
81 } 81 }
82 82
83 var chennai = new Date("Sept 19, 2018 12:00:00").getTime(); 83 var chennai = new Date("Sept 19, 2018 12:00:00").getTime();
84 // Update the count down every 1 second 84 // Update the count down every 1 second
85 var x = setInterval(function() { 85 var x = setInterval(function() {
86 // Get todays date and time 86 // Get todays date and time
87 var now = new Date().getTime(); 87 var now = new Date().getTime();
88 // Find the distance between now an the count down date 88 // Find the distance between now an the count down date
89 var distance = chennai - now; 89 var distance = chennai - now;
90 // Time calculations for days, hours, minutes and seconds 90 // Time calculations for days, hours, minutes and seconds
91 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 91 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
92 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 92 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
93 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 93 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
94 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 94 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
95 $scope.timer = days + "d " + hours + "h " 95 $scope.timer = days + "d " + hours + "h "
96 + minutes + "m " + seconds + "s " 96 + minutes + "m " + seconds + "s "
97 // Output the result in an element with id="demo" 97 // Output the result in an element with id="demo"
98 document.getElementById("chennai").innerHTML = days + "d " + hours + "h " 98 document.getElementById("chennai").innerHTML = days + "d " + hours + "h "
99 + minutes + "m " + seconds + "s "; 99 + minutes + "m " + seconds + "s ";
100 // If the count down is over, write some text 100 // If the count down is over, write some text
101 if (distance < 0) { 101 if (distance < 0) {
102 clearInterval(x); 102 clearInterval(x);
103 document.getElementById("chennai").innerHTML = "EXPIRED"; 103 document.getElementById("chennai").innerHTML = "EXPIRED";
104 } 104 }
105 }, 1000); 105 }, 1000);
106 106
107 var hyderabad = new Date("Sept 22, 2018 14:00:00").getTime(); 107 var hyderabad = new Date("Sept 22, 2018 14:00:00").getTime();
108 // Update the count down every 1 second 108 // Update the count down every 1 second
109 var x = setInterval(function() { 109 var x = setInterval(function() {
110 // Get todays date and time 110 // Get todays date and time
111 var now = new Date().getTime(); 111 var now = new Date().getTime();
112 // Find the distance between now an the count down date 112 // Find the distance between now an the count down date
113 var distance = hyderabad - now; 113 var distance = hyderabad - now;
114 // Time calculations for days, hours, minutes and seconds 114 // Time calculations for days, hours, minutes and seconds
115 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 115 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
116 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 116 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
117 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 117 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
118 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 118 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
119 $scope.timer = days + "d " + hours + "h " 119 $scope.timer = days + "d " + hours + "h "
120 + minutes + "m " + seconds + "s " 120 + minutes + "m " + seconds + "s "
121 // Output the result in an element with id="demo" 121 // Output the result in an element with id="demo"
122 document.getElementById("hyderabad").innerHTML = days + "d " + hours + "h " 122 document.getElementById("hyderabad").innerHTML = days + "d " + hours + "h "
123 + minutes + "m " + seconds + "s "; 123 + minutes + "m " + seconds + "s ";
124 // If the count down is over, write some text 124 // If the count down is over, write some text
125 if (distance < 0) { 125 if (distance < 0) {
126 clearInterval(x); 126 clearInterval(x);
127 document.getElementById("hyderabad").innerHTML = "EXPIRED"; 127 document.getElementById("hyderabad").innerHTML = "EXPIRED";
128 } 128 }
129 }, 1000); 129 }, 1000);
130 130
131 var mumbai = new Date("Sept 26, 2018 14:00:00").getTime(); 131 var mumbai = new Date("Sept 26, 2018 14:00:00").getTime();
132 // Update the count down every 1 second 132 // Update the count down every 1 second
133 var x = setInterval(function() { 133 var x = setInterval(function() {
134 // Get todays date and time 134 // Get todays date and time
135 var now = new Date().getTime(); 135 var now = new Date().getTime();
136 // Find the distance between now an the count down date 136 // Find the distance between now an the count down date
137 var distance = mumbai - now; 137 var distance = mumbai - now;
138 // Time calculations for days, hours, minutes and seconds 138 // Time calculations for days, hours, minutes and seconds
139 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 139 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
140 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 140 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
141 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 141 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
142 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 142 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
143 $scope.timer = days + "d " + hours + "h " 143 $scope.timer = days + "d " + hours + "h "
144 + minutes + "m " + seconds + "s " 144 + minutes + "m " + seconds + "s "
145 // Output the result in an element with id="demo" 145 // Output the result in an element with id="demo"
146 document.getElementById("mumbai").innerHTML = days + "d " + hours + "h " 146 document.getElementById("mumbai").innerHTML = days + "d " + hours + "h "
147 + minutes + "m " + seconds + "s "; 147 + minutes + "m " + seconds + "s ";
148 // If the count down is over, write some text 148 // If the count down is over, write some text
149 if (distance < 0) { 149 if (distance < 0) {
150 clearInterval(x); 150 clearInterval(x);
151 document.getElementById("mumbai").innerHTML = "EXPIRED"; 151 document.getElementById("mumbai").innerHTML = "EXPIRED";
152 } 152 }
153 }, 1000); 153 }, 1000);
154 154
155 var kolkata = new Date("Oct 3, 2018 14:00:00").getTime(); 155 var kolkata = new Date("Oct 3, 2018 14:00:00").getTime();
156 // Update the count down every 1 second 156 // Update the count down every 1 second
157 var x = setInterval(function() { 157 var x = setInterval(function() {
158 // Get todays date and time 158 // Get todays date and time
159 var now = new Date().getTime(); 159 var now = new Date().getTime();
160 // Find the distance between now an the count down date 160 // Find the distance between now an the count down date
161 var distance = kolkata - now; 161 var distance = kolkata - now;
162 // Time calculations for days, hours, minutes and seconds 162 // Time calculations for days, hours, minutes and seconds
163 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 163 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
164 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 164 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
165 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 165 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
166 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 166 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
167 $scope.timer = days + "d " + hours + "h " 167 $scope.timer = days + "d " + hours + "h "
168 + minutes + "m " + seconds + "s " 168 + minutes + "m " + seconds + "s "
169 // Output the result in an element with id="demo" 169 // Output the result in an element with id="demo"
170 document.getElementById("kolkata").innerHTML = days + "d " + hours + "h " 170 document.getElementById("kolkata").innerHTML = days + "d " + hours + "h "
171 + minutes + "m " + seconds + "s "; 171 + minutes + "m " + seconds + "s ";
172 // If the count down is over, write some text 172 // If the count down is over, write some text
173 if (distance < 0) { 173 if (distance < 0) {
174 clearInterval(x); 174 clearInterval(x);
175 document.getElementById("kolkata").innerHTML = "EXPIRED"; 175 document.getElementById("kolkata").innerHTML = "EXPIRED";
176 } 176 }
177 }, 1000); 177 }, 1000);
178 178
179 var jaipur = new Date("Oct 5, 2018 14:00:00").getTime(); 179 var jaipur = new Date("Oct 5, 2018 14:00:00").getTime();
180 // Update the count down every 1 second 180 // Update the count down every 1 second
181 var x = setInterval(function() { 181 var x = setInterval(function() {
182 // Get todays date and time 182 // Get todays date and time
183 var now = new Date().getTime(); 183 var now = new Date().getTime();
184 // Find the distance between now an the count down date 184 // Find the distance between now an the count down date
185 var distance = jaipur - now; 185 var distance = jaipur - now;
186 // Time calculations for days, hours, minutes and seconds 186 // Time calculations for days, hours, minutes and seconds
187 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 187 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
188 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 188 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
189 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 189 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
190 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 190 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
191 $scope.timer = days + "d " + hours + "h " 191 $scope.timer = days + "d " + hours + "h "
192 + minutes + "m " + seconds + "s " 192 + minutes + "m " + seconds + "s "
193 // Output the result in an element with id="demo" 193 // Output the result in an element with id="demo"
194 document.getElementById("jaipur").innerHTML = days + "d " + hours + "h " 194 document.getElementById("jaipur").innerHTML = days + "d " + hours + "h "
195 + minutes + "m " + seconds + "s "; 195 + minutes + "m " + seconds + "s ";
196 // If the count down is over, write some text 196 // If the count down is over, write some text
197 if (distance < 0) { 197 if (distance < 0) {
198 clearInterval(x); 198 clearInterval(x);
199 document.getElementById("jaipur").innerHTML = "EXPIRED"; 199 document.getElementById("jaipur").innerHTML = "EXPIRED";
200 } 200 }
201 }, 1000); 201 }, 1000);
202 202
203 var delhi = new Date("Oct 8, 2018 14:00:00").getTime(); 203 var delhi = new Date("Oct 8, 2018 14:00:00").getTime();
204 // Update the count down every 1 second 204 // Update the count down every 1 second
205 var x = setInterval(function() { 205 var x = setInterval(function() {
206 // Get todays date and time 206 // Get todays date and time
207 var now = new Date().getTime(); 207 var now = new Date().getTime();
208 // Find the distance between now an the count down date 208 // Find the distance between now an the count down date
209 var distance = delhi - now; 209 var distance = delhi - now;
210 // Time calculations for days, hours, minutes and seconds 210 // Time calculations for days, hours, minutes and seconds
211 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 211 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
212 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 212 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
213 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 213 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
214 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 214 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
215 $scope.timer = days + "d " + hours + "h " 215 $scope.timer = days + "d " + hours + "h "
216 + minutes + "m " + seconds + "s " 216 + minutes + "m " + seconds + "s "
217 // Output the result in an element with id="demo" 217 // Output the result in an element with id="demo"
218 document.getElementById("delhi").innerHTML = days + "d " + hours + "h " 218 document.getElementById("delhi").innerHTML = days + "d " + hours + "h "
219 + minutes + "m " + seconds + "s "; 219 + minutes + "m " + seconds + "s ";
220 // If the count down is over, write some text 220 // If the count down is over, write some text
221 if (distance < 0) { 221 if (distance < 0) {
222 clearInterval(x); 222 clearInterval(x);
223 document.getElementById("delhi").innerHTML = "EXPIRED"; 223 document.getElementById("delhi").innerHTML = "EXPIRED";
224 } 224 }
225 }, 1000); 225 }, 1000);
226 226
227 var kanpur = new Date("Oct 10, 2018 14:00:00").getTime(); 227 var kanpur = new Date("Oct 10, 2018 14:00:00").getTime();
228 // Update the count down every 1 second 228 // Update the count down every 1 second
229 var x = setInterval(function() { 229 var x = setInterval(function() {
230 // Get todays date and time 230 // Get todays date and time
231 var now = new Date().getTime(); 231 var now = new Date().getTime();
232 // Find the distance between now an the count down date 232 // Find the distance between now an the count down date
233 var distance = kanpur - now; 233 var distance = kanpur - now;
234 // Time calculations for days, hours, minutes and seconds 234 // Time calculations for days, hours, minutes and seconds
235 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 235 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
236 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 236 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
237 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 237 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
238 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 238 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
239 $scope.timer = days + "d " + hours + "h " 239 $scope.timer = days + "d " + hours + "h "
240 + minutes + "m " + seconds + "s " 240 + minutes + "m " + seconds + "s "
241 // Output the result in an element with id="demo" 241 // Output the result in an element with id="demo"
242 document.getElementById("kanpur").innerHTML = days + "d " + hours + "h " 242 document.getElementById("kanpur").innerHTML = days + "d " + hours + "h "
243 + minutes + "m " + seconds + "s "; 243 + minutes + "m " + seconds + "s ";
244 // If the count down is over, write some text 244 // If the count down is over, write some text
245 if (distance < 0) { 245 if (distance < 0) {
246 clearInterval(x); 246 clearInterval(x);
247 document.getElementById("kanpur").innerHTML = "EXPIRED"; 247 document.getElementById("kanpur").innerHTML = "EXPIRED";
248 } 248 }
249 }, 1000); 249 }, 1000);
250 250
251 var ahmedabad = new Date("Oct 12, 2018 14:00:00").getTime(); 251 var ahmedabad = new Date("Oct 12, 2018 14:00:00").getTime();
252 // Update the count down every 1 second 252 // Update the count down every 1 second
253 var x = setInterval(function() { 253 var x = setInterval(function() {
254 // Get todays date and time 254 // Get todays date and time
255 var now = new Date().getTime(); 255 var now = new Date().getTime();
256 // Find the distance between now an the count down date 256 // Find the distance between now an the count down date
257 var distance = ahmedabad - now; 257 var distance = ahmedabad - now;
258 // Time calculations for days, hours, minutes and seconds 258 // Time calculations for days, hours, minutes and seconds
259 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 259 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
260 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 260 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
261 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 261 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
262 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 262 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
263 $scope.timer = days + "d " + hours + "h " 263 $scope.timer = days + "d " + hours + "h "
264 + minutes + "m " + seconds + "s " 264 + minutes + "m " + seconds + "s "
265 // Output the result in an element with id="demo" 265 // Output the result in an element with id="demo"
266 document.getElementById("ahmedabad").innerHTML = days + "d " + hours + "h " 266 document.getElementById("ahmedabad").innerHTML = days + "d " + hours + "h "
267 + minutes + "m " + seconds + "s "; 267 + minutes + "m " + seconds + "s ";
268 // If the count down is over, write some text 268 // If the count down is over, write some text
269 if (distance < 0) { 269 if (distance < 0) {
270 clearInterval(x); 270 clearInterval(x);
271 document.getElementById("ahmedabad").innerHTML = "EXPIRED"; 271 document.getElementById("ahmedabad").innerHTML = "EXPIRED";
272 } 272 }
273 }, 1000); 273 }, 1000);
274 274
275 var bengaluru = new Date("Oct 13, 2018 14:00:00").getTime(); 275 var bengaluru = new Date("Oct 13, 2018 14:00:00").getTime();
276 // Update the count down every 1 second 276 // Update the count down every 1 second
277 var x = setInterval(function() { 277 var x = setInterval(function() {
278 // Get todays date and time 278 // Get todays date and time
279 var now = new Date().getTime(); 279 var now = new Date().getTime();
280 // Find the distance between now an the count down date 280 // Find the distance between now an the count down date
281 var distance = bengaluru - now; 281 var distance = bengaluru - now;
282 // Time calculations for days, hours, minutes and seconds 282 // Time calculations for days, hours, minutes and seconds
283 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 283 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
284 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 284 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
285 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 285 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
286 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 286 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
287 $scope.timer = days + "d " + hours + "h " 287 $scope.timer = days + "d " + hours + "h "
288 + minutes + "m " + seconds + "s " 288 + minutes + "m " + seconds + "s "
289 // Output the result in an element with id="demo" 289 // Output the result in an element with id="demo"
290 document.getElementById("bengaluru").innerHTML = days + "d " + hours + "h " 290 document.getElementById("bengaluru").innerHTML = days + "d " + hours + "h "
291 + minutes + "m " + seconds + "s "; 291 + minutes + "m " + seconds + "s ";
292 // If the count down is over, write some text 292 // If the count down is over, write some text
293 if (distance < 0) { 293 if (distance < 0) {
294 clearInterval(x); 294 clearInterval(x);
295 document.getElementById("bengaluru").innerHTML = "EXPIRED"; 295 document.getElementById("bengaluru").innerHTML = "EXPIRED";
296 } 296 }
297 }, 1000); 297 }, 1000);
298 298
299 var dharamsala = new Date("Dec 14, 2018 14:00:00").getTime(); 299 var dharamsala = new Date("Dec 14, 2018 14:00:00").getTime();
300 // Update the count down every 1 second 300 // Update the count down every 1 second
301 var x = setInterval(function() { 301 var x = setInterval(function() {
302 // Get todays date and time 302 // Get todays date and time
303 var now = new Date().getTime(); 303 var now = new Date().getTime();
304 // Find the distance between now an the count down date 304 // Find the distance between now an the count down date
305 var distance = dharamsala - now; 305 var distance = dharamsala - now;
306 // Time calculations for days, hours, minutes and seconds 306 // Time calculations for days, hours, minutes and seconds
307 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 307 var days = Math.floor(distance / (1000 * 60 * 60 * 24));
308 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 308 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
309 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 309 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
310 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 310 var seconds = Math.floor((distance % (1000 * 60)) / 1000);
311 $scope.timer = days + "d " + hours + "h " 311 $scope.timer = days + "d " + hours + "h "
312 + minutes + "m " + seconds + "s " 312 + minutes + "m " + seconds + "s "
313 // Output the result in an element with id="demo" 313 // Output the result in an element with id="demo"
314 document.getElementById("dharamsala").innerHTML = days + "d " + hours + "h " 314 document.getElementById("dharamsala").innerHTML = days + "d " + hours + "h "
315 + minutes + "m " + seconds + "s "; 315 + minutes + "m " + seconds + "s ";
316 // If the count down is over, write some text 316 // If the count down is over, write some text
317 if (distance < 0) { 317 if (distance < 0) {
318 clearInterval(x); 318 clearInterval(x);
319 document.getElementById("dharamsala").innerHTML = "EXPIRED"; 319 document.getElementById("dharamsala").innerHTML = "EXPIRED";
320 } 320 }
321 }, 1000); 321 }, 1000);
322 322
323 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ 323 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
324 $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ 324 $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
325 // $scope.Textshow = "yes" 325 // $scope.Textshow = "yes"
326 $scope.max = 100; 326 $scope.max = 100;
327 $scope.formPage = false; 327 $scope.formPage = false;
328 $scope.current = 0; 328 $scope.current = 0;
329 $scope.payingAmnt = 0; 329 $scope.payingAmnt = 0;
330 $scope.data = {}; 330 $scope.data = {};
331 $scope.discountAmount = 0; 331 $scope.discountAmount = 0;
332 // $scope.data.quantity = "1"; 332 // $scope.data.quantity = "1";
333 $scope.check = false; 333 $scope.check = false;
334 $scope.numberCheck = false; 334 $scope.numberCheck = false;
335 $scope.paymentResult = {}; 335 $scope.paymentResult = {};
336 var data = { 336 var data = {
337 "amount": $scope.payingAmnt, 337 "amount": $scope.payingAmnt,
338 "currency": "INR", 338 "currency": "INR",
339 "status": "pending" 339 "status": "pending"
340 } 340 }
341 341
342 $scope.showval = true; 342 $scope.showval = true;
343 $scope.hideval = false; 343 $scope.hideval = false;
344 $scope.showvalue = false; 344 $scope.showvalue = false;
345 $scope.hidevalue = false; 345 $scope.hidevalue = false;
346 $scope.isShowHide = function (value) { 346 $scope.isShowHide = function (value) {
347 console.log(value) 347 console.log(value)
348 var element = document.getElementById("defaultcountry"); 348 var element = document.getElementById("defaultcountry");
349 element.classList.remove("btn-active"); 349 element.classList.remove("btn-active");
350 350
351 if (value == "INDIA") { 351 if (value == "INDIA") {
352 console.log("value",value) 352 console.log("value",value)
353 $scope.showval = true; 353 $scope.showval = true;
354 $scope.hideval = false; 354 $scope.hideval = false;
355 $scope.showvalue = false; 355 $scope.showvalue = false;
356 $scope.hidevalue = false; 356 $scope.hidevalue = false;
357 } 357 }
358 else if (value == "SRI LANKA") { 358 else if (value == "SRI LANKA") {
359 console.log("value1",value) 359 console.log("value1",value)
360 $scope.showval = false; 360 $scope.showval = false;
361 $scope.hideval = true; 361 $scope.hideval = true;
362 $scope.showvalue = false; 362 $scope.showvalue = false;
363 $scope.hidevalue = false; 363 $scope.hidevalue = false;
364 } 364 }
365 else if (value == "BANGLADESH") { 365 else if (value == "BANGLADESH") {
366 console.log("value2",value) 366 console.log("value2",value)
367 $scope.showval = false; 367 $scope.showval = false;
368 $scope.hideval = false; 368 $scope.hideval = false;
369 $scope.showvalue = true; 369 $scope.showvalue = true;
370 $scope.hidevalue = false; 370 $scope.hidevalue = false;
371 } 371 }
372 else { 372 else {
373 console.log("value3",value) 373 console.log("value3",value)
374 $scope.showval = false; 374 $scope.showval = false;
375 $scope.hideval = false; 375 $scope.hideval = false;
376 $scope.showvalue = false; 376 $scope.showvalue = false;
377 $scope.hidevalue = true; 377 $scope.hidevalue = true;
378 } 378 }
379 } 379 }
380 380
381 // $scope.apply = function() { 381 // $scope.apply = function() {
382 // //Analytics.trackEvent('register', 'click', 'Registration'); 382 // //Analytics.trackEvent('register', 'click', 'Registration');
383 // $location.path("/caricatures") 383 // $location.path("/caricatures")
384 // } 384 // }
385 385
386 // $scope.data.city = ''; 386 // $scope.data.city = '';
387 $scope.watch = function(){ 387 $scope.watch = function(){
388 //document.getElementById("ahmedabad").src = ""; 388 //document.getElementById("ahmedabad").src = "";
389 // console.log("cllll",value) 389 // console.log("cllll",value)
390 // $scope.data.city = value; 390 // $scope.data.city = value;
391 // if($scope.data.city == "Chennai"){ 391 // if($scope.data.city == "Chennai"){
392 // console.log("cllll1",value) 392 // console.log("cllll1",value)
393 // $window.location.href = 'http://35.154.24.158:8007'; 393 // $window.location.href = 'http://35.154.24.158:8007';
394 // }else{ 394 // }else{
395 // console.log("cllll2",value) 395 // console.log("cllll2",value)
396 // localStorage.setItem("city" ,value); 396 // localStorage.setItem("city" ,value);
397 //$location.path('/registration').search({city: value}); 397 //$location.path('/registration').search({city: value});
398 // $location.path('/registration/'+value+''); 398 // $location.path('/registration/'+value+'');
399 $location.path('/registration'); 399 $location.path('/registration');
400 //$state.go('registration', { 'city': value}) 400 //$state.go('registration', { 'city': value})
401 // } 401 // }
402 } 402 }
403 403
404 $scope.select = function(url){ 404 $scope.select = function(url){
405 console.log("cllll") 405 console.log("cllll")
406 window.open(url) 406 window.open(url)
407 } 407 }
408 408
409 $scope.stagekeyPress = function() { 409 $scope.stagekeyPress = function() {
410 $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)'); 410 $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)');
411 } 411 }
412 $scope.sectorkeyPress = function() { 412 $scope.sectorkeyPress = function() {
413 $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)'); 413 $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)');
414 } 414 }
415 415
416 $scope.productLaunchkeyPress = function() { 416 $scope.productLaunchkeyPress = function() {
417 $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)'); 417 $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)');
418 } 418 }
419 419
420 $scope.launchPeriodkeyPress = function() { 420 $scope.launchPeriodkeyPress = function() {
421 $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)'); 421 $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)');
422 } 422 }
423 423
424 $scope.industrykeyPress = function(quantity) { 424 $scope.industrykeyPress = function(quantity) {
425 console.log("fghj",quantity) 425 console.log("fghj",quantity)
426 $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)'); 426 $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)');
427 } 427 }
428 428
429 $scope.industryNamekeyPress = function(firstName) { 429 $scope.industryNamekeyPress = function(firstName) {
430 console.log("lastName==", firstName); 430 console.log("lastName==", firstName);
431 if (firstName == undefined) { 431 if (firstName == undefined) {
432 $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); 432 $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)');
433 } else { 433 } else {
434 $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); 434 $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)');
435 } 435 }
436 } 436 }
437 437
438 $scope.amountkeyPress = function() { 438 $scope.amountkeyPress = function() {
439 $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)'); 439 $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)');
440 } 440 }
441 441
442 $scope.firstNamekeyPress = function(name) { 442 $scope.firstNamekeyPress = function(name) {
443 console.log("lastName==", name); 443 console.log("lastName==", name);
444 if (name == undefined) { 444 if (name == undefined) {
445 $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); 445 $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)');
446 } else { 446 } else {
447 $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)'); 447 $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)');
448 } 448 }
449 } 449 }
450 450
451 $scope.emailkeyPress = function(email) { 451 $scope.emailkeyPress = function(email) {
452 console.log("email", email); 452 console.log("email", email);
453 if (email == undefined) { 453 if (email == undefined) {
454 $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); 454 $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)');
455 } else { 455 } else {
456 $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)'); 456 $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)');
457 } 457 }
458 } 458 }
459 459
460 $scope.phonekeyPress = function(number) { 460 $scope.phonekeyPress = function(number) {
461 console.log("number", number); 461 console.log("number", number);
462 if (number == undefined || number == '') { 462 if (number == undefined || number == '') {
463 $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); 463 $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)');
464 } else { 464 } else {
465 $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)'); 465 $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)');
466 } 466 }
467 } 467 }
468 468
469 $scope.citykeyPress = function(city) { 469 $scope.citykeyPress = function(city) {
470 console.log("city", city); 470 console.log("city", city);
471 if (city == undefined) { 471 if (city == undefined) {
472 $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); 472 $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)');
473 } else { 473 } else {
474 $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)'); 474 $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)');
475 } 475 }
476 } 476 }
477 477
478 $scope.startupNamekeyPress = function(q) { 478 $scope.startupNamekeyPress = function(q) {
479 if (q == undefined) { 479 if (q == undefined) {
480 $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); 480 $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)');
481 } else { 481 } else {
482 $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)'); 482 $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)');
483 } 483 }
484 } 484 }
485 485
486 $scope.linkedInkeyPress = function(technology) { 486 $scope.linkedInkeyPress = function(technology) {
487 if (technology == undefined || technology == '') { 487 if (technology == undefined || technology == '') {
488 $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); 488 $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)');
489 } else { 489 } else {
490 $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)'); 490 $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)');
491 } 491 }
492 } 492 }
493 $scope.companykeyPress = function(problem) { 493 $scope.companykeyPress = function(problem) {
494 if (problem == undefined) { 494 if (problem == undefined) {
495 $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); 495 $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)');
496 } else { 496 } else {
497 $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)'); 497 $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)');
498 } 498 }
499 } 499 }
500 $scope.productNamekeyPress = function(solution) { 500 $scope.productNamekeyPress = function(solution) {
501 if (solution == undefined) { 501 if (solution == undefined) {
502 $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); 502 $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)');
503 } else { 503 } else {
504 $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)'); 504 $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)');
505 } 505 }
506 } 506 }
507 $scope.businesskeyPress = function(business) { 507 $scope.businesskeyPress = function(business) {
508 if (business == undefined) { 508 if (business == undefined) {
509 $('.icon-circle-p').css('background-color', 'rgb(102, 102, 102)'); 509 $('.icon-circle-p').css('background-color', 'rgb(102, 102, 102)');
510 } else { 510 } else {
511 $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)'); 511 $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)');
512 } 512 }
513 } 513 }
514 514
515 $scope.websitekeyPress = function(prototype) { 515 $scope.websitekeyPress = function(prototype) {
516 if (prototype == undefined || prototype == '') { 516 if (prototype == undefined || prototype == '') {
517 $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); 517 $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)');
518 } else { 518 } else {
519 $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)'); 519 $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)');
520 } 520 }
521 } 521 }
522 522
523 $scope.employeekeyPress = function(market) { 523 $scope.employeekeyPress = function(market) {
524 if (market == undefined || market == '') { 524 if (market == undefined || market == '') {
525 $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); 525 $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)');
526 } else { 526 } else {
527 $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)'); 527 $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)');
528 } 528 }
529 } 529 }
530 530
531 $scope.annualkeyPress = function(risk) { 531 $scope.annualkeyPress = function(risk) {
532 if (risk == undefined || risk == '') { 532 if (risk == undefined || risk == '') {
533 $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); 533 $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)');
534 } else { 534 } else {
535 $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)'); 535 $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)');
536 } 536 }
537 } 537 }
538 538
539 $scope.revenuekeyPress = function(team) { 539 $scope.revenuekeyPress = function(team) {
540 if (team == undefined) { 540 if (team == undefined) {
541 $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); 541 $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)');
542 } else { 542 } else {
543 $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)'); 543 $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)');
544 } 544 }
545 } 545 }
546 546
547 $scope.descriptionkeyPress = function(pitch) { 547 $scope.descriptionkeyPress = function(pitch) {
548 if (pitch == undefined) { 548 if (pitch == undefined) {
549 $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); 549 $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)');
550 } else { 550 } else {
551 $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)'); 551 $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)');
552 } 552 }
553 } 553 }
554 554
555 $scope.discountkeyPress = function(discount) { 555 $scope.discountkeyPress = function(discount) {
556 if (discount == undefined) { 556 if (discount == undefined) {
557 $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); 557 $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)');
558 } else { 558 } else {
559 $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); 559 $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)');
560 } 560 }
561 } 561 }
562 562
563 $scope.removeNooError = function() { 563 $scope.removeNooError = function() {
564 $('#invalidIdea').css('display', 'block'); 564 $('#invalidIdea').css('display', 'block');
565 $('#noExist').css('display', 'none'); 565 $('#noExist').css('display', 'none');
566 }; 566 };
567 567
568 $scope.ideakeyPress = function(financial) { 568 $scope.ideakeyPress = function(financial) {
569 console.log("financial", financial); 569 console.log("financial", financial);
570 if (financial == undefined) { 570 if (financial == undefined) {
571 $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); 571 $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)');
572 } else { 572 } else {
573 $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)'); 573 $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)');
574 } 574 }
575 } 575 }
576 576
577 $scope.fundkeyPress = function(financial) { 577 $scope.fundkeyPress = function(financial) {
578 console.log("financial", financial); 578 console.log("financial", financial);
579 if (financial == undefined) { 579 if (financial == undefined) {
580 $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); 580 $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)');
581 } else { 581 } else {
582 $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)'); 582 $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)');
583 } 583 }
584 } 584 }
585 585
586 $scope.changeReferalIconColor = function(referalToken){ 586 $scope.changeReferalIconColor = function(referalToken){
587 if (referalToken == undefined || referalToken == '') { 587 if (referalToken == undefined || referalToken == '') {
588 $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); 588 $('.referel-icon').css('background-color', 'rgb(102, 102, 102)');
589 }else { 589 }else {
590 $('.referel-icon').css('background-color', 'rgb(25, 104, 157)'); 590 $('.referel-icon').css('background-color', 'rgb(25, 104, 157)');
591 } 591 }
592 } 592 }
593 593
594 }); 594 });
595 595
596 scotchApp.controller('registrationController', function($q, $scope, $http, $location, $rootScope,$route,BASE_URL) { 596 scotchApp.controller('registrationController', function($q, $scope, $http, $location, $rootScope,$route,BASE_URL) {
597 $scope.data = {}; 597 $scope.data = {};
598 $scope.check = false; 598 $scope.check = false;
599 $scope.numberCheck = false; 599 $scope.numberCheck = false;
600 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ 600 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
601 $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ 601 $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
602 $scope.max = 100; 602 $scope.max = 100;
603 $scope.formPage = false; 603 $scope.formPage = false;
604 $scope.current = 0; 604 $scope.current = 0;
605 $scope.payingAmnt = 0; 605 $scope.payingAmnt = 0;
606 $scope.discountAmount = 0; 606 $scope.discountAmount = 0;
607 // $scope.data.quantity = "1"; 607 // $scope.data.quantity = "1";
608 $scope.check = false; 608 $scope.check = false;
609 $scope.numberCheck = false; 609 $scope.numberCheck = false;
610 $scope.paymentResult = {}; 610 $scope.paymentResult = {};
611 var data = { 611 var data = {
612 "amount": $scope.payingAmnt, 612 "amount": $scope.payingAmnt,
613 "currency": "INR", 613 "currency": "INR",
614 "status": "pending" 614 "status": "pending"
615 } 615 }
616 616
617 $scope.removeError = function() { 617 $scope.removeError = function() {
618 $('#invalidEmail').css('display', 'none'); 618 $('#invalidEmail').css('display', 'none');
619 $('#alreadyExist').css('display', 'none'); 619 $('#alreadyExist').css('display', 'none');
620 }; 620 };
621 621
622 $scope.emailcheck = function(val) { 622 $scope.emailcheck = function(val) {
623 if (val == undefined) { 623 if (val == undefined) {
624 $('#invalidEmail').css('display', 'block'); 624 $('#invalidEmail').css('display', 'block');
625 } else { 625 } else {
626 $('#alreadyExist').css('display', 'block'); 626 $('#alreadyExist').css('display', 'block');
627 } 627 }
628 }; 628 };
629 629
630 $scope.removeNoError = function() { 630 $scope.removeNoError = function() {
631 $('#invalidNumber').css('display', 'none'); 631 $('#invalidNumber').css('display', 'none');
632 $('#alreadyExist').css('display', 'none'); 632 $('#alreadyExist').css('display', 'none');
633 }; 633 };
634 634
635 $scope.numbercheck = function(val) { 635 $scope.numbercheck = function(val) {
636 if (val == undefined) { 636 if (val == undefined) {
637 $('#invalidNumber').css('display', 'block'); 637 $('#invalidNumber').css('display', 'block');
638 } else { 638 } else {
639 $('#alreadyExist').css('display', 'block'); 639 $('#alreadyExist').css('display', 'block');
640 } 640 }
641 }; 641 };
642 642
643 // $scope.$on('city', function (event, value) { 643 // $scope.$on('city', function (event, value) {
644 // $scope.data.city = localStorage.getItem("city"); 644 // $scope.data.city = localStorage.getItem("city");
645 // console.log("HERE===",$scope.data.city ); 645 // console.log("HERE===",$scope.data.city );
646 // }); 646 // });
647 var handleFileSelect = function(evt) { 647 var handleFileSelect = function(evt) {
648 var files = evt.target.files; 648 var files = evt.target.files;
649 var file = files[0]; 649 var file = files[0];
650 650
651 if (files && file) { 651 if (files && file) {
652 var reader = new FileReader(); 652 var reader = new FileReader();
653 653
654 reader.onload = function(readerEvt) { 654 reader.onload = function(readerEvt) {
655 var binaryString = readerEvt.target.result; 655 var binaryString = readerEvt.target.result;
656 $scope.base64textString = btoa(binaryString); 656 $scope.base64textString = btoa(binaryString);
657 console.log("base64textarea",$scope.base64textString) 657 console.log("base64textarea",$scope.base64textString)
658 }; 658 };
659 659
660 reader.readAsBinaryString(file); 660 reader.readAsBinaryString(file);
661 } 661 }
662 }; 662 };
663 if (window.File && window.FileReader && window.FileList && window.Blob) { 663 if (window.File && window.FileReader && window.FileList && window.Blob) {
664 document.getElementById('filePicker').addEventListener('change', handleFileSelect, false); 664 document.getElementById('filePicker').addEventListener('change', handleFileSelect, false);
665 } 665 }
666 666
667 // scope.addOther = false; 667 $scope.ngShowhide = false;
668 // + $scope.hideSelectBox = true; 668 $scope.GetValue = function(){
669 // $scope.industrykeyPress = function(e) { 669 console.log("====$scope.value===",$scope.data.sector)
670 // // $('.icon-circle-abcdefg').css('background-color', 'rgb(66, 181, 73)'); 670 if($scope.data.sector == "Other"){
671 // + var e = document.getElementById("dataIndustry"); 671 $scope.ngShowhide = true;
672 // + var dataIndustry = e.options[e.selectedIndex].value; 672 }else{
673 // + if(dataIndustry == "Other") { 673 $scope.ngShowhide = false;
674 // + $scope.addOther = true; 674 }
675 // + $scope.hideSelectBox = false; 675 }
676 // + }
677 // }
678 676
679 $rootScope.tokenCall = function(val) { 677 $rootScope.tokenCall = function(val) {
680 console.log('val-------->', val); 678 console.log('val-------->', val);
681 if (val == undefined) { 679 if (val == undefined) {
682 $('#invalidToken').css('display', 'block'); 680 $('#invalidToken').css('display', 'block');
683 } else { 681 } else {
684 val = val.toUpperCase(); 682 val = val.toUpperCase();
685 if((val == "IITH99" && $scope.data.city != "Hyderabad") || (val == "IITM99" && $scope.data.city != "Chennai") || (val == "IITD99" && $scope.data.city != "Delhi") || (val == "IITB99" && $scope.data.city != "Mumbai") || (val == "IITK99" && $scope.data.city != "Kanpur") || (val == "IIMC99" && $scope.data.city != "Kolkata") || (val == "IIMA99" && $scope.data.city != "Ahmedabad") || (val == "JAI40" && $scope.data.city != "Jaipur")){ 683 if((val == "IITH99" && $scope.data.city != "Hyderabad") || (val == "IITM99" && $scope.data.city != "Chennai") || (val == "IITD99" && $scope.data.city != "Delhi") || (val == "IITB99" && $scope.data.city != "Mumbai") || (val == "IITK99" && $scope.data.city != "Kanpur") || (val == "IIMC99" && $scope.data.city != "Kolkata") || (val == "IIMA99" && $scope.data.city != "Ahmedabad") || (val == "JAI40" && $scope.data.city != "Jaipur")){
686 $scope.tokencheck = false; 684 $scope.tokencheck = false;
687 return; 685 return;
688 } 686 }
689 $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}') 687 $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}')
690 .then(function(searchResult) { 688 .then(function(searchResult) {
691 console.log("searchResult",searchResult) 689 console.log("searchResult",searchResult)
692 if (searchResult.data.length == 0) { 690 if (searchResult.data.length == 0) {
693 $scope.tokencheck = false; 691 $scope.tokencheck = false;
694 $scope.discountAmount = 0; 692 $scope.discountAmount = 0;
695 } else { 693 } else {
696 console.log("===searchResult.data[0].discount===",searchResult.data[0].discount); 694 console.log("===searchResult.data[0].discount===",searchResult.data[0].discount);
697 $scope.discountpercentage = searchResult.data[0].discount; 695 $scope.discountpercentage = searchResult.data[0].discount;
698 console.log("===searchResultdiscountpercentage===",$scope.discountpercentage); 696 console.log("===searchResultdiscountpercentage===",$scope.discountpercentage);
699 $scope.tokencheck = true; 697 $scope.tokencheck = true;
700 } 698 }
701 },function(err){ 699 },function(err){
702 console.log(err) 700 console.log(err)
703 }); 701 });
704 702
705 } 703 }
706 }; 704 };
707 705
708 $scope.submit = function() { 706 $scope.submit = function() {
709 //$scope.data.uploadFile = $scope.base64textString; 707 //$scope.data.uploadFile = $scope.base64textString;
710 $scope.ticketAmnt = 500; 708 $scope.ticketAmnt = 500;
711 if($scope.tokencheck == false){ 709 if($scope.tokencheck == false){
712 $scope.data.referalToken = null; 710 $scope.data.referalToken = null;
713 } 711 }
714 // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { 712 // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) {
715 // var x = document.getElementById("snackbar") 713 // var x = document.getElementById("snackbar")
716 // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); 714 // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
717 // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { 715 // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) {
718 $scope.infoForm = true; 716 $scope.infoForm = true;
719 $scope.detail = {}; 717 $scope.detail = {};
720 $scope.data.phone = "+91"+$scope.data.number; 718 $scope.data.phone = "+91"+$scope.data.number;
721 if($scope.data.referalToken == null){ 719 if($scope.data.referalToken == null){
722 $scope.data.referalToken = "N.A." 720 $scope.data.referalToken = "N.A."
723 } 721 }
724 var file =document.getElementById('filePicker').files[0]; 722 var file =document.getElementById('filePicker').files[0];
725 console.log("file",filePicker) 723 console.log("file",filePicker)
726 var image = BASE_URL+'/containers/applicants/download/' 724 var image = BASE_URL+'/containers/applicants/download/'
727 console.log("file",image) 725 console.log("file",image)
728 var imagePath = filePicker.name; 726 var imagePath = filePicker.name;
729 $scope.data.uploadFile = image + imagePath; 727 $scope.data.uploadFile = image + imagePath;
730 var fd = new FormData() 728 var fd = new FormData()
731 fd.append('filePicker',data); 729 fd.append('filePicker',data);
732 730
733 var deferred = $q.defer(); 731 var deferred = $q.defer();
734 $http({ 732 $http({
735 method:'POST', 733 method:'POST',
736 url: BASE_URL+'/containers/applicants/upload', 734 url: BASE_URL+'/containers/applicants/upload',
737 data:fd, 735 data:fd,
738 transformRequest:angular.identity, 736 transformRequest:angular.identity,
739 headers:{'Content-Type':undefined} 737 headers:{'Content-Type':undefined}
740 }) 738 })
741 .success(function(result){ 739 .success(function(result){
742 deferred.resolve(result); 740 deferred.resolve(result);
743 }) 741 })
744 742
745 $http({ 743 $http({
746 method: 'POST', 744 method: 'POST',
747 url: BASE_URL+'/applicants', 745 url: BASE_URL+'/applicants',
748 data: $scope.data, 746 data: $scope.data,
749 headers: {} 747 headers: {}
750 }).then(function mySuccess(result) { 748 }).then(function mySuccess(result) {
751 console.log("=====result=====",result) 749 console.log("=====result=====",result)
752 $scope.detail = result; 750 $scope.detail = result;
753 data.applicantId = result.data.id; 751 data.applicantId = result.data.id;
754 $scope.userId = result.data.id; 752 $scope.userId = result.data.id;
755 console.log("=====data=====",data) 753 console.log("=====data=====",data)
756 var amount = $scope.ticketAmnt * 100 754 var amount = $scope.ticketAmnt * 100
757 if($scope.tokencheck == true){ 755 if($scope.tokencheck == true){
758 var amount = $scope.ticketAmnt 756 var amount = $scope.ticketAmnt
759 console.log("====$scope.discountpercentage====",$scope.discountpercentage); 757 console.log("====$scope.discountpercentage====",$scope.discountpercentage);
760 console.log("resultcity===",$scope.data.city) 758 console.log("resultcity===",$scope.data.city)
761 if($scope.discountpercentage == "100") { 759 if($scope.discountpercentage == "100") {
762 $scope.discountpercentage = "99.8"; 760 $scope.discountpercentage = "99.8";
763 console.log("$scope.discountpercentage====",$scope.discountpercentage) 761 console.log("$scope.discountpercentage====",$scope.discountpercentage)
764 } 762 }
765 console.log("====$scope.discountpercentage====",$scope.discountpercentage); 763 console.log("====$scope.discountpercentage====",$scope.discountpercentage);
766 $scope.percDiscount = $scope.discountpercentage/100; 764 $scope.percDiscount = $scope.discountpercentage/100;
767 console.log("====$scope.percDiscount====",$scope.percDiscount); 765 console.log("====$scope.percDiscount====",$scope.percDiscount);
768 console.log("====amount=====",amount); 766 console.log("====amount=====",amount);
769 $scope.discountAmount = amount * $scope.percDiscount; 767 $scope.discountAmount = amount * $scope.percDiscount;
770 console.log("finalAmount====>",$scope.discountAmount) 768 console.log("finalAmount====>",$scope.discountAmount)
771 } 769 }
772 var taxAmount = $scope.ticketAmnt - $scope.discountAmount 770 var taxAmount = $scope.ticketAmnt - $scope.discountAmount
773 console.log("$scope.taxTotal----",taxAmount) 771 console.log("$scope.taxTotal----",taxAmount)
774 $scope.payingAmnt = taxAmount; 772 $scope.payingAmnt = taxAmount;
775 console.log("====$scope.payingAmnt====",$scope.payingAmnt) 773 console.log("====$scope.payingAmnt====",$scope.payingAmnt)
776 $scope.payingAmnt = $scope.payingAmnt.toFixed() 774 $scope.payingAmnt = $scope.payingAmnt.toFixed()
777 data.amount = $scope.payingAmnt; 775 data.amount = $scope.payingAmnt;
778 console.log("data.amount==",data.amount) 776 console.log("data.amount==",data.amount)
779 if($scope.detail != null){ 777 if($scope.detail != null){
780 $http({ 778 $http({
781 method: 'POST', 779 method: 'POST',
782 url: BASE_URL+'/payments', 780 url: BASE_URL+'/payments',
783 data: data, 781 data: data,
784 headers: {} 782 headers: {}
785 }).then(function mySuccess(paymentResult) { 783 }).then(function mySuccess(paymentResult) {
786 $scope.paymentResult = paymentResult; 784 $scope.paymentResult = paymentResult;
787 }, function myError(error) { 785 }, function myError(error) {
788 }); 786 });
789 } 787 }
790 var i = 0; 788 var i = 0;
791 $scope.payingAmnt = $scope.payingAmnt * 100; 789 $scope.payingAmnt = $scope.payingAmnt * 100;
792 var options = { 790 var options = {
793 //"key": "rzp_test_YwHsVFiDIQ2WUQ", 791 //"key": "rzp_test_YwHsVFiDIQ2WUQ",
794 "key": "rzp_live_mkmCb4FkstuWaS", 792 "key": "rzp_live_mkmCb4FkstuWaS",
795 "amount": $scope.payingAmnt, 793 "amount": $scope.payingAmnt,
796 794
797 "name": "Startup Jalsa", 795 "name": "Startup Jalsa",
798 "description":"amount", 796 "description":"amount",
799 "currency": "INR", 797 "currency": "INR",
800 "status": "done", 798 "status": "done",
801 799
802 "prefill": { 800 "prefill": {
803 "email": $scope.detail.email, 801 "email": $scope.detail.email,
804 "contact": $scope.detail.phone 802 "contact": $scope.detail.phone
805 }, 803 },
806 804
807 "theme": { 805 "theme": {
808 "color": "#2196f3 ", 806 "color": "#2196f3 ",
809 "image_padding":"NO" 807 "image_padding":"NO"
810 }, 808 },
811 "modal": { 809 "modal": {
812 "ondismiss": function(){ 810 "ondismiss": function(){
813 } 811 }
814 }, 812 },
815 "handler": function (response){ 813 "handler": function (response){
816 createPayment(response); 814 createPayment(response);
817 } 815 }
818 }; 816 };
819 var rzp1 = new Razorpay(options); 817 var rzp1 = new Razorpay(options);
820 rzp1.open(); 818 rzp1.open();
821 $scope.paymentResponse = {}; 819 $scope.paymentResponse = {};
822 function createPayment(response){ 820 function createPayment(response){
823 console.log("response12333333",response) 821 console.log("response12333333",response)
824 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; 822 $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
825 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; 823 $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId;
826 $scope.paymentResponse.amount = data.amount; 824 $scope.paymentResponse.amount = data.amount;
827 $scope.paymentResponse.currency = "INR"; 825 $scope.paymentResponse.currency = "INR";
828 $scope.paymentResponse.status = $scope.paymentResult.data.status; 826 $scope.paymentResponse.status = $scope.paymentResult.data.status;
829 console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount) 827 console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount)
830 $http({ 828 $http({
831 method: 'PUT', 829 method: 'PUT',
832 url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, 830 url: BASE_URL+'/payments/'+$scope.paymentResult.data.id,
833 data: $scope.paymentResponse, 831 data: $scope.paymentResponse,
834 headers: {} 832 headers: {}
835 }).then(function mySuccess(searchResult) { 833 }).then(function mySuccess(searchResult) {
836 console.log("searchResult",searchResult) 834 console.log("searchResult",searchResult)
837 $location.path("/confirmation") 835 $location.path("/confirmation")
838 }, function myError(error) { 836 }, function myError(error) {
839 }); 837 });
840 } 838 }
841 //} 839 //}
842 840
843 }, function myError(error) { 841 }, function myError(error) {
844 842
845 }); 843 });
846 844
847 //} 845 //}
848 846
849 } 847 }
850 848
851 }); 849 });
852 850
853 scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { 851 scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) {
854 $scope.data = {}; 852 $scope.data = {};
855 $scope.check = false; 853 $scope.check = false;
856 $scope.numberCheck = false; 854 $scope.numberCheck = false;
857 855
858 $scope.submit = function() { 856 $scope.submit = function() {
859 console.log($scope.data.name) 857 console.log($scope.data.name)
860 var randomNumber = ""+Math.random(); 858 var randomNumber = ""+Math.random();
861 var nameSpliced = $scope.data.name.slice(0,5); 859 var nameSpliced = $scope.data.name.slice(0,5);
862 var numberSpliced = randomNumber.slice(2,4);; 860 var numberSpliced = randomNumber.slice(2,4);;
863 $scope.data.referalToken = nameSpliced+numberSpliced; 861 $scope.data.referalToken = nameSpliced+numberSpliced;
864 $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); 862 $scope.data.referalToken = $scope.data.referalToken.toUpperCase();
865 console.log("dsdfs",numberSpliced); 863 console.log("dsdfs",numberSpliced);
866 $http({ 864 $http({
867 method: 'POST', 865 method: 'POST',
868 url: BASE_URL + '/ambassadors', 866 url: BASE_URL + '/ambassadors',
869 data: $scope.data, 867 data: $scope.data,
870 headers: {} 868 headers: {}
871 }).then(function mySuccess(result) { 869 }).then(function mySuccess(result) {
872 console.log("result", result) 870 console.log("result", result)
873 $scope.detail = result; 871 $scope.detail = result;
874 $('#myModal').modal('show'); 872 $('#myModal').modal('show');
875 $scope.data.name = ''; 873 $scope.data.name = '';
876 $scope.data.email = ''; 874 $scope.data.email = '';
877 $scope.data.mobile = ''; 875 $scope.data.mobile = '';
878 //$scope.data.discount = ''; 876 //$scope.data.discount = '';
879 877
880 }, function myError(error) { 878 }, function myError(error) {
881 console.log(error) 879 console.log(error)
882 console.log(error.data.error.message) 880 console.log(error.data.error.message)
883 }); 881 });
884 } 882 }
885 }); 883 });
886 884
887 885
888 886
889 887
890 888