One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<?php | |
/** | |
* Silverpop Instapage webhook | |
*/ | |
// Instapage System vars | |
$page_id = $_POST[ 'page_id' ]; | |
$page_url = $_POST[ 'page_url' ]; | |
$variant = $_POST[ 'variant' ]; |
<?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 |
$('#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(); |
var getCoords = function (options) { | |
return new Promise(function (resolve, reject) { | |
navigator.geolocation.getCurrentPosition(resolve, reject, options); | |
}); | |
} | |
var geo_options = { | |
enableHighAccuracy: true, | |
maximumAge : 30000, | |
timeout : 27000 |
/** | |
* Singleton Pattern | |
* @returns {Object} | |
*/ | |
let Planet; | |
{ | |
let instance; | |
Planet = function () { |
/*=====================================*\ | |
Trippy Build Tasks | |
\*=====================================*/ | |
/* | |
* TODO: Optimize build process to inject HTML & Javascript with browserSync | |
*/ | |
const gulp = require('gulp'); | |
const scss = require('gulp-sass'); |
/** Minimalist Priority Queue. */ | |
export default class PriorityQueue { | |
constructor() { | |
this.nodes = []; | |
} | |
/** | |
* Enqueue a new element to the Queue | |
* @param {value} key value of the key item | |
* @param {number} priority set the priority of the item |
let curry = function (tocurry) { | |
const params = Array.prototype.slice.call(arguments, 1); | |
return function () { | |
return tocurry.apply(this, params.concat( | |
Array.prototype.slice.call(arguments, 0) | |
)); | |
}; | |
}; |
{ | |
"currency":"EUR", | |
"deals":[ | |
{ | |
"transport":"train", | |
"departure":"London", | |
"arrival":"Amsterdam", | |
"duration":{ | |
"h":"05", | |
"m":"00" |