qnloft-stock/template/limit_list_template.html

85 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="zh-CN">
<head>
<!-- 必须的 meta 标签 -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap 的 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<title>复盘-涨跌停数据</title>
</head>
<body>
<div id="head"></div>
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs" id="bkTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="bk1-tab" data-toggle="tab" href="#tab1" role="tab"
data-target="#tab1" aria-controls="tab1" aria-selected="true">行业板块</a>
</li>
<li class="nav-item">
<a class="nav-link" id="bk2-tab" data-toggle="tab" href="#tab2" role="tab" data-target="#tab2"
aria-controls="tab2" aria-selected="false">概念板块</a>
</li>
<li class="nav-item">
<a class="nav-link" id="bk3-tab" data-toggle="tab" href="#tab3" role="tab" data-target="#tab3"
aria-controls="tab3" aria-selected="false">涨跌幅</a>
</li>
</ul>
</div>
<div class="card-body tab-content" id="bkTabContent">
<div class="tab-pane fade show active jumbotron jumbotron-fluid" id="tab1" aria-labelledby="tab1-tab">
<iframe src="industry_generate_chart.html" frameborder="0" width="100%" height="430"></iframe>
</div>
<div class="tab-pane fade jumbotron jumbotron-fluid" id="tab2" aria-labelledby="tab2-tab">
<iframe src="concept_generate_chart.html" frameborder="0" width="100%" height="430"></iframe>
</div>
<div class="tab-pane fade jumbotron jumbotron-fluid" id="tab3" aria-labelledby="tab3-tab">
<iframe src="limit_list_chart.html" frameborder="0" width="100%" height="430"></iframe>
</div>
</div>
</div>
<div class="container">
{{limit_table}}
</div>
<!-- 选项 1jQuery 和 Bootstrap 集成包(集成了 Popper -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-7ymO4nGrkm372HoSbq1OY2DP4pEZnMiA+E0F3zPr+JQQtQ82gQ1HPY3QIVtztVua" crossorigin="anonymous">
</script>
<script>
// 使用 fetch 来加载 content.html 的内容,并将其插入到指定的容器中
document.addEventListener('DOMContentLoaded', function() {
fetch('../head.html')
.then(response => response.text())
.then(content => {
document.querySelector('#head').innerHTML = content;
});
});
// 使用 jQuery 来实现卡片切换和内容变换
$(document).ready(function() {
$('.nav-link').on('click', function(e) {
e.preventDefault();
// 获取目标选项卡内容的 ID
var targetId = $(this).data('target');
$('.nav-link').removeClass('active');
$(this).addClass('active');
// 隐藏所有选项卡内容
$('.tab-pane').removeClass('show active');
// 显示目标选项卡内容
$(targetId).addClass('show active');
});
});
</script>
</body>
</html>