This file contains 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
<?php | |
/** | |
** A base module for [select] and [select*] | |
**/ | |
/* Shortcode handler */ | |
wpcf7_add_shortcode( 'select', 'wpcf7_select_shortcode_handler', true ); | |
wpcf7_add_shortcode( 'select*', 'wpcf7_select_shortcode_handler', true ); |
This file contains 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
<?php | |
echo '<input type="' . $input_type . '" class="' . $input_class . " id='" . $input_id . "' . $disabled . $readonly . '/>'; |
This file contains 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
<?php | |
echo "<input type='$input_type' class='$input_class' id='$input_id' $disabled $readonly/>"; |
This file contains 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
<?php | |
$input_attr = array( | |
"class" => "foo bar", | |
"id" => "input_id", | |
"disabled" => "disabled", | |
"readonly" => "readonly" | |
); |
This file contains 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
(function($, window, document){ | |
function createEvent( element, animationKey ) { | |
var event = document.createEvent("Event"); | |
event.initEvent("keyframe", true, true); | |
event.animationName = 'keyframe'; | |
event.keyText = 'keyframe'; | |
event.percent = animationKey; | |
element.dispatchEvent(event); | |
}; |
This file contains 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
$('#myElement').live('webkitAnimationEnd webkitAnimationStart keyframe', function(e){ | |
switch( e.type ){ | |
case 'webkitAnimationEnd': | |
// end event | |
break; | |
case 'webkitAnimationStart': | |
// start event | |
break; | |
case 'keyframe': | |
// trigger event |
This file contains 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
$('.typeahead').typeahead({ | |
}); | |
$('.group').on('change', function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
This file contains 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
$('.typeahead').typeahead({ | |
}); | |
var groupFocusTimer; | |
$('.group').on('change', function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
This file contains 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
slowScrollHorizontalInterval: function(node, slideNodes, newOffset, scrollbarClass, scrollbarWidth, stageWidth, scrollbarStageWidth, scrollMargin, scrollBorder, activeChildOffset, originalOffsets, childrenOffsets, infiniteSliderWidth, numberOfSlides, sliderNumber, centeredSlideOffset, endOffset, settings) { |
This file contains 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
/* | |
<div class="css-loading-indicator"> | |
<div class="step-1"></div> | |
<div class="step-2"></div> | |
<div class="step-3"></div> | |
<div class="step-4"></div> | |
</div> | |
demo: | |
http://codepen.io/iamntz/pen/cizwG | |
Don't use SASS? Compile this gist here: http://sass-lang.com/try.html |