-
Notifications
You must be signed in to change notification settings - Fork 116
/
index.html
64 lines (56 loc) · 3 KB
/
index.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
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8">
<title>Bilibili v.mini</title>
<link rel="stylesheet" href="css/main-window.css">
</head>
<body>
<!-- app UI -->
<div id="wrapper">
<!-- webview -->
<!-- 直播有几率会跨域请求 acgvideo.com 的视频资源,为了看直播只好 disablewebsecurity 了,不知道会不会有安全问题? -->
<webview id="wv" src="https://m.bilibili.com/index.html" useragent="bilimini Mobile like (iPhone or Android) whatever AppleWebKit/124.50 Mobile/BI233" preload="./js/inject.js" disablewebsecurity webpreferences="allowRunningInsecureContent"></webview>
<!-- loading -->
<div id="loading"></div>
<!-- about -->
<div id="about">
<div><img src="images/icon.png"></div>
<div id="about-title">藏起来!哔哩哔哩 v{{ version }}</div>
<p>Tip:按Ctrl+e( Mac下Option+w )可以快速隐藏此程序</p>
<p>Made by <a href="javascript: openExternalLink('http://weibo.com/chitosai');">@千歳</a> with LOVE</p>
<p>代码开源于<a href="javascript: openExternalLink('https://github.com/chitosai/bilimini');">Github</a></p>
</div>
<div id="about-overlay" :class="{globalOverlay: 1, active: showAboutOverlay}" @click="hideAbout"></div>
<!-- topbar -->
<div id="topbar">
<div id="icon-bar-left">
<span id="navi-back" title="后退" class="top-btn icon-btn" :disabled="!naviCanGoBack" @click="naviBack">◀</span>
<span id="navi-forward" title="前进" class="top-btn icon-btn" :disabled="!naviCanGoForward" @click="naviForward">◀</span>
<span id="navi-home" title="返回首页" class="top-btn icon-btn" @click="naviGoHome"></span>
<span id="navi-goto" title="前往..." class="top-btn" title="转跳到" @click="naviGotoShow">av</span>
</div>
<div id="dragzone">这里可以拖拽</div>
<div id="icon-bar-right">
<span id="app-danmaku" title="开/关弹幕" class="top-btn icon-btn" @click="toggleDanmaku" :disabled="disableDanmakuButton">弹</span>
<span id="app-part" title="分P列表" class="top-btn icon-btn" @click="toggleSelectPartWindow" :disabled="disablePartButton">P</span>
<span id="app-feed" title="动态" class="top-btn icon-btn" @click="showFeed"></span>
<span id="app-config" title="设置" class="top-btn icon-btn" @click="toggleConfig"></span>
<span id="app-about" title="关于" class="top-btn icon-btn" @click="showAbout">?</span>
<span id="app-close" title="退出" class="top-btn icon-btn" @click="turnOff">x</span>
</div>
</div>
<!-- overlay -->
<div :class="{globalOverlay: 1, active: showNaviGotoOverlay}" @click="naviGotoHide">
<div id="av-input-layer" :class="{active: naviGotoInputShow}" @click.stop>
<input type="text" id="av-input" placeholder="支持av号/BV号/网址" v-model="naviGotoTarget" @keyup.enter="naviGoto"><!--
--><span id="av-input-finish" @click="naviGoto">确认</span>
</div>
</div>
<!-- end of wrapper -->
</div>
<!-- scripts -->
<script src="js/vue.min.js"></script>
<script src="js/index.js"></script>
</body>
</html>