-
Notifications
You must be signed in to change notification settings - Fork 30
/
404.php
49 lines (47 loc) · 1.56 KB
/
404.php
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
<?php
/*
* @author parklot
* @link https://github.com/paopao233
*/
get_header(); ?>
<body mpa-version="7.16.12" mpa-extension-id="aidjohbjielfdhcaookdaolppglahebo"
data-new-gr-c-s-check-loaded="14.990.0"
data-gr-ext-installed="">
<!--header-->
<main id="body">
<div class="container">
<div class="divider"></div>
<!-- 适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。-->
<div class="post-body">
<!--动画-->
<div id="svgContainer"></div>
</div>
<!--按钮 -->
<div class="center-404">
<button text="<?php echo get_option('home'); ?>" id="backHome"
onclick="backHome()" type="button"
class="btn btn-secondary btn-lg btn-block">返回首页
</button>
</div>
</div>
</main>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/bodymovin.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/data.js"></script>
<script>
function backHome(){
var ele = document.getElementById("backHome");
var title = ele.getAttribute("text")
window.location=title;
}
</script>
<script type="text/javascript">
var svgContainer = document.getElementById('svgContainer');
var animItem = bodymovin.loadAnimation({
wrapper: svgContainer,
animType: 'svg',
loop: true,
animationData: JSON.parse(animationData)
});
</script>
<!--footer-->
<?php get_footer(); ?>