mirror of
https://gitee.com/smartchart/smartchart
synced 2025-05-05 09:09:24 +08:00
66 lines
3.1 KiB
HTML
66 lines
3.1 KiB
HTML
<html><head><title>smartchart:{{title}}</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta http-equiv="X-UA-Compatible" content="IE=edge">{% block head %}{% endblock %}{{contentrefresh|safe}}<style type="text/css">
|
|
.table th, .table td {
|
|
text-align: center;
|
|
}
|
|
.table {
|
|
font-size:10px;
|
|
}
|
|
::-webkit-scrollbar {
|
|
width: 0.25rem;
|
|
height: 0.25rem;
|
|
background-image: linear-gradient(135deg, #1DE9B6 0%, rgba(8, 196, 219, 0.5) 72%, rgba(0, 182, 234, 0.3) 100%);
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
border-radius: 0;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background-image: linear-gradient(135deg, #1DE9B6 0%, #08c4db 72%, #057494 100%);
|
|
transition: all .2s;
|
|
border-radius: 0.25rem;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background-color: rgba(95, 95, 95, 0.7);
|
|
}
|
|
{% block style %}
|
|
{% endblock %}</style></head>
|
|
<link rel="icon" type="image.png" href="/static/images/favicon.ico"><link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
|
|
{% if dv %}<script src="https://cdn.jsdelivr.net/npm/vue"></script><script src="https://unpkg.com/@jiaminghi/data-view/dist/datav.min.vue.js"></script>{% endif %}
|
|
{% block stylesheet %}{% endblock %}{{devhead|safe}}
|
|
{% block body %}{% endblock %}
|
|
</html><script src="/static/js/jquery-2.2.3.min.js"></script><script type="text/javascript" src="/static/echart/dist/echarts.min.js"></script><script src="/static/echart/dist/china.js"></script><script src="/static/js/fun.js"></script><script src="/static/echart/theme/{{theme}}"></script><script type="text/javascript" src="/static/bootstrap/js/bootstrap.min.js"></script>
|
|
{{footer|safe}}{% block javascript %}{% endblock %}
|
|
<script>{% if dv %}var vapp = new Vue({el: '#vue_app', data: {d0:'',d1:'',d2:'',d3:'',d4:'',d5:'',d6:'',d7:'',d8:'',d9:'',d10:'',d11:'',d12:'',d13:'',d14:'',d15:'',d16:''}});{% endif %}var app = {};var charts = [];{{echart_main|safe}}window.onresize = function(){for(var i = 0; i < charts.length; i++){charts[i].resize();}};
|
|
$(function(){
|
|
$("#fullScreen").on("click",function(){
|
|
var isFull=!!(document.webkitIsFullScreen || document.mozFullScreen ||
|
|
document.msFullscreenElement || document.fullscreenElement
|
|
);
|
|
if (isFull===false) {fullScreen();
|
|
}else{exitFullscreen();}
|
|
})
|
|
})
|
|
function fullScreen() {
|
|
var element = document.documentElement;
|
|
if (element.requestFullscreen) {
|
|
element.requestFullscreen();
|
|
} else if (element.msRequestFullscreen) {
|
|
element.msRequestFullscreen();
|
|
} else if (element.mozRequestFullScreen) {
|
|
element.mozRequestFullScreen();
|
|
} else if (element.webkitRequestFullscreen) {
|
|
element.webkitRequestFullscreen();
|
|
}
|
|
}
|
|
function exitFullscreen() {
|
|
if (document.exitFullscreen) {
|
|
document.exitFullscreen();
|
|
} else if (document.msExitFullscreen) {
|
|
document.msExitFullscreen();
|
|
} else if (document.mozCancelFullScreen) {
|
|
document.mozCancelFullScreen();
|
|
} else if (document.webkitExitFullscreen) {
|
|
document.webkitExitFullscreen();
|
|
}
|
|
}
|
|
</script>
|
|
<!--powered by smartchart.cn,Designed by JohnYan mailto:84345999@qq.com, https://gitee.com/smartchart/smartchart you need keep this--> |