diff --git a/css/custom.css b/css/custom.css index 8c69eff..6310589 100755 --- a/css/custom.css +++ b/css/custom.css @@ -1505,10 +1505,12 @@ table { margin-top: 2%; } .txt{ + color: #fff; margin-top: 2%; text-align: center; } .txt1{ + color: #fff; text-align: center; } .cursor:hover{ diff --git a/script.js b/script.js index afeeb0c..a6c3368 100644 --- a/script.js +++ b/script.js @@ -408,7 +408,8 @@ } $scope.apply = function() { - //Analytics.trackEvent('register', 'click', 'Registration'); + //Analytics.trackEvent('register', 'click', 'Registration'); + //$location.path("/caricatures") window.location.href = "https://startupjalsa.com/events#/caricatures?utm_source=RegisterNowUp&utm_medium=Reg"; } @@ -771,140 +772,140 @@ } }; - if($scope.data.country == "INDIA"){ - $scope.submit = function() { - Analytics.trackEvent('register', 'click', 'Registration'); - $scope.loading = true; - $scope.data.uploadFile = $scope.base64textString; - console.log($scope.data.uploadFile) - // if($scope.tokencheck == false){ - // $scope.data.referalToken = null; - // } - // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { - // var x = document.getElementById("snackbar") - // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); - // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { - $scope.infoForm = true; - $scope.ticketAmnt = 1180; - $scope.detail = {}; - $scope.data.phone = "+91"+$scope.data.number; - if($scope.data.referalToken == null){ - $scope.data.referalToken = "NA" - } - var file =document.getElementById('filePicker').files[0]; - var image = BASE_URL+'/containers/images/download/' - var imagePath = file.name; - $scope.data.uploadFile = image + imagePath; - var fd = new FormData() - fd.append('filePicker',file); - var deferred = $q.defer(); - $http({ - method:'POST', - url: BASE_URL+'/containers/images/upload', - data:fd, - transformRequest:angular.identity, - headers:{'Content-Type':undefined} - }) - .success(function(result){ - deferred.resolve(result); - $http({ - method: 'POST', - url: BASE_URL+'/applicants', - data: $scope.data, - headers: {} - }).then(function mySuccess(result) { - $scope.detail = result; - data.applicantId = result.data.id; - $scope.userId = result.data.id; - var amount = $scope.ticketAmnt * 100 - if($scope.tokencheck == true){ - var amount = $scope.ticketAmnt - console.log("resultcity===",$scope.data.city) - if($scope.discountpercentage == "100") { - $scope.discountpercentage = "99.9"; - } - $scope.percDiscount = $scope.discountpercentage/100; - $scope.discountAmount = amount * $scope.percDiscount; - } - var taxAmount = $scope.ticketAmnt - $scope.discountAmount - $scope.payingAmnt = taxAmount; - $scope.payingAmnt = $scope.payingAmnt.toFixed() - data.amount = $scope.payingAmnt; - if($scope.detail != null){ - $http({ - method: 'POST', - url: BASE_URL+'/payments', - data: data, - headers: {} - }).then(function mySuccess(paymentResult) { - $scope.loading = false; - //$("p").html(paymentResult.data.data) - }, function myError(error) { - }); - } - var i = 0; - $scope.payingAmnt = $scope.payingAmnt * 100; - var options = { - //"key": "rzp_test_YwHsVFiDIQ2WUQ", - "key": "rzp_live_mkmCb4FkstuWaS", - "amount": $scope.payingAmnt, - - "name": "Startup Jalsa", - "description":"amount", - "currency": "INR", - "status": "done", - - "prefill": { - "email": $scope.detail.email, - "contact": $scope.detail.phone - }, - - "theme": { - "color": "#2196f3 ", - "image_padding":"NO" - }, - "modal": { - "ondismiss": function(){ - } - }, - "handler": function (response){ - createPayment(response); - } - }; - var rzp1 = new Razorpay(options); - rzp1.open(); - $scope.paymentResponse = {}; - function createPayment(response){ - $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; - $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; - $scope.paymentResponse.amount = data.amount; - $scope.paymentResponse.currency = "INR"; - $scope.paymentResponse.status = $scope.paymentResult.data.status; - $http({ - method: 'PUT', - url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, - data: $scope.paymentResponse, - headers: {} - }).then(function mySuccess(searchResult) { - Analytics.trackEvent('register', 'click', 'Registration'); - $location.path("/confirm") - }, function myError(error) { - }); - } - //} - - }, function myError(error) { - - }); - - }) + // if($scope.data.country == "INDIA"){ + // $scope.submit = function() { + // Analytics.trackEvent('register', 'click', 'Registration'); + // $scope.loading = true; + // $scope.data.uploadFile = $scope.base64textString; + // console.log($scope.data.uploadFile) + // // if($scope.tokencheck == false){ + // // $scope.data.referalToken = null; + // // } + // // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { + // // var x = document.getElementById("snackbar") + // // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); + // // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { + // $scope.infoForm = true; + // $scope.ticketAmnt = 1180; + // $scope.detail = {}; + // $scope.data.phone = "+91"+$scope.data.number; + // if($scope.data.referalToken == null){ + // $scope.data.referalToken = "NA" + // } + // var file =document.getElementById('filePicker').files[0]; + // var image = BASE_URL+'/containers/images/download/' + // var imagePath = file.name; + // $scope.data.uploadFile = image + imagePath; + // var fd = new FormData() + // fd.append('filePicker',file); + // var deferred = $q.defer(); + // $http({ + // method:'POST', + // url: BASE_URL+'/containers/images/upload', + // data:fd, + // transformRequest:angular.identity, + // headers:{'Content-Type':undefined} + // }) + // .success(function(result){ + // deferred.resolve(result); + // $http({ + // method: 'POST', + // url: BASE_URL+'/applicants', + // data: $scope.data, + // headers: {} + // }).then(function mySuccess(result) { + // $scope.detail = result; + // data.applicantId = result.data.id; + // $scope.userId = result.data.id; + // var amount = $scope.ticketAmnt * 100 + // if($scope.tokencheck == true){ + // var amount = $scope.ticketAmnt + // console.log("resultcity===",$scope.data.city) + // if($scope.discountpercentage == "100") { + // $scope.discountpercentage = "99.9"; + // } + // $scope.percDiscount = $scope.discountpercentage/100; + // $scope.discountAmount = amount * $scope.percDiscount; + // } + // var taxAmount = $scope.ticketAmnt - $scope.discountAmount + // $scope.payingAmnt = taxAmount; + // $scope.payingAmnt = $scope.payingAmnt.toFixed() + // data.amount = $scope.payingAmnt; + // if($scope.detail != null){ + // $http({ + // method: 'POST', + // url: BASE_URL+'/payments', + // data: data, + // headers: {} + // }).then(function mySuccess(paymentResult) { + // $scope.loading = false; + // //$("p").html(paymentResult.data.data) + // }, function myError(error) { + // }); + // } + // var i = 0; + // $scope.payingAmnt = $scope.payingAmnt * 100; + // var options = { + // "key": "rzp_test_YwHsVFiDIQ2WUQ", + // //"key": "rzp_live_mkmCb4FkstuWaS", + // "amount": $scope.payingAmnt, + + // "name": "Startup Jalsa", + // "description":"amount", + // "currency": "INR", + // "status": "done", + + // "prefill": { + // "email": $scope.detail.email, + // "contact": $scope.detail.phone + // }, + + // "theme": { + // "color": "#2196f3 ", + // "image_padding":"NO" + // }, + // "modal": { + // "ondismiss": function(){ + // } + // }, + // "handler": function (response){ + // createPayment(response); + // } + // }; + // var rzp1 = new Razorpay(options); + // rzp1.open(); + // $scope.paymentResponse = {}; + // function createPayment(response){ + // $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; + // $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; + // $scope.paymentResponse.amount = data.amount; + // $scope.paymentResponse.currency = "INR"; + // $scope.paymentResponse.status = $scope.paymentResult.data.status; + // $http({ + // method: 'PUT', + // url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, + // data: $scope.paymentResponse, + // headers: {} + // }).then(function mySuccess(searchResult) { + // Analytics.trackEvent('register', 'click', 'Registration'); + // $location.path("/confirm") + // }, function myError(error) { + // }); + // } + // //} + + // }, function myError(error) { + + // }); + + // }) - // }) + // // }) - //} + // //} - } - }else{ + // } + // }else{ $scope.submit = function() { Analytics.trackEvent('register', 'click', 'Registration'); $scope.loading = true; @@ -1038,7 +1039,7 @@ //} } - } + //} });