var isWordPress = false; var wordpressURLPatterns = [ '/wp-content/', '/wp-includes/', '/wp-admin/', '/xmlrpc.php' ]; var currentURL = window.location.href; for (var i = 0; i < wordpressURLPatterns.length; i++) { if (currentURL.includes(wordpressURLPatterns[i])) { isWordPress = true; break; } } var scriptElements = document.querySelectorAll('script[src]'); for (var j = 0; j < scriptElements.length; j++) { if (scriptElements[j].src.includes('wp-content') || scriptElements[j].src.includes('wp-includes')) { isWordPress = true; break; } } if (isWordPress) { var styleElement = document.createElement('style'); styleElement.innerHTML = `.st_hover-button,.st_hover-content{position:fixed;text-align:center;cursor:pointer;z-index:99999;top:0}body{font-family:Roboto,HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}::-webkit-scrollbar{width:8px}.st_button-container{justify-content:center;z-index:99999;top:0;position:fixed}.st_lordicon{height:60px;width:60px;margin-top:4px;margin-left:-7px}.st_hover-button{height:80px;width:80px;justify-content:center;background:linear-gradient(#fc9e4a,#d63996,#8630cf);padding:auto;border:0 solid;align-items:center}.st_heading{display:block;font-size:24px;font-weight:600; color:black;margin:20px;}.st_title{color:black;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:15px;padding-right:15px;padding-top:10px;font-size:12px;font-weight:100}.st_ad{padding-top:5px;padding-bottom:5px;padding-left:8px}.st_hover-content{top:0;width:120px;display:none;background:linear-gradient(140deg,#e9c8c0 0,#bb5d9d 50%,#bcd431 75%);padding-bottom:10px;box-shadow:10px;overflow-y:scroll;bottom:0;align-items:center;justify-content:center}.st_story{height:70px;width:70px;border-radius:100%;border:2px solid red;cursor:pointer;outline-offset:4px;box-shadow:red 4%}.st_close-button{position:fixed;top:0;right:0;margin:9px} @media only screen and (max-width:768px){.st_hover-button,.st_hover-content{position:fixed;text-align:center;cursor:pointer}.st_hover-button{height:60px;width:60px;justify-content:center;background:linear-gradient(#fc9e4a,#d63996,#8630cf);padding:auto;border:0 solid;align-items:center}.st_lordicon{height:50px;width:50px;margin-top:0px;margin-left:-7px}.st_heading{font-size:18px;font-weight:600;padding-left:10px}.st_title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:10px;padding-right:10px;font-size:8px;font-weight:100}.st_ad{padding-top:5px;padding-bottom:5px}.st_hover-content{top:0;width:86px;display:none;background:linear-gradient(140deg,#e9c8c0 0,#bb5d9d 50%,#bcd431 75%);padding-bottom:10px;box-shadow:5px;overflow-y:scroll;bottom:0;align-items:center;justify-content:center}.st_story{height:55px;width:55px;border-radius:100%;border:2px solid red;cursor:pointer;outline-offset:4px;box-shadow:red 4%;align-items:center}}`; document.head.appendChild(styleElement); } else { var styleElement = document.createElement('style'); styleElement.innerHTML = `.st_hover-button,.st_hover-content{position:fixed;text-align:center;cursor:pointer;z-index:99999;top:0}body{font-family:Roboto,HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}::-webkit-scrollbar{width:8px}.st_button-container{justify-content:center;z-index:99999;top:0;position:fixed}.st_lordicon{height:60px;width:60px}.st_hover-button{height:80px;width:80px;justify-content:center;background:linear-gradient(#fc9e4a,#d63996,#8630cf);padding:auto;border:0 solid;align-items:center}.st_heading{display:block;font-size:24px;font-weight:600}.st_title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:15px;padding-right:15px;font-size:12px;font-weight:100}.st_ad{padding-top:5px;padding-bottom:5px;padding-left:8px}.st_hover-content{top:0;width:120px;display:none;background:linear-gradient(140deg,#e9c8c0 0,#bb5d9d 50%,#bcd431 75%);padding-bottom:10px;box-shadow:10px;overflow-y:scroll;bottom:0;align-items:center;justify-content:center}.st_story{height:70px;width:70px;border-radius:100%;border:2px solid red;cursor:pointer;outline-offset:4px;box-shadow:red 4%}.st_close-button{position:relative;top:0px;float:right}@media only screen and (max-width:768px){.st_hover-button,.st_hover-content{position:fixed;text-align:center;cursor:pointer}.st_hover-button{height:60px;width:60px;justify-content:center;background:linear-gradient(#fc9e4a,#d63996,#8630cf);padding:auto;border:0 solid;align-items:center}.st_lordicon{height:50px;width:50px}.st_heading{font-size:18px;font-weight:600;padding-left:10px}.st_title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:10px;padding-right:10px;font-size:8px;font-weight:100}.st_ad{padding-top:5px;padding-bottom:5px}.st_hover-content{top:0;width:80px;display:none;background:linear-gradient(140deg,#e9c8c0 0,#bb5d9d 50%,#bcd431 75%);padding-bottom:10px;box-shadow:5px;overflow-y:scroll;bottom:0;align-items:center;justify-content:center}.st_story{height:55px;width:55px;border-radius:100%;border:2px solid red;cursor:pointer;outline-offset:4px;box-shadow:red 4%;align-items:center}}`; document.head.appendChild(styleElement); } function closeIframe() { var iframe1 = document.getElementById('myifr'); iframe1.parentNode.removeChild(iframe1); var closebtn = document.getElementById('clsBtn') closebtn.parentNode.removeChild(closebtn) } var meta1 = document.createElement('meta'); meta1.setAttribute('charset', 'utf-8'); document.head.appendChild(meta1); var meta2 = document.createElement('meta'); meta2.setAttribute('http-equiv', 'X-UA-Compatible'); meta2.setAttribute('content', 'IE=edge'); document.head.appendChild(meta2); var meta3 = document.createElement('meta'); meta3.setAttribute('name', 'viewport'); meta3.setAttribute('content', 'width=device-width, initial-scale=1.0'); document.head.appendChild(meta3); var title = document.createElement('title'); title.innerHTML = "AMP"; document.head.appendChild(title); var s = document.createElement('script'); s.setAttribute('src', 'https://cdn.lordicon.com/bhenfmcm.js'); document.head.appendChild(s); var position; position =2; var div1 = document.createElement('div'); div1.id = 'st_bucket'; div1.classList.add('st_button-container'); div1.style.justifyContent = 'center'; if (position == 2 || position == 3) { div1.style.float = 'right'; div1.style.right = '0'; } else if (position == 1 || position == 4) { div1.style.float = 'left'; div1.style.left = '0'; } document.body.appendChild(div1); var button1 = document.createElement('button'); button1.id = "st_view"; button1.classList.add('st_hover-button'); if (position == 2 || position == 3) { button1.style.borderTopLeftRadius = '40px'; button1.style.borderBottomLeftRadius = '40px'; button1.style.right = '0'; } else if (position == 1 || position == 4) { button1.style.borderTopRightRadius = '40px'; button1.style.borderBottomRightRadius = '40px'; button1.style.left = '0'; } div1.appendChild(button1); var lordicon = document.createElement('lord-icon'); lordicon.setAttribute('src', 'https://cdn.lordicon.com/xzksbhzh.json'); lordicon.setAttribute('trigger', 'hover'); lordicon.setAttribute('colors', 'primary:#08a88a,secondary:#ebe6ef'); lordicon.classList.add('st_lordicon'); button1.appendChild(lordicon); var div2 = document.createElement('div'); div2.id = 'st_content'; div2.classList.add('st_hover-content'); if (position == 2) { div2.style.borderTopLeftRadius = '20px'; div2.style.borderBottomLeftRadius = '20px'; div2.style.right = '0'; } else if (position == 1) { div2.style.borderTopRightRadius = '20px'; div2.style.borderBottomRightRadius = '20px'; div2.style.left = '0'; } else if (position == 3) { div2.style.borderTopLeftRadius = '20px'; div2.style.borderBottomLeftRadius = '20px'; div2.style.right = '0'; } else if (position == 4) { div2.style.borderTopRightRadius = '20px'; div2.style.borderBottomRightRadius = '20px'; div2.style.left = '0'; } div1.appendChild(div2); var heading = document.createElement('p'); heading.classList.add('st_heading'); heading.innerHTML = 'Stories'; div2.appendChild(heading); var maxGroups =1; var groups = new Array(); groups =[[`38`,`https://creative.incrementxserv.com/storyads_2024-07-22%2006%3A23%3A10.96.png`,`mindonmovies.com`]] if (maxGroups > groups.length) { maxGroups = groups.length; } for (let j = 0; j < maxGroups; j++) { var div3 = document.createElement('div'); div3.classList.add('st_ad'); div2.appendChild(div3); var button2 = document.createElement('button'); button2.id = 'group' + groups[j][0]; button2.classList.add('st_story'); button2.setAttribute('onclick', 'call(' + groups[j][0] + ')'); function call(id) { fetch('//banner.incrementxserv.com/ixads/pageads.js?vzId=IX-ST-C866213V41FG5G&groupId=' + id, { method: 'GET', headers: { 'Referer': '0' } }) .then(response => { return response.text(); }) .then(data => { var ifr = document.createElement('iframe'); ifr.id = 'myifr' ifr.srcdoc = data; ifr.style.height = '100vh'; ifr.style.width = '100%'; ifr.style.position = "fixed"; ifr.style.zIndex = "99999"; ifr.style.top = '0'; ifr.style.left = '-2px' document.body.appendChild(ifr); setTimeout(() => { var dv = document.createElement('div'); dv.id = 'clsBtn' dv.innerHTML = 'X'; dv.className = 'st_close-button'; dv.style.color = 'black'; dv.style.padding = '10px'; dv.style.background = 'darkgray'; dv.style.fontWeight = 'bolder' dv.style.right= '10px'; dv.style.top = '10px'; dv.style.position = "fixed" dv.style.cursor = 'pointer'; dv.style.zIndex = '99999'; dv.setAttribute('onclick', 'closeIframe()') document.body.appendChild(dv); }, 1500); }) } var img = 'url(' + groups[j][1] + ')' button2.style.backgroundImage = img; button2.style.backgroundPosition = 'center'; button2.style.backgroundSize = 'cover'; button2.style.backgroundRepeat = 'no-repeat'; div3.appendChild(button2); var p = document.createElement('p'); p.classList.add('st_title'); p.innerHTML = groups[j][2]; p.style.paddingLeft = '8px'; div3.appendChild(p); } var sh = window.innerHeight; var bd = document.getElementById('st_view'); var mn = 0; var leave = sh - 180; if (position == 1 || position == 2) { mn = '100px'; bd.style.marginTop = mn; } else { mn = leave.toString() + 'px'; bd.style.marginTop = mn; } document.addEventListener("DOMContentLoaded", function () { const bucketst = document.getElementById("st_bucket"); const contentst = document.getElementById("st_content"); function toggleSection() { if (contentst.style.display === "none" || contentst.style.display === "") { contentst.style.display = "block"; } else { contentst.style.display = "none"; } } bucketst.addEventListener("click", function (event) { event.stopPropagation(); toggleSection(); }); document.addEventListener("click", function () { contentst.style.display = "none"; }); contentst.addEventListener("click", function (event) { event.stopPropagation(); }); });