window.addEventListener("load", function(){ window.cookieconsent.initialise({ "palette": { "popup": { "background": "black", "text": "white" }, "button": { "background": "#004444" } }, "content": { "message": "We use cookies to offer you a better browsing experience. By using this site you consent to our privacy policy.", "href": "https://feelsthegame.com/privacy.html" } })}); var callback = function () { if (typeof(url) != 'undefined') { window.location = url; } }; function gtag_report_conversion_widget() { console.log(getCookieValue("tracking")); if(getCookieValue("tracking") == "off"){ window['ga-disable-GA_MEASUREMENT_ID'] = true; return; } var url = 'undefined'; console.log("widget"); gtag('event', 'conversion', { 'send_to': 'AW-731259938/IVYgCPPptbQBEKLI2NwC', 'event_callback': callback }); return false; } function gtag_report_conversion() { console.log(getCookieValue("tracking")); if(getCookieValue("tracking") == "off"){ window['ga-disable-GA_MEASUREMENT_ID'] = true; return; } var url = 'undefined'; console.log("download"); gtag('event', 'conversion', { 'send_to': 'AW-731259938/Us2WCMjZtbQBEKLI2NwC', 'event_callback': callback }); return false; } function addscore(){ document.getElementById("submitscore_button").disabled = true; $( "#submitscore_button" ).addClass("onclic"); $( "#submitscore_button" ).text("..."); //alert($("input[name='userID'], input[name='gameID'], input[name='name']").serialize()+"&score="+gs); $.post( "feels.php",$("input[name='email']").serialize()) .done(function( data ) { $( "#submitscore_button" ).removeClass( "onclic" ); if(data==true){ $( "#submitscore_button" ).addClass( "validate"); $( "#submitscore_button" ).text("Success"); setTimeout(function() { $( "#submitscore_button" ).removeClass( "validate" ); }, 500 ); }else{ $( "#submitscore_button" ).addClass( "unvalidate"); $( "#submitscore_button" ).text("Error"); setTimeout(function() { $( "#submitscore_button" ).text("Submit"); $( "#submitscore_button" ).removeClass( "unvalidate" ); document.getElementById("submitscore_button").disabled = false; }, 1000 ); } }); }