1/** 2========================================================================= 3========================================================================= 4Template Name: Able Pro - Bootstrap Admin Template 5Author: Phoenixcoded 6Support: https://phoenixcoded.authordesk.app 7File: script.js 8Description: this file will contains code for handling Buynow link. 9========================================================================= 10========================================================================= 11*/ 12function getQueryStringParameters() { 13 var BuyNowLink = ''; 14 var isp = ''; 15 16 if (sessionStorage.getItem('isp', isp)) { 17 var BuyNowLink = sessionStorage.getItem('BuyNowLink'); 18 var isp = sessionStorage.getItem('isp'); 19 } else { 20 try { 21 const queryString = window.location.search; 22 const params = new URLSearchParams(queryString); 23 24 if (params.get('isp') == 1) { 25 // is single product 26 isp = '?isp=1'; 27 BuyNowLink = 'https://1.envato.market/baeyGk'; 28 29 sessionStorage.setItem('isp', isp); 30 sessionStorage.setItem('BuyNowLink', BuyNowLink); 31 32 } else { 33 BuyNowLink = 'https://1.envato.market/zNkqj6'; 34 } 35 } catch (err) { 36 BuyNowLink = 'https://1.envato.market/zNkqj6'; 37 } 38 } 39 40 document.addEventListener('DOMContentLoaded', function () { 41 var elem = document.querySelectorAll('.btn-buy, .buynowlinks'); 42 for (var j = 0; j < elem.length; j++) { 43 elem[j].setAttribute('href', BuyNowLink); 44 } 45 }); 46 document.addEventListener('DOMContentLoaded', function () { 47 var elem = document.querySelectorAll('.technology-block a,.drp-technology a, .tech-link a'); 48 for (var j = 0; j < elem.length; j++) { 49 var dattr = elem[j].getAttribute('href'); 50 elem[j].setAttribute('href', dattr + isp); 51 } 52 }); 53} 54 55getQueryStringParameters();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.