country.jsp
1.3 KB
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>
<%--添加此行消除额外空格--%>
<%@ page trimDirectiveWhitespaces="true" %>
<%--添加此行消除额外空格--%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui">
<title>万国志</title>
<link rel="stylesheet" href="/static/css/vendor.css">
</head>
<body>
<div class="container-fluid">
<div class="wrapper-ipad-app-h5">
<img class="img-fluid" id="img" src="/static/images/wanguozhi.png" draggable="false" usemap="#planetmap">
<map name="planetmap">
<area id="link" shape="rect" coords="630,355,770,420" href="/annal/country/america">
</map>
</div>
</div>
<script src="/static/js/plugins/jquery.min.js"></script>
<script src="/static/js/vendor.js" merge="true"></script>
<script>
var w = 1236,
h = 1312,
$img = $('#img'),
iw = $img.width(),
ih = $img.height();
$('#link').attr('coords', iw * 630 / w + ',' + ih * 355 / h + ',' + iw * 770 / w + ',' + ih * 420 / h);
</script>
</body>
</html>