Commit 100de88605ebaaa9cbd45c4f14846550485f168a
1 parent
3775d3cb92
Exists in
master
and in
1 other branch
update
Showing
3 changed files
with
124 additions
and
40 deletions
Show diff stats
css/custom.css
... | ... | @@ -1190,3 +1190,67 @@ input.hidden { |
1190 | 1190 | border-top: 1px solid rgba(0, 0, 0, .05) !important; |
1191 | 1191 | } |
1192 | 1192 | |
1193 | +.container { | |
1194 | + display: block; | |
1195 | + position: relative; | |
1196 | + padding-left: 29px; | |
1197 | + margin-bottom: 12px; | |
1198 | + cursor: pointer; | |
1199 | + font-size: 15px; | |
1200 | + -webkit-user-select: none; | |
1201 | + -moz-user-select: none; | |
1202 | + -ms-user-select: none; | |
1203 | + user-select: none; | |
1204 | + width:100%; | |
1205 | +} | |
1206 | + | |
1207 | +/* Hide the browser's default checkbox */ | |
1208 | +.container input { | |
1209 | + position: absolute; | |
1210 | + opacity: 0; | |
1211 | +} | |
1212 | + | |
1213 | +/* Create a custom checkbox */ | |
1214 | +.checkmark { | |
1215 | + position: absolute; | |
1216 | + top: 0; | |
1217 | + left: 0; | |
1218 | + height: 25px; | |
1219 | + width: 25px; | |
1220 | + background-color: #eee; | |
1221 | +} | |
1222 | + | |
1223 | +/* On mouse-over, add a grey background color */ | |
1224 | +.container:hover input ~ .checkmark { | |
1225 | + background-color: #ccc; | |
1226 | +} | |
1227 | + | |
1228 | +/* When the checkbox is checked, add a blue background */ | |
1229 | +.container input:checked ~ .checkmark { | |
1230 | + background-color: #42b549; | |
1231 | +} | |
1232 | + | |
1233 | +/* Create the checkmark/indicator (hidden when not checked) */ | |
1234 | +.checkmark:after { | |
1235 | + content: ""; | |
1236 | + position: absolute; | |
1237 | + display: none; | |
1238 | +} | |
1239 | + | |
1240 | +/* Show the checkmark when checked */ | |
1241 | +.container input:checked ~ .checkmark:after { | |
1242 | + display: block; | |
1243 | +} | |
1244 | + | |
1245 | +/* Style the checkmark/indicator */ | |
1246 | +.container .checkmark:after { | |
1247 | + left: 9px; | |
1248 | + top: 5px; | |
1249 | + width: 5px; | |
1250 | + height: 10px; | |
1251 | + border: solid white; | |
1252 | + border-width: 0 3px 3px 0; | |
1253 | + -webkit-transform: rotate(45deg); | |
1254 | + -ms-transform: rotate(45deg); | |
1255 | + transform: rotate(45deg); | |
1256 | +} | ... | ... |
pages/registration.html
... | ... | @@ -761,13 +761,17 @@ |
761 | 761 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply Promo</button> |
762 | 762 | </div> |
763 | 763 | <span style="padding-left:10px">* One ticket is valid for one person.</span> |
764 | - <!-- <div> | |
765 | - <div class="checkbox"> | |
766 | - <label style="padding-left:10px;"> | |
767 | - <input type="checkbox" ng-click="IfDinnerCheck()" ng-model="data.networkDinner" value="network Dinner">Networking Dinner with Investors and Speakers | |
764 | + <div style="padding-top:10px;"> | |
765 | + <!-- <div class="checkbox"> --> | |
766 | + <!-- <label style="padding-left:10px;"> | |
767 | + <input type="checkbox" ng-change="IfDinnerCheck(data.networkDinner)" ng-model="data.networkDinner" value="network Dinner">Networking Dinner with Investors and Speakers: Rs 2,000/- | |
768 | + </label> --> | |
769 | + <label class="container">Networking Dinner with Investors and Speakers: Rs 2,000/- | |
770 | + <input type="checkbox" checked="checked" ng-change="IfDinnerCheck(data.networkDinner)" ng-model="data.networkDinner" value="network Dinner"> | |
771 | + <span class="checkmark"></span> | |
768 | 772 | </label> |
769 | - </div> | |
770 | - </div> --> | |
773 | + <!-- </div> --> | |
774 | + </div> | |
771 | 775 | <div class="clearfix"></div> |
772 | 776 | <div class="text-center"> |
773 | 777 | <input type="submit" style="width:200px" class="btn submit-button" ng-disabled="applicantForm.$invalid|| check|| numberCheck" value="Submit" ng-click="calculateAmount()"> | ... | ... |
script.js
... | ... | @@ -290,6 +290,7 @@ |
290 | 290 | //$scope.author = 'Swarn Singh'; |
291 | 291 | $scope.data = {}; |
292 | 292 | $scope.data.stage = 'Pitch your Idea'; |
293 | + $scope.data.networkDinner = false; | |
293 | 294 | $scope.discountAmount = 0; |
294 | 295 | $scope.check = false; |
295 | 296 | $scope.numberCheck = false; |
... | ... | @@ -421,13 +422,10 @@ |
421 | 422 | } |
422 | 423 | }; |
423 | 424 | |
424 | - // $scope.IfDinnerCheck = function(){ | |
425 | - // if(eventType == 'none'){ | |
426 | - // $scope.registration.events.pop(eventName) | |
427 | - // }else{ | |
428 | - // $scope.registration.events.push(eventType) | |
429 | - // } | |
430 | - // } | |
425 | + $scope.IfDinnerCheck = function(value){ | |
426 | + $scope.data.networkDinner = value; | |
427 | + console.log("value",value) | |
428 | + } | |
431 | 429 | |
432 | 430 | /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/ |
433 | 431 | $(document).ready( |
... | ... | @@ -503,36 +501,54 @@ |
503 | 501 | $scope.detail = result; |
504 | 502 | data.applicantId = result.data.id; |
505 | 503 | //$scope.userId = result.data.id; |
506 | - | |
507 | - if($scope.data.citymeetup == "chandigarh"){ | |
508 | - if ($scope.data.stage == "Pitch your Idea") { | |
509 | - console.log("$scope.data", $scope.data) | |
510 | - $scope.ticketAmnt = 1000; | |
504 | + if($scope.data.networkDinner == true){ | |
505 | + if($scope.data.citymeetup == "chandigarh"){ | |
506 | + if ($scope.data.stage == "Pitch your Idea") { | |
507 | + console.log("$scope.data", $scope.data) | |
508 | + $scope.ticketAmnt = 3000; | |
509 | + } | |
510 | + | |
511 | + if ($scope.data.stage == "Pitch your Startup") { | |
512 | + $scope.ticketAmnt = 3500; | |
513 | + } | |
514 | + | |
515 | + // if ($scope.data.stage == "Growth") { | |
516 | + // $scope.ticketAmnt = 1400; | |
517 | + // } | |
511 | 518 | } |
512 | - | |
513 | - if ($scope.data.stage == "Pitch your Startup") { | |
514 | - $scope.ticketAmnt = 1500; | |
519 | + } | |
520 | + | |
521 | + else{ | |
522 | + if($scope.data.citymeetup == "chandigarh"){ | |
523 | + if ($scope.data.stage == "Pitch your Idea") { | |
524 | + console.log("$scope.data", $scope.data) | |
525 | + $scope.ticketAmnt = 1000; | |
526 | + } | |
527 | + | |
528 | + if ($scope.data.stage == "Pitch your Startup") { | |
529 | + $scope.ticketAmnt = 1500; | |
530 | + } | |
531 | + | |
532 | + // if ($scope.data.stage == "Growth") { | |
533 | + // $scope.ticketAmnt = 1400; | |
534 | + // } | |
515 | 535 | } |
516 | - | |
517 | - // if ($scope.data.stage == "Growth") { | |
518 | - // $scope.ticketAmnt = 1400; | |
519 | - // } | |
520 | - } | |
536 | + } | |
521 | 537 | |
522 | - else{ | |
523 | - if ($scope.data.stage == "Pitch your Idea") { | |
524 | - console.log("$scope.data", $scope.data) | |
525 | - $scope.ticketAmnt = 500; | |
526 | - } | |
527 | - | |
528 | - if ($scope.data.stage == "Pitch your Startup") { | |
529 | - $scope.ticketAmnt = 1000; | |
530 | - } | |
531 | - | |
532 | - // if ($scope.data.stage == "Growth") { | |
533 | - // $scope.ticketAmnt = 1000; | |
534 | - // } | |
535 | - } | |
538 | + // else{ | |
539 | + // if ($scope.data.stage == "Pitch your Idea") { | |
540 | + // console.log("$scope.data", $scope.data) | |
541 | + // $scope.ticketAmnt = 500; | |
542 | + // } | |
543 | + | |
544 | + // if ($scope.data.stage == "Pitch your Startup") { | |
545 | + // $scope.ticketAmnt = 1000; | |
546 | + // } | |
547 | + | |
548 | + // // if ($scope.data.stage == "Growth") { | |
549 | + // // $scope.ticketAmnt = 1000; | |
550 | + // // } | |
551 | + // } | |
536 | 552 | // if ($scope.data.stage == "Visitor") { |
537 | 553 | // $scope.ticketAmnt = 500; |
538 | 554 | // } | ... | ... |