Commit d4f6eab76f9f5645e1cf93ab040969ff9937429f

Authored by digvijay
1 parent e7202f14e2
Exists in paytm

paytm integration

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