index.html
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title></title>
<link rel="stylesheet" href="css/reset.css" />
<script type="text/javascript" src="../../lib/fsize.js" ></script>
<style type="text/css">
body,html{
background-color: #171521;
}
.main1{
background: url(img/bg_cn.png) no-repeat;
background-size: 100% 100%;
width: 10rem;
height: 20.626rem;
position: relative;
font-size: 0;
margin: 0 auto;
}
.main2{
background: url(img/bg_en.png) no-repeat;
background-size: 100% 100%;
width: 10rem;
height: 21.026rem;
position: relative;
font-size: 0;
margin: 0 auto;
}
#headImg{
width: 6.306rem;
height: 1.826rem;
position: absolute;
left: 50%;
margin-left: -3.3rem;
top: 2.2rem;
}
</style>
</head>
<body>
<div class="main1 hide">
<img id="headImg">
</div>
<div class="main2 hide"></div>
<script src="../../lib/jquery-3.1.1.min.js"></script>
<script src="../../lib/langchange.js?v=201909121028"></script>
<script type="text/javascript">
if(langType == 0){
$('.main1').removeClass('hide');
$('.main2').addClass('hide');
$("title").text('勛章');
var hImg = document.getElementById('headImg')
getNavigator();
//判断终端
function getNavigator(){
var str = '';
var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid){
hImg.src = 'img/animated.webp';
}
if (isIOS) {
hImg.src = 'img/animated.png';
}
hImg.style.display = 'block';
}
var i=0;
var time = setInterval(function(){
i+=1;
hImg.style.display = 'none';
if(i%4==0){
hImg.style.display = 'block';
}
},1000)
} else {
$('.main2').removeClass('hide');
$('.main1').addClass('hide');
$("title").text('Medal poster');
}
</script>
</body>
</html>