forked from kaedei/dandanplay-libraryindex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (132 loc) · 4.68 KB
/
index.html
File metadata and controls
144 lines (132 loc) · 4.68 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
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
<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="css/icon.png" type="image/x-icon">
<title>@Model.WebSiteName</title>
<link rel="stylesheet" href="./css/bootstrap.min.css">
<script src="js/jquery-3.2.1.min.js"></script>
<style>
body {
background-image: url(@Model.Background);
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.video-text {
line-height: 1.3;
}
.line-limit-length {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nobords{
margin: 0;
padding: 0;
}
.li{
position: sticky;
top: 0;
}
.transform{
background-color: rgba(255,255,255,0.8);
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="#">@Model.WebSiteName</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/index.html">首页</a>
</li>
@IfNot.IsAnonymous
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@@Model.UserName
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="/logout">注销登录</a>
</div>
</li>
@EndIf
<li class="nav-item">
<a class="nav-link" href="@Model.AboutLink" target="_blank">关于</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/kaedei/dandanplay-libraryindex" target="_blank">帮助改进此页面</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0" method="POST" action="/index.html">
<input class="form-control mr-sm-2" type="text" name="q" placeholder="在这里搜索哦ο(=•ω<=)ρ⌒☆..." data-form-field="seach" required="" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">搜索</button>
</form>
</div>
</div>
</nav>
<div class="clearfix row nobords">
<div class="col-md-3 col-xs-12 float-left nobords">
<div class="list-group li">
<a href="" class="list-group-item list-group-item-action active rounded-0 line-limit-length">作品列表</a>
@Each.AnimeTitles
<a href="/index.html?animeId=@Current.AnimeId" class="list-group-item list-group-item-action rounded-0 line-limit-length"><span class="badge badge-primary">@Current.VideoCount</span> @Current.AnimeTitle</a>
@EndEach
<a href="/index.html" class="list-group-item list-group-item-action active rounded-0 line-limit-length">返回首页</a>
</div>
</div>
<div class=" col-md-9 col-xs-12 float-left transform">
@If.ShowVideoList
@Each.VideoFiles
<div class="col-sm-6 col-md-4 float-left pt-4">
<div class="card">
<a href="/web/@Current.Id">
<img class="card-img-top" src="/image/@Current.Id" alt="Card image cap">
</a>
<div class="card-body">
<h5 class="card-title line-limit-length">
<a href="/index.html?animeId=@Current.AnimeId">@Current.AnimeTitle</a>
</h5>
<h5 class="card-title" style="overflow: hidden; white-space: nowrap;text-overflow: ellipsis">
</h5>
<p class="video-text line-limit-length">
<a href="/web/@Current.Id">@Current.EpisodeTitle</a>
<br>
@Current.Name
<br>
时长:@Current.DurationText
<br>
文件体积:@Current.SizeText
<br>
上次播放:@Current.LastPlay
<br>
<script>
$(document).ready(function(){
$("#@Current.Hash").click(function(){
$.get("/api/v1/load/@Current.Hash",function(data,status){
});
});
});
</script>
<button id=@Current.Hash class="btn btn-primary">在设备上播放</button>
</p>
</div>
</div>
</div>
@EndEach
@EndIf
<div class="col-12 float-right text-center pt-5">
<p>弹@Model.WebSiteName 由弹弹play"远程访问"工具提供支持. All rights reserved. 保留一切权利<br/>@Model.ServerInfo</p>
<p></p>
</div>
</div>
</div>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap-4.0.0.js"></script>
</body></html>