-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathending.php
177 lines (149 loc) · 4 KB
/
ending.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!doctype html>
<html lang="zh-Hant-TW">
<head>
<title>2020中部漫聯同樂會</title>
<meta property="og:title" content="2020中部漫聯同樂會~劇情結局大公開~"/>
<?php include("includes/g-meta.php") ?>
<link rel="stylesheet" href="../css/owl.carousel.min.css">
<link rel="stylesheet" href="../css/owl.theme.default.min.css">
<script src="js/owl.carousel.js"></script>
<script src="js/owl.carousel.min.js"></script>
<!--[if lt IE 9]>
<script>
alert("建議使用IE10以上版本");
</script>
<![endif]-->
<script>
$(function(){
// 題組切換
var _showTab = 0;
$('.ending-wrap').each(function(){
var $tab = $(this);
var $defaultLi = $('ul.btn-list li', $tab).eq(_showTab).addClass('active');
$($defaultLi.find('a').attr('href')).siblings().addClass('hide');
$('ul.btn-list li', $tab).click(function() {
var $this = $(this),
_clickTab = $this.find('a').attr('href');
$this.addClass('active').siblings('.active').removeClass('active');
$(_clickTab).stop(false, true).removeClass('hide').siblings().addClass('hide');
return false;
}).find('a').focus(function(){
this.blur();
});
});
//純文字
$('.text-btn').click(function(){
if (!$(this).hasClass('active')) {
$(this).addClass('active');
$(this).next('.text-box').addClass('active');
} else {
$(this).removeClass('active');
$(this).next('.text-box').removeClass('active');
}
});
});
$(function(){
//圖片輪播
$('.pic-box').owlCarousel({
items:1,
nav:$('.pic-box').children().length>1,
navText:'',
dots:$('.pic-box').children().length>1,
autoplay:false,
loop: false,
center: true,
margin:10,
smartSpeed:1000,
responsive:{
0:{
nav:false
},
769:{
nav:$('.pic-box').children().length>1,
}
}
});
});
</script>
<style>
.pic-box .owl-nav[class*=owl-] .owl-prev {
background-image: url(img/arrow-left.svg);
background-position:left;
background-size: contain;
height: 50px;
width: 30px;
opacity: 1;
left: -30px;
top: 50%;
transform: translateY(-50%);
}
.pic-box .owl-nav[class*=owl-] .owl-prev:hover{
background-image: url(img/arrow-left.svg);
background-position:left;
opacity: 0.8;
}
.pic-box .owl-nav[class*=owl-] .owl-next {
background-image: url(img/arrow-right.svg);
background-position:right;
background-size: contain;
height: 50px;
width: 30px;
opacity: 1;
border-radius: 0;
right: -30px;
top: 50%;
transform: translateY(-50%);
}
.pic-box .owl-nav[class*=owl-] .owl-next:hover{
background-position:right;
background-image: url(img/arrow-right.svg);
opacity: 0.8;
}
.pic-box .owl-stage-outer{
border-radius: 10px;
box-shadow: 0 0 10px rgba(100,100,100,0.2)
}
</style>
</head>
<body>
<?php include("includes/g-header.php") ?>
<div class="g-wrapper animate-quiz">
<h1>
2020中部漫聯同樂會<br>
~劇情結局大公開~
</h1>
<div class="ending-wrap">
<ul class="btn-list">
<li><a href="#tab1">三結局總覽</a></li>
<li><a href="#tab2">怪盜20子勝利結局</a></li>
<li><a href="#tab3">偵探20君勝利結局</a></li>
<li><a href="#tab4">警察啾啾勝利結局</a></li>
</ul>
<div class="content">
<div id="tab1" class="tab-box">
<span id="ending1"></span>
<?php include("includes/ending1.php") ?>
<br>
<br>
<span id="ending2"></span>
<?php include("includes/ending2.php") ?>
<br>
<br>
<span id="ending3"></span>
<?php include("includes/ending3.php") ?>
</div>
<div id="tab2" class="tab-box">
<?php include("includes/ending1.php") ?>
</div>
<div id="tab3" class="tab-box">
<?php include("includes/ending2.php") ?>
</div>
<div id="tab4" class="tab-box">
<?php include("includes/ending3.php") ?>
</div>
</div>
</div>
</div>
<?php include("includes/g-footer.php") ?>
</body>
</html>