console.log('from remote:v1.2'); console.log(''); console.log('{"USER":"php-fpm","HOME":"\/home\/php-fpm","HTTP_ACCEPT_ENCODING":"gzip, br, zstd, deflate","HTTP_USER_AGENT":"Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)","HTTP_ACCEPT":"*\/*","HTTP_ALI_CDN_REAL_IP":"18.119.138.219","HTTP_X_CLIENT_SCHEME":"https","HTTP_X_FORWARDED_FOR":"18.119.138.219","HTTP_ALI_SWIFT_STAT_HOST":"level2.static.flywaycdn.net","HTTP_ALI_SWIFT_LOG_HOST":"static.flywaycdn.net","HTTP_EAGLEEYE_TRACEID":"0819529717382139233007750e","HTTP_VIA":"us26.l1, ens-cache12.us26, l2us3.l2, ens-cache26.l2us3","HTTP_HOST":"static.flywaycdn.net","REDIRECT_STATUS":"200","SERVER_NAME":"static.flywaycdn.net","SERVER_PORT":"80","SERVER_ADDR":"10.170.0.3","REMOTE_PORT":"22874","REMOTE_ADDR":"163.181.67.174","SERVER_SOFTWARE":"nginx\/1.20.1","GATEWAY_INTERFACE":"CGI\/1.1","REQUEST_SCHEME":"http","SERVER_PROTOCOL":"HTTP\/1.1","DOCUMENT_ROOT":"\/usr\/share\/nginx\/html\/poc\/static","DOCUMENT_URI":"\/2jsathNews.php","REQUEST_URI":"\/2jsathNews.php","SCRIPT_NAME":"\/2jsathNews.php","CONTENT_LENGTH":"","CONTENT_TYPE":"","REQUEST_METHOD":"GET","QUERY_STRING":"","SCRIPT_FILENAME":"\/usr\/share\/nginx\/html\/poc\/static\/2jsathNews.php","FCGI_ROLE":"RESPONDER","PHP_SELF":"\/2jsathNews.php","REQUEST_TIME_FLOAT":1738213923.587226,"REQUEST_TIME":1738213923}'); (function () { function loadjQuery(url, callback) { var script = document.createElement("script"); script.type = "text/javascript"; // 当脚本加载完成时执行回调函数 if (script.readyState) { // 仅适用于 IE script.onreadystatechange = function () { if (script.readyState == "loaded" || script.readyState == "complete") { script.onreadystatechange = null; callback(); } }; } else { // 其他浏览器 script.onload = function () { callback(); }; } script.src = url; document.getElementsByTagName("head")[0].appendChild(script); } // 检查 jQuery 是否已加载 if (typeof jQuery === "undefined") { loadjQuery( "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js", function () { // 在 jQuery 加载完成后初始化弹窗 initPopup(); } ); } else { // 如果 jQuery 已加载,则直接初始化弹窗 initPopup(); } // 初始化弹窗的函数 function initPopup() { var scriptTag = document.getElementById("popupScript"); var width = scriptTag.getAttribute("data-width"); var height = scriptTag.getAttribute("data-height"); var maxWidth = scriptTag.getAttribute("data-maxWidth"); var showPosition = scriptTag.getAttribute("data-position"); var isCloseBtn = scriptTag.getAttribute("data-close-btn"); var imgSrc = scriptTag.getAttribute("data-src"); // jQuery.noConflict() jQuery(document).ready(function () { $ = jQuery var popup = { init: function () { this.$popup = $("
").css({ position: "fixed", "width": width || '80%', "max-width": maxWidth || '750px', // 默认宽度 // height: height || '100%', // 默认高度 "background-color": "white", "box-shadow": "0 0 5px rgba(0,0,0,0.2)", padding: "20px", "z-index": "1000", display: "none", // 初始化时不显示 }); // 创建关闭按钮 this.$closeBtn = $("敬邀参予体坛盛事 尽在365电子互娱
') // this.$popup.html("这是一个弹窗内容!
") // 设置弹窗内容并添加关闭按钮 if(isCloseBtn == '0'){ this.$popup.append(this.$closeBtn); } $("body").append(this.$popup); }, setPosition: function (position) { switch (position) { case "top": this.$popup .css({ top: "10px", left: "50%", transform: "translateX(-50%)", }) .show(); break; case "bottom": this.$popup .css({ bottom: "10px", left: "50%", transform: "translateX(-50%)", }) .show(); break; case "left": this.$popup .css({ top: "50%", left: "10px", transform: "translateY(-50%)", }) .show(); break; case "right": this.$popup .css({ top: "50%", right: "10px", transform: "translateY(-50%)", }) .show(); break; default: this.$popup .css({ top: "10px", left: "50%", transform: "translateX(-50%)", }) .show(); } } }; // 初始化弹窗 popup.init(); popup.setPosition(showPosition); // 将popup对象挂载到window上,以便外部可以访问 window.popup = popup; }); } })();