Skip to content

Commit

Permalink
Merge pull request #1 from MasterBrian99/change-language
Browse files Browse the repository at this point in the history
add language
  • Loading branch information
MasterBrian99 authored Jul 20, 2020
2 parents feed177 + f78a3cf commit 6f3218e
Show file tree
Hide file tree
Showing 3 changed files with 1,094 additions and 15 deletions.
30 changes: 16 additions & 14 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2578,13 +2578,13 @@
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
// 在head 中 加载 必要静态
document.write('<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected]/css/mdui_v2.min.css">');
document.write('<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected]/css/nexmoe_v2.min.css">');
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected]/js/mdui.min.js"></script>');
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected]/js/flv.min.js"></script>');
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected]/js/DPlayer.min.js"></script>');
document.write('<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected].1/css/mdui_v2.min.css">');
document.write('<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected].1/css/nexmoe_v2.min.css">');
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected].1/js/mdui.min.js"></script>');
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected].1/js/flv.min.js"></script>');
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected].1/js/DPlayer.min.js"></script>');
// markdown支持
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected]/js/markdown-it.min.js"></script>');
document.write('<script src="//cdn.jsdelivr.net/gh/MasterBrian99/[email protected].1/js/markdown-it.min.js"></script>');
document.write('<style>.mdui-appbar .mdui-toolbar{height:56px;font-size:1pc}.mdui-toolbar>i{opacity:.5}.mdui-toolbar>i{padding:0}.mdui-toolbar>a:hover,a.active,a.mdui-typo-headline{opacity:1}.mdui-container{max-width:980px}.mdui-list-item{transition:none}.mdui-list>.th{background-color:initial}.mdui-list-item>a{width:100%;line-height:3pc}.mdui-list-item{margin:2px 0;padding:0}.mdui-toolbar>a:last-child{opacity:1}@media screen and (max-width:980px){.mdui-list-item .mdui-text-right{display:none}.mdui-container{width:100%!important;margin:0}}</style>');
// add custome theme and darkmode
if (UI.dark_mode) {
Expand All @@ -2598,6 +2598,8 @@
var html = `
<header class="nexmoe-nav">
<div class="navSize">
<a href="/"><img class="avatar" src="https://i.imgur.com/5nPfZZ9.jpg"/></a>
<div class="nav_menu">
<ul class="menu_ul">
<li class="menu_li"><a href="https://github.com/MasterBrian99/GDrive-Index" target="_blank">Source Code</a></li>
Expand Down Expand Up @@ -3311,7 +3313,7 @@
<pre id="editor" ></pre>
</div>
<div class="mdui-textfield">
<label class="mdui-textfield-label">下载地址</label>
<label class="mdui-textfield-label">Download Link</label>
<input class="mdui-textfield-input" type="text" value="${href}"/>
</div>
<a href="${href}" class="mdui-fab mdui-fab-fixed mdui-ripple mdui-color-theme-accent"><i class="mdui-icon material-icons">file_download</i></a>
Expand Down Expand Up @@ -3392,11 +3394,11 @@
<br>${playBtn}
<!-- 固定标签 -->
<div class="mdui-textfield">
<label class="mdui-textfield-label">下载地址</label>
<label class="mdui-textfield-label">Download Link</label>
<input class="mdui-textfield-input" type="text" value="${url}"/>
</div>
<div class="mdui-textfield">
<label class="mdui-textfield-label">HTML 引用地址</label>
<label class="mdui-textfield-label">HTML Address</label>
<textarea class="mdui-textfield-input"><video><source src="${url}" type="video/mp4"></video></textarea>
</div>
</div>
Expand Down Expand Up @@ -3439,11 +3441,11 @@
<br>
<!-- 固定标签 -->
<div class="mdui-textfield">
<label class="mdui-textfield-label">下载地址</label>
<label class="mdui-textfield-label">Download Link</label>
<input class="mdui-textfield-input" type="text" value="${url}"/>
</div>
<div class="mdui-textfield">
<label class="mdui-textfield-label">HTML 引用地址</label>
<label class="mdui-textfield-label">HTML Address</label>
<textarea class="mdui-textfield-input"><audio><source src="${url}"></audio></textarea>
</div>
</div>
Expand Down Expand Up @@ -3520,15 +3522,15 @@
</div>
<br>
<div class="mdui-textfield">
<label class="mdui-textfield-label">下载地址</label>
<label class="mdui-textfield-label">Download Link</label>
<input class="mdui-textfield-input" type="text" value="${url}"/>
</div>
<div class="mdui-textfield">
<label class="mdui-textfield-label">HTML 引用地址</label>
<label class="mdui-textfield-label">HTML Address</label>
<input class="mdui-textfield-input" type="text" value="<img src='${url}' />"/>
</div>
<div class="mdui-textfield">
<label class="mdui-textfield-label">Markdown 引用地址</label>
<label class="mdui-textfield-label">Markdown Address</label>
<input class="mdui-textfield-input" type="text" value="![](${url})"/>
</div>
<br>
Expand Down
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,077 changes: 1,077 additions & 0 deletions none.txt

Large diffs are not rendered by default.

0 comments on commit 6f3218e

Please sign in to comment.