-
Notifications
You must be signed in to change notification settings - Fork 0
/
iiindex.html
338 lines (305 loc) · 13 KB
/
iiindex.html
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
---
layout: default
home-title: Osu!skins
description: 追求分享与收集 Osu!皮肤聚集地 <br />投稿交流QQ群:714565277<br />建议访问OsuSkinV2,网址:<a href="https://osk.soloop.ooo">https://osk.soloop.ooo</a>
---
{% include head.html %}
{% include header.html %}
<script src="../assets/js/preload.js"></script>
<script>
var imgs = [
'https://soloopooo.gitee.io/img/1.webp',
'https://soloopooo.gitee.io/img/2.webp',
'https://soloopooo.gitee.io/img/3.webp',
'https://soloopooo.gitee.io/img/4.webp',
'https://soloopooo.gitee.io/img/5.webp',
'https://soloopooo.gitee.io/img/6.webp',
'https://soloopooo.gitee.io/img/7.webp',
'https://soloopooo.gitee.io/img/8.webp',
'https://soloopooo.gitee.io/img/9.webp',
'https://soloopooo.gitee.io/img/10.webp',
];
var index = 0,
len = imgs.length,
progress = $('.progress');
//图片预加载
$.preload(imgs, {
each: function (count) {
progress.html(Math.round((count+1) / len * 100) + '%');
},
end: function () {
$('.loading').hide();
}
});
</script>
<script type="text/javascript">
var curIndex = 0;
//时间间隔(单位毫秒),每秒钟显示一张,数组共有3张图片放在img文件夹下。
var timeInterval = 10000;
var arr = new Array();
arr[0] = "https://soloopooo.gitee.io/img/1.webp";
arr[1] = "https://soloopooo.gitee.io/img/2.webp";
arr[2] = "https://soloopooo.gitee.io/img/3.webp";
arr[3] = "https://soloopooo.gitee.io/img/4.webp";
arr[4] = "https://soloopooo.gitee.io/img/5.webp";
arr[5] = "https://soloopooo.gitee.io/img/6.webp";
arr[6] = "https://soloopooo.gitee.io/img/7.webp";
arr[7] = "https://soloopooo.gitee.io/img/8.webp";
arr[8] = "https://soloopooo.gitee.io/img/9.webp";
arr[9] = "https://soloopooo.gitee.io/img/10.webp";
setInterval(changeImg, timeInterval);
function changeImg() {
//获得id名为files的对象
var obj = document.getElementById("files");
if (curIndex == arr.length - 1) {
curIndex = 0;
} else {
curIndex += 1;
}
//设置d1的背景图片
obj.style.backgroundImage= "URL("+arr[curIndex]+")";
obj.style.backgroundSize= "100%";
obj.style.backgroundColor= "#000";
obj.style.backgroundRepeat= "no-repeat" //显示对应的图片
}
</script>
<div
id="files"
class="g-banner home-banner {{ site.theme-color | prepend: 'banner-theme-' }}"
data-theme="{{ site.theme-color }}"
style="background: url(https://soloopooo.gitee.io/img/1.webp); background-size: 100%; background-repeat: no-repeat; background-color: black ;"
>
<h2>{{ page.home-title }}</h2>
<h3>{{ page.description }}</h3>
</div>
<main class="g-container home-content">
<div class="article-list">
{% for post in paginator.posts %}
<article class="article-item">
{% if post.cover %}
<div class="post-cover">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}" title="{{ post.title }}"></a>
<img src="{{ post.cover }}" href="{{ post.url | prepend: site.baseurl }}" alt="">
</div>
{% endif %}
<section class="post-preview">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}" title="{{ post.title }}"></a>
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
{% endif %}
{% if post.subtitle.size==0 or post.subtitle==nil %}
<p class="post-excerpt">{{ post.excerpt | strip_html | strip_newlines | truncate: 126}}</p>
{% endif %}
</section>
<footer class="post-meta">
<div class="post-tags">
{% if post.tags.size > 0 %}
{% for tag in post.tags %}
<a href={{ "tags.html#" | append: tag | pretend: site.baseurl}} class="post-tag">{{ tag }}</a>
{% endfor %}
{% endif %}
</div>
<time class="post-date" datetime="{{ post.date | date:"%y-%m-%d %h:%m:%s" }}">{{ post.date | date_to_string }}</time>
</footer>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
{% include pageNav.html %}
{% endif %}
</div>
<aside class="g-sidebar-wrapper">
<div class="g-sidebar">
<section class="progress-b">
<div>目前皮肤数:<div id="ssss">{{ paginator.total_posts }}</div> <br>
目标:{{ site.my.numall }}
</div>
<style>
#ssss{display:inline;}
.progress{
height: 25px;
background: #262626;
padding: 5px;
overflow: visible;
border-radius: 20px;
border-top: 1px solid #000;
border-bottom: 1px solid #7992a8;
margin-top: 50px;
}
.progress .progress-bar{
border-radius: 20px;
position: relative;
animation: animate-positive 2s;
}
.progress .progress-value{
display: block;
padding: 3px 7px;
font-size: 13px;
color: #fff;
border-radius: 4px;
background: #191919;
border: 1px solid #000;
position: absolute;
top: -40px;
right: -50px;
}
.progress .progress-value:after{
content: "";
border-top: 10px solid #191919;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
position: absolute;
bottom: -6px;
left: 26%;
}
.progress-bar.active{
animation: reverse progress-bar-stripes 1.20s linear infinite, animate-positive 2s;
}
@-webkit-keyframes animate-positive{
0% { width: 0; }
}
@keyframes animate-positive{
0% { width: 0; }
}
</style>
<div class="progress" style="height: 35px;">
<div class="progress-bar progress-bar-success progress-bar-striped active" style="width: ;">
<div class="progress-value"></div>
</div>
</div>
</section>
<section class="author-card">
<div class="avatar">
<img src="{{ site.avatar | prepend: site.baseurl }}" alt="">
</div>
<div class="author-name" rel="author">{{ site.author }}</div>
<div class="bio">
<p>{{ site.bio }}</p>
</div>
{% if site.sns.size > 0 %}
<ul id="sns-links" class="sns-links">
{% for s in site.sns %}
<li>
<a href="{{ s[1] }}" target="_blank">
<i class="iconfont icon-{{ s[0] }}"></i>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</section>
{% if site.recommend-tags and site.tags.size>0 %}
<section class="tags-card">
{% for tag in site.tags %}
{% if forloop.index > site.recommend-condition-size %}
{% break %}
{% endif %}
<a href="{{ "tags.html#" | append: tag[0] | prepend: site.baseurl }}" class="tag">{{ tag[0]}}</a>
{% endfor %}
</section>
{% endif %}
</div>
{% if site.search %}
<div class="search-card">
<input id="search_input" type="text" placeholder="按关键字搜索..." autocomplete="off">
<i class="iconfont icon-search"></i>
<div class="search_result"></div>
</div>
{% endif %}
</aside>
</main>
<section style="height:200px">
{% include footer.html %}
</section>
<div class="audio-box">
<div class="audio-container">
<div class="audio-view">
<div class="audio-cover" ></div>
<div class="audio-body">
<h3 class="audio-title">未知歌曲</h3>
<div class="audio-backs">
<div class="audio-this-time">00:00</div>
<div class="audio-count-time">00:00</div>
<div class="audio-setbacks">
<i class="audio-this-setbacks">
<span class="audio-backs-btn"></span>
</i>
<span class="audio-cache-setbacks">
</span>
</div>
</div>
</div>
<div class="audio-btn">
<div class="audio-select">
<div class="audio-prev"></div>
<div class="audio-play"></div>
<div class="audio-next"></div>
<div class="audio-menu"></div>
<div class="audio-volume"></div>
</div>
<div class="audio-set-volume">
<div class="volume-box">
<i><span></span></i>
</div>
</div>
<div class="audio-list">
<div class="audio-list-head">
<p>歌单</p>
<span class="menu-close">关闭</span>
</div>
<ul class="audio-inline">
</ul>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="/assets/js/audio.js"></script>
<script type="text/javascript">
$(function(){
var song = [
{
'cover' : '/assets/images/cover2.jpg',
'src' : 'https://soloopooo.gitee.io/bgm/199052327013.mp3',
'title' : '響音 -kotone- (instrumental)]_森永真由美'
},
{
'cover' : '/assets/images/cover1.jpg',
'src' : 'https://soloopooo.gitee.io/bgm/b8bdb34b6dbd024b8cc5fba662854b28.mp3',
'title' : '奏(かなで) -Instrumental'
},
];
var audioFn = audioPlay({
song : song,
autoPlay : false //是否立即播放第一首,autoPlay为true且song为空,会alert文本提示并退出
});
/* 向歌单中添加新曲目,第二个参数true为新增后立即播放该曲目,false则不播放 */
//audioFn.newSong({
//'cover' : '/assets/images/cover5.jpg',
//'src' : 'https://amazingaudioplayer.com/wp-content/uploads/amazingaudioplayer/5/audios/Soaring%20Spirit.mp3',
//'title' : 'B.A.A.B'
//},false);
/* 暂停播放 */
//audioFn.stopAudio();
/* 开启播放 */
//audioFn.playAudio();
/* 选择歌单中索引为3的曲目(索引是从0开始的),第二个参数true立即播放该曲目,false则不播放 */
//audioFn.selectMenu(3,true);
/* 查看歌单中的曲目 */
//console.log(audioFn.song);
/* 当前播放曲目的对象 */
//console.log(audioFn.audio);
});
</script>
<script type="text/javascript">
var i="{{ paginator.total_posts }}";//统计所有数量
var b="{{ site.my.numall }}";//config.yml定义变量
var a=(i/b*100);//计算百分比
a=a.toFixed(5);
var sr0d
sr0d = document.getElementsByClassName('progress-bar progress-bar-success progress-bar-striped active');
sr0d[0].style.width = (a)+"%";//设置进度条宽度
var e= document.getElementsByClassName('progress-value');
e[0].innerHTML = a+"%";//设置进度条显示
</script>