loadPage

/** * Load a template and put it in a container. * @param {String} templateUrl The absolute path to the template * @param {String} templateId The id of the chosen…

get url parameters

function get(key) { var searchParams = {}, search = window.location.search.substring(1); // substring to remove the ? if (search) { search = search.split('&'); for (var i in search) { if (search.hasOwnProperty(i)…