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
$('#mySearch').keyup(function() { | |
clearTimeout($.data(this, 'timer')); | |
var wait = setTimeout(search, 500); | |
$(this).data('timer', wait); | |
}); | |
function search() { | |
$.post("stuff.php", {nStr: "" + $('#mySearch').val() + ""}, function(data){ | |
if(data.length > 0) { | |
$('#suggestions').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
<?php | |
/** | |
* Custom function for ACF to display an customized image field. | |
* | |
*/ | |
function tabs_image($img){ | |
$image = get_sub_field($img); //replace get_sub_field by get_field if not subfield |
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
<?php | |
/** | |
* Silverpop Instapage webhook | |
*/ | |
// Instapage System vars | |
$page_id = $_POST[ 'page_id' ]; | |
$page_url = $_POST[ 'page_url' ]; | |
$variant = $_POST[ 'variant' ]; |
NewerOlder