Untitled
unknown
plain_text
4 years ago
2.8 kB
10
Indexable
<script async="async" src="https://consent.trustarc.com/notice?domain=isarr.marsh.com&c=teconsent&country=is&js=nj¬iceType=bb&text=true&pcookie&text=true"></script>
<script type="text/javascript">
(function() {
var gdprApplies = true;
var gdprAppliesGlobally = false;
function addFrame() {
if (!window.frames['__cmpLocator']) {
if (document.body) {
var body = document.body,
iframe = document.createElement('iframe');
iframe.style.cssText = 'display:none';
iframe.name = '__cmpLocator';
iframe.id = '__cmpTrustarc';
iframe.src = '//trustarc.mgr.consensu.org/get?name=cmpcookie.html';
body.appendChild(iframe);
} else {
// In the case where this stub is located in the head,
// this allows us to inject the iframe more quickly than
// relying on DOMContentLoaded or other events.
setTimeout(addFrame, 5);
}
}
}
addFrame();
function stubCMP() {
var b = arguments;
__cmp.a = __cmp.a || [];
if (!b.length) return __cmp.a;
else if (b[0] === 'ping') {
b[2]({
"gdprAppliesGlobally": gdprAppliesGlobally,
"cmpLoaded": false
}, true);
} else {
__cmp.a.push([].slice.apply(b));
}
}
function cmpMsgHandler(event) {
var msgIsString = typeof event.data === "string";
var json;
try {
json = msgIsString ? JSON.parse(event.data) : event.data;
} catch (exp) {
//if data cannot be parsed don't proceed
return;
}
if (json && json.__cmpCall) {
var i = json.__cmpCall;
window.__cmp(i.command, i.parameter, function(retValue, success) {
var returnMsg = {
"__cmpReturn": {
"returnValue": retValue,
"success": success,
"callId": i.callId
}
};
event.source.postMessage(msgIsString ?
JSON.stringify(returnMsg) : returnMsg, '*');
});
}
}
if (typeof(__cmp) !== 'function') {
window.__cmp = stubCMP;
__cmp.msgHandler = cmpMsgHandler;
__cmp.gdprApplies = gdprApplies;
__cmp.gdprAppliesGlobally = gdprAppliesGlobally;
if (window.addEventListener)
window.addEventListener('message', cmpMsgHandler, false);
else
window.attachEvent('onmessage', cmpMsgHandler);
}
})();
</script>Editor is loading...