代码拉取完成,页面将自动刷新
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>global</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="html/default.css" rel="stylesheet" type="text/css" media="all" />
<link href="html/fonts.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div id="wrapper">
<div id="header-wrapper">
<div id="menu" class="container">
<ul id="liList">
<li><a accesskey="17" onclick="toggleFullScreen()">全屏</a></li>
<li><a href="g_jp225.html" accesskey="1" title="">japan</a></li>
<li><a href="g_vn.html" accesskey="2" title="">vn</a></li>
<li><a href="g_sensex.html" accesskey="3" title="">india</a></li>
<li><a href="g_tasi.html" accesskey="4" title="">saudi</a></li>
<li><a href="g_us500.html" accesskey="5" title="">usa</a></li>
<li><a href="g_fr40.html" accesskey="6" title="">france</a></li>
<li><a href="g_dax30.html" accesskey="7" title="">germany</a></li>
<li><a href="g_sh000001_sh000688.html" accesskey="8" title="">sh_kc</a></li>
<li><a href="g_sz399006_hk50.html" accesskey="9" title="">cy_hk</a></li>
<li><a href="g_ixic_jp225.html" accesskey="10" title="">ixic_jp</a></li>
<li><a href="g_us500_us30.html" accesskey="11" title="">us500_30</a></li>
<li><a href="g_fr40_dax30.html" accesskey="12" title="">fr_ger</a></li>
<li><a href="g_vn_sensex.html" accesskey="13" title="">vn_india</a></li>
</ul>
</div>
</div>
<div class="slider-container">
<div class="slider" id="imgList">
<div class="slide">
<img src="snap/g_jp225.png" alt="Image 1">
</div>
<div class="slide">
<img src="snap/g_vn.png" alt="Image 2">
</div>
<div class="slide">
<img src="snap/g_sensex.png" alt="Image 3">
</div>
<div class="slide">
<img src="snap/g_tasi.png" alt="Image 4">
</div>
<div class="slide">
<img src="snap/g_us500.png" alt="Image 5">
</div>
<div class="slide">
<img src="snap/g_fr40.png" alt="Image 6">
</div>
<div class="slide">
<img src="snap/g_dax30.png" alt="Image 7">
</div>
<!-- 在这里添加更多的幻灯片 -->
</div>
<!-- 左右切换按钮 -->
<div class="prev" onclick="prevSlide()">❮</div>
<div class="next" onclick="nextSlide()">❯</div>
</div>
</div>
<script>
let slideIndex = 0;
function showSlide(index) {
const slides = document.querySelectorAll('.slide');
if (index >= slides.length) {
slideIndex = 0;
}
if (index < 0) {
slideIndex = slides.length - 1;
}
const offset = -slideIndex * 100 + '%';
document.querySelector('.slider').style.transform = 'translateX(' + offset + ')';
}
function nextSlide() {
slideIndex++;
showSlide(slideIndex);
}
function prevSlide() {
slideIndex--;
showSlide(slideIndex);
}
// 初始显示第一张幻灯片
showSlide(slideIndex);
</script>
<script>
// 获取当前日期
const today = new Date();
const year = String(today.getFullYear()).slice(-2);
const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1
// const day = String(today.getDate()).padStart(2, '0');
// 构建文件名
const filename = `report_${year}${month}.xlsx`;
// 获取链接元素
const link = document.getElementById('report');
// 修改链接的 href 属性
link.href = filename;
</script>
<script>
function toggleFullScreen() {
var doc = window.document;
var docEl = doc.documentElement;
var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen;
var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen;
if (!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) {
requestFullScreen.call(docEl);
} else {
cancelFullScreen.call(doc);
}
}
</script>
<script>
// 获取当前网页的URL
var currentURL = window.location.href;
console.log(currentURL);
var free_host = 0
if(currentURL.indexOf('xsph.ru') !== -1){
free_host = 1
}
if(currentURL.indexOf('angid.eu.org') !== -1){
free_host = 1
}
if(currentURL.indexOf('serv00.net') !== -1){
free_host = 1
}
if(currentURL.indexOf('42web.io') !== -1){
free_host = 1
}
if(currentURL.indexOf(':8080') !== -1){
free_host = 1
}
// 获取所有的链接元素
var linksa = document.querySelectorAll('#liList a');
// 循环遍历每个链接,为它们添加前缀
for (var i = 0; i < linksa.length; i++) {
var currentLink = linksa[i];
var currenthref = currentLink.getAttribute('href');
// 添加前缀
if(currenthref !== null && currenthref.indexOf('news.html') === -1
&& currenthref.indexOf('index.html') === -1 && currenthref.indexOf('global.html') === -1) {
if (free_host === 1) {
currentLink.setAttribute('href', 'server.php?url=https://gitee.com/ai98/vi/raw/master/' + currenthref);
}
}
}
// 获取所有的链接元素
var linksi = document.querySelectorAll('#imgList img');
// 循环遍历每个链接,为它们添加前缀
for (var i = 0; i < linksi.length; i++) {
var currentLink = linksi[i];
var currenthref = currentLink.getAttribute('src');
// 添加前缀
if (free_host === 1) {
currentLink.setAttribute('src', 'server.php?url=https://gitee.com/ai98/vi/raw/master/' + currenthref);
} else{
currentLink.setAttribute('src', './' + currenthref);
}
}
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。