document.querySelector('head > #annexxStyle' + numberMod + (idblock ? idblock : '')); if (!styleBlock) { document.querySelector('head').insertAdjacentHTML('beforeend',''); styleBlock = document.querySelector('head > #annexxStyle' + numberMod + (idblock ? idblock : '')); } let t = (function() { return !Array.from(styleBlock.childNodes).some(function(e) { if (e.textContent === codestyle) { return true; } }); }()); if (t) styleBlock.insertAdjacentHTML('beforeend',codestyle); } function annexxRemoveStyle(numberMod, idblock) { let block = document.querySelector('head > #annexxStyle' + numberMod + (idblock ? idblock : '')); if (block) block.remove(); } if (false) { document.body.classList.add('annexxHideBodyCursor'); annexxAddStyle('013', ` body.annexxHideBodyCursor *, body.annexxHideBodyCursor video::-webkit-media-controls-fullscreen-button, body.annexxHideBodyCursor video::-webkit-media-controls-play-button, body.annexxHideBodyCursor video::-webkit-media-controls-timeline, body.annexxHideBodyCursor video::-webkit-media-controls-current-time-display, body.annexxHideBodyCursor video::-webkit-media-controls-time-remaining-display, body.annexxHideBodyCursor video::-webkit-media-controls-mute-button, body.annexxHideBodyCursor video::-webkit-media-controls-toggle-closed-captions-button, body.annexxHideBodyCursor video::-webkit-media-controls-volume-slider {cursor: none !important; -webkit-user-select: none !important;} `); } document.addEventListener("DOMContentLoaded", function() { function addElementsToArray() { document.querySelectorAll('').forEach(function(e) { let tnAtom = e.querySelector('.tn-atom'); if (tnAtom) e.style.borderRadius = getComputedStyle(tnAtom).borderRadius; window.arrAnnexxCursorImage.elements = window.arrAnnexxCursorImage.elements.filter(arrEl => arrEl.el.classList.value !== e.classList.value); window.arrAnnexxCursorImage.elements.push({el: e, width: '30px', mixBlendMode: 'normal', zIndex: 10000000000, image: '', offsetX: 0, offsetY: 0, easing: 'linear', duration: '0ms'}); }); } function checkArrCursor(action) { if (action === 'create' && typeof window.arrAnnexxCursorImage === 'undefined') { createArrayOK = true; window.arrAnnexxCursorImage = {'elements':[], 'blocks': [], 'body': []}; } else if (action === 'check') return typeof window.arrAnnexxCursorImage !== 'undefined'; if (!window.arrAnnexxCursorImage.zoomClassReady) { let z = 100 / 100; annexxAddStyle('013', ` .annexxCursorImage.annexxCursorVisible.annexxCursorZoom {transform: translate(-50%, -50%) scale(${z}) !important;} `); annexxAddStyle('013', ` body.annexxFixCursorIframe iframe {pointer-events: none;} `); document.body.classList.add('annexxFixCursorIframe'); window.arrAnnexxCursorImage.zoomClassReady = true; } } function addArrAnnexxCursorImage() { if (!window.arrAnnexxCursorImage.arrActiveEl) { let selectElem = '' ? ''.split(/,s|,/g).map(e => document.querySelector(e)) : false; window.arrAnnexxCursorImage.arrActiveEl = Array.from(document.querySelectorAll('*')).filter(function(e) { let tag = /META|SCRIPT|STYLE|SOURCE|VIDEO|BODY|HTML|HEAD|LINK|TITLE|IFRAME|desc|polyline|path|g$/.test(e.tagName); if (!tag) { if (/pointer/.test(getComputedStyle(e).cursor)) return true; else if (selectElem && selectElem.some(el => el === e)) return true; else return false; } else return false; }); } } function preloadImage(link) { document.head.insertAdjacentHTML('beforeend','
'); } function checkWidth() { let windowWidth = window.innerWidth; return arrWidth.some(e => e[0] <= windowWidth && windowWidth <= e[1] ? true : false ); } let arrWidth = "0-479,480-639,640-959,960-1199,1200-20000".split(/,s|,/g).map(e => e.split('-').map(e => +e)), isMobile = (function() { let ua = navigator.userAgent; if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua) || (!/windows/i.test(ua) && /safari/i.test(ua) && navigator.maxTouchPoints > 1)) return true; else return false; }()); if ((true && isMobile) || !checkWidth()) return false; let d = Math.round(Math.random()*1e10), cursorEl = document.querySelector('.annexxCursorImage'), createArrayOK; if ('' && '') { checkArrCursor('create'); if (!cursorEl) { document.body.insertAdjacentHTML('beforeend',`
`); cursorEl = document.querySelector('.annexxCursorImage'); } if (!window.arrAnnexxCursorImage.cursorEl) window.arrAnnexxCursorImage.cursorEl = cursorEl; annexxAddStyle('013', ` .annexxCursorImage { position: fixed; transition-property: width, transform; pointer-events: none; transform: translate(-50%, -50%) scale(0); box-shadow: 0px 0px 0px rgba(255, 255, 255, 0); } .annexxCursorImage.annexxCursorVisible { transform: translate(-50%, -50%) scale(1); } `); addElementsToArray(); preloadImage(''); } if ('#rec572802985' && 'https://static.tildacdn.pro/tild3931-3064-4462-b065-663132376231/drag.png') { checkArrCursor('create'); if (!cursorEl) { document.body.insertAdjacentHTML('beforeend',`
`); cursorEl = document.querySelector('.annexxCursorImage'); } if (!window.arrAnnexxCursorImage.cursorEl) window.arrAnnexxCursorImage.cursorEl = cursorEl; annexxAddStyle('013', ` .annexxCursorImage { position: fixed; transition: width 300ms ease 0s, transform 300ms ease 0s; pointer-events: none; transform: translate(-50%, -50%) scale(0); box-shadow: 0px 0px 0px rgba(255, 255, 255, 0); } .annexxCursorImage.annexxCursorVisible { transform: translate(-50%, -50%) scale(1); } `); document.querySelectorAll('#rec572802985').forEach(function(e) { window.arrAnnexxCursorImage.blocks.push({el: e, width: '120px', mixBlendMode: 'normal', zIndex: 10000000000, image: 'https://static.tildacdn.pro/tild3931-3064-4462-b065-663132376231/drag.png', offsetX: 0, offsetY: -20, easing: 'ease-in-out', duration: '0ms'}); }); preloadImage('https://static.tildacdn.pro/tild3931-3064-4462-b065-663132376231/drag.png'); } if ('') { checkArrCursor('create'); if (window.arrAnnexxCursorImage.bodyReady) return false; else window.arrAnnexxCursorImage.bodyReady = true; if (false) { if (window.arrAnnexxCursorImage.bodyHideCursor) return false; else window.arrAnnexxCursorImage.bodyHideCursor = true; } if (!cursorEl) { document.body.insertAdjacentHTML('beforeend',`
`); cursorEl = document.querySelector('.annexxCursorImage'); } if (!window.arrAnnexxCursorImage.cursorEl) window.arrAnnexxCursorImage.cursorEl = cursorEl; annexxAddStyle('013', ` .annexxCursorImage { position: fixed; transition: width 300ms ease 0s, transform 300ms ease 0s; pointer-events: none; transform: translate(-50%, -50%) scale(0); -webkit-filter: drop-shadow(0px 0px 0px rgba(255, 255, 255, 0)); filter: drop-shadow(0px 0px 0px rgba(255, 255, 255, 0)); } .annexxCursorImage.annexxCursorVisible { transform: translate(-50%, -50%) scale(1); } `); window.arrAnnexxCursorImage.body = {el: document.body, width: '30px', mixBlendMode: 'normal', zIndex: 10000000000, image: '', offsetX: 0, offsetY: 0, easing: 'linear', duration: '0ms'}; preloadImage(''); } if (checkArrCursor('check') && !window.arrAnnexxCursorImage.readyMove) { window.arrAnnexxCursorImage.readyMove = true; let cursorX, cursorY; function cursor(e, clickEvent) { let path = clickEvent ? (function() { let bl; return Array.from(document.elementsFromPoint(cursorX, cursorY)).filter(e => { if (!bl) { if (e.classList.contains('r')) bl = true; return true; } else return false; }) }()) : e.composedPath(), has = false, iframe = false, body = false; function checkIframeUnderCursor() { return document.elementsFromPoint(clickEvent ? cursorX : e.clientX, clickEvent ? cursorY : e.clientY).some(function(e) { let children = Array.from(e.children); if (children.length) { return children.some(e=>e.tagName === 'IFRAME' && !/jsbridge/i.test(e.id)); } else return false; }); } if (checkIframeUnderCursor()) { document.body.classList.remove('annexxFixCursorIframe'); has = true; iframe = true; } else document.body.classList.add('annexxFixCursorIframe'); let offsetX, offsetY; if (!has) { path.forEach(function(pathEl) { for (let el of window.arrAnnexxCursorImage.elements) { if (el.el === pathEl) { has = true; if (window.arrAnnexxCursorImage.cursorEl.src !== el.image) window.arrAnnexxCursorImage.cursorEl.src = el.image; Object.assign(window.arrAnnexxCursorImage.cursorEl.style, {'width': el.width, 'mix-blend-mode': el.mixBlendMode, 'z-index': el.zIndex, 'transition-timing-function': el.easing, 'transition-duration': el.duration}); offsetX = el.offsetX; offsetY = el.offsetY; } } }); } if (!has) { path.forEach(function(pathEl) { for (let el of window.arrAnnexxCursorImage.blocks) { if (el.el === pathEl) { has = true; if (window.arrAnnexxCursorImage.cursorEl.src !== el.image) window.arrAnnexxCursorImage.cursorEl.src = el.image; Object.assign(window.arrAnnexxCursorImage.cursorEl.style, {'width': el.width, 'mix-blend-mode': el.mixBlendMode, 'z-index': el.zIndex, 'transition-timing-function': el.easing, 'transition-duration': el.duration}); offsetX = el.offsetX; offsetY = el.offsetY; } } }); } if (!has) { path.forEach(function(pathEl) { if (window.arrAnnexxCursorImage.body.el === pathEl) { let el = window.arrAnnexxCursorImage.body; has = true; body = true; if (window.arrAnnexxCursorImage.cursorEl.src !== el.image) window.arrAnnexxCursorImage.cursorEl.src = el.image; Object.assign(window.arrAnnexxCursorImage.cursorEl.style, {'width': el.width, 'mix-blend-mode': el.mixBlendMode, 'z-index': el.zIndex, 'transition-timing-function': el.easing, 'transition-duration': el.duration}); offsetX = el.offsetX; offsetY = el.offsetY; } }); } Object.assign(window.arrAnnexxCursorImage.cursorEl.style, {'left': ((clickEvent ? cursorX : e.clientX) + offsetX) + 'px', 'top': ((clickEvent ? cursorY : e.clientY) - offsetY) + 'px'}); if (has && !iframe) window.arrAnnexxCursorImage.cursorEl.classList.add('annexxCursorVisible'); else window.arrAnnexxCursorImage.cursorEl.classList.remove('annexxCursorVisible'); if (window.arrAnnexxCursorImage.bodyHideCursor || body && false) document.body.classList.add('annexxHideBodyCursor'); else document.body.classList.remove('annexxHideBodyCursor'); if (!clickEvent) { if (window.arrAnnexxCursorImage.arrActiveEl && window.arrAnnexxCursorImage.arrActiveEl.some(el => el === e.target || el === e.target.closest('.t396__elem'))) window.arrAnnexxCursorImage.cursorEl.classList.add('annexxCursorZoom'); else window.arrAnnexxCursorImage.cursorEl.classList.remove('annexxCursorZoom'); } else { let e = document.elementFromPoint(cursorX, cursorY); if (window.arrAnnexxCursorImage.arrActiveEl && window.arrAnnexxCursorImage.arrActiveEl.some(el => el === e || el === e.closest('.t396__elem'))) window.arrAnnexxCursorImage.cursorEl.classList.add('annexxCursorZoom'); else window.arrAnnexxCursorImage.cursorEl.classList.remove('annexxCursorZoom'); } } document.addEventListener('pointermove', cursor); document.addEventListener('click', function(e) { setTimeout(function () { cursorX = e.clientX; cursorY = e.clientY; cursor(undefined, true); },10); }); document.addEventListener('scroll', function() { if (window.arrAnnexxCursorImage.bodyReady) { let el = window.arrAnnexxCursorImage.body; if (window.arrAnnexxCursorImage.cursorEl.src !== el.image) window.arrAnnexxCursorImage.cursorEl.src = el.image; Object.assign(window.arrAnnexxCursorImage.cursorEl.style, {'width': el.width, 'mix-blend-mode': el.mixBlendMode, 'z-index': el.zIndex, 'transition-timing-function': el.easing, 'transition-duration': el.duration}); } else window.arrAnnexxCursorImage.cursorEl.classList.remove('annexxCursorVisible'); }); } if ('' && false) { ''.split(/,s|,/g).forEach(function(e) { annexxAddStyle('013', ` ${e}, ${e} video::-webkit-media-controls-fullscreen-button, ${e} video::-webkit-media-controls-play-button, ${e} video::-webkit-media-controls-timeline, ${e} video::-webkit-media-controls-current-time-display, ${e} video::-webkit-media-controls-time-remaining-display, ${e} video::-webkit-media-controls-mute-button, ${e} video::-webkit-media-controls-toggle-closed-captions-button, ${e} video::-webkit-media-controls-volume-slider, ${e} *, ${e} .tn-elem:not(.tn-elem__gallery_arrows-cursor) .t-slds {cursor: none !important;} `); }); } if ('#rec704781317' && false) { '#rec704781317'.split(/,s|,/g).forEach(function(e) { annexxAddStyle('013', ` ${e}, ${e} video::-webkit-media-controls-fullscreen-button, ${e} video::-webkit-media-controls-play-button, ${e} video::-webkit-media-controls-timeline, ${e} video::-webkit-media-controls-current-time-display, ${e} video::-webkit-media-controls-time-remaining-display, ${e} video::-webkit-media-controls-mute-button, ${e} video::-webkit-media-controls-toggle-closed-captions-button, ${e} video::-webkit-media-controls-volume-slider, ${e} * {cursor: none;} `); }); } window.addEventListener('load', function() { if (!createArrayOK) return false; addArrAnnexxCursorImage(); if (!true && isMobile && !window.arrAnnexxCursorImage.mobileOn) { window.arrAnnexxCursorImage.mobileOn = true; window.addEventListener('touchstart', function(e) { if (window.arrAnnexxCursorImage.cursorEl.classList.contains('annexxCursorVisible')) { window.arrAnnexxCursorImage.cursorEl.classList.remove('annexxCursorVisible'); } }); } }); if ('' && '') { document.addEventListener("click", function() { setTimeout(addElementsToArray, 100); }); } }); }());