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
| //vertically align element to the middle of its parent | |
| function vAlign(){ | |
| if(jQuery('.v-align').length){ | |
| var jQueryvaChild = jQuery('.v-align'); | |
| jQueryvaChild.each(function(){ | |
| var vaChildHeight = jQuery(this).height(); | |
| var vaParentHeight = jQuery(this).parent().height(); | |
| var topOffset = (vaParentHeight - vaChildHeight) / 2; | |
| jQuery(this).css('paddingTop', topOffset).addClass('show'); | |
| }); |
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
| $(document).ready(function(){ | |
| //hide the checkboxes | |
| $('.ginput_container_checkbox li input').hide(); | |
| //inject the custom checkbox code | |
| $('.ginput_container_checkbox li input').before('<div class="custom_checkbox"><div class="check_inner"></div></div>'); | |
| //control the new checkbox on click | |
| $('.ginput_container_checkbox li').on('click', '.custom_checkbox', function(){ |
OlderNewer