Commit 2aba79170525bf68076d8294d1e34e96acc22dde
1 parent
8586ba494b
Exists in
master
and in
1 other branch
minor change
Showing
2 changed files
with
17 additions
and
22 deletions
Show diff stats
pages/confirmation.html
1 | <html> | 1 | <html> |
2 | <head> | 2 | <head> |
3 | </head> | 3 | </head> |
4 | <body> | 4 | <body> |
5 | <div class="col-xs-12 col-md-10 col-md-offset-1 city-meetup card-color-confirm"> | 5 | <div class="col-xs-12 col-md-10 col-md-offset-1 city-meetup card-color-confirm"> |
6 | <center> | 6 | <center> |
7 | <h3 style="text-align:center;margin-top:4%;position:relative;color: rgb(25, 104, 157);font-family: 'BenchNine', sans-serif;">Thank you for registering at Startup Jalsa 2018.</h3> | 7 | <h3 style="text-align:center;margin-top:4%;position:relative;color: rgb(25, 104, 157);font-family: 'BenchNine', sans-serif;">Thank you for registering at Startup Jalsa 2018.</h3> |
8 | <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will receive a confirmation email from us, if not please contact at <i>ping@startupjalsa.com</i></p> | 8 | <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will receive a confirmation email from us, if not please contact at <i>ping@startupjalsa.com</i></p> |
9 | <footer> | 9 | <footer> |
10 | <img id="footer" class="img-responsive banner"> | 10 | <img id="footer" class="img-responsive banner"> |
11 | <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> | 11 | <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> |
12 | </center> | 12 | </center> |
13 | </footer> | 13 | </footer> |
14 | </div> | 14 | </div> |
15 | </body> | 15 | </body> |
16 | </html> | ||
16 | </html> | ||
17 | <span ng-show="span == true"> | ||
18 | <span id="chennai"></span> | ||
19 | <span id="mumbai"></span> | ||
20 | <span id="hyderabad"></span> | ||
21 | <span id="kolkata"></span> | ||
22 | <span id="delhi"></span> | ||
23 | <span id="ahmedabad"></span> | ||
24 | <span id="bengaluru"></span> | ||
25 | <span id="jaipur"></span>kanpur | ||
26 | <span id="kanpur"></span> | ||
27 | <span id="dharamsala"></span> |
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 | // [system.webServer] | ||
8 | // [rewrite] | ||
9 | // [rules] | ||
10 | // [rule name="scotchApp" stopProcessing="true"] | ||
11 | // [match url=".*" /] | ||
12 | // [conditions logicalGrouping="MatchAll"] | ||
13 | // [add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /] | ||
14 | // [add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /] | ||
15 | // [add input="{REQUEST_URI}" pattern="^/(api)" negate="true" /] | ||
16 | // [/conditions] | ||
17 | // [action type="Rewrite" url="/index.html" /] | ||
18 | // [/rule] | ||
19 | // [/rules] | ||
20 | // [/rewrite] | ||
21 | // [/system.webServer] | ||
22 | |||
23 | // use the HTML5 History API | 7 | // use the HTML5 History API |
24 | $locationProvider.html5Mode({ | 8 | $locationProvider.html5Mode({ |
25 | enabled: true, | 9 | enabled: true, |
26 | requireBase: false | 10 | requireBase: false |
27 | }); | 11 | }); |
28 | $locationProvider.hashPrefix('!'); | 12 | $locationProvider.hashPrefix('!'); |
29 | $routeProvider | 13 | $routeProvider |
30 | |||
31 | // route for the Home page | 14 | // route for the Home page |
32 | .when('/', { | 15 | .when('/', { |
33 | templateUrl: 'pages/Home.html', | 16 | templateUrl: 'pages/Home.html', |
34 | controller: 'mainController' | 17 | controller: 'mainController' |
35 | }) | 18 | }) |
36 | 19 | ||
37 | // route for the caricatures page | 20 | // route for the caricatures page |
38 | .when('/caricatures', { | 21 | .when('/caricatures', { |
39 | templateUrl: 'pages/caricatures.html', | 22 | templateUrl: 'pages/caricatures.html', |
40 | controller: 'mainController' | 23 | controller: 'mainController' |
41 | }) | 24 | }) |
42 | 25 | ||
43 | // // route for the paymentVerify page | 26 | // // route for the paymentVerify page |
44 | // .when('/pendingPayment/:id', { | 27 | // .when('/pendingPayment/:id', { |
45 | // templateUrl: 'pages/verify.html', | 28 | // templateUrl: 'pages/verify.html', |
46 | // controller: 'verifyController' | 29 | // controller: 'verifyController' |
47 | // }) | 30 | // }) |
48 | 31 | ||
49 | // route for the registration page | 32 | // route for the registration page |
50 | .when('/registration/:city', { | 33 | .when('/registration/:city', { |
51 | templateUrl: 'pages/registration.html', | 34 | templateUrl: 'pages/registration.html', |
52 | controller: 'registrationController' | 35 | controller: 'registrationController' |
53 | }) | 36 | }) |
54 | 37 | ||
55 | //route for the ambassador page | 38 | //route for the ambassador page |
56 | .when('/startupJalsaPromocode', { | 39 | // .when('/startupJalsaPromocode', { |
57 | templateUrl: 'pages/ambassador.html', | 40 | // templateUrl: 'pages/ambassador.html', |
58 | controller: 'ambassadorController' | 41 | // controller: 'ambassadorController' |
59 | }) | 42 | // }) |
60 | 43 | ||
61 | // route for the confirmation page | 44 | // route for the confirmation page |
62 | .when('/confirmation', { | 45 | .when('/confirmation', { |
63 | templateUrl: 'pages/confirmation.html', | 46 | templateUrl: 'pages/confirmation.html', |
64 | controller: 'registrationController' | 47 | controller: 'registrationController' |
65 | }) | 48 | }) |
66 | 49 | ||
67 | .otherwise({ | 50 | .otherwise({ |
68 | redirectTo: '/' | 51 | redirectTo: '/' |
69 | }); | 52 | }); |
70 | 53 | ||
71 | 54 | ||
72 | 55 | ||
73 | }); | 56 | }); |
74 | 57 | ||
75 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { | 58 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { |
76 | // Add configuration code as desired | 59 | // Add configuration code as desired |
77 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code | 60 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code |
78 | 61 | ||
79 | // Track all routes (default is true). | 62 | // Track all routes (default is true). |
80 | AnalyticsProvider.trackPages(true); | 63 | AnalyticsProvider.trackPages(true); |
81 | 64 | ||
82 | // Track all URL query params (default is false). | 65 | // Track all URL query params (default is false). |
83 | AnalyticsProvider.trackUrlParams(true); | 66 | AnalyticsProvider.trackUrlParams(true); |
84 | 67 | ||
85 | }]).run(['Analytics', function(Analytics) { }]); | 68 | }]).run(['Analytics', function(Analytics) { }]); |
86 | 69 | ||
87 | scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") | 70 | scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") |
88 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") | 71 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") |
89 | 72 | ||
90 | // create the controller and inject Angular's $scope | 73 | // create the controller and inject Angular's $scope |
91 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { | 74 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { |
92 | $scope.data = { | 75 | $scope.data = { |
93 | show: true, | 76 | show: true, |
94 | hide: false | 77 | hide: false |
95 | }; | 78 | }; |
96 | 79 | ||
97 | var chennai = new Date("Sept 19, 2018 12:00:00").getTime(); | 80 | var chennai = new Date("Sept 19, 2018 12:00:00").getTime(); |
98 | // Update the count down every 1 second | 81 | // Update the count down every 1 second |
99 | var x = setInterval(function() { | 82 | var x = setInterval(function() { |
100 | // Get todays date and time | 83 | // Get todays date and time |
101 | var now = new Date().getTime(); | 84 | var now = new Date().getTime(); |
102 | // Find the distance between now an the count down date | 85 | // Find the distance between now an the count down date |
103 | var distance = chennai - now; | 86 | var distance = chennai - now; |
104 | // Time calculations for days, hours, minutes and seconds | 87 | // Time calculations for days, hours, minutes and seconds |
105 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 88 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
106 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 89 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
107 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 90 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
108 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 91 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
109 | $scope.timer = days + "d " + hours + "h " | 92 | $scope.timer = days + "d " + hours + "h " |
110 | + minutes + "m " + seconds + "s " | 93 | + minutes + "m " + seconds + "s " |
111 | // Output the result in an element with id="demo" | 94 | // Output the result in an element with id="demo" |
112 | document.getElementById("chennai").innerHTML = days + "d " + hours + "h " | 95 | document.getElementById("chennai").innerHTML = days + "d " + hours + "h " |
113 | + minutes + "m " + seconds + "s "; | 96 | + minutes + "m " + seconds + "s "; |
114 | // If the count down is over, write some text | 97 | // If the count down is over, write some text |
115 | if (distance < 0) { | 98 | if (distance < 0) { |
116 | clearInterval(x); | 99 | clearInterval(x); |
117 | document.getElementById("chennai").innerHTML = "EXPIRED"; | 100 | document.getElementById("chennai").innerHTML = "EXPIRED"; |
118 | } | 101 | } |
119 | }, 1000); | 102 | }, 1000); |
120 | 103 | ||
121 | var hyderabad = new Date("Sept 21, 2018 12:00:00").getTime(); | 104 | var hyderabad = new Date("Sept 21, 2018 12:00:00").getTime(); |
122 | // Update the count down every 1 second | 105 | // Update the count down every 1 second |
123 | var x = setInterval(function() { | 106 | var x = setInterval(function() { |
124 | // Get todays date and time | 107 | // Get todays date and time |
125 | var now = new Date().getTime(); | 108 | var now = new Date().getTime(); |
126 | // Find the distance between now an the count down date | 109 | // Find the distance between now an the count down date |
127 | var distance = hyderabad - now; | 110 | var distance = hyderabad - now; |
128 | // Time calculations for days, hours, minutes and seconds | 111 | // Time calculations for days, hours, minutes and seconds |
129 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 112 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
130 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 113 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
131 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 114 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
132 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 115 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
133 | $scope.timer = days + "d " + hours + "h " | 116 | $scope.timer = days + "d " + hours + "h " |
134 | + minutes + "m " + seconds + "s " | 117 | + minutes + "m " + seconds + "s " |
135 | // Output the result in an element with id="demo" | 118 | // Output the result in an element with id="demo" |
136 | document.getElementById("hyderabad").innerHTML = days + "d " + hours + "h " | 119 | document.getElementById("hyderabad").innerHTML = days + "d " + hours + "h " |
137 | + minutes + "m " + seconds + "s "; | 120 | + minutes + "m " + seconds + "s "; |
138 | // If the count down is over, write some text | 121 | // If the count down is over, write some text |
139 | if (distance < 0) { | 122 | if (distance < 0) { |
140 | clearInterval(x); | 123 | clearInterval(x); |
141 | document.getElementById("hyderabad").innerHTML = "EXPIRED"; | 124 | document.getElementById("hyderabad").innerHTML = "EXPIRED"; |
142 | } | 125 | } |
143 | }, 1000); | 126 | }, 1000); |
144 | 127 | ||
145 | var mumbai = new Date("Sept 25, 2018 12:00:00").getTime(); | 128 | var mumbai = new Date("Sept 25, 2018 12:00:00").getTime(); |
146 | // Update the count down every 1 second | 129 | // Update the count down every 1 second |
147 | var x = setInterval(function() { | 130 | var x = setInterval(function() { |
148 | // Get todays date and time | 131 | // Get todays date and time |
149 | var now = new Date().getTime(); | 132 | var now = new Date().getTime(); |
150 | // Find the distance between now an the count down date | 133 | // Find the distance between now an the count down date |
151 | var distance = mumbai - now; | 134 | var distance = mumbai - now; |
152 | // Time calculations for days, hours, minutes and seconds | 135 | // Time calculations for days, hours, minutes and seconds |
153 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 136 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
154 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 137 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
155 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 138 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
156 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 139 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
157 | $scope.timer = days + "d " + hours + "h " | 140 | $scope.timer = days + "d " + hours + "h " |
158 | + minutes + "m " + seconds + "s " | 141 | + minutes + "m " + seconds + "s " |
159 | // Output the result in an element with id="demo" | 142 | // Output the result in an element with id="demo" |
160 | document.getElementById("mumbai").innerHTML = days + "d " + hours + "h " | 143 | document.getElementById("mumbai").innerHTML = days + "d " + hours + "h " |
161 | + minutes + "m " + seconds + "s "; | 144 | + minutes + "m " + seconds + "s "; |
162 | // If the count down is over, write some text | 145 | // If the count down is over, write some text |
163 | if (distance < 0) { | 146 | if (distance < 0) { |
164 | clearInterval(x); | 147 | clearInterval(x); |
165 | document.getElementById("mumbai").innerHTML = "EXPIRED"; | 148 | document.getElementById("mumbai").innerHTML = "EXPIRED"; |
166 | } | 149 | } |
167 | }, 1000); | 150 | }, 1000); |
168 | 151 | ||
169 | var kolkata = new Date("Oct 2, 2018 12:00:00").getTime(); | 152 | var kolkata = new Date("Oct 2, 2018 12:00:00").getTime(); |
170 | // Update the count down every 1 second | 153 | // Update the count down every 1 second |
171 | var x = setInterval(function() { | 154 | var x = setInterval(function() { |
172 | // Get todays date and time | 155 | // Get todays date and time |
173 | var now = new Date().getTime(); | 156 | var now = new Date().getTime(); |
174 | // Find the distance between now an the count down date | 157 | // Find the distance between now an the count down date |
175 | var distance = kolkata - now; | 158 | var distance = kolkata - now; |
176 | // Time calculations for days, hours, minutes and seconds | 159 | // Time calculations for days, hours, minutes and seconds |
177 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 160 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
178 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 161 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
179 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 162 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
180 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 163 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
181 | $scope.timer = days + "d " + hours + "h " | 164 | $scope.timer = days + "d " + hours + "h " |
182 | + minutes + "m " + seconds + "s " | 165 | + minutes + "m " + seconds + "s " |
183 | // Output the result in an element with id="demo" | 166 | // Output the result in an element with id="demo" |
184 | document.getElementById("kolkata").innerHTML = days + "d " + hours + "h " | 167 | document.getElementById("kolkata").innerHTML = days + "d " + hours + "h " |
185 | + minutes + "m " + seconds + "s "; | 168 | + minutes + "m " + seconds + "s "; |
186 | // If the count down is over, write some text | 169 | // If the count down is over, write some text |
187 | if (distance < 0) { | 170 | if (distance < 0) { |
188 | clearInterval(x); | 171 | clearInterval(x); |
189 | document.getElementById("kolkata").innerHTML = "EXPIRED"; | 172 | document.getElementById("kolkata").innerHTML = "EXPIRED"; |
190 | } | 173 | } |
191 | }, 1000); | 174 | }, 1000); |
192 | 175 | ||
193 | var jaipur = new Date("Oct 4, 2018 12:00:00").getTime(); | 176 | var jaipur = new Date("Oct 4, 2018 12:00:00").getTime(); |
194 | // Update the count down every 1 second | 177 | // Update the count down every 1 second |
195 | var x = setInterval(function() { | 178 | var x = setInterval(function() { |
196 | // Get todays date and time | 179 | // Get todays date and time |
197 | var now = new Date().getTime(); | 180 | var now = new Date().getTime(); |
198 | // Find the distance between now an the count down date | 181 | // Find the distance between now an the count down date |
199 | var distance = jaipur - now; | 182 | var distance = jaipur - now; |
200 | // Time calculations for days, hours, minutes and seconds | 183 | // Time calculations for days, hours, minutes and seconds |
201 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 184 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
202 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 185 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
203 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 186 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
204 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 187 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
205 | $scope.timer = days + "d " + hours + "h " | 188 | $scope.timer = days + "d " + hours + "h " |
206 | + minutes + "m " + seconds + "s " | 189 | + minutes + "m " + seconds + "s " |
207 | // Output the result in an element with id="demo" | 190 | // Output the result in an element with id="demo" |
208 | document.getElementById("jaipur").innerHTML = days + "d " + hours + "h " | 191 | document.getElementById("jaipur").innerHTML = days + "d " + hours + "h " |
209 | + minutes + "m " + seconds + "s "; | 192 | + minutes + "m " + seconds + "s "; |
210 | // If the count down is over, write some text | 193 | // If the count down is over, write some text |
211 | if (distance < 0) { | 194 | if (distance < 0) { |
212 | clearInterval(x); | 195 | clearInterval(x); |
213 | document.getElementById("jaipur").innerHTML = "EXPIRED"; | 196 | document.getElementById("jaipur").innerHTML = "EXPIRED"; |
214 | } | 197 | } |
215 | }, 1000); | 198 | }, 1000); |
216 | 199 | ||
217 | var delhi = new Date("Oct 7, 2018 12:00:00").getTime(); | 200 | var delhi = new Date("Oct 7, 2018 12:00:00").getTime(); |
218 | // Update the count down every 1 second | 201 | // Update the count down every 1 second |
219 | var x = setInterval(function() { | 202 | var x = setInterval(function() { |
220 | // Get todays date and time | 203 | // Get todays date and time |
221 | var now = new Date().getTime(); | 204 | var now = new Date().getTime(); |
222 | // Find the distance between now an the count down date | 205 | // Find the distance between now an the count down date |
223 | var distance = delhi - now; | 206 | var distance = delhi - now; |
224 | // Time calculations for days, hours, minutes and seconds | 207 | // Time calculations for days, hours, minutes and seconds |
225 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 208 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
226 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 209 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
227 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 210 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
228 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 211 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
229 | $scope.timer = days + "d " + hours + "h " | 212 | $scope.timer = days + "d " + hours + "h " |
230 | + minutes + "m " + seconds + "s " | 213 | + minutes + "m " + seconds + "s " |
231 | // Output the result in an element with id="demo" | 214 | // Output the result in an element with id="demo" |
232 | document.getElementById("delhi").innerHTML = days + "d " + hours + "h " | 215 | document.getElementById("delhi").innerHTML = days + "d " + hours + "h " |
233 | + minutes + "m " + seconds + "s "; | 216 | + minutes + "m " + seconds + "s "; |
234 | // If the count down is over, write some text | 217 | // If the count down is over, write some text |
235 | if (distance < 0) { | 218 | if (distance < 0) { |
236 | clearInterval(x); | 219 | clearInterval(x); |
237 | document.getElementById("delhi").innerHTML = "EXPIRED"; | 220 | document.getElementById("delhi").innerHTML = "EXPIRED"; |
238 | } | 221 | } |
239 | }, 1000); | 222 | }, 1000); |
240 | 223 | ||
241 | var kanpur = new Date("Oct 9, 2018 12:00:00").getTime(); | 224 | var kanpur = new Date("Oct 9, 2018 12:00:00").getTime(); |
242 | // Update the count down every 1 second | 225 | // Update the count down every 1 second |
243 | var x = setInterval(function() { | 226 | var x = setInterval(function() { |
244 | // Get todays date and time | 227 | // Get todays date and time |
245 | var now = new Date().getTime(); | 228 | var now = new Date().getTime(); |
246 | // Find the distance between now an the count down date | 229 | // Find the distance between now an the count down date |
247 | var distance = kanpur - now; | 230 | var distance = kanpur - now; |
248 | // Time calculations for days, hours, minutes and seconds | 231 | // Time calculations for days, hours, minutes and seconds |
249 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 232 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
250 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 233 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
251 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 234 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
252 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 235 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
253 | $scope.timer = days + "d " + hours + "h " | 236 | $scope.timer = days + "d " + hours + "h " |
254 | + minutes + "m " + seconds + "s " | 237 | + minutes + "m " + seconds + "s " |
255 | // Output the result in an element with id="demo" | 238 | // Output the result in an element with id="demo" |
256 | document.getElementById("kanpur").innerHTML = days + "d " + hours + "h " | 239 | document.getElementById("kanpur").innerHTML = days + "d " + hours + "h " |
257 | + minutes + "m " + seconds + "s "; | 240 | + minutes + "m " + seconds + "s "; |
258 | // If the count down is over, write some text | 241 | // If the count down is over, write some text |
259 | if (distance < 0) { | 242 | if (distance < 0) { |
260 | clearInterval(x); | 243 | clearInterval(x); |
261 | document.getElementById("kanpur").innerHTML = "EXPIRED"; | 244 | document.getElementById("kanpur").innerHTML = "EXPIRED"; |
262 | } | 245 | } |
263 | }, 1000); | 246 | }, 1000); |
264 | 247 | ||
265 | var ahmedabad = new Date("Oct 11, 2018 12:00:00").getTime(); | 248 | var ahmedabad = new Date("Oct 11, 2018 12:00:00").getTime(); |
266 | // Update the count down every 1 second | 249 | // Update the count down every 1 second |
267 | var x = setInterval(function() { | 250 | var x = setInterval(function() { |
268 | // Get todays date and time | 251 | // Get todays date and time |
269 | var now = new Date().getTime(); | 252 | var now = new Date().getTime(); |
270 | // Find the distance between now an the count down date | 253 | // Find the distance between now an the count down date |
271 | var distance = ahmedabad - now; | 254 | var distance = ahmedabad - now; |
272 | // Time calculations for days, hours, minutes and seconds | 255 | // Time calculations for days, hours, minutes and seconds |
273 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 256 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
274 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 257 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
275 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 258 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
276 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 259 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
277 | $scope.timer = days + "d " + hours + "h " | 260 | $scope.timer = days + "d " + hours + "h " |
278 | + minutes + "m " + seconds + "s " | 261 | + minutes + "m " + seconds + "s " |
279 | // Output the result in an element with id="demo" | 262 | // Output the result in an element with id="demo" |
280 | document.getElementById("ahmedabad").innerHTML = days + "d " + hours + "h " | 263 | document.getElementById("ahmedabad").innerHTML = days + "d " + hours + "h " |
281 | + minutes + "m " + seconds + "s "; | 264 | + minutes + "m " + seconds + "s "; |
282 | // If the count down is over, write some text | 265 | // If the count down is over, write some text |
283 | if (distance < 0) { | 266 | if (distance < 0) { |
284 | clearInterval(x); | 267 | clearInterval(x); |
285 | document.getElementById("ahmedabad").innerHTML = "EXPIRED"; | 268 | document.getElementById("ahmedabad").innerHTML = "EXPIRED"; |
286 | } | 269 | } |
287 | }, 1000); | 270 | }, 1000); |
288 | 271 | ||
289 | var bengaluru = new Date("Oct 12, 2018 12:00:00").getTime(); | 272 | var bengaluru = new Date("Oct 12, 2018 12:00:00").getTime(); |
290 | // Update the count down every 1 second | 273 | // Update the count down every 1 second |
291 | var x = setInterval(function() { | 274 | var x = setInterval(function() { |
292 | // Get todays date and time | 275 | // Get todays date and time |
293 | var now = new Date().getTime(); | 276 | var now = new Date().getTime(); |
294 | // Find the distance between now an the count down date | 277 | // Find the distance between now an the count down date |
295 | var distance = bengaluru - now; | 278 | var distance = bengaluru - now; |
296 | // Time calculations for days, hours, minutes and seconds | 279 | // Time calculations for days, hours, minutes and seconds |
297 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 280 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
298 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 281 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
299 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 282 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
300 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 283 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
301 | $scope.timer = days + "d " + hours + "h " | 284 | $scope.timer = days + "d " + hours + "h " |
302 | + minutes + "m " + seconds + "s " | 285 | + minutes + "m " + seconds + "s " |
303 | // Output the result in an element with id="demo" | 286 | // Output the result in an element with id="demo" |
304 | document.getElementById("bengaluru").innerHTML = days + "d " + hours + "h " | 287 | document.getElementById("bengaluru").innerHTML = days + "d " + hours + "h " |
305 | + minutes + "m " + seconds + "s "; | 288 | + minutes + "m " + seconds + "s "; |
306 | // If the count down is over, write some text | 289 | // If the count down is over, write some text |
307 | if (distance < 0) { | 290 | if (distance < 0) { |
308 | clearInterval(x); | 291 | clearInterval(x); |
309 | document.getElementById("bengaluru").innerHTML = "EXPIRED"; | 292 | document.getElementById("bengaluru").innerHTML = "EXPIRED"; |
310 | } | 293 | } |
311 | }, 1000); | 294 | }, 1000); |
312 | 295 | ||
313 | var dharamsala = new Date("Dec 13, 2018 12:00:00").getTime(); | 296 | var dharamsala = new Date("Dec 13, 2018 12:00:00").getTime(); |
314 | // Update the count down every 1 second | 297 | // Update the count down every 1 second |
315 | var x = setInterval(function() { | 298 | var x = setInterval(function() { |
316 | // Get todays date and time | 299 | // Get todays date and time |
317 | var now = new Date().getTime(); | 300 | var now = new Date().getTime(); |
318 | // Find the distance between now an the count down date | 301 | // Find the distance between now an the count down date |
319 | var distance = dharamsala - now; | 302 | var distance = dharamsala - now; |
320 | // Time calculations for days, hours, minutes and seconds | 303 | // Time calculations for days, hours, minutes and seconds |
321 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 304 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
322 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 305 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
323 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 306 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
324 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 307 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
325 | $scope.timer = days + "d " + hours + "h " | 308 | $scope.timer = days + "d " + hours + "h " |
326 | + minutes + "m " + seconds + "s " | 309 | + minutes + "m " + seconds + "s " |
327 | // Output the result in an element with id="demo" | 310 | // Output the result in an element with id="demo" |
328 | document.getElementById("dharamsala").innerHTML = days + "d " + hours + "h " | 311 | document.getElementById("dharamsala").innerHTML = days + "d " + hours + "h " |
329 | + minutes + "m " + seconds + "s "; | 312 | + minutes + "m " + seconds + "s "; |
330 | // If the count down is over, write some text | 313 | // If the count down is over, write some text |
331 | if (distance < 0) { | 314 | if (distance < 0) { |
332 | clearInterval(x); | 315 | clearInterval(x); |
333 | document.getElementById("dharamsala").innerHTML = "EXPIRED"; | 316 | document.getElementById("dharamsala").innerHTML = "EXPIRED"; |
334 | } | 317 | } |
335 | }, 1000); | 318 | }, 1000); |
336 | 319 | ||
337 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 320 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
338 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 321 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
339 | // $scope.Textshow = "yes" | 322 | // $scope.Textshow = "yes" |
340 | $scope.max = 100; | 323 | $scope.max = 100; |
341 | $scope.formPage = false; | 324 | $scope.formPage = false; |
342 | $scope.current = 0; | 325 | $scope.current = 0; |
343 | $scope.payingAmnt = 0; | 326 | $scope.payingAmnt = 0; |
344 | $scope.data = {}; | 327 | $scope.data = {}; |
345 | $scope.discountAmount = 0; | 328 | $scope.discountAmount = 0; |
346 | // $scope.data.quantity = "1"; | 329 | // $scope.data.quantity = "1"; |
347 | $scope.check = false; | 330 | $scope.check = false; |
348 | $scope.numberCheck = false; | 331 | $scope.numberCheck = false; |
349 | $scope.paymentResult = {}; | 332 | $scope.paymentResult = {}; |
350 | var data = { | 333 | var data = { |
351 | "amount": $scope.payingAmnt, | 334 | "amount": $scope.payingAmnt, |
352 | "currency": "INR", | 335 | "currency": "INR", |
353 | "status": "pending" | 336 | "status": "pending" |
354 | } | 337 | } |
355 | 338 | ||
356 | $scope.apply = function() { | 339 | $scope.apply = function() { |
357 | //Analytics.trackEvent('register', 'click', 'Registration'); | 340 | //Analytics.trackEvent('register', 'click', 'Registration'); |
358 | $location.path("/caricatures") | 341 | $location.path("/caricatures") |
359 | } | 342 | } |
360 | 343 | ||
361 | $scope.data.city = ''; | 344 | $scope.data.city = ''; |
362 | $scope.watch = function(value){ | 345 | $scope.watch = function(value){ |
363 | console.log("cllll",value) | 346 | console.log("cllll",value) |
364 | $scope.data.city = value; | 347 | $scope.data.city = value; |
365 | localStorage.setItem("city" ,value); | 348 | localStorage.setItem("city" ,value); |
366 | //$location.path('/registration').search({city: value}); | 349 | //$location.path('/registration').search({city: value}); |
367 | $location.path('/registration/'+value+''); | 350 | $location.path('/registration/'+value+''); |
368 | //$state.go('registration', { 'city': value}) | 351 | //$state.go('registration', { 'city': value}) |
369 | } | 352 | } |
370 | 353 | ||
371 | $scope.select = function(url){ | 354 | $scope.select = function(url){ |
372 | console.log("cllll") | 355 | console.log("cllll") |
373 | window.open(url) | 356 | window.open(url) |
374 | } | 357 | } |
375 | 358 | ||
376 | $scope.stagekeyPress = function() { | 359 | $scope.stagekeyPress = function() { |
377 | $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)'); | 360 | $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)'); |
378 | } | 361 | } |
379 | $scope.sectorkeyPress = function() { | 362 | $scope.sectorkeyPress = function() { |
380 | $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)'); | 363 | $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)'); |
381 | } | 364 | } |
382 | 365 | ||
383 | $scope.productLaunchkeyPress = function() { | 366 | $scope.productLaunchkeyPress = function() { |
384 | $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)'); | 367 | $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)'); |
385 | } | 368 | } |
386 | 369 | ||
387 | $scope.launchPeriodkeyPress = function() { | 370 | $scope.launchPeriodkeyPress = function() { |
388 | $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)'); | 371 | $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)'); |
389 | } | 372 | } |
390 | 373 | ||
391 | $scope.industrykeyPress = function(quantity) { | 374 | $scope.industrykeyPress = function(quantity) { |
392 | console.log("fghj",quantity) | 375 | console.log("fghj",quantity) |
393 | $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)'); | 376 | $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)'); |
394 | } | 377 | } |
395 | 378 | ||
396 | $scope.industryNamekeyPress = function(firstName) { | 379 | $scope.industryNamekeyPress = function(firstName) { |
397 | console.log("lastName==", firstName); | 380 | console.log("lastName==", firstName); |
398 | if (firstName == undefined) { | 381 | if (firstName == undefined) { |
399 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 382 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
400 | } else { | 383 | } else { |
401 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); | 384 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); |
402 | } | 385 | } |
403 | } | 386 | } |
404 | 387 | ||
405 | $scope.amountkeyPress = function() { | 388 | $scope.amountkeyPress = function() { |
406 | $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)'); | 389 | $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)'); |
407 | } | 390 | } |
408 | 391 | ||
409 | $scope.firstNamekeyPress = function(name) { | 392 | $scope.firstNamekeyPress = function(name) { |
410 | console.log("lastName==", name); | 393 | console.log("lastName==", name); |
411 | if (name == undefined) { | 394 | if (name == undefined) { |
412 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); | 395 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); |
413 | } else { | 396 | } else { |
414 | $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)'); | 397 | $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)'); |
415 | } | 398 | } |
416 | } | 399 | } |
417 | 400 | ||
418 | $scope.emailkeyPress = function(email) { | 401 | $scope.emailkeyPress = function(email) { |
419 | console.log("email", email); | 402 | console.log("email", email); |
420 | if (email == undefined) { | 403 | if (email == undefined) { |
421 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); | 404 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); |
422 | } else { | 405 | } else { |
423 | $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)'); | 406 | $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)'); |
424 | } | 407 | } |
425 | } | 408 | } |
426 | 409 | ||
427 | $scope.phonekeyPress = function(number) { | 410 | $scope.phonekeyPress = function(number) { |
428 | console.log("number", number); | 411 | console.log("number", number); |
429 | if (number == undefined || number == '') { | 412 | if (number == undefined || number == '') { |
430 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); | 413 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); |
431 | } else { | 414 | } else { |
432 | $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)'); | 415 | $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)'); |
433 | } | 416 | } |
434 | } | 417 | } |
435 | 418 | ||
436 | $scope.citykeyPress = function(city) { | 419 | $scope.citykeyPress = function(city) { |
437 | console.log("city", city); | 420 | console.log("city", city); |
438 | if (city == undefined) { | 421 | if (city == undefined) { |
439 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); | 422 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); |
440 | } else { | 423 | } else { |
441 | $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)'); | 424 | $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)'); |
442 | } | 425 | } |
443 | } | 426 | } |
444 | 427 | ||
445 | $scope.startupNamekeyPress = function(q) { | 428 | $scope.startupNamekeyPress = function(q) { |
446 | if (q == undefined) { | 429 | if (q == undefined) { |
447 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); | 430 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); |
448 | } else { | 431 | } else { |
449 | $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)'); | 432 | $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)'); |
450 | } | 433 | } |
451 | } | 434 | } |
452 | 435 | ||
453 | $scope.linkedInkeyPress = function(technology) { | 436 | $scope.linkedInkeyPress = function(technology) { |
454 | if (technology == undefined || technology == '') { | 437 | if (technology == undefined || technology == '') { |
455 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); | 438 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); |
456 | } else { | 439 | } else { |
457 | $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)'); | 440 | $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)'); |
458 | } | 441 | } |
459 | } | 442 | } |
460 | $scope.companykeyPress = function(problem) { | 443 | $scope.companykeyPress = function(problem) { |
461 | if (problem == undefined) { | 444 | if (problem == undefined) { |
462 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); | 445 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); |
463 | } else { | 446 | } else { |
464 | $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)'); | 447 | $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)'); |
465 | } | 448 | } |
466 | } | 449 | } |
467 | $scope.productNamekeyPress = function(solution) { | 450 | $scope.productNamekeyPress = function(solution) { |
468 | if (solution == undefined) { | 451 | if (solution == undefined) { |
469 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); | 452 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); |
470 | } else { | 453 | } else { |
471 | $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)'); | 454 | $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)'); |
472 | } | 455 | } |
473 | } | 456 | } |
474 | $scope.businesskeyPress = function(business) { | 457 | $scope.businesskeyPress = function(business) { |
475 | if (business == undefined) { | 458 | if (business == undefined) { |
476 | $('.icon-circle-p').css('background-color', 'rgb(102, 102, 102)'); | 459 | $('.icon-circle-p').css('background-color', 'rgb(102, 102, 102)'); |
477 | } else { | 460 | } else { |
478 | $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)'); | 461 | $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)'); |
479 | } | 462 | } |
480 | } | 463 | } |
481 | 464 | ||
482 | $scope.websitekeyPress = function(prototype) { | 465 | $scope.websitekeyPress = function(prototype) { |
483 | if (prototype == undefined || prototype == '') { | 466 | if (prototype == undefined || prototype == '') { |
484 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); | 467 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); |
485 | } else { | 468 | } else { |
486 | $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)'); | 469 | $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)'); |
487 | } | 470 | } |
488 | } | 471 | } |
489 | 472 | ||
490 | $scope.employeekeyPress = function(market) { | 473 | $scope.employeekeyPress = function(market) { |
491 | if (market == undefined || market == '') { | 474 | if (market == undefined || market == '') { |
492 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); | 475 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); |
493 | } else { | 476 | } else { |
494 | $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)'); | 477 | $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)'); |
495 | } | 478 | } |
496 | } | 479 | } |
497 | 480 | ||
498 | $scope.annualkeyPress = function(risk) { | 481 | $scope.annualkeyPress = function(risk) { |
499 | if (risk == undefined || risk == '') { | 482 | if (risk == undefined || risk == '') { |
500 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); | 483 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); |
501 | } else { | 484 | } else { |
502 | $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)'); | 485 | $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)'); |
503 | } | 486 | } |
504 | } | 487 | } |
505 | 488 | ||
506 | $scope.revenuekeyPress = function(team) { | 489 | $scope.revenuekeyPress = function(team) { |
507 | if (team == undefined) { | 490 | if (team == undefined) { |
508 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); | 491 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); |
509 | } else { | 492 | } else { |
510 | $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)'); | 493 | $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)'); |
511 | } | 494 | } |
512 | } | 495 | } |
513 | 496 | ||
514 | $scope.descriptionkeyPress = function(pitch) { | 497 | $scope.descriptionkeyPress = function(pitch) { |
515 | if (pitch == undefined) { | 498 | if (pitch == undefined) { |
516 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); | 499 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); |
517 | } else { | 500 | } else { |
518 | $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)'); | 501 | $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)'); |
519 | } | 502 | } |
520 | } | 503 | } |
521 | 504 | ||
522 | $scope.discountkeyPress = function(discount) { | 505 | $scope.discountkeyPress = function(discount) { |
523 | if (discount == undefined) { | 506 | if (discount == undefined) { |
524 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 507 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
525 | } else { | 508 | } else { |
526 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); | 509 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); |
527 | } | 510 | } |
528 | } | 511 | } |
529 | 512 | ||
530 | $scope.removeNooError = function() { | 513 | $scope.removeNooError = function() { |
531 | $('#invalidIdea').css('display', 'block'); | 514 | $('#invalidIdea').css('display', 'block'); |
532 | $('#noExist').css('display', 'none'); | 515 | $('#noExist').css('display', 'none'); |
533 | }; | 516 | }; |
534 | 517 | ||
535 | $scope.ideakeyPress = function(financial) { | 518 | $scope.ideakeyPress = function(financial) { |
536 | console.log("financial", financial); | 519 | console.log("financial", financial); |
537 | if (financial == undefined) { | 520 | if (financial == undefined) { |
538 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); | 521 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); |
539 | } else { | 522 | } else { |
540 | $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)'); | 523 | $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)'); |
541 | } | 524 | } |
542 | } | 525 | } |
543 | 526 | ||
544 | $scope.fundkeyPress = function(financial) { | 527 | $scope.fundkeyPress = function(financial) { |
545 | console.log("financial", financial); | 528 | console.log("financial", financial); |
546 | if (financial == undefined) { | 529 | if (financial == undefined) { |
547 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); | 530 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); |
548 | } else { | 531 | } else { |
549 | $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)'); | 532 | $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)'); |
550 | } | 533 | } |
551 | } | 534 | } |
552 | 535 | ||
553 | $scope.changeReferalIconColor = function(referalToken){ | 536 | $scope.changeReferalIconColor = function(referalToken){ |
554 | if (referalToken == undefined || referalToken == '') { | 537 | if (referalToken == undefined || referalToken == '') { |
555 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); | 538 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); |
556 | }else { | 539 | }else { |
557 | $('.referel-icon').css('background-color', 'rgb(25, 104, 157)'); | 540 | $('.referel-icon').css('background-color', 'rgb(25, 104, 157)'); |
558 | } | 541 | } |
559 | } | 542 | } |
560 | 543 | ||
561 | }); | 544 | }); |
562 | 545 | ||
563 | scotchApp.controller('registrationController', function($scope, $http, $location, $rootScope,$route,BASE_URL) { | 546 | scotchApp.controller('registrationController', function($scope, $http, $location, $rootScope,$route,BASE_URL) { |
564 | $scope.data = {}; | 547 | $scope.data = {}; |
565 | $scope.check = false; | 548 | $scope.check = false; |
566 | $scope.numberCheck = false; | 549 | $scope.numberCheck = false; |
567 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 550 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
568 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 551 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
569 | $scope.max = 100; | 552 | $scope.max = 100; |
570 | $scope.formPage = false; | 553 | $scope.formPage = false; |
571 | $scope.current = 0; | 554 | $scope.current = 0; |
572 | $scope.payingAmnt = 0; | 555 | $scope.payingAmnt = 0; |
573 | $scope.discountAmount = 0; | 556 | $scope.discountAmount = 0; |
574 | // $scope.data.quantity = "1"; | 557 | // $scope.data.quantity = "1"; |
575 | $scope.check = false; | 558 | $scope.check = false; |
576 | $scope.numberCheck = false; | 559 | $scope.numberCheck = false; |
577 | $scope.paymentResult = {}; | 560 | $scope.paymentResult = {}; |
578 | var data = { | 561 | var data = { |
579 | "amount": $scope.payingAmnt, | 562 | "amount": $scope.payingAmnt, |
580 | "currency": "INR", | 563 | "currency": "INR", |
581 | "status": "pending" | 564 | "status": "pending" |
582 | } | 565 | } |
583 | 566 | ||
584 | $scope.removeError = function() { | 567 | $scope.removeError = function() { |
585 | $('#invalidEmail').css('display', 'none'); | 568 | $('#invalidEmail').css('display', 'none'); |
586 | $('#alreadyExist').css('display', 'none'); | 569 | $('#alreadyExist').css('display', 'none'); |
587 | }; | 570 | }; |
588 | 571 | ||
589 | $scope.emailcheck = function(val) { | 572 | $scope.emailcheck = function(val) { |
590 | if (val == undefined) { | 573 | if (val == undefined) { |
591 | $('#invalidEmail').css('display', 'block'); | 574 | $('#invalidEmail').css('display', 'block'); |
592 | } else { | 575 | } else { |
593 | $('#alreadyExist').css('display', 'block'); | 576 | $('#alreadyExist').css('display', 'block'); |
594 | } | 577 | } |
595 | }; | 578 | }; |
596 | 579 | ||
597 | $scope.removeNoError = function() { | 580 | $scope.removeNoError = function() { |
598 | $('#invalidNumber').css('display', 'none'); | 581 | $('#invalidNumber').css('display', 'none'); |
599 | $('#alreadyExist').css('display', 'none'); | 582 | $('#alreadyExist').css('display', 'none'); |
600 | }; | 583 | }; |
601 | 584 | ||
602 | $scope.numbercheck = function(val) { | 585 | $scope.numbercheck = function(val) { |
603 | if (val == undefined) { | 586 | if (val == undefined) { |
604 | $('#invalidNumber').css('display', 'block'); | 587 | $('#invalidNumber').css('display', 'block'); |
605 | } else { | 588 | } else { |
606 | $('#alreadyExist').css('display', 'block'); | 589 | $('#alreadyExist').css('display', 'block'); |
607 | } | 590 | } |
608 | }; | 591 | }; |
609 | 592 | ||
610 | // $scope.$on('city', function (event, value) { | 593 | // $scope.$on('city', function (event, value) { |
611 | $scope.data.city = localStorage.getItem("city"); | 594 | $scope.data.city = localStorage.getItem("city"); |
612 | console.log("HERE===",$scope.data.city ); | 595 | console.log("HERE===",$scope.data.city ); |
613 | // }); | 596 | // }); |
614 | 597 | ||
615 | $rootScope.tokenCall = function(val) { | 598 | $rootScope.tokenCall = function(val) { |
616 | console.log('val-------->', val); | 599 | console.log('val-------->', val); |
617 | if (val == undefined) { | 600 | if (val == undefined) { |
618 | $('#invalidToken').css('display', 'block'); | 601 | $('#invalidToken').css('display', 'block'); |
619 | } else { | 602 | } else { |
620 | val = val.toUpperCase(); | 603 | val = val.toUpperCase(); |
621 | 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")){ | 604 | 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")){ |
622 | $scope.tokencheck = false; | 605 | $scope.tokencheck = false; |
623 | return; | 606 | return; |
624 | } | 607 | } |
625 | $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}') | 608 | $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}') |
626 | .then(function(searchResult) { | 609 | .then(function(searchResult) { |
627 | console.log("searchResult",searchResult) | 610 | console.log("searchResult",searchResult) |
628 | if (searchResult.data.length == 0) { | 611 | if (searchResult.data.length == 0) { |
629 | $scope.tokencheck = false; | 612 | $scope.tokencheck = false; |
630 | $scope.discountAmount = 0; | 613 | $scope.discountAmount = 0; |
631 | } else { | 614 | } else { |
632 | console.log("===searchResult.data[0].discount===",searchResult.data[0].discount); | 615 | console.log("===searchResult.data[0].discount===",searchResult.data[0].discount); |
633 | $scope.discountpercentage = searchResult.data[0].discount; | 616 | $scope.discountpercentage = searchResult.data[0].discount; |
634 | console.log("===searchResultdiscountpercentage===",$scope.discountpercentage); | 617 | console.log("===searchResultdiscountpercentage===",$scope.discountpercentage); |
635 | $scope.tokencheck = true; | 618 | $scope.tokencheck = true; |
636 | } | 619 | } |
637 | },function(err){ | 620 | },function(err){ |
638 | console.log(err) | 621 | console.log(err) |
639 | }); | 622 | }); |
640 | 623 | ||
641 | } | 624 | } |
642 | }; | 625 | }; |
643 | 626 | ||
644 | $scope.submit = function() { | 627 | $scope.submit = function() { |
645 | $scope.ticketAmnt = 500; | 628 | $scope.ticketAmnt = 500; |
646 | if($scope.tokencheck == false){ | 629 | if($scope.tokencheck == false){ |
647 | $scope.data.referalToken = null; | 630 | $scope.data.referalToken = null; |
648 | } | 631 | } |
649 | if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { | 632 | if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { |
650 | var x = document.getElementById("snackbar") | 633 | var x = document.getElementById("snackbar") |
651 | setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); | 634 | setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); |
652 | }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { | 635 | }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { |
653 | $scope.infoForm = true; | 636 | $scope.infoForm = true; |
654 | $scope.detail = {}; | 637 | $scope.detail = {}; |
655 | $scope.data.phone = "+91"+$scope.data.number; | 638 | $scope.data.phone = "+91"+$scope.data.number; |
656 | if($scope.data.referalToken == null){ | 639 | if($scope.data.referalToken == null){ |
657 | $scope.data.referalToken = "N.A." | 640 | $scope.data.referalToken = "N.A." |
658 | } | 641 | } |
659 | $http({ | 642 | $http({ |
660 | method: 'POST', | 643 | method: 'POST', |
661 | url: BASE_URL+'/applicants', | 644 | url: BASE_URL+'/applicants', |
662 | data: $scope.data, | 645 | data: $scope.data, |
663 | headers: {} | 646 | headers: {} |
664 | }).then(function mySuccess(result) { | 647 | }).then(function mySuccess(result) { |
665 | console.log("=====result=====",result) | 648 | console.log("=====result=====",result) |
666 | $scope.detail = result; | 649 | $scope.detail = result; |
667 | data.applicantId = result.data.id; | 650 | data.applicantId = result.data.id; |
668 | $scope.userId = result.data.id; | 651 | $scope.userId = result.data.id; |
669 | console.log("=====data=====",data) | 652 | console.log("=====data=====",data) |
670 | var amount = $scope.ticketAmnt * 100 | 653 | var amount = $scope.ticketAmnt * 100 |
671 | if($scope.tokencheck == true){ | 654 | if($scope.tokencheck == true){ |
672 | var amount = $scope.ticketAmnt | 655 | var amount = $scope.ticketAmnt |
673 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); | 656 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); |
674 | console.log("resultcity===",$scope.data.city) | 657 | console.log("resultcity===",$scope.data.city) |
675 | if($scope.discountpercentage == "100") { | 658 | if($scope.discountpercentage == "100") { |
676 | $scope.discountpercentage = "99.8"; | 659 | $scope.discountpercentage = "99.8"; |
677 | console.log("$scope.discountpercentage====",$scope.discountpercentage) | 660 | console.log("$scope.discountpercentage====",$scope.discountpercentage) |
678 | } | 661 | } |
679 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); | 662 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); |
680 | $scope.percDiscount = $scope.discountpercentage/100; | 663 | $scope.percDiscount = $scope.discountpercentage/100; |
681 | console.log("====$scope.percDiscount====",$scope.percDiscount); | 664 | console.log("====$scope.percDiscount====",$scope.percDiscount); |
682 | console.log("====amount=====",amount); | 665 | console.log("====amount=====",amount); |
683 | $scope.discountAmount = amount * $scope.percDiscount; | 666 | $scope.discountAmount = amount * $scope.percDiscount; |
684 | console.log("finalAmount====>",$scope.discountAmount) | 667 | console.log("finalAmount====>",$scope.discountAmount) |
685 | } | 668 | } |
686 | var taxAmount = $scope.ticketAmnt - $scope.discountAmount | 669 | var taxAmount = $scope.ticketAmnt - $scope.discountAmount |
687 | console.log("$scope.taxTotal----",taxAmount) | 670 | console.log("$scope.taxTotal----",taxAmount) |
688 | $scope.payingAmnt = taxAmount; | 671 | $scope.payingAmnt = taxAmount; |
689 | console.log("====$scope.payingAmnt====",$scope.payingAmnt) | 672 | console.log("====$scope.payingAmnt====",$scope.payingAmnt) |
690 | $scope.payingAmnt = $scope.payingAmnt.toFixed() | 673 | $scope.payingAmnt = $scope.payingAmnt.toFixed() |
691 | data.amount = $scope.payingAmnt; | 674 | data.amount = $scope.payingAmnt; |
692 | console.log("data.amount==",data.amount) | 675 | console.log("data.amount==",data.amount) |
693 | if($scope.detail != null){ | 676 | if($scope.detail != null){ |
694 | $http({ | 677 | $http({ |
695 | method: 'POST', | 678 | method: 'POST', |
696 | url: BASE_URL+'/payments', | 679 | url: BASE_URL+'/payments', |
697 | data: data, | 680 | data: data, |
698 | headers: {} | 681 | headers: {} |
699 | }).then(function mySuccess(paymentResult) { | 682 | }).then(function mySuccess(paymentResult) { |
700 | $scope.paymentResult = paymentResult; | 683 | $scope.paymentResult = paymentResult; |
701 | }, function myError(error) { | 684 | }, function myError(error) { |
702 | }); | 685 | }); |
703 | } | 686 | } |
704 | var i = 0; | 687 | var i = 0; |
705 | $scope.payingAmnt = $scope.payingAmnt * 100; | 688 | $scope.payingAmnt = $scope.payingAmnt * 100; |
706 | var options = { | 689 | var options = { |
707 | //"key": "rzp_test_YwHsVFiDIQ2WUQ", | 690 | //"key": "rzp_test_YwHsVFiDIQ2WUQ", |
708 | "key": "rzp_live_mkmCb4FkstuWaS", | 691 | "key": "rzp_live_mkmCb4FkstuWaS", |
709 | "amount": $scope.payingAmnt, | 692 | "amount": $scope.payingAmnt, |
710 | 693 | ||
711 | "name": "Startup Jalsa", | 694 | "name": "Startup Jalsa", |
712 | "description":"amount", | 695 | "description":"amount", |
713 | "currency": "INR", | 696 | "currency": "INR", |
714 | "status": "done", | 697 | "status": "done", |
715 | 698 | ||
716 | "prefill": { | 699 | "prefill": { |
717 | "email": $scope.detail.email, | 700 | "email": $scope.detail.email, |
718 | "contact": $scope.detail.phone | 701 | "contact": $scope.detail.phone |
719 | }, | 702 | }, |
720 | 703 | ||
721 | "theme": { | 704 | "theme": { |
722 | "color": "#2196f3 ", | 705 | "color": "#2196f3 ", |
723 | "image_padding":"NO" | 706 | "image_padding":"NO" |
724 | }, | 707 | }, |
725 | "modal": { | 708 | "modal": { |
726 | "ondismiss": function(){ | 709 | "ondismiss": function(){ |
727 | } | 710 | } |
728 | }, | 711 | }, |
729 | "handler": function (response){ | 712 | "handler": function (response){ |
730 | createPayment(response); | 713 | createPayment(response); |
731 | } | 714 | } |
732 | }; | 715 | }; |
733 | var rzp1 = new Razorpay(options); | 716 | var rzp1 = new Razorpay(options); |
734 | rzp1.open(); | 717 | rzp1.open(); |
735 | $scope.paymentResponse = {}; | 718 | $scope.paymentResponse = {}; |
736 | function createPayment(response){ | 719 | function createPayment(response){ |
737 | console.log("response12333333",response) | 720 | console.log("response12333333",response) |
738 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; | 721 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; |
739 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; | 722 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; |
740 | $scope.paymentResponse.amount = data.amount; | 723 | $scope.paymentResponse.amount = data.amount; |
741 | $scope.paymentResponse.currency = "INR"; | 724 | $scope.paymentResponse.currency = "INR"; |
742 | $scope.paymentResponse.status = $scope.paymentResult.data.status; | 725 | $scope.paymentResponse.status = $scope.paymentResult.data.status; |
743 | console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount) | 726 | console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount) |
744 | $http({ | 727 | $http({ |
745 | method: 'PUT', | 728 | method: 'PUT', |
746 | url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, | 729 | url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, |
747 | data: $scope.paymentResponse, | 730 | data: $scope.paymentResponse, |
748 | headers: {} | 731 | headers: {} |
749 | }).then(function mySuccess(searchResult) { | 732 | }).then(function mySuccess(searchResult) { |
750 | console.log("searchResult",searchResult) | 733 | console.log("searchResult",searchResult) |
751 | $location.path("/confirmation") | 734 | $location.path("/confirmation") |
752 | }, function myError(error) { | 735 | }, function myError(error) { |
753 | }); | 736 | }); |
754 | } | 737 | } |
755 | //} | 738 | //} |
756 | 739 | ||
757 | }, function myError(error) { | 740 | }, function myError(error) { |
758 | 741 | ||
759 | }); | 742 | }); |
760 | 743 | ||
761 | } | 744 | } |
762 | 745 | ||
763 | } | 746 | } |
764 | 747 | ||
765 | }); | 748 | }); |
766 | 749 | ||
767 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { | 750 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { |
768 | $scope.data = {}; | 751 | $scope.data = {}; |
769 | $scope.check = false; | 752 | $scope.check = false; |
770 | $scope.numberCheck = false; | 753 | $scope.numberCheck = false; |
771 | 754 | ||
772 | $scope.submit = function() { | 755 | $scope.submit = function() { |
773 | console.log($scope.data.name) | 756 | console.log($scope.data.name) |
774 | var randomNumber = ""+Math.random(); | 757 | var randomNumber = ""+Math.random(); |
775 | var nameSpliced = $scope.data.name.slice(0,5); | 758 | var nameSpliced = $scope.data.name.slice(0,5); |
776 | var numberSpliced = randomNumber.slice(2,4);; | 759 | var numberSpliced = randomNumber.slice(2,4);; |
777 | $scope.data.referalToken = nameSpliced+numberSpliced; | 760 | $scope.data.referalToken = nameSpliced+numberSpliced; |
778 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); | 761 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); |
779 | console.log("dsdfs",numberSpliced); | 762 | console.log("dsdfs",numberSpliced); |
780 | $http({ | 763 | $http({ |
781 | method: 'POST', | 764 | method: 'POST', |
782 | url: BASE_URL + '/ambassadors', | 765 | url: BASE_URL + '/ambassadors', |
783 | data: $scope.data, | 766 | data: $scope.data, |
784 | headers: {} | 767 | headers: {} |
785 | }).then(function mySuccess(result) { | 768 | }).then(function mySuccess(result) { |
786 | console.log("result", result) | 769 | console.log("result", result) |
787 | $scope.detail = result; | 770 | $scope.detail = result; |
788 | $('#myModal').modal('show'); | 771 | $('#myModal').modal('show'); |
789 | $scope.data.name = ''; | 772 | $scope.data.name = ''; |
790 | $scope.data.email = ''; | 773 | $scope.data.email = ''; |
791 | $scope.data.mobile = ''; | 774 | $scope.data.mobile = ''; |
792 | //$scope.data.discount = ''; | 775 | //$scope.data.discount = ''; |
793 | 776 | ||
794 | }, function myError(error) { | 777 | }, function myError(error) { |
795 | console.log(error) | 778 | console.log(error) |
796 | console.log(error.data.error.message) | 779 | console.log(error.data.error.message) |
797 | }); | 780 | }); |
798 | } | 781 | } |
799 | }); | 782 | }); |
800 | 783 | ||
801 | 784 | ||
802 | 785 | ||
803 | 786 | ||
804 | 787 |