MediaWiki:Mobile.js: differenze tra le versioni

Creata pagina con "QUANTCAST GDPR: var elem = document.createElement('script'); elem.src = 'https://quantcast.mgr.consensu.org/cmp.js'; elem.async = true; elem.type = "text/j..."
 
mNessun oggetto della modifica
 
(26 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
/* QUANTCAST GDPR*/
/* InMobi Choice. Consent Manager Tag v3.0 (for TCF 2.2) */
    var elem = document.createElement('script');
(adsbygoogle=window.adsbygoogle||[]).pauseAdRequests=1;
    elem.src = 'https://quantcast.mgr.consensu.org/cmp.js';
(adsbygoogle=window.adsbygoogle||[]).requestNonPersonalizedAds=1;
    elem.async = true;
(function() {
    elem.type = "text/javascript";
  var host = 'wikidonca.it';
    var scpt = document.getElementsByTagName('script')[0];
  var element = document.createElement('script');  
    scpt.parentNode.insertBefore(elem, scpt);
  var firstScript = document.getElementsByTagName('script')[0];
    (function() {
  var url = 'https://cmp.inmobi.com'
     var gdprAppliesGlobally = false;
    .concat('/choice/', 'hK2b6w2mQ7J22', '/', host, '/choice.js?tag_version=V3');
     function addFrame() {
  var uspTries = 0;
        if (!window.frames['__cmpLocator']) {
  var uspTriesLimit = 3;  
         if (document.body) {
  element.async = true;  
            var body = document.body,
  element.type = 'text/javascript';  
                iframe = document.createElement('iframe');
  element.src = url;  
            iframe.style = 'display:none';
 
            iframe.name = '__cmpLocator';
  firstScript.parentNode.insertBefore(element, firstScript);  
            body.appendChild(iframe);
 
         } else {
  function makeStub() {  
            // In the case where this stub is located in the head,
     var TCF_LOCATOR_NAME = '__tcfapiLocator';
            // this allows us to inject the iframe more quickly than
    var queue = [];
            // relying on DOMContentLoaded or other events.
    var win = window;
             setTimeout(addFrame, 5);
    var cmpFrame;  
         }
 
         }
     function addFrame() {  
    }
      var doc = win.document;
    addFrame();
      var otherCMP = !!(win.frames[TCF_LOCATOR_NAME]);
     function cmpMsgHandler(event) {
 
        var msgIsString = typeof event.data === "string";
      if (!otherCMP) {  
        var json;
         if (doc.body) {  
         if(msgIsString) {
          var iframe = doc.createElement('iframe');  
        json = event.data.indexOf("__cmpCall") != -1 ? JSON.parse(event.data) : {};
 
         } else {
          iframe.style.cssText = 'display:none';  
        json = event.data;
          iframe.name = TCF_LOCATOR_NAME;  
         }
          doc.body.appendChild(iframe);  
        if (json.__cmpCall) {
         } else {  
        var i = json.__cmpCall;
          setTimeout(addFrame, 5);
         window.__cmp(i.command, i.parameter, function(retValue, success) {
        }
             var returnMsg = {"__cmpReturn": {
      }
            "returnValue": retValue,
      return !otherCMP;
            "success": success,
    }
            "callId": i.callId
 
             }};
    function tcfAPIHandler() {
             event.source.postMessage(msgIsString ?
      var gdprApplies;
            JSON.stringify(returnMsg) : returnMsg, '*');
      var args = arguments;
         });
 
        }
      if (!args.length) {
     }
        return queue;
     window.__cmp = function (c) {
      } else if (args[0] === 'setGdprApplies') {
        var b = arguments;
        if (
         if (!b.length) {
          args.length > 3 &&
        return __cmp.a;
          args[2] === 2 &&
         }
          typeof args[3] === 'boolean'
        else if (b[0] === 'ping') {
        ) {
         b[2]({"gdprAppliesGlobally": gdprAppliesGlobally,
          gdprApplies = args[3];
            "cmpLoaded": false}, true);
          if (typeof args[2] === 'function') {
        } else if (c == '__cmp')
             args[2]('set', true);
        return false;
          }
        else {
        }
         if (typeof __cmp.a === 'undefined') {
      } else if (args[0] === 'ping') {
            __cmp.a = [];
        var retr = {
         }
          gdprApplies: gdprApplies,
        __cmp.a.push([].slice.apply(b));
          cmpLoaded: false,  
        }
          cmpStatus: 'stub'
    }
        };
    window.__cmp.gdprAppliesGlobally = gdprAppliesGlobally;
 
     window.__cmp.msgHandler = cmpMsgHandler;
        if (typeof args[2] === 'function') {
     if (window.addEventListener) {
          args[2](retr);  
        window.addEventListener('message', cmpMsgHandler, false);
         }  
     }
      } else {
    else {
         if(args[0] === 'init' && typeof args[3] === 'object') {
        window.attachEvent('onmessage', cmpMsgHandler);
          args[3] = Object.assign(args[3], { tag_version: 'V3' });
     }
        }  
    })();
        queue.push(args);  
    window.__cmp('init', {
      }
    'Language': 'it',
    }
'Initial Screen Title Text': 'Il rispetto della tua privacy è la nostra priorità',
 
'Initial Screen Reject Button Text': 'NON ACCETTO',
     function postMessageEventHandler(event) {  
'Initial Screen Accept Button Text': 'ACCETTO',
      var msgIsString = typeof event.data === 'string';  
'Initial Screen Purpose Link Text': 'Mostra informativa',
      var json = {};  
'Purpose Screen Title Text': 'Il rispetto della tua privacy è la nostra priorità',
 
'Purpose Screen Body Text': 'Di seguito puoi impostare le preferenze sul consenso e determinare come desideri utilizzare i dati in base alle finalità. Puoi impostare le tue preferenze per noi indipendentemente da quelle dei partner di terze parti.',
      try {
'Purpose Screen Vendor Link Text': 'Visualizza i fornitori',
         if (msgIsString) {  
'Purpose Screen Cancel Button Text': 'Annulla',
          json = JSON.parse(event.data);  
'Purpose Screen Save and Exit Button Text': 'Salva',
         } else {  
'Vendor Screen Title Text': 'Il rispetto della tua privacy è la nostra priorità',
          json = event.data;  
'Vendor Screen Body Text': 'Di seguito puoi impostare le preferenze sul consenso per i singoli partner di terze parti con cui collaboriamo. Per visualizzare le finalità rispetto alle quali i singoli partner di terze parti usano i dati per agevolarti nelle tue scelte, espandi ogni voce dell'elenco di aziende. In alcuni casi, le aziende potrebbero utilizzare i tuoi dati senza chiedere il tuo consenso, in base ai loro legittimi interessi. Per ulteriori informazioni e per opporti a tale elaborazione, puoi fare clic sui rispettivi link alla policy sulla privacy.',
         }  
'Vendor Screen Accept All Button Text': 'ACCETTA TUTTO',
      } catch (ignore) {}
'Vendor Screen Reject All Button Text': 'RIFIUTA TUTTO',
 
'Vendor Screen Purposes Link Text': 'Torna indietro',
      var payload = json.__tcfapiCall;  
'Vendor Screen Cancel Button Text': 'Annulla',
 
'Vendor Screen Save and Exit Button Text': 'Salva',
      if (payload) {
'Initial Screen Body Text': 'Wikidonca utilizza dei cookie tecnici per ricordare le tue preferenze durante la navigazione del sito. Il sito usa anche cookies di memorizzati da Google relativamente ai banner di Google AdSense e al monitoraggio statistico di Google Analytics. Fai clic su Accetta oppure continua la navigazione scorrendo la pagina per acconsentire all' utilizzo dei cookies. Puoi cambiare idea e modificare le tue opzioni sul consenso in qualsiasi momento ritornando su questo sito.',
         window.__tcfapi(  
'Initial Screen Body Text Option': 1,
          payload.command,  
'Publisher Name': 'Wikidonca',
          payload.version,  
'Publisher Logo': 'https://wikidonca.it/img/wiki.png',
          function(retValue, success) {  
'Publisher Purpose IDs': [1],
             var returnMsg = {  
'Consent Scope': 'service',
              __tcfapiReturn: {  
'UI Layout': 'banner',
                returnValue: retValue,  
'Soft Opt-in Enabled': true,
                success: success,  
'Publisher Purpose Legitimate Interest IDs': [1],
                callId: payload.callId  
'Custom Links Displayed on Initial Screen': "[privacy policy](https://wikidonca.it/dizionario/Wikidonca:Informazioni_sulla_privacy)",
              }
    });
             };  
/* FINE QUANTCAST GDPR*/
             if (msgIsString) {
              returnMsg = JSON.stringify(returnMsg);
            }
            if (event && event.source && event.source.postMessage) {
              event.source.postMessage(returnMsg, '*');  
            }
          },
          payload.parameter
         );  
      }  
     }  
 
     while (win) {  
      try {
         if (win.frames[TCF_LOCATOR_NAME]) {  
          cmpFrame = win;
          break;  
         }  
      } catch (ignore) {}
 
      if (win === window.top) {  
         break;
      }
      win = win.parent;
    }
    if (!cmpFrame) {  
      addFrame();
      win.__tcfapi = tcfAPIHandler;
      win.addEventListener('message', postMessageEventHandler, false);
    }
  }  
 
  makeStub();
 
  var uspStubFunction = function() {
    var arg = arguments;  
    if (typeof window.__uspapi !== uspStubFunction) {
      setTimeout(function() {  
         if (typeof window.__uspapi !== 'undefined') {  
          window.__uspapi.apply(window.__uspapi, arg);  
         }  
      }, 500);  
    }  
  };
 
  var checkIfUspIsReady = function() {
     uspTries++;
     if (window.__uspapi === uspStubFunction && uspTries < uspTriesLimit) {  
      console.warn('USP is not accessible');  
     } else {  
      clearInterval(uspInterval);  
     }  
  };  
 
  if (typeof window.__uspapi === 'undefined') {  
    window.__uspapi = uspStubFunction;
    var uspInterval = setInterval(checkIfUspIsReady, 6000);
  }
})();
(adsbygoogle=window.adsbygoogle||[]).pauseAdRequests=0;  
(adsbygoogle=window.adsbygoogle||[]).requestNonPersonalizedAds=0;
(adsbygoogle = window.adsbygoogle || []).push({});