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
$(document).ready(function(){ | |
$('#mytext').keyup(function(){ | |
$('#carrytext').html(this.value); | |
}); | |
}); |
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
// Match heights of elements on homepage for uniform display | |
matchHeight = function() { | |
//Timeout added to counteract delays in element sizing from loading | |
setTimeout(function(){ | |
jQuery('.equal').each(function(){ | |
var maxHeight = '0'; | |
jQuery('.equal').each(function(){ | |
maxHeight = (jQuery(this).height() > maxHeight) ? jQuery(this).height() : maxHeight; | |
}); | |
jQuery('.equal').height(maxHeight); |
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 fixHeight() { | |
var maxHeight = 0, | |
slides = el.find('.slides'), | |
data = el.data('flexslider'); | |
slides.children() | |
.height('auto') | |
.each(function() { | |
maxHeight = Math.max(maxHeight, $(this).height()); | |
}) | |
.height(maxHeight); |
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
/* --- comments --- */ | |
.commentlist { | |
margin-left: 0; | |
} | |
#comments { | |
padding-top: 20px; | |
} |
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
var list = $('ul'); | |
var listItems = list.children('li'); | |
list.append(listItems.get().reverse()); |
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
// RELOADS WEBPAGE WHEN MOBILE ORIENTATION CHANGES | |
window.onorientationchange = function() { | |
var orientation = window.orientation; | |
switch(orientation) { | |
case 0: window.location.reload(); | |
break; | |
case 90: window.location.reload(); | |
break; | |
case -90: window.location.reload(); | |
break; |
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 | |
$category = get_queried_object(); | |
echo $category->term_id; | |
?> |
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
[wpv-if fieldname="wpcf-fieldname" evaluate="empty(fieldname)" condition="false"][/wpv-if] |
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 compareArrays(sup, sub) { | |
sup.sort(); | |
sub.sort(); | |
var i, j; | |
for (i=0,j=0; i<sup.length && j<sub.length;) { | |
if (sup[i] < sub[j]) { | |
++i; | |
} else if (sup[i] == sub[j]) { | |
++i; ++j; | |
} else { |
OlderNewer