diff --git a/css/custom.css b/css/custom.css index 20cfb86..cb2233c 100644 --- a/css/custom.css +++ b/css/custom.css @@ -745,20 +745,7 @@ stroke-dashoffset:0 text-align: center; } - -/*.icon-circle-a { - background: rgba(89, 89, 89, 0.92); - border-radius: 50%; - width: 30px; - height: 30px; - position: absolute; - left: 0px; - margin-top: 4px; - color: #fff; - text-align: center; -} - -.icon-circle-select { +.referel-icon { background: rgba(89, 89, 89, 0.92); border-radius: 50%; width: 30px; @@ -770,17 +757,6 @@ stroke-dashoffset:0 text-align: center; } -.icon-circle-textarea { - background: rgba(89, 89, 89, 0.92); - border-radius: 50%; - width: 30px; - height: 30px; - position: absolute; - left: 0px; - margin-top: 30px; - color: #fff; - text-align: center; -}*/ /*quiz*/ .q-card-align div{ diff --git a/index.html b/index.html index a24ea8a..e299b6e 100644 --- a/index.html +++ b/index.html @@ -32,34 +32,10 @@ - -
- - - -
- +
- - diff --git a/pages/ambassador.html b/pages/ambassador.html index 68ce152..0fd793b 100644 --- a/pages/ambassador.html +++ b/pages/ambassador.html @@ -26,7 +26,6 @@ -
@@ -47,8 +46,8 @@
-
- +
+
diff --git a/pages/home.html b/pages/home.html index 2b7a507..fdf059c 100644 --- a/pages/home.html +++ b/pages/home.html @@ -1,9 +1,3 @@ - -
@@ -15,7 +9,7 @@
- +
+
+
- - - - - - -
+
- - diff --git a/script.js b/script.js index 48a5b61..4982686 100644 --- a/script.js +++ b/script.js @@ -11,8 +11,8 @@ controller: 'mainController' }) - // route for the about page - .when('/verification/:id', { + // route for the paymentVerify page + .when('/paymentVerification/:id', { templateUrl: 'pages/verify.html', controller: 'verifyController' }) @@ -24,11 +24,10 @@ }) }); - // create the controller and inject Angular's $scope - scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope) { - - + scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api") + // create the controller and inject Angular's $scope + scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL) { $scope.data = { show: true, hide: false @@ -48,12 +47,9 @@ $scope.data = {}; $scope.data.stage = 'Idea'; $scope.discountAmount = 0; - //$scope.data.email = ''; $scope.check = false; $scope.numberCheck = false; - // $scope.tokencheck = false; $scope.paymentResult = {}; - var BASE_URL = "http://139.59.68.74:4001/api"; var data = { "amount": $scope.payingAmnt, "currency": "INR", @@ -66,14 +62,12 @@ }; $scope.emailcheck = function(val) { - //console.log('val', val); if (val == undefined) { $('#invalidEmail').css('display', 'block'); } else { $http({ method: 'GET', url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', - //data: email, headers: {} }).then(function mySuccess(searchResult) { console.log("searchResult1===>", searchResult) @@ -122,7 +116,6 @@ $scope.discountAmount = 0; } else { $scope.tokencheck = true; - // $('#alreadyExist').css('display', 'block'); } },function(err){ console.log(err) @@ -147,7 +140,6 @@ /*****THIS IS FOR STEP ONE FORM ******/ $scope.next = function() { - var BASE_URL = "http://139.59.68.74:4001/api"; $scope.data.status = null if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { var x = document.getElementById("snackbar") @@ -177,7 +169,6 @@ } - $scope.calculateAmount = function(){ if ($scope.data.stage == "Idea") { console.log("$scope.data", $scope.data) @@ -205,11 +196,7 @@ } /*****THIS IS FOR STEP THREE FORM ******/ - $scope.create = function() { - console.log("$scope.data.identity", $scope.data.identity) - /*****PAYMENT WITH 18% GST*****/ - - + $scope.create = function() { if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { var x = document.getElementById("snackbar") x.className = "show"; @@ -217,33 +204,6 @@ x.className = x.className.replace("show", ""); }, 3000); } else if ($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { - - - // if($scope.data.identity == "student"){ - - // var image = BASE_URL+'/container1s/proof/download/' - // console.log("image",image) - // var image = document.getElementById('picture').files[0]; - // var imagePath = image.name; - // $scope.NewIamge = image + imagePath; - // $scope.data.pic = $scope.NewIamge; - // var fd = new FormData() - // fd.append('file',image); - // $http({ - // method:'POST', - // url: BASE_URL+'/container1s/proof/upload', - // data:fd, - // transformRequest:angular.identity, - // headers:{'Content-Type':undefined} - // }).then(function mySuccess(sucessResponse) { - - - // }, function myError(error) { - // }); - - // } - var BASE_URL = "http://139.59.68.74:4001/api"; - console.log("BASE_URL", BASE_URL) $scope.infoForm = true; console.log("sdasdasdsa"); $scope.data.stage = $scope.data.stage; @@ -332,24 +292,14 @@ }, 3000); } - // $scope.lastpage = function(){ - // console.log("sdasd"); - // $('.sectors-card').css('display', 'inherit'); - // $('.form-all').css('display', 'inherit'); - // $('.submit-button').css('display', 'inherit'); - // } /*kk***This code for change data when click to chooses stages***/ $scope.businessmodel = true; $scope.Idea = true; $scope.current = true; $scope.stage = function(stage) { - // $('.sectors-card').css('display', 'block'); - // $('.form-all').css('display', 'block'); - // $('.identity-shadow').css('display', 'block'); - // $('.step-two-form').css('display', 'block'); - // $('.step-three-form').css('display', 'block'); - + $scope.stagekeyPress(); + console.log("stage--2",stage) if (stage == 'Idea') { $scope.current = 10; $scope.prototyp = false; @@ -359,6 +309,7 @@ $scope.pitch = false; $scope.financials = false; $scope.businessmodel = true; + $scope.data.stage = stage; // for right content $scope.Idea = true; $scope.Product = false; @@ -372,6 +323,7 @@ $scope.pitch = true; $scope.financials = true; $scope.businessmodel = false; + $scope.data.stage = stage; // for right content $scope.Idea = false; $scope.Product = true; @@ -389,119 +341,14 @@ $scope.Idea = false; $scope.Product = false; $scope.Growth = true; + $scope.data.stage = stage; } } - - // $scope.sector = function(sector){ - // if (sector == 'retail') { - // $scope.current = true; - - // }else if(sector == 'b2b commerce') { - // $scope.current = true; - - // }else if(sector == 'agritech') { - // $scope.current = true; - - // }else if(sector == 'travel') { - // $scope.current = true; - - // }else if(sector == 'fintech') { - // $scope.current = true; - - // }else if(sector == 'hyperlocal services') { - // $scope.current = true; - - // }else if(sector == 'education') { - // $scope.current = true; - - // }else if(sector == 'rural') { - // $scope.current = true; - // } - // } - // $scope.sector = function(sector){ - // if (sector == 'retail') { - // $scope.current = true; - - // }else if(sector == 'b2b commerce') { - // $scope.current = true; - - // }else if(sector == 'agritech') { - // $scope.current = true; - - // }else if(sector == 'travel') { - // $scope.current = true; - - // }else if(sector == 'fintech') { - // $scope.current = true; - - // }else if(sector == 'hyperlocal services') { - // $scope.current = true; - - // }else if(sector == 'education') { - // $scope.current = true; - - // }else if(sector == 'rural') { - // $scope.current = true; - // } - // } - - // $scope.entername = function(name){ - // if (name == undefined) { - // $scope.current = false; - // }else if (name != undefined){ - // $scope.current = true; - // } - // } - // $scope.enteremail = function(email){ - // if (email == undefined) { - // $scope.current = false; - // }else if (email != undefined){ - // $scope.current = true; - // } - // } - // $scope.enternumber = function(number){ - // if (name == undefined) { - // $scope.current = false; - // }else if (name != undefined){ - // $scope.current = true; - // } - // } - // $scope.selectcity = function(city){ - // console.log("city",city); - // if (name == undefined) { - // $scope.current = false; - // }else if (name != undefined){ - // $scope.current = true; - // } - // } - // $scope.entertechnology = function(technology){ - // console.log("technology",technology); - // if (name == undefined) { - // $scope.current = false; - // }else if (name != undefined){ - // $scope.current = true; - // } - // } - // $scope.enterproblem = function(problem){ - // console.log("problem",problem); - // if (name == undefined) { - // $scope.current = false; - // }else if (name != undefined){ - // $scope.current = true; - // } - // } - // $scope.entersolution = function(solution){ - // console.log("solution",solution); - // if (name == undefined) { - // $scope.current = false; - // }else if (name != undefined){ - // $scope.current = true; - // } - // } $scope.enterbusiness = function(business) { console.log("business", business); if (name == undefined) { $scope.current = false; + } else if (name != undefined) { $scope.current = true; } @@ -635,14 +482,18 @@ $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); } } + $scope.changeReferalIconColor = function(referalToken){ + if (referalToken == undefined || referalToken == '') { + $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); + }else { + $('.referel-icon').css('background-color', 'rgb(66, 181, 73)'); + } + } - // create a message to display in our view - // $scope.message = 'Everyone come and see how good I look!'; }); - scotchApp.controller('verifyController', function($scope, $http, $location, $route) { + scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { $scope.pendingPaymentId = $route.current.params.id - var BASE_URL = "http://139.59.68.74:4001/api"; $http({ method: "GET", url: BASE_URL + '/applicants/' + $scope.pendingPaymentId, @@ -657,7 +508,6 @@ }).then(function mySuccess(response) { $scope.paymentRecord = response.data; }, function myError(response) { - // $scope.paymentRecord = response.data; }); }, function myError(response) { $scope.myWelcome = response.statusText; @@ -668,14 +518,11 @@ $scope.pendingPaymentId = ''; - var BASE_URL = "http://139.59.68.74:4001/api"; - $scope.update = function() { $http({ method: 'GET', url: BASE_URL + '/payments?filter={"where":{"applicantId": ' + $scope.pendingPaymentId + '}}', - //data: email, headers: {} }).then(function mySuccess(searchResult) { if (searchResult.data[0].status == "pending") { @@ -735,8 +582,7 @@ } }); - scotchApp.controller('ambassadorController', function($scope, $http, $location, $route) { - + scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { $scope.data = {}; $scope.submit = function() { console.log($scope.data.name) @@ -745,7 +591,7 @@ var numberSpliced = randomNumber.slice(2,5); $scope.data.referalToken = nameSpliced+numberSpliced; $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); - var BASE_URL = "http://139.59.68.74:4001/api"; + $http({ method: 'POST', url: BASE_URL + '/ambassadors', @@ -754,8 +600,13 @@ }).then(function mySuccess(result) { console.log("result", result) $scope.detail = result; - + $('#myModal').modal('show'); + $scope.data.name = ''; + $scope.data.email = ''; + $scope.data.mobile = ''; + }, function myError(error) {}); + console.log($scope.data) } });