This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $("#btnSubmitPayment").on "click", -> # clicking button to submit payment | |
| shirt = $("input[name=shirt]:checked").attr("data-id") # grabbing size of shirt selected | |
| alert shirt # alerting shirt size to check that it's getting correct values | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // First method - Recommended | |
| $('#checkbox').prop('checked') // Boolean true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (item.price).toFixed(2) | |
| //or more specifically: | |
| html += '<div class="price">$' + (item.price).toFixed(2) + '</div>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input#remember(type='checkbox', name='remember', checked=true) | |
| span Remember Me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include ./goalsetting/pageGoalSettingPlan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| label.radio-inline | |
| input(type='radio', class='radioSpans', id='confidence1', value='option1', name='confidence') | |
| span 1 | |
| label.radio-inline | |
| input(type='radio', class='radioSpans', id='confidence2', value='option2', name='confidence') | |
| span 2 | |
| label.radio-inline | |
| input(type='radio', class='radioSpans', id='confidence3', value='option3', name='confidence') | |
| span 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pageGoalSettingPlan.page | |
| .content | |
| .col-xs-6 | |
| h4 Goal Setting Plan | |
| br | |
| input(type='text', class='form-control', placeholder='Free Text') | |
| input(type='text', class='form-control', placeholder='Free Text') | |
| input(type='text', class='form-control', placeholder='Free Text') | |
| input(type='text', class='form-control', placeholder='Free Text') | |
| input(type='text', class='form-control', placeholder='Free Text') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#birthdayBtn').on('click', function(){ | |
| var month = $('#birth_month').val(); | |
| switch (month){ | |
| case 'January': | |
| month = 1; | |
| break; | |
| case 'February': | |
| month = 2; | |
| break; | |
| case 'March': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //add to your index page | |
| <script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script> | |
| // add to your JS file, for instance, on a click 'submit' button | |
| password = $('#password').val(); | |
| password = CryptoJS.MD5(password); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #accordion.panel-group | |
| .panel.panel-default.panelOne | |
| .panel-heading | |
| h4.panel-title | |
| a(data-toggle='collapse', data-parent='#accordion', href='#collapseOne') | |
| span.activityTitle#panelOneTitle | |
| #collapseOne.panel-collapse.collapse.in | |
| .panel-body | |
| h4.resource#panelOneResource |