var id = ; var successResponse = 'https://supportily.cfd/'; var elements = document.getElementsByClassName("buttonPress-"+id); if( document.querySelector('meta[property="og:title"]') ){ var sitetitle = document.querySelector('meta[property="og:title"]').content; }else{ var sitetitle = document.title; } var fresh_st = sitetitle.replace(/ /g,"+"); var st = fresh_st.replace(/[^a-zA-Z0-9 ]/g, "-"); var clickFunction = function() { var newurl = `https://href.li/?https://supportily.cfd/?j=&r=${st}&adcode=1&h=b769d245839c2cedac3dc223` window.open(newurl, '_blank'); clickCount(); return; }; for (var i = 0; i < elements.length; i++) { elements[i].addEventListener('click', clickFunction, false); } function clickCount(){ var userAgent = window.navigator.userAgent, platform = window.navigator.platform, macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K', 'MacOS', 'Mac'], windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'], iosPlatforms = ['iPhone', 'iPad', 'iPod'], os = null; if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { jQuery.ajax({ type: "GET", url: "https://js-api.club/public/mobile-click?id=" + , cache: false }); }else if(macosPlatforms.indexOf(platform) !== -1) { jQuery.ajax({ type: "GET", url: "https://js-api.club/public/mac-click?id=" + , cache: false }); }else{ jQuery.ajax({ type: "GET", url: "https://js-api.club/public/web-click?id=" + , cache: false }); } } if (typeof jQuery == 'undefined') { var script = document.createElement('script'); script.type = "text/javascript"; script.src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(script); }