INNER CODE UNIT · JavaScript

getParameterByName

increpare/flickgame · flickgame_base.js:8

function getParameterByName(name) {
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    if (results == null) return "";
    try {
        return decodeURIComponent(results[1].replace(/\+/g, " "));
    } catch (e) {
        return "";
    }
}

// Helper function to strip http/https from URLs
function strip_http(url) {
   url = url.replace(/^https?:\/\//,'');
   return url;
}

// Helper function to qualify URLs

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…