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