You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
onthedots/code/selecteur.js

32 lines
827 B

function $_GET(param) {
var vars = {};
window.location.href.replace( location.hash, '' ).replace(
/[?&]+([^=&]+)=?([^&]*)?/gi, // regexp
function( m, key, value ) { // callback
vars[key] = value !== undefined ? value : '';
}
);
if ( param ) {
return vars[param] ? vars[param] : null;
}
return vars;
}
var get=$_GET();
if(get['diff']=="no-res")
{
document.getElementById("canvasR").style.display="none";
document.getElementById("reserveText").style.display="none";
}
if (get['mode'].includes('p'))
{
objPts=get['mode'].substring(0,get['mode'].length-1);
document.getElementById("timer").style.display="none";
}
else if(get['mode'].includes('m'))
{
tpsRem=[0,parseInt(get['mode'].substring(0,get['mode'].length-1),10),0];
document.getElementById("chronotime").style.display="none";
}