├── README.md
└── nexmoe
├── 404.php
├── bj.jpg
├── css
└── style.css
├── favicon.ico
├── images
├── index.php
└── layout.php
├── js
└── urusai.js
├── layout.php
├── list.php
├── password.php
├── show
├── audio.php
├── code.php
├── doc.php
├── image.php
├── pdf.php
├── stream.php
├── video.php
├── video2.php
└── video5.php
└── urusai
├── urusai-1.ogg
├── urusai-2.ogg
└── urusai-3.ogg
/README.md:
--------------------------------------------------------------------------------
1 | # oneindex-embellish
2 | ## oneindex的主题美化
3 | 美化了`oneindex`程序的`nexmoe`主题
4 |
5 | ### 主要有以下改变:
6 |
7 | 1. 站点名称和目录先后`顺序互换`,方便引流
8 | 2. 添加了`站点图标`,favicon.ico,oneindex竟然没加
9 | 3. 添加`网站背景`,bj.jpg,不需要就删掉bj.jpg
10 | 4. 删除README.md文件在底部的`README图标`(个人感觉很丑和违和)
11 | 5. 更改README.md在底部显示的`布局`
12 | 6. 一些`颜色`的改变
13 | 7. 添加电脑端底部`浮动导航条`,`三个链接`,方便引流。
14 | 8. 被人通过f12查看时会发出“`变态!`”的愤怒声
15 |
16 | 总体来说是微小的改变,但自定义性更强了,方便更多人,部分改变灵感来源网上,感谢
17 |
18 | ### 使用方法:
19 | * 下载后将nexmoe目录直接覆盖oneindex程序的/view/下的nexmoe文件夹
20 |
21 | ### 注意事项:
22 | * 底部浮动导航条的链接需要你手动在layout.php文件中42行进行更改。
23 | * 如果次级目录的样式等错误,请手动修改layout.php中的js和css、bj.jpg、favicon.ico的加载路径为绝对路径。
24 |
--------------------------------------------------------------------------------
/nexmoe/404.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
404-错了哦
5 |
--------------------------------------------------------------------------------
/nexmoe/bj.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolssr/oneindex-embellish/0d246d4e8581908d515400fc1e7cb64c51d9f39d/nexmoe/bj.jpg
--------------------------------------------------------------------------------
/nexmoe/css/style.css:
--------------------------------------------------------------------------------
1 | /*原有CSS*/
2 | .mdui-appbar .mdui-toolbar {
3 | height: 56px;
4 | font-size: 16px;
5 | }
6 |
7 | .mdui-toolbar>* {
8 | padding: 0 6px;
9 | margin: 0 2px;
10 | opacity: 0.5;
11 | }
12 |
13 | .mdui-toolbar>.mdui-typo-headline {
14 | padding: 0 16px 0 0;
15 | }
16 |
17 | .mdui-toolbar>i {
18 | padding: 0;
19 | }
20 |
21 | .mdui-toolbar>a:hover,a.mdui-typo-headline,a.active {
22 | opacity: 1;
23 | }
24 |
25 | .mdui-container {
26 | max-width: 980px;
27 | }
28 |
29 | .mdui-list-item {
30 | -webkit-transition: none;
31 | transition: none;
32 | }
33 |
34 | .mdui-list>.th {
35 | background-color: initial;
36 | }
37 |
38 | .mdui-list-item>a {
39 | width: 100%;
40 | line-height: 48px
41 | }
42 |
43 | .mdui-list-item {
44 | margin: 2px 0px;
45 | padding: 0;
46 | }
47 |
48 | .mdui-toolbar>a:last-child {
49 | opacity: 1;
50 | }
51 |
52 | @media screen and (max-width:980px) {
53 | .mdui-list-item .mdui-text-right {
54 | display: none;
55 | }
56 |
57 | .mdui-container {
58 | width: 100% !important;
59 | margin: 0px;
60 | }
61 |
62 | .mdui-toolbar>* {
63 | display: none;
64 | }
65 |
66 | .mdui-toolbar>a:last-child,.mdui-toolbar>.mdui-typo-headline,.mdui-toolbar>i:first-child {
67 | display: block;
68 | }
69 | }
70 |
71 | /*新增CSS*/
72 | body {
73 | background: #eeeeee;
74 | }
75 |
76 | .mdui-theme-primary-blue-grey .mdui-color-theme {
77 | background: #ff96ad!important;
78 | }
79 |
80 | @keyframes thrill {
81 | from {
82 | transform: rotate(2deg);
83 | }
84 |
85 | to {
86 | transform: rotate(-2deg);
87 | }
88 | }
89 |
90 | @keyframes comeIn {
91 | from {
92 | bottom: -20px;
93 | }
94 |
95 | to {
96 | bottom: 30px;
97 | }
98 | }
99 |
100 | #comeIn {
101 | width: 350px;
102 | padding: 16px 0 16px 0;
103 | position: fixed;
104 | left: 0;
105 | right: 0;
106 | bottom: 20px;
107 | margin: auto;
108 | border-radius: 16px;
109 | background: rgba(227,245,255,.4);
110 | box-shadow: 0 3px 6px 0 rgba(0,0,0,.2);
111 | animation: comeIn .5s forwards;
112 | }
113 |
114 | #blog {
115 | width: 350px;
116 | /*padding: 16px 0 16px 0;*/
117 | position: fixed;
118 | left: 0;
119 | right: 0;
120 | bottom: 0px;
121 | margin: auto;
122 | border-radius: 16px;
123 | animation: thrill 2s infinite alternate ease-in-out;
124 | }
125 | @media all and (min-width:1280px){
126 | #comeIn, #blog{
127 | width:380px;
128 | }
129 | }
130 | @media all and (max-width:369px){
131 | #blog
132 | {
133 | display:none;
134 | }
135 | }
136 |
137 | #comeIn:hover,#comeIn:active {
138 | background-color: rgba(227,245,255,.3);
139 | }
140 |
141 | .links {
142 | width: 100%;
143 | text-decoration: none;
144 | color: black;
145 | font-weight: 300;
146 | padding: 16px 0 16px 0;
147 | }
148 |
149 | div:hover .links {
150 | color: #000000;
151 | }
152 |
153 | #a1:hover {
154 | color:black;
155 | }
156 | #a2:hover {
157 | color:black;
158 | }
159 | #a3:hover {
160 | color:black;
161 | }
162 | @media all and (max-width:560px){
163 | #a3, #a4{display:none;}
164 | #blog, #comeIn{width:240px;}
165 | }
166 | /*HEAD.md样式*/
167 | .mdui-typo{
168 | padding-bottom:0!important;
169 | }
170 | .mdui-typo blockquote{
171 | border-radius:8px;
172 | }
173 | .mdui-typo pre{
174 | margin-right:16px;
175 | border-radius:8px;
176 | }
177 | .mdui-typo p{
178 | padding: 5px 0 5px 0;
179 | color:black;
180 | }
181 |
182 | ::selection {
183 | background-color: #ff96ad;
184 | color: #ffffff;
185 | }
186 |
187 | div#downall{
188 | width:60px;
189 | padding:12px 8px 12px 8px;
190 | border-radius:8px;
191 | background:rgba(227,245,255,.3);
192 | left:0;
193 | right:0;
194 | margin:auto;
195 | text-align:center;
196 | margin-bottom:14px
197 | }
198 | a#downall{
199 | padding:12px 0 12px 0;
200 | text-decoration:none;
201 | color:black;
202 | }
--------------------------------------------------------------------------------
/nexmoe/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolssr/oneindex-embellish/0d246d4e8581908d515400fc1e7cb64c51d9f39d/nexmoe/favicon.ico
--------------------------------------------------------------------------------
/nexmoe/images/index.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
OneImages
9 |
10 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/nexmoe/images/layout.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/nexmoe/js/urusai.js:
--------------------------------------------------------------------------------
1 | document.addEventListener("keydown", function(event) {
2 | if (event.keyCode != 123) {
3 | return false;
4 | }
5 | var player = document.createElement("audio");
6 | player.style = "display:none";
7 | player.volume = 1;
8 | document.body.appendChild(player);
9 | player.src = "./view/nexmoe/urusai/urusai-1.ogg";
10 | player.play();
11 | var i=1;
12 | player.addEventListener("ended",function(){
13 | if(i<3) {
14 | i++;
15 | player.src = "./view/nexmoe/urusai/urusai-" + i + ".ogg";
16 | player.play();
17 | }
18 | else{return false;}
19 | })
20 | })
21 | //Credit to: https://api.ifdream.net/project/hh/dontpressf12.js
22 |
--------------------------------------------------------------------------------
/nexmoe/layout.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
22 |
23 |
24 |
25 |
26 |
39 |
40 |
45 |
46 |
47 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/nexmoe/list.php:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
60 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
205 | format_list_bulleted
206 |
207 |
--------------------------------------------------------------------------------
/nexmoe/password.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
23 |
24 |
--------------------------------------------------------------------------------
/nexmoe/show/audio.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 | file_download
23 |
--------------------------------------------------------------------------------
/nexmoe/show/code.php:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | file_download
41 |
42 |
43 |
44 |
58 |
--------------------------------------------------------------------------------
/nexmoe/show/doc.php:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/nexmoe/show/image.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
26 |
27 | file_download
28 |
29 |
--------------------------------------------------------------------------------
/nexmoe/show/pdf.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 | file_download
14 |
30 |
--------------------------------------------------------------------------------
/nexmoe/show/stream.php:
--------------------------------------------------------------------------------
1 | 'application/octet-stream',
5 | 'ppt'=>'application/vnd.ms-powerpoint',
6 | 'xls'=>'application/vnd.ms-excel',
7 | 'doc'=>'application/msword',
8 | 'exe'=>'application/octet-stream',
9 | 'rar'=>'application/octet-stream',
10 | 'js'=>"javascrīpt/js",
11 | 'css'=>"text/css",
12 | 'hqx'=>"application/mac-binhex40",
13 | 'bin'=>"application/octet-stream",
14 | 'oda'=>"application/oda",
15 | 'pdf'=>"application/pdf",
16 | 'ai'=>"application/postsrcipt",
17 | 'eps'=>"application/postsrcipt",
18 | 'es'=>"application/postsrcipt",
19 | 'rtf'=>"application/rtf",
20 | 'mif'=>"application/x-mif",
21 | 'csh'=>"application/x-csh",
22 | 'dvi'=>"application/x-dvi",
23 | 'hdf'=>"application/x-hdf",
24 | 'nc'=>"application/x-netcdf",
25 | 'cdf'=>"application/x-netcdf",
26 | 'latex'=>"application/x-latex",
27 | 'ts'=>"application/x-troll-ts",
28 | 'src'=>"application/x-wais-source",
29 | 'zip'=>"application/zip",
30 | 'bcpio'=>"application/x-bcpio",
31 | 'cpio'=>"application/x-cpio",
32 | 'gtar'=>"application/x-gtar",
33 | 'shar'=>"application/x-shar",
34 | 'sv4cpio'=>"application/x-sv4cpio",
35 | 'sv4crc'=>"application/x-sv4crc",
36 | 'tar'=>"application/x-tar",
37 | 'ustar'=>"application/x-ustar",
38 | 'man'=>"application/x-troff-man",
39 | 'sh'=>"application/x-sh",
40 | 'tcl'=>"application/x-tcl",
41 | 'tex'=>"application/x-tex",
42 | 'texi'=>"application/x-texinfo",
43 | 'texinfo'=>"application/x-texinfo",
44 | 't'=>"application/x-troff",
45 | 'tr'=>"application/x-troff",
46 | 'roff'=>"application/x-troff",
47 | 'shar'=>"application/x-shar",
48 | 'me'=>"application/x-troll-me",
49 | 'ts'=>"application/x-troll-ts",
50 | 'gif'=>"image/gif",
51 | 'jpeg'=>"image/pjpeg",
52 | 'jpg'=>"image/pjpeg",
53 | 'jpe'=>"image/pjpeg",
54 | 'ras'=>"image/x-cmu-raster",
55 | 'pbm'=>"image/x-portable-bitmap",
56 | 'ppm'=>"image/x-portable-pixmap",
57 | 'xbm'=>"image/x-xbitmap",
58 | 'xwd'=>"image/x-xwindowdump",
59 | 'ief'=>"image/ief",
60 | 'tif'=>"image/tiff",
61 | 'tiff'=>"image/tiff",
62 | 'pnm'=>"image/x-portable-anymap",
63 | 'pgm'=>"image/x-portable-graymap",
64 | 'rgb'=>"image/x-rgb",
65 | 'xpm'=>"image/x-xpixmap",
66 | 'txt'=>"text/plain",
67 | 'c'=>"text/plain",
68 | 'cc'=>"text/plain",
69 | 'h'=>"text/plain",
70 | 'html'=>"text/html",
71 | 'htm'=>"text/html",
72 | 'htl'=>"text/html",
73 | 'txt'=>"text/html",
74 | 'php'=>"text/html",
75 | 'rtx'=>"text/richtext",
76 | 'etx'=>"text/x-setext",
77 | 'tsv'=>"text/tab-separated-values",
78 | 'mpeg'=>"video/mpeg",
79 | 'mpg'=>"video/mpeg",
80 | 'mpe'=>"video/mpeg",
81 | 'avi'=>"video/x-msvideo",
82 | 'qt'=>"video/quicktime",
83 | 'mov'=>"video/quicktime",
84 | 'moov'=>"video/quicktime",
85 | 'movie'=>"video/x-sgi-movie",
86 | 'au'=>"audio/basic",
87 | 'snd'=>"audio/basic",
88 | 'wav'=>"audio/x-wav",
89 | 'aif'=>"audio/x-aiff",
90 | 'aiff'=>"audio/x-aiff",
91 | 'aifc'=>"audio/x-aiff",
92 | 'swf'=>"application/x-shockwave-flash",
93 | 'myz'=>"application/myz"
94 | ];
95 | //大于 5M 跳转为直连下载
96 | if($item['size'] > 5242880){
97 | header('Location: '.$item['downloadUrl']);exit();
98 | }
99 | $type = empty($types[$ext])?"application/octet-stream":$types[$ext];
100 | $content = IndexController::get_content($item);
101 |
102 | header('Content-type: '.$type);
103 | echo $content;
104 | exit();
105 | ?>
--------------------------------------------------------------------------------
/nexmoe/show/video.php:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
34 | file_download
35 |
--------------------------------------------------------------------------------
/nexmoe/show/video2.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
41 | file_download
42 |
--------------------------------------------------------------------------------
/nexmoe/show/video5.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | file_download
25 |
--------------------------------------------------------------------------------
/nexmoe/urusai/urusai-1.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolssr/oneindex-embellish/0d246d4e8581908d515400fc1e7cb64c51d9f39d/nexmoe/urusai/urusai-1.ogg
--------------------------------------------------------------------------------
/nexmoe/urusai/urusai-2.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolssr/oneindex-embellish/0d246d4e8581908d515400fc1e7cb64c51d9f39d/nexmoe/urusai/urusai-2.ogg
--------------------------------------------------------------------------------
/nexmoe/urusai/urusai-3.ogg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolssr/oneindex-embellish/0d246d4e8581908d515400fc1e7cb64c51d9f39d/nexmoe/urusai/urusai-3.ogg
--------------------------------------------------------------------------------