Commit 1ef0fae0451fe576fc57daad4eadb5f98e72b891

Authored by apple
1 parent 19a2e7b14b
Exists in master

confirmation page change

Showing 2 changed files with 39 additions and 21 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-3 city-meetup card-color-confirm"> 5 <div class="col-xs-12 col-md-10 col-md-offset-3 city-meetup card-color-confirm" ng-if="approvedMsg">
6 <!-- <center> --> 6 <h3 style="text-align:center;margin-top:4%;position:relative;color: rgb(25, 104, 157);font-family: 'BenchNine', sans-serif;">Thank you for registering with us.</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 with us.</h3> 7 <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will seen hear from us with further details :)</p>
8 <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will seen hear from us with further details :)</p> 8 </div>
9 <!-- <footer> 9 <div class="col-xs-12 col-md-10 col-md-offset-3 city-meetup card-color-confirm" ng-if="disApprovedMsg">
10 <img id="footer" class="img-responsive banner"> 10 <h3 style="text-align:center;margin-top:4%;position:relative;color: red;font-family: 'BenchNine', sans-serif;">Your account status is disapprove.</h3>
11 <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> 11 <!-- <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will seen hear from us with further details :)</p> -->
12 </center>
13 </footer> -->
14 </div> 12 </div>
15 </body> 13 </body>
16 </html> 14 </html>
17 <span ng-show="span == true"> 15 <span ng-show="span == true">
18 <span id="chennai"></span> 16 <span id="chennai"></span>
19 <span id="mumbai"></span> 17 <span id="mumbai"></span>
20 <span id="hyderabad"></span> 18 <span id="hyderabad"></span>
21 <span id="kolkata"></span> 19 <span id="kolkata"></span>
22 <span id="delhi"></span> 20 <span id="delhi"></span>
23 <span id="ahmedabad"></span> 21 <span id="ahmedabad"></span>
24 <span id="bengaluru"></span> 22 <span id="bengaluru"></span>
25 <span id="jaipur"></span>kanpur 23 <span id="jaipur"></span>kanpur
26 <span id="kanpur"></span> 24 <span id="kanpur"></span>
27 <span id="dharamsala"></span> 25 <span id="dharamsala"></span>
28 </span> 26 </span>
1 // create the module and name it scotchApp 1 // create the module and name it scotchApp
2 var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']); 2 var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']);
3 3
4 // configure our routes 4 // configure our routes
5 scotchApp.config(function($routeProvider,$locationProvider) { 5 scotchApp.config(function($routeProvider,$locationProvider) {
6 6
7 // use the HTML5 History API 7 // use the HTML5 History API
8 // $locationProvider.html5Mode({ 8 // $locationProvider.html5Mode({
9 // enabled: true, 9 // enabled: true,
10 // requireBase: false 10 // requireBase: false
11 // }); 11 // });
12 //$locationProvider.hashPrefix('!'); 12 //$locationProvider.hashPrefix('!');
13 $routeProvider 13 $routeProvider
14 // route for the Home page 14 // route for the Home page
15 .when('/', { 15 .when('/', {
16 templateUrl: 'pages/Home.html', 16 templateUrl: 'pages/Home.html',
17 controller: 'mainController' 17 controller: 'mainController'
18 }) 18 })
19 19
20 // route for the caricatures page 20 // route for the caricatures page
21 .when('/caricatures', { 21 .when('/caricatures', {
22 templateUrl: 'pages/caricatures.html', 22 templateUrl: 'pages/caricatures.html',
23 controller: 'mainController' 23 controller: 'mainController'
24 }) 24 })
25 25
26 // route for the paymentVerify page 26 // route for the paymentVerify page
27 .when('/pendingPayment/:id', { 27 .when('/pendingPayment/:id', {
28 templateUrl: 'pages/verify.html', 28 templateUrl: 'pages/verify.html',
29 controller: 'verifyController' 29 controller: 'verifyController'
30 }) 30 })
31 31
32 // route for the registration page 32 // route for the registration page
33 .when('/registration', { 33 .when('/registration', {
34 templateUrl: 'pages/registration.html', 34 templateUrl: 'pages/registration.html',
35 controller: 'registrationController' 35 controller: 'registrationController'
36 }) 36 })
37 37
38 //route for the ambassador page 38 //route for the ambassador page
39 // .when('/startupJalsaPromocode', { 39 // .when('/startupJalsaPromocode', {
40 // templateUrl: 'pages/ambassador.html', 40 // templateUrl: 'pages/ambassador.html',
41 // controller: 'ambassadorController' 41 // controller: 'ambassadorController'
42 // }) 42 // })
43 43
44 // route for the confirmation page 44 // route for the confirmation page
45 .when('/confirmation', { 45 .when('/confirmation', {
46 templateUrl: 'pages/confirmation.html', 46 templateUrl: 'pages/confirmation.html',
47 controller: 'registrationController' 47 controller: 'confirmationController'
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; 623 $scope.approvedMsg = false;
624 $scope.disApprovedMsg = false; 624 $scope.disApprovedMsg = false;
625 625
626 // $scope.data.quantity = "1"; 626 // $scope.data.quantity = "1";
627 $scope.check = false; 627 $scope.check = false;
628 $scope.numberCheck = false; 628 $scope.numberCheck = false;
629 $scope.paymentResult = {}; 629 $scope.paymentResult = {};
630 var data = { 630 var data = {
631 "amount": $scope.payingAmnt, 631 "amount": $scope.payingAmnt,
632 "currency": "INR", 632 "currency": "INR",
633 "status": "pending" 633 "status": "pending"
634 } 634 }
635 var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0] 635 // var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0]
636 console.log(window.location.href,"myParam",myParam) 636 // if(myParam){
637 if(myParam){ 637 // if(myParam == "approved"){
638 if(myParam == "approved"){ 638 // $scope.showResponse = true;
639 $scope.showResponse = true; 639 // }else{
640 }else{ 640 // $scope.disApprovedMsg = true;
641 $scope.disApprovedMsg = true; 641 // }
642 } 642 // }else{
643 }else{ 643 // $scope.disApprovedMsg = true;
644 $scope.disApprovedMsg = true; 644 // }
645 }
646 645
647 $scope.removeError = function() { 646 $scope.removeError = function() {
648 $('#invalidEmail').css('display', 'none'); 647 $('#invalidEmail').css('display', 'none');
649 $('#alreadyExist').css('display', 'none'); 648 $('#alreadyExist').css('display', 'none');
650 }; 649 };
651 650
652 $scope.emailcheck = function(val) { 651 $scope.emailcheck = function(val) {
653 if (val == undefined) { 652 if (val == undefined) {
654 $('#invalidEmail').css('display', 'block'); 653 $('#invalidEmail').css('display', 'block');
655 } else { 654 } else {
656 $('#alreadyExist').css('display', 'block'); 655 $('#alreadyExist').css('display', 'block');
657 } 656 }
658 }; 657 };
659 658
660 $scope.removeNoError = function() { 659 $scope.removeNoError = function() {
661 $('#invalidNumber').css('display', 'none'); 660 $('#invalidNumber').css('display', 'none');
662 $('#alreadyExist').css('display', 'none'); 661 $('#alreadyExist').css('display', 'none');
663 }; 662 };
664 663
665 $scope.numbercheck = function(val) { 664 $scope.numbercheck = function(val) {
666 if (val == undefined) { 665 if (val == undefined) {
667 $('#invalidNumber').css('display', 'block'); 666 $('#invalidNumber').css('display', 'block');
668 } else { 667 } else {
669 $('#alreadyExist').css('display', 'block'); 668 $('#alreadyExist').css('display', 'block');
670 } 669 }
671 }; 670 };
672 671
673 // $scope.$on('city', function (event, value) { 672 // $scope.$on('city', function (event, value) {
674 $scope.data.city = localStorage.getItem("city"); 673 $scope.data.city = localStorage.getItem("city");
675 // console.log("HERE===",$scope.data.city ); 674 // console.log("HERE===",$scope.data.city );
676 // }); 675 // });
677 676
678 var handleFileSelect = function(evt) { 677 var handleFileSelect = function(evt) {
679 var files = evt.target.files; 678 var files = evt.target.files;
680 var file = files[0]; 679 var file = files[0];
681 680
682 if (files && file) { 681 if (files && file) {
683 var reader = new FileReader(); 682 var reader = new FileReader();
684 683
685 reader.onload = function(readerEvt) { 684 reader.onload = function(readerEvt) {
686 var binaryString = readerEvt.target.result; 685 var binaryString = readerEvt.target.result;
687 $scope.base64textString = btoa(binaryString); 686 $scope.base64textString = btoa(binaryString);
688 //console.log("base64textarea",$scope.base64textString) 687 //console.log("base64textarea",$scope.base64textString)
689 //$scope.data.uploadFile = file.name; 688 //$scope.data.uploadFile = file.name;
690 $scope.fileSelect = false; 689 $scope.fileSelect = false;
691 if($scope.data.uploadFile == null){ 690 if($scope.data.uploadFile == null){
692 $scope.fileSelect = true; 691 $scope.fileSelect = true;
693 }else{ 692 }else{
694 $scope.fileSelect = false; 693 $scope.fileSelect = false;
695 }; 694 };
696 } 695 }
697 696
698 reader.readAsBinaryString(file); 697 reader.readAsBinaryString(file);
699 } 698 }
700 }; 699 };
701 if (window.File && window.FileReader && window.FileList && window.Blob) { 700 if (window.File && window.FileReader && window.FileList && window.Blob) {
702 document.getElementById('filePicker').addEventListener('change', handleFileSelect, false); 701 document.getElementById('filePicker').addEventListener('change', handleFileSelect, false);
703 } 702 }
704 703
705 $scope.ngShowhide = false; 704 $scope.ngShowhide = false;
706 $scope.GetValue = function(){ 705 $scope.GetValue = function(){
707 console.log("====$scope.value===",$scope.data.sector) 706 console.log("====$scope.value===",$scope.data.sector)
708 if($scope.data.sector == "Other"){ 707 if($scope.data.sector == "Other"){
709 $scope.ngShowhide = true; 708 $scope.ngShowhide = true;
710 }else{ 709 }else{
711 $scope.ngShowhide = false; 710 $scope.ngShowhide = false;
712 } 711 }
713 } 712 }
714 713
715 // $rootScope.tokenCall = function(val) { 714 // $rootScope.tokenCall = function(val) {
716 // console.log('val-------->', val); 715 // console.log('val-------->', val);
717 // if (val == undefined) { 716 // if (val == undefined) {
718 // $('#invalidToken').css('display', 'block'); 717 // $('#invalidToken').css('display', 'block');
719 // } else { 718 // } else {
720 // val = val.toUpperCase(); 719 // val = val.toUpperCase();
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")){ 720 // 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")){
722 // $scope.tokencheck = false; 721 // $scope.tokencheck = false;
723 // return; 722 // return;
724 // } 723 // }
725 // $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}') 724 // $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}')
726 // .then(function(searchResult) { 725 // .then(function(searchResult) {
727 // console.log("searchResult",searchResult) 726 // console.log("searchResult",searchResult)
728 // if (searchResult.data.length == 0) { 727 // if (searchResult.data.length == 0) {
729 // $scope.tokencheck = false; 728 // $scope.tokencheck = false;
730 // $scope.discountAmount = 0; 729 // $scope.discountAmount = 0;
731 // } else { 730 // } else {
732 // console.log("===searchResult.data[0].discount===",searchResult.data[0].discount); 731 // console.log("===searchResult.data[0].discount===",searchResult.data[0].discount);
733 // $scope.discountpercentage = searchResult.data[0].discount; 732 // $scope.discountpercentage = searchResult.data[0].discount;
734 // console.log("===searchResultdiscountpercentage===",$scope.discountpercentage); 733 // console.log("===searchResultdiscountpercentage===",$scope.discountpercentage);
735 // $scope.tokencheck = true; 734 // $scope.tokencheck = true;
736 // } 735 // }
737 // },function(err){ 736 // },function(err){
738 // console.log(err) 737 // console.log(err)
739 // }); 738 // });
740 739
741 // } 740 // }
742 // }; 741 // };
743 $scope.click = function(){ 742 $scope.click = function(){
744 $http({ 743 $http({
745 method: 'GET', 744 method: 'GET',
746 url: "https://securegw.paytm.in/theia/processTransaction", 745 url: "https://securegw.paytm.in/theia/processTransaction",
747 headers: {} 746 headers: {}
748 }).then(function mySuccess(result) { 747 }).then(function mySuccess(result) {
749 console.log("rslt",result) 748 console.log("rslt",result)
750 result.data = $sce.trustAsHtml(result.data); 749 result.data = $sce.trustAsHtml(result.data);
751 console.log(result.data) 750 console.log(result.data)
752 // { 751 // {
753 // results[i].content = $sce.trustAsHtml(response.data.data[i].content); 752 // results[i].content = $sce.trustAsHtml(response.data.data[i].content);
754 // } 753 // }
755 //$scope.languages = results; 754 //$scope.languages = results;
756 }); 755 });
757 } 756 }
758 757
759 $scope.submit = function() { 758 $scope.submit = function() {
760 $scope.data.uploadFile = $scope.base64textString; 759 $scope.data.uploadFile = $scope.base64textString;
761 console.log($scope.data.uploadFile) 760 console.log($scope.data.uploadFile)
762 // if($scope.tokencheck == false){ 761 // if($scope.tokencheck == false){
763 // $scope.data.referalToken = null; 762 // $scope.data.referalToken = null;
764 // } 763 // }
765 // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { 764 // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) {
766 // var x = document.getElementById("snackbar") 765 // var x = document.getElementById("snackbar")
767 // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); 766 // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
768 // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { 767 // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) {
769 $scope.infoForm = true; 768 $scope.infoForm = true;
770 $scope.ticketAmnt = 500; 769 $scope.ticketAmnt = 500;
771 $scope.detail = {}; 770 $scope.detail = {};
772 $scope.data.phone = "+91"+$scope.data.number; 771 $scope.data.phone = "+91"+$scope.data.number;
773 // if($scope.data.referalToken == null){ 772 // if($scope.data.referalToken == null){
774 // $scope.data.referalToken = "N.A." 773 // $scope.data.referalToken = "N.A."
775 // } 774 // }
776 var file =document.getElementById('filePicker').files[0]; 775 var file =document.getElementById('filePicker').files[0];
777 //console.log("file",filePicker) 776 //console.log("file",filePicker)
778 var image = BASE_URL+'/containers/images/download/' 777 var image = BASE_URL+'/containers/images/download/'
779 var imagePath = file.name; 778 var imagePath = file.name;
780 $scope.data.uploadFile = image + imagePath; 779 $scope.data.uploadFile = image + imagePath;
781 //console.log($scope.data.uploadFile) 780 //console.log($scope.data.uploadFile)
782 var fd = new FormData() 781 var fd = new FormData()
783 fd.append('filePicker',file); 782 fd.append('filePicker',file);
784 var deferred = $q.defer(); 783 var deferred = $q.defer();
785 $http({ 784 $http({
786 method:'POST', 785 method:'POST',
787 url: BASE_URL+'/containers/images/upload', 786 url: BASE_URL+'/containers/images/upload',
788 data:fd, 787 data:fd,
789 transformRequest:angular.identity, 788 transformRequest:angular.identity,
790 headers:{'Content-Type':undefined} 789 headers:{'Content-Type':undefined}
791 }) 790 })
792 .success(function(result){ 791 .success(function(result){
793 deferred.resolve(result); 792 deferred.resolve(result);
794 $http({ 793 $http({
795 method: 'POST', 794 method: 'POST',
796 url: BASE_URL+'/applicants', 795 url: BASE_URL+'/applicants',
797 data: $scope.data, 796 data: $scope.data,
798 headers: {} 797 headers: {}
799 }).then(function mySuccess(result) { 798 }).then(function mySuccess(result) {
800 console.log("=====result=====",result) 799 console.log("=====result=====",result)
801 $scope.detail = result; 800 $scope.detail = result;
802 data.applicantId = result.data.id; 801 data.applicantId = result.data.id;
803 $scope.userId = result.data.id; 802 $scope.userId = result.data.id;
804 console.log("=====data=====",data) 803 console.log("=====data=====",data)
805 var amount = $scope.ticketAmnt * 100 804 var amount = $scope.ticketAmnt * 100
806 if($scope.tokencheck == true){ 805 if($scope.tokencheck == true){
807 var amount = $scope.ticketAmnt 806 var amount = $scope.ticketAmnt
808 console.log("====$scope.discountpercentage====",$scope.discountpercentage); 807 console.log("====$scope.discountpercentage====",$scope.discountpercentage);
809 console.log("resultcity===",$scope.data.city) 808 console.log("resultcity===",$scope.data.city)
810 if($scope.discountpercentage == "100") { 809 if($scope.discountpercentage == "100") {
811 $scope.discountpercentage = "99.8"; 810 $scope.discountpercentage = "99.8";
812 console.log("$scope.discountpercentage====",$scope.discountpercentage) 811 console.log("$scope.discountpercentage====",$scope.discountpercentage)
813 } 812 }
814 console.log("====$scope.discountpercentage====",$scope.discountpercentage); 813 console.log("====$scope.discountpercentage====",$scope.discountpercentage);
815 $scope.percDiscount = $scope.discountpercentage/100; 814 $scope.percDiscount = $scope.discountpercentage/100;
816 console.log("====$scope.percDiscount====",$scope.percDiscount); 815 console.log("====$scope.percDiscount====",$scope.percDiscount);
817 console.log("====amount=====",amount); 816 console.log("====amount=====",amount);
818 $scope.discountAmount = amount * $scope.percDiscount; 817 $scope.discountAmount = amount * $scope.percDiscount;
819 console.log("finalAmount====>",$scope.discountAmount) 818 console.log("finalAmount====>",$scope.discountAmount)
820 } 819 }
821 var taxAmount = $scope.ticketAmnt - $scope.discountAmount 820 var taxAmount = $scope.ticketAmnt - $scope.discountAmount
822 console.log("$scope.taxTotal----",taxAmount) 821 console.log("$scope.taxTotal----",taxAmount)
823 $scope.payingAmnt = taxAmount; 822 $scope.payingAmnt = taxAmount;
824 console.log("====$scope.payingAmnt====",$scope.payingAmnt) 823 console.log("====$scope.payingAmnt====",$scope.payingAmnt)
825 $scope.payingAmnt = $scope.payingAmnt.toFixed() 824 $scope.payingAmnt = $scope.payingAmnt.toFixed()
826 data.amount = $scope.payingAmnt; 825 data.amount = $scope.payingAmnt;
827 console.log("data.amount==",data.amount) 826 console.log("data.amount==",data.amount)
828 if($scope.detail != null){ 827 if($scope.detail != null){
829 $http({ 828 $http({
830 method: 'POST', 829 method: 'POST',
831 url: BASE_URL+'/payments', 830 url: BASE_URL+'/payments',
832 data: data, 831 data: data,
833 headers: {} 832 headers: {}
834 }).then(function mySuccess(paymentResult) { 833 }).then(function mySuccess(paymentResult) {
835 console.log("paymentResult",paymentResult.data.data) 834 console.log("paymentResult",paymentResult.data.data)
836 $("p").html(paymentResult.data.data) 835 $("p").html(paymentResult.data.data)
837 }, function myError(error) { 836 }, function myError(error) {
838 }); 837 });
839 } 838 }
840 // var i = 0; 839 // var i = 0;
841 // $scope.payingAmnt = $scope.payingAmnt * 100; 840 // $scope.payingAmnt = $scope.payingAmnt * 100;
842 // var options = { 841 // var options = {
843 // //"key": "rzp_test_YwHsVFiDIQ2WUQ", 842 // //"key": "rzp_test_YwHsVFiDIQ2WUQ",
844 // "key": "rzp_live_mkmCb4FkstuWaS", 843 // "key": "rzp_live_mkmCb4FkstuWaS",
845 // "amount": $scope.payingAmnt, 844 // "amount": $scope.payingAmnt,
846 845
847 // "name": "Startup Jalsa", 846 // "name": "Startup Jalsa",
848 // "description":"amount", 847 // "description":"amount",
849 // "currency": "INR", 848 // "currency": "INR",
850 // "status": "done", 849 // "status": "done",
851 850
852 // "prefill": { 851 // "prefill": {
853 // "email": $scope.detail.email, 852 // "email": $scope.detail.email,
854 // "contact": $scope.detail.phone 853 // "contact": $scope.detail.phone
855 // }, 854 // },
856 855
857 // "theme": { 856 // "theme": {
858 // "color": "#2196f3 ", 857 // "color": "#2196f3 ",
859 // "image_padding":"NO" 858 // "image_padding":"NO"
860 // }, 859 // },
861 // "modal": { 860 // "modal": {
862 // "ondismiss": function(){ 861 // "ondismiss": function(){
863 // } 862 // }
864 // }, 863 // },
865 // "handler": function (response){ 864 // "handler": function (response){
866 // createPayment(response); 865 // createPayment(response);
867 // } 866 // }
868 // }; 867 // };
869 // var rzp1 = new Razorpay(options); 868 // var rzp1 = new Razorpay(options);
870 // rzp1.open(); 869 // rzp1.open();
871 // $scope.paymentResponse = {}; 870 // $scope.paymentResponse = {};
872 // function createPayment(response){ 871 // function createPayment(response){
873 // console.log("response12333333",response) 872 // console.log("response12333333",response)
874 // $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; 873 // $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id;
875 // $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; 874 // $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId;
876 // $scope.paymentResponse.amount = data.amount; 875 // $scope.paymentResponse.amount = data.amount;
877 // $scope.paymentResponse.currency = "INR"; 876 // $scope.paymentResponse.currency = "INR";
878 // $scope.paymentResponse.status = $scope.paymentResult.data.status; 877 // $scope.paymentResponse.status = $scope.paymentResult.data.status;
879 // console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount) 878 // console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount)
880 // $http({ 879 // $http({
881 // method: 'PUT', 880 // method: 'PUT',
882 // url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, 881 // url: BASE_URL+'/payments/'+$scope.paymentResult.data.id,
883 // data: $scope.paymentResponse, 882 // data: $scope.paymentResponse,
884 // headers: {} 883 // headers: {}
885 // }).then(function mySuccess(searchResult) { 884 // }).then(function mySuccess(searchResult) {
886 // console.log("searchResult",searchResult) 885 // console.log("searchResult",searchResult)
887 // $location.path("/confirmation") 886 // $location.path("/confirmation")
888 // }, function myError(error) { 887 // }, function myError(error) {
889 // }); 888 // });
890 // } 889 // }
891 //} 890 //}
892 891
893 }, function myError(error) { 892 }, function myError(error) {
894 893
895 }); 894 });
896 895
897 }) 896 })
898 897
899 // }) 898 // })
900 899
901 //} 900 //}
902 901
903 } 902 }
904 903
905 }); 904 });
906 905
906 scotchApp.controller('confirmationController', function($scope, $http, $location, $route, BASE_URL) {
907 $scope.approvedMsg = false;
908 $scope.disApprovedMsg = false;
909
910 var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0]
911 console.log(myParam)
912 // if(myParam){
913 if(myParam == "approved"){
914 $scope.approvedMsg = true;
915 $scope.disApprovedMsg = false;
916 }else{
917 $scope.approvedMsg = false;
918 $scope.disApprovedMsg = true;
919 }
920 // }else{
921 // $scope.disApprovedMsg = true;
922 // }
923
924 });
925
926
907 scotchApp.controller('ambassadorController', function($scope, $http, $location, $route, BASE_URL) { 927 scotchApp.controller('ambassadorController', function($scope, $http, $location, $route, BASE_URL) {
908 $scope.data = {}; 928 $scope.data = {};
909 $scope.check = false; 929 $scope.check = false;
910 $scope.numberCheck = false; 930 $scope.numberCheck = false;
911 931
912 $scope.submit = function() { 932 $scope.submit = function() {
913 console.log($scope.data.name) 933 console.log($scope.data.name)
914 var randomNumber = ""+Math.random(); 934 var randomNumber = ""+Math.random();
915 var nameSpliced = $scope.data.name.slice(0,5); 935 var nameSpliced = $scope.data.name.slice(0,5);
916 var numberSpliced = randomNumber.slice(2,4);; 936 var numberSpliced = randomNumber.slice(2,4);;
917 $scope.data.referalToken = nameSpliced+numberSpliced; 937 $scope.data.referalToken = nameSpliced+numberSpliced;
918 $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); 938 $scope.data.referalToken = $scope.data.referalToken.toUpperCase();
919 console.log("dsdfs",numberSpliced); 939 console.log("dsdfs",numberSpliced);
920 $http({ 940 $http({
921 method: 'POST', 941 method: 'POST',
922 url: BASE_URL + '/ambassadors', 942 url: BASE_URL + '/ambassadors',
923 data: $scope.data, 943 data: $scope.data,
924 headers: {} 944 headers: {}
925 }).then(function mySuccess(result) { 945 }).then(function mySuccess(result) {
926 console.log("result", result) 946 console.log("result", result)
927 $scope.detail = result; 947 $scope.detail = result;
928 $('#myModal').modal('show'); 948 $('#myModal').modal('show');
929 $scope.data.name = ''; 949 $scope.data.name = '';
930 $scope.data.email = ''; 950 $scope.data.email = '';
931 $scope.data.mobile = ''; 951 $scope.data.mobile = '';
932 //$scope.data.discount = ''; 952 //$scope.data.discount = '';
933 953
934 }, function myError(error) { 954 }, function myError(error) {
935 console.log(error) 955 console.log(error)
936 console.log(error.data.error.message) 956 console.log(error.data.error.message)
937 }); 957 });
938 } 958 }
939 }); 959 });
940 960
941 961
942 962
943 963