diff --git a/css/custom.css b/css/custom.css index 90d6493..8f2f277 100644 --- a/css/custom.css +++ b/css/custom.css @@ -207,6 +207,17 @@ .submit-button:disabled{ background-color: #ddd; } + +.submit-button-form, .submit-button-form:hover{ + + background-color: #42b549; + color: #fff; + +} +.submit-button-form:disabled{ + background-color: #ddd; +} + .textarea{ min-height: 97px; } @@ -640,7 +651,7 @@ stroke-dashoffset:0 height: 30px; position: absolute; left: 0px; - margin-top: 4px; + margin-top: 30px; color: #fff; text-align: center; } @@ -724,7 +735,7 @@ stroke-dashoffset:0 height: 30px; position: absolute; left: 0px; - margin-top: 4px; + margin-top: 30px; color: #fff; text-align: center; } @@ -736,7 +747,7 @@ stroke-dashoffset:0 height: 30px; position: absolute; left: 0px; - margin-top: 3px; + margin-top: 30px; color: #fff; text-align: center; } @@ -1299,7 +1310,7 @@ table { .startup-jalsa{ font-family: 'BenchNine', sans-serif; - font-size: 70.15pt; + /*font-size: 70.15pt;*/ color: rgb(25, 104, 157); position:relative; z-index:2; diff --git a/pages/ambassador.html b/pages/ambassador.html index f975cd0..459a6a6 100644 --- a/pages/ambassador.html +++ b/pages/ambassador.html @@ -1,34 +1,26 @@
-
- -
- -
+
+

STARTUP JALSA 2018

+
+
-
-
-

Startup Ambassador

-
-
+ +
- + -
+
Error ! Please fill in all fields.
person
-
-
+
Error ! Please fill in all fields.
email @@ -37,97 +29,142 @@
-
-
+
phone
- +
-
-
+
+
+ perm_identity +
+ +
+
+
+ location_city +
+ +
+
confirmation_number
- + +
+
+
+ assignment +
+ +
+
+
+ business +
+ +
+
+
+ web +
+ +
+
+ In which city is your startup registered at? +

+
+
+
+ assessment +
+ +
+
+ Give us a brief introduction about your startup. +

Kindly write a powerful Twitter Pitch.

+
+
+
+ line_weight +
+
-
+
+ Who are your customers? +

We are looking for a simple and clear answer of who you are selling to.

+
+
+
+ help +
+ +
+
+ What problem you are solving for them? +

We want to understand how clearly you know the pain point, and how big of a problem it is for the customers.

+
+
+
+ business_center +
+ +
+
+ - +
-
+
-
- +
+
+
+
+ + +
- - -
-
- -
-
-
- - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/pages/registration.html b/pages/registration.html index dd252b7..7034c9b 100644 --- a/pages/registration.html +++ b/pages/registration.html @@ -22,7 +22,7 @@
- +
@@ -46,7 +46,7 @@
- +
@@ -70,7 +70,7 @@
- +
@@ -94,7 +94,7 @@
- +
@@ -123,7 +123,7 @@
- +
@@ -147,7 +147,7 @@
- +
@@ -171,7 +171,7 @@
- +
@@ -195,7 +195,7 @@
- +
@@ -224,7 +224,7 @@
- +
@@ -248,7 +248,7 @@
- +
diff --git a/script.js b/script.js index 68359b6..2497bdc 100644 --- a/script.js +++ b/script.js @@ -12,7 +12,7 @@ }) // route for the registration page - .when('/registration', { + .when('/caricatures', { templateUrl: 'pages/registration.html', controller: 'mainController' }) @@ -24,7 +24,7 @@ }) // route for the ambassador page - .when('/startupJalsaPromocode', { + .when('/registration', { templateUrl: 'pages/ambassador.html', controller: 'ambassadorController' }) @@ -49,8 +49,8 @@ }]).run(['Analytics', function(Analytics) { }]); - scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") - //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") + //scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") + scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") // create the controller and inject Angular's $scope scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { @@ -326,7 +326,7 @@ /*open videos ends here*/ $scope.apply = function() { Analytics.trackEvent('register', 'click', 'Registration'); - $location.path("/registration") + $location.path("/caricatures") } // $scope.data.citymeetup = ''; $scope.register = function(value){ @@ -474,9 +474,10 @@ // } // } - $scope.watch = function(url){ + $scope.watch = function(){ console.log("cllll") - window.open(url) + // window.open(url) + $location.path("/registration") } $scope.calculateAmount = function(){ @@ -980,7 +981,6 @@ } $scope.discountkeyPress = function(discount) { - console.log("lastName==", name); if (discount == undefined) { $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); } else { @@ -996,10 +996,8 @@ $scope.ideakeyPress = function(financial) { console.log("financial", financial); if (financial == undefined) { - $('#invalidIdea').css('display', 'block'); $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); } else { - $('#invalidIdea').css('display', 'none'); $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); } } @@ -1132,6 +1130,31 @@ $scope.data = {}; $scope.check = false; $scope.numberCheck = false; + $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ + $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ + // $scope.Textshow = "yes" + $scope.max = 100; + $scope.formPage = false; + $scope.current = 0; + $scope.payingAmnt = 0; + // if ($scope.data.stage == 'select') { + + // } + + //$scope.author = 'Swarn Singh'; + $scope.data = {}; + // $scope.data.stage = 'Pitch your Business plan'; + // $scope.data.networkDinner = "true"; + $scope.discountAmount = 0; + // $scope.data.quantity = "1"; + $scope.check = false; + $scope.numberCheck = false; + $scope.paymentResult = {}; + var data = { + "amount": $scope.payingAmnt, + "currency": "INR", + "status": "pending" + } /*open videos in modal*/ $scope.openyoutube16 = function(){ @@ -1206,32 +1229,157 @@ // }; $scope.submit = function() { - console.log($scope.data.name) - var randomNumber = ""+Math.random(); - var nameSpliced = $scope.data.name.slice(0,3); - var numberSpliced = randomNumber.slice(2,5); - $scope.data.referalToken = nameSpliced+numberSpliced; - $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); - - $http({ - method: 'POST', - url: BASE_URL + '/ambassadors', - data: $scope.data, - headers: {} - }).then(function mySuccess(result) { - console.log("result", result) - $scope.detail = result; - $('#myModal').modal('show'); - $scope.data.name = ''; + $scope.payingAmnt = 50000; + if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { + var x = document.getElementById("snackbar") + x.className = "show"; + setTimeout(function(){ 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 == "a"){ + + + // var image = BASE_URL+'/container1s/proof/download/' + // 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) { + // }); + + // } + + $scope.infoForm = true; + console.log("sdasdasdsa"); + // $scope.data.stage = $scope.data.stage; + $scope.detail = {}; + $scope.data.phone = "+91"+$scope.data.number; + $http({ + method: 'POST', + url: BASE_URL+'/applicants', + data: $scope.data, + headers: {} + }).then(function mySuccess(result) { + console.log("=====result=====",result) + $scope.data.name = ''; $scope.data.email = ''; - $scope.data.mobile = ''; - // $scope.data.discount = ''; + $scope.data.number = ''; + $scope.data.city = ''; + $scope.data.founder = ''; + $scope.data.business = ''; + $scope.data.cityRegister = ''; + $scope.data.problem = ''; + $scope.data.companyName = ''; + $scope.data.website = ''; + $scope.data.stage = ''; + $scope.data.intro = ''; + $scope.data.customer = ''; + $scope.detail = result; + data.applicantId = result.data.id; + $scope.userId = result.data.id; + console.log("=====data=====",data) + data.amount = $scope.payingAmnt /100; + if($scope.detail != null){ + $http({ + method: 'POST', + url: BASE_URL+'/payments', + data: data, + headers: {} + }).then(function mySuccess(paymentResult) { + $scope.paymentResult = paymentResult; + }, function myError(error) { + }); + } + var i = 0; + 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){ + console.log("response12333333",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) { + console.log("searchResult",searchResult) + }, function myError(error) { + }); + } + + }, function myError(error) { + }); + } + // console.log($scope.data.name) + // var randomNumber = ""+Math.random(); + // var nameSpliced = $scope.data.name.slice(0,3); + // var numberSpliced = randomNumber.slice(2,5); + // $scope.data.referalToken = nameSpliced+numberSpliced; + // $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); + + // $http({ + // method: 'POST', + // url: BASE_URL + '/ambassadors', + // data: $scope.data, + // headers: {} + // }).then(function mySuccess(result) { + // console.log("result", result) + // $scope.detail = result; + // $('#myModal').modal('show'); + // $scope.data.name = ''; + // $scope.data.email = ''; + // $scope.data.mobile = ''; + // // $scope.data.discount = ''; - }, function myError(error) { - console.log(error) - console.log(error.data.error.message) - }); - console.log($scope.data) + // }, function myError(error) { + // console.log(error) + // console.log(error.data.error.message) + // }); + // console.log($scope.data) } });