diff --git a/index.html b/index.html index 56a1aba..be46ae2 100644 --- a/index.html +++ b/index.html @@ -52,15 +52,15 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= - + diff --git a/pages/registration.html b/pages/registration.html index 419f51f..9c9fe3b 100644 --- a/pages/registration.html +++ b/pages/registration.html @@ -51,9 +51,9 @@
- + @@ -85,9 +85,12 @@
+
+ +
- @@ -96,10 +99,11 @@ +
-
- +
+
diff --git a/script.js b/script.js index 7a8e048..cfac0a0 100644 --- a/script.js +++ b/script.js @@ -726,6 +726,15 @@ } } + $scope.ngShow = false; + $scope.getValue = function(){ + if($scope.data.hear == "Other"){ + $scope.ngShow = true; + }else{ + $scope.ngShow = false; + } + } + $rootScope.tokenCall = function(val) { if (val == undefined) { $('#invalidToken').css('display', 'block'); @@ -1195,8 +1204,8 @@ scotchApp.controller('ambassadorController', function($scope, $http, $location, //var randomNumber = ""+Math.random(); var nameSpliced = $scope.data.name.slice(0,5); //var numberSpliced = randomNumber.slice(2,4); - var numberSpliced = "99"; - $scope.data.referalToken = nameSpliced+numberSpliced; + //var numberSpliced = "99"; + $scope.data.referalToken = nameSpliced; $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); $http({ method: 'POST',