1 Star 0 Fork 0

ai98/vi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
global.html 6.70 KB
一键复制 编辑 原始数据 按行查看 历史
found 提交于 2025-01-22 15:31 . re
<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>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ai98/vi.git
[email protected]:ai98/vi.git
ai98
vi
vi
master

搜索帮助