jyyhq/witDisplay/page/eMap_svg/ST/publicST.html

146 lines
3.4 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>
<head>
<meta charset="UTF-8">
<title>0</title>
<style>
#floor{
border-radius: 5px;
background-color: rgba(124,213,255,0.2);
list-style-type: none;
width: 10%;
height: 17%;
font-size: 14px;
color: white;
position: fixed;
top: 5%;
right: 0;
padding-left: 0.8%;
}
#floor>li{
width: 30%;
float: left;
margin-bottom: 5%;
cursor: pointer;
display: flex;
}
#floor>li:nth-child(1),
#floor>li:nth-child(2),
#floor>li:nth-child(3){
margin-top: 8%;
}
#floor>li>span{
align-self: center;
}
#go-back{
position: fixed;
top: 0%;
right: 0%;
width: 60px;
height: 20px;
display: flex;
background-color: transparent;
align-items: center;
color: #fff;
cursor: pointer;
}
#go-back>img{
width: 30%;
height: 100%;
margin-right: 5px;
}
</style>
</head>
<body>
<div id="go-back" onclick="goBack()">
<img src="../../img/eMap/return.png" alt=""/>
<span>返回</span>
</div>>
<ul id="floor">
<li file="svgST_1">
<span><img id='ST_1' src="../../img/eMap/floor2_1.png" alt=""/></span>&nbsp;
<span>1F</span>
</li>
<li file="svgST_2">
<span><img id='ST_2' src="../../img/eMap/floor2_1.png" /></span>&nbsp;
<span>2F</span>
</li>
<li file="svgST_3">
<span><img id='ST_3' src="../../img/eMap/floor2_1.png" /></span>&nbsp;
<span>3F</span>
</li>
</ul>
<!-- <ul id="deviceType">-->
<!-- <li style="margin-top: 8%;">-->
<!-- <span><input type="checkbox" checked id="01"/></span>&nbsp;&nbsp;-->
<!-- <label for="01">-->
<!-- <span><img src="../../img/eMap/01.png" /></span>&nbsp;-->
<!-- <span>摄像设备</span>-->
<!-- <span>30</span>-->
<!-- </label>-->
<!-- </li>-->
<!-- <li>-->
<!-- <span><input type="checkbox" checked id="02"/></span>&nbsp;&nbsp;-->
<!-- <label for="02">-->
<!-- <span><img src="../../img/eMap/02.png" /></span>&nbsp;-->
<!-- <span>消防设备</span>-->
<!-- <span>30</span>-->
<!-- </label>-->
<!-- </li>-->
<!-- <li>-->
<!-- <span><input type="checkbox" checked id="03"/></span>&nbsp;&nbsp;-->
<!-- <label for="03">-->
<!-- <span><img src="../../img/eMap/03.png" /></span>&nbsp;-->
<!-- <span>智能开关</span>-->
<!-- <span>30</span>-->
<!-- </label>-->
<!-- </li>-->
<!-- <li>-->
<!-- <span><input type="checkbox" checked id="04"/></span>&nbsp;&nbsp;-->
<!-- <label for="04">-->
<!-- <span><img src="../../img/eMap/04.png" /></span>&nbsp;-->
<!-- <span>安全防区</span>-->
<!-- <span>30</span>-->
<!-- </label>-->
<!-- </li>-->
<!-- <li>-->
<!-- <span><input type="checkbox" checked id="05"/></span>&nbsp;&nbsp;-->
<!-- <label for="05">-->
<!-- <span><img src="../../img/eMap/05.png" /></span>&nbsp;-->
<!-- <span>道闸闸机</span>-->
<!-- <span>30</span>-->
<!-- </label>-->
<!-- </li>-->
<!-- </ul>-->
<script>
$(function(){
$("#floor li").on({
click : function(){
var fileName = $(this).attr('file') + '.html'
$("#map").load('../../page/eMap_svg/ST/' + fileName);
}
})
//关闭光字牌
$('#close').on({
click : function(e){
$('#board').css('display','none')
}
})
})
// 点击返回
function goBack(){
$("#map").load('../../page/eMap/eMap.html');
}
</script>
</body>
</html>