Commit 22ff22f2a219972dcd13b5b212cfca29b4995078
1 parent
246b2c5cd7
Exists in
master
add new type
Showing
3 changed files
with
23 additions
and
10 deletions
Show diff stats
index.html
... | ... | @@ -52,15 +52,15 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
52 | 52 | </script> |
53 | 53 | |
54 | 54 | <!-- End Google Tag Manager --> |
55 | - <!-- <script> | |
55 | + <script> | |
56 | 56 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
57 | 57 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
58 | 58 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
59 | 59 | })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
60 | 60 | |
61 | - ga('create', 'UA-106416759-1', 'auto'); | |
61 | + ga('create', 'UA-123583154-1', 'auto'); | |
62 | 62 | ga('send', 'pageview'); |
63 | - </script> --> | |
63 | + </script> | |
64 | 64 | |
65 | 65 | </head> |
66 | 66 | ... | ... |
pages/registration.html
... | ... | @@ -51,9 +51,9 @@ |
51 | 51 | <input type="text" class="form-control" ng-model="data.founder" required> |
52 | 52 | </div> |
53 | 53 | <div class="form-group"> |
54 | - <label>Business Types: *</label> | |
54 | + <label>Type: *</label> | |
55 | 55 | <select class="form-control" ng-model="data.business" required> |
56 | - <option name="business" selected disabled value="">Choose business type</option> | |
56 | + <option name="business" selected disabled value="">Choose type</option> | |
57 | 57 | <option value="B2B">B2B</option> |
58 | 58 | <option value="B2C">B2C</option> |
59 | 59 | </select> |
... | ... | @@ -85,9 +85,12 @@ |
85 | 85 | <option value="Other">Other</option> |
86 | 86 | </select> |
87 | 87 | </div> |
88 | + <div class="form-group" ng-if="ngShowhide"> | |
89 | + <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name"> | |
90 | + </div> | |
88 | 91 | <div class="form-group"> |
89 | 92 | <label>How did you hear about us? *</label> |
90 | - <select class="form-control" ng-model="data.hear" required> | |
93 | + <select class="form-control" ng-model="data.hear" ng-change="getValue()" required> | |
91 | 94 | <option name="stage" selected disabled value="">Choose Type</option> |
92 | 95 | <option value="Ecells">Ecells</option> |
93 | 96 | <option value="Accelerators/Incubators">Accelerators/Incubators</option> |
... | ... | @@ -96,10 +99,11 @@ |
96 | 99 | <option value="Youtube">Youtube</option> |
97 | 100 | <option value="LinkedIn">LinkedIn</option> |
98 | 101 | <option value="Google">Google</option> |
102 | + <option value="Other">Other</option> | |
99 | 103 | </select> |
100 | 104 | </div> |
101 | - <div class="form-group" ng-if="ngShowhide"> | |
102 | - <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name"> | |
105 | + <div class="form-group" ng-if="ngShow"> | |
106 | + <input type="text" class="form-control" ng-model="data.otherType" placeholder="Other Type Name"> | |
103 | 107 | </div> |
104 | 108 | <div class="form-group"> |
105 | 109 | <label>Twitter Pitch: *</label> | ... | ... |
script.js
... | ... | @@ -726,6 +726,15 @@ |
726 | 726 | } |
727 | 727 | } |
728 | 728 | |
729 | + $scope.ngShow = false; | |
730 | + $scope.getValue = function(){ | |
731 | + if($scope.data.hear == "Other"){ | |
732 | + $scope.ngShow = true; | |
733 | + }else{ | |
734 | + $scope.ngShow = false; | |
735 | + } | |
736 | + } | |
737 | + | |
729 | 738 | $rootScope.tokenCall = function(val) { |
730 | 739 | if (val == undefined) { |
731 | 740 | $('#invalidToken').css('display', 'block'); |
... | ... | @@ -1195,8 +1204,8 @@ scotchApp.controller('ambassadorController', function($scope, $http, $location, |
1195 | 1204 | //var randomNumber = ""+Math.random(); |
1196 | 1205 | var nameSpliced = $scope.data.name.slice(0,5); |
1197 | 1206 | //var numberSpliced = randomNumber.slice(2,4); |
1198 | - var numberSpliced = "99"; | |
1199 | - $scope.data.referalToken = nameSpliced+numberSpliced; | |
1207 | + //var numberSpliced = "99"; | |
1208 | + $scope.data.referalToken = nameSpliced; | |
1200 | 1209 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); |
1201 | 1210 | $http({ |
1202 | 1211 | method: 'POST', | ... | ... |