diff --git a/pages/ambassador.html b/pages/ambassador.html index be3eef8..68ce152 100644 --- a/pages/ambassador.html +++ b/pages/ambassador.html @@ -1,91 +1,24 @@ -
- -
- - +
-
+

Startup Ambassador

-
-
-
-
- - -
-
- - - -
-
-
- - - -
-
-
- - -
-
-
-
-
- +
-
+
Error ! Please fill in all fields.
assignment_ind
-
+
+
Error ! Please fill in all fields.
email @@ -95,7 +28,8 @@
-
+
+
phone
@@ -103,50 +37,31 @@
-
-
- - - - -
-
+ +
+
+
-
- -
-
diff --git a/pages/home.html b/pages/home.html index 7b69fbc..2b7a507 100644 --- a/pages/home.html +++ b/pages/home.html @@ -420,7 +420,7 @@
- smoking_rooms + adjust
@@ -435,24 +435,24 @@
- Upload the pitch-deck/presentation mentioning the details of the startup. + Provide the Google Docs link for pitch-deck/presentation (mentioning the details of your startup).

offline_pin
- +
- Upload the financial projections/funding requirements of your company? + Provide the Google Docs link for financial projections (funding requirements of your startup).

timeline
- +
diff --git a/pages/verify.html b/pages/verify.html index c7beef6..7683c1d 100644 --- a/pages/verify.html +++ b/pages/verify.html @@ -6,18 +6,11 @@
-
-
- -
- - - -
-
-
+
+

Payment Verification

+
+
+
Name:
{{data.name}}
@@ -35,11 +28,9 @@
- -
-
+
diff --git a/script.js b/script.js index 7eb5cda..dbe168f 100644 --- a/script.js +++ b/script.js @@ -12,7 +12,7 @@ }) // route for the about page - .when('/verification/=:id', { + .when('/verification/:id', { templateUrl: 'pages/verify.html', controller: 'verifyController' }) @@ -53,7 +53,7 @@ $scope.numberCheck = false; // $scope.tokencheck = false; $scope.paymentResult = {}; - var BASE_URL = "http://139.59.68.74:4001/api"; + var BASE_URL = "http://0.0.0.0:4001/api"; var data = { "amount": $scope.payingAmnt, "currency": "INR", @@ -147,7 +147,7 @@ /*****THIS IS FOR STEP ONE FORM ******/ $scope.next = function() { - var BASE_URL = "http://139.59.68.74:4001/api"; + var BASE_URL = "http://0.0.0.0: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") @@ -242,7 +242,7 @@ // }); // } - var BASE_URL = "http://139.59.68.74:4001/api"; + var BASE_URL = "http://0.0.0.0:4001/api"; console.log("BASE_URL", BASE_URL) $scope.infoForm = true; console.log("sdasdasdsa"); @@ -640,17 +640,17 @@ // $scope.message = 'Everyone come and see how good I look!'; }); - scotchApp.controller('verifyController', function($scope, $http, $location) { - - $scope.pendingPaymentId = $location.absUrl().split('=')[1] - var BASE_URL = "http://139.59.68.74:4001/api"; + scotchApp.controller('verifyController', function($scope, $http, $location, $route) { + $scope.pendingPaymentId = $route.current.params.id + var BASE_URL = "http://0.0.0.0:4001/api"; $http({ method: "GET", url: BASE_URL + '/applicants/' + $scope.pendingPaymentId, }).then(function mySuccess(response) { $scope.data = response.data; console.log("response-1", response); - $scope.pendingPaymentId = $location.absUrl().split('=')[1] + $scope.pendingPaymentId = $route.current.params.id; + $http({ method: "GET", url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}', @@ -668,7 +668,7 @@ $scope.pendingPaymentId = ''; - var BASE_URL = "http://139.59.68.74:4001/api"; + var BASE_URL = "http://0.0.0.0:4001/api"; $scope.update = function() { @@ -745,7 +745,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"; + var BASE_URL = "http://0.0.0.0:4001/api"; $http({ method: 'POST', url: BASE_URL + '/ambassadors',