Commit bb56da0f049d98bb5e6440f9874255036d2ddd51
1 parent
9845d45c13
Exists in
master
and in
1 other branch
update
Showing
2 changed files
with
10 additions
and
2 deletions
Show diff stats
pages/registration.html
... | ... | @@ -283,8 +283,9 @@ |
283 | 283 | <div class="icon-circle-q"> |
284 | 284 | <i class="material-icons" style="line-height: 31px;">thumb_up</i> |
285 | 285 | </div> |
286 | - <textarea type="text" class="text-input" required ng-model="data.idea" placeholder="Idea/Product *" id="myBtn" name="Idea" ng-change="entername(data.idea); ideakeyPress(data.idea)"> | |
286 | + <textarea type="text" maxlength="300" class="text-input" required ng-model="data.idea" placeholder="Idea/Product *" id="myBtn" name="Idea" ng-focus="removeNoError()" ng-change="entername(data.idea); ideakeyPress(data.idea)"> | |
287 | 287 | </textarea> |
288 | + <label class="error-message f-family" id="invalidIdea">please fill 300 maximum characters</label> | |
288 | 289 | </div> |
289 | 290 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
290 | 291 | <div class="icon-circle-abcdefg"> | ... | ... |
script.js
... | ... | @@ -316,7 +316,7 @@ |
316 | 316 | var i = 0; |
317 | 317 | $scope.payingAmnt = $scope.payingAmnt * 100; |
318 | 318 | var options = { |
319 | - "key": "rzp_live_mhSE1uOBlXvFyJ", | |
319 | + "key": "rzp_test_YwHsVFiDIQ2WUQ", | |
320 | 320 | "amount": $scope.payingAmnt, |
321 | 321 | |
322 | 322 | "name": "Startup Jalsa", |
... | ... | @@ -816,6 +816,13 @@ |
816 | 816 | //} |
817 | 817 | |
818 | 818 | }; |
819 | + $scope.removeNoError = function() { | |
820 | + $('#invalidIdea').css('display', 'none'); | |
821 | + $('#noExist').css('display', 'none'); | |
822 | + }; | |
823 | + | |
824 | + // if (val == undefined) { | |
825 | + // $('#invalidIdea').css('display', 'block'); | |
819 | 826 | |
820 | 827 | $scope.submit = function() { |
821 | 828 | console.log($scope.data.name) | ... | ... |