moeplayer / aplayer-typecho Goto Github PK
View Code? Open in Web Editor NEW在线音乐播放器插件 for typecho 1.0
Home Page: https://i-meto.com/meting-typecho/
License: MIT License
在线音乐播放器插件 for typecho 1.0
Home Page: https://i-meto.com/meting-typecho/
License: MIT License
作者 您好 ,非常感谢您创造的这个插件,但是我在安装时出现了一些问题。
直接使用git clone下载项目到/usr/plugins,然后按照说明将Meting-Typecho-Plugin文件夹修改为Meting,
在插件管理页面内启用时提示:数据表建立失败,插件启用失败。错误号: HY000.
如题
当我配置https后播放器不显示了,其它内容都正常显示。请问是否不支持https呢?
用这个播放器很不错,但是我想提两点建议给作者。
每个播放器都可以独立选择是否预加载,比如一个页面有多个播放器预加载可能会影响网速,所以希望可以独立选择预加载。
建议把高级选项写在插件里的设置页面和文章页面,方便查询使用。
PS:发现移动端歌单没法加载的问题,见#28
谢谢做出这么棒的插件,祝这个插件更好。
还在坚持使用typecho 1.0所以一直用1.2.5混合列表,今天下午发现歌曲报错无法播放,开启METO云解析后可以播放但是混合列表失效,升级到2.0.1之后可以播放但是混合列表里的歌曲已经变成一首首单独的播放器了。
1.如何播放自己服务器的音乐
2.编辑器换成了ueditor,没有音乐按钮了,怎么办呢?
3.是否可以在基础模板中添加指定的代码完成音乐播放?
使用插件默认的云解析地址,能够加载歌单的第一首歌曲但无法播放,如果是单曲则不显示。
但如果使用示例中的云解析地址就没问题……
地址URL:https://blog.eyomi.net/music.html
你好,请问插入音乐——确定后,文字编辑页面无相关信息显示,发表后也不见播放器显示出来是什么问题
地址:https://notemi.cn/ali-cloud-activity-the-lowest-78-yuan---month-quick-to-pull-out-the-wool.html
启用了在文章中添加了一个歌单,发布后在文章页中未能显示。
我使用的是web空间,并不能自己安装php扩展。
这里是错误页面:https://moozik.cn/archives/542/。
有没有替代方法,比如用其他函数代替,或者用相同功能的类来解决,谢谢!
用默认的本地解析,请求的网易云音乐的歌曲链接是http(music.126.net),用云解析就是https,希望让本地解析的结果默认也是https
您好,挺棒的插件,可是后台按钮并没有啊?手机上的页面很多按钮会不显示。
直接在编辑器输入:
' [Meting autoplay="false" mode="random" theme="blue"]
[Music server="netease" id="32507038" type="song"/]
[Music server="netease" id="436355188" type="song"/]
[Music server="netease" id="440241144" type="song"/]
[/Meting] '
就直接显示代码了,是什么问题?怪我的主题?
如题
作者您好,我在typecho上使用的1.4版本,查看库中正确建立meting表,但是在markdown中点击音乐图表输入url确定后,页面无任何变化,发布文章之后也没有播放器,查看表中meting表还是空的。
该页返回内容:
<br />
<b>Warning</b>: Illegal string offset 'theme' in <b>/usr/plugins/Meting/Action.php</b> on line <b>103</b><br />
<br />
<b>Warning</b>: Illegal string offset 'preload' in <b>/usr/plugins/Meting/Action.php</b> on line <b>104</b><br />
<br />
<b>Warning</b>: Illegal string offset 'autoplay' in <b>/usr/plugins/Meting/Action.php</b> on line <b>105</b><br />
<br />
<b>Warning</b>: Illegal string offset 'height' in <b>/usr/plugins/Meting/Action.php</b> on line <b>106</b><br />
<br />
<b>Warning</b>: Illegal string offset 'mode' in <b>/usr/plugins/Meting/Action.php</b> on line <b>107</b><br />
var Meting2 = new APlayer({
element: document.getElementById('MetingPlayer'+2),
autoplay: true,
preload: "auto",
showlrc: 3,
mutex: true,
mode: 'circulation',
theme: "#ad7a86",
music: [],
listmaxheight: '340px',
});
格式可以发一下吗
Typecho_Widget_Exception: 无法启用插件 in /var/Widget/Plugins/Edit.php:98
Stack trace:
#0 /var/Widget/Plugins/Edit.php(308): Widget_Plugins_Edit->activate('APlayer')
#1 /var/Widget/Do.php(82): Widget_Plugins_Edit->action()
#2 /var/Typecho/Widget.php(221): Widget_Do->execute()
#3 /var/Typecho/Router.php(135): Typecho_Widget::widget('Widget_Do', NULL, Array)
#4 /index.php(23): Typecho_Router::dispatch()
#5 {main}
Typecho 用的支持PJAX的主题(NOTE主题),具体应该怎么实现页面切换后歌曲停止,重新加载?
需要视情况在主题设置中添加回调函数
停止播放
if (typeof aplayers !== 'undefined'){
for (var i = 0; i < aplayers.length; i++) {
try {aplayers[i].destroy()} catch(e){}
}
}
重载播放器
loadMeting();
具体怎么使用,希望能指导一下!
每个文章中歌曲均不同,目前页面切换始终在播放首次播放的音乐,除非重新刷新页面。
如题
RT!我检查了好几遍,不知道是什么原因?
插入歌曲,播放器经常显示不出来……有时候难度正常,切换了一下文章,再回来就消失了,音乐还在播放呢。
不过开启云解析就正常了,这是为什么呢……
在typecho的静态界面设置时候独立界面路径从
/{slug}.html
改成
/{slug}
会导致插件调用的时候302跳转
如题,现在Meting插件只能用在文章中,今天突然发现既然文章中好用的话,为什么不能做成背景音乐插件呢,或许就写一个调用Meting插件的插件就可以了
标题是500
内容是Server Error
其他插件均能正常开启关闭
最近来博客的朋友老有人反馈我,总是会被背景音乐吓一跳,我自己去看的时候才了解到,插件的默认背景音乐在80%~90%,分贝确实大了些。找了插件的一些资料和文档,但是均没有找到播放器里对于音量大小的默认设置方法。
请问,有没有参数可以设置默认音量大小的?(https://www.cxiansheng.cn/server/306 这个是自己的博文地址,如果需要可以点击测试一下,默认音量确实大)
Uncaught SyntaxError: Unexpected token R in JSON at position 0
at JSON.parse ()
at XMLHttpRequest.h.onreadystatechange (Meting.min.js?v=2.1.2:1)
非常感谢做出的付出!
使用的环境
下载的是最新版本的1.2.2
typecho 1.0.0
php 7.1
问题录屏:
问题具体描述:
http://music.163.com/#/song?id=419375386
插入到编辑器的代码
<!DOCTYPE HTML>
<html class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>撰写新文章 - 友人C - Powered by Typecho</title>
<meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" href="https://www.ihewro.com/admin/css/normalize.css?v=14.10.10">
<link rel="stylesheet" href="https://www.ihewro.com/admin/css/grid.css?v=14.10.10">
<link rel="stylesheet" href="https://www.ihewro.com/admin/css/style.css?v=14.10.10">
<!--[if lt IE 9]>
<script src="https://www.ihewro.com/admin/js/html5shiv.js?v=14.10.10"></script>
<script src="https://www.ihewro.com/admin/js/respond.js?v=14.10.10"></script>
<![endif]--> </head>
<body>
<!--[if lt IE 9]>
<div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div>
<![endif]-->
<div class="typecho-head-nav clearfix" role="navigation">
<nav id="typecho-nav-list">
<ul class="root"><li class="parent"><a href="https://www.ihewro.com/admin/index.php">控制台</a></dt></li><ul class="child"><li><a href="https://www.ihewro.com/admin/index.php">概要</a></li><li><a href="https://www.ihewro.com/admin/profile.php">个人设置</a></li><li><a href="https://www.ihewro.com/admin/plugins.php">插件</a></li><li><a href="https://www.ihewro.com/admin/themes.php">外观</a></li><li class="last"><a href="https://www.ihewro.com/admin/extending.php?panel=CommentToMail%2Fpage%2Fconsole.php">评论邮件提醒</a></li></ul></ul><ul class="root focus"><li class="parent"><a href="https://www.ihewro.com/admin/write-post.php">撰写</a></dt></li><ul class="child"><li class="focus"><a href="https://www.ihewro.com/admin/write-post.php">撰写文章</a></li><li class="last"><a href="https://www.ihewro.com/admin/write-page.php">创建页面</a></li></ul></ul><ul class="root"><li class="parent"><a href="https://www.ihewro.com/admin/manage-posts.php">管理</a></dt></li><ul class="child"><li><a href="https://www.ihewro.com/admin/manage-posts.php">文章</a></li><li><a href="https://www.ihewro.com/admin/manage-pages.php">独立页面</a></li><li><a href="https://www.ihewro.com/admin/manage-comments.php">评论</a></li><li><a href="https://www.ihewro.com/admin/manage-categories.php">分类</a></li><li><a href="https://www.ihewro.com/admin/manage-tags.php">标签</a></li><li><a href="https://www.ihewro.com/admin/manage-medias.php">文件</a></li><li><a href="https://www.ihewro.com/admin/manage-users.php">用户</a></li><li class="last"><a href="https://www.ihewro.com/admin/extending.php?panel=Links%2Fmanage-links.php">友情链接</a></li></ul></ul><ul class="root"><li class="parent"><a href="https://www.ihewro.com/admin/options-general.php">设置</a></dt></li><ul class="child"><li><a href="https://www.ihewro.com/admin/options-general.php">基本</a></li><li><a href="https://www.ihewro.com/admin/options-discussion.php">评论</a></li><li><a href="https://www.ihewro.com/admin/options-reading.php">阅读</a></li><li class="last"><a href="https://www.ihewro.com/admin/options-permalink.php">永久链接</a></li></ul></ul> </nav>
<div class="operate">
<a title="最后登录: 18小时前" href="https://www.ihewro.com/admin/profile.php" class="author">友人C</a><a class="exit" href="https://www.ihewro.com/action/logout">登出</a><a href="https://www.ihewro.com/">网站</a>
</div>
</div>
<div class="main">
<div class="body container">
<div class="typecho-page-title">
<h2>撰写新文章</h2>
</div>
<div class="row typecho-page-main typecho-post-area" role="form">
<form action="https://www.ihewro.com/action/contents-post-edit?_=a3c5afd4d8458fcf22d4a074422bb850" method="post" name="write_post">
<div class="col-mb-12 col-tb-9" role="main">
<p class="title">
<label for="title" class="sr-only">标题</label>
<input type="text" id="title" name="title" autocomplete="off" value="" placeholder="标题" class="w-100 text title" />
</p>
<p class="mono url-slug">
<label for="slug" class="sr-only">网址缩略名</label>
www.ihewro.com/archives/{cid}/ </p>
<p>
<label for="text" class="sr-only">文章内容</label>
<textarea style="height: 963px" autocomplete="off" id="text" name="text" class="w-100 mono"></textarea>
</p>
<section id="custom-field" class="typecho-post-option fold">
<label id="custom-field-expand" class="typecho-label"><a href="##"><i class="i-caret-right"></i> 自定义字段</a></label>
<table class="typecho-list-table mono">
<colgroup>
<col width="25%"/>
<col width="10%"/>
<col width="55%"/>
<col width="10%"/>
</colgroup>
<tr>
<td>
<label for="fieldname" class="sr-only">字段名称</label>
<input type="text" name="fieldNames[]" placeholder="字段名称" id="fieldname" class="text-s w-100">
</td>
<td>
<label for="fieldtype" class="sr-only">字段类型</label>
<select name="fieldTypes[]" id="fieldtype">
<option value="str">字符</option>
<option value="int">整数</option>
<option value="float">小数</option>
</select>
</td>
<td>
<label for="fieldvalue" class="sr-only">字段值</label>
<textarea name="fieldValues[]" placeholder="字段值" id="fieldvalue" class="text-s w-100" rows="2"></textarea>
</td>
<td>
<button type="button" class="btn btn-xs">删除</button>
</td>
</tr>
</table>
<div class="description clearfix">
<button type="button" class="btn btn-xs operate-add">+添加字段</button>
自定义字段可以扩展你的模板功能, 使用方法参见 <a href="http://docs.typecho.org/help/custom-fields">帮助文档</a> </div>
</section>
<p class="submit clearfix">
<span class="right">
<input type="hidden" name="cid" value="" />
<button type="submit" name="do" value="save" id="btn-save" class="btn">保存草稿</button>
<button type="submit" name="do" value="publish" class="btn primary" id="btn-submit">发布文章</button>
<input type="hidden" name="markdown" value="1" />
</span>
</p>
</div>
<div id="edit-secondary" class="col-mb-12 col-tb-3" role="complementary">
<ul class="typecho-option-tabs clearfix">
<li class="active w-50"><a href="#tab-advance">选项</a></li>
<li class="w-50"><a href="#tab-files" id="tab-files-btn">附件</a></li>
</ul>
<div id="tab-advance" class="tab-content">
<section class="typecho-post-option" role="application">
<label for="date" class="typecho-label">发布日期</label>
<p><input class="typecho-date w-100" type="text" name="date" id="date" value="" /></p>
</section>
<section class="typecho-post-option category-option">
<label class="typecho-label">分类</label>
<ul>
<li><input type="checkbox" id="category-388" value="388" name="category[]" />
<label for="category-388">设计开发</label></li>
<li><input type="checkbox" id="category-390" value="390" name="category[]" />
<label for="category-390">资源技巧</label></li>
<li><input type="checkbox" id="category-389" value="389" name="category[]" />
<label for="category-389">兴趣爱好</label></li>
<li><input type="checkbox" id="category-382" value="382" name="category[]" />
<label for="category-382">生活随笔</label></li>
<li><input type="checkbox" id="category-391" value="391" name="category[]" />
<label for="category-391">文章杂烩</label></li>
</ul>
</section>
<section class="typecho-post-option">
<label for="token-input-tags" class="typecho-label">标签</label>
<p><input id="tags" name="tags" type="text" value="" class="w-100 text" /></p>
</section>
<button type="button" id="advance-panel-btn" class="btn btn-xs">高级选项 <i class="i-caret-down"></i></button>
<div id="advance-panel">
<section class="typecho-post-option visibility-option">
<label for="visibility" class="typecho-label">公开度</label>
<p>
<select id="visibility" name="visibility">
<option value="publish" selected>公开</option>
<option value="hidden">隐藏</option>
<option value="password">密码保护</option>
<option value="private">私密</option>
<option value="waiting">待审核</option>
</select>
</p>
<p id="post-password" class="hidden">
<label for="protect-pwd" class="sr-only">内容密码</label>
<input type="text" name="password" id="protect-pwd" class="text-s" value="" size="16" placeholder="内容密码" />
</p>
</section>
<section class="typecho-post-option allow-option">
<label class="typecho-label">权限控制</label>
<ul>
<li><input id="allowComment" name="allowComment" type="checkbox" value="1" checked="true" />
<label for="allowComment">允许评论</label></li>
<li><input id="allowPing" name="allowPing" type="checkbox" value="1" checked="true" />
<label for="allowPing">允许被引用</label></li>
<li><input id="allowFeed" name="allowFeed" type="checkbox" value="1" checked="true" />
<label for="allowFeed">允许在聚合中出现</label></li>
</ul>
</section>
<section class="typecho-post-option">
<label for="trackback" class="typecho-label">引用通告</label>
<p><textarea id="trackback" class="w-100 mono" name="trackback" rows="2"></textarea></p>
<p class="description">每一行一个引用地址, 用回车隔开</p>
</section>
</div>
</div>
<div id="tab-files" class="tab-content hidden">
<div id="upload-panel" class="p">
<div class="upload-area" draggable="true">拖放文件到这里<br>或者 <a href="###" class="upload-file">选择文件上传</a></div>
<ul id="file-list">
</ul>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="typecho-foot" role="contentinfo">
<div class="copyright">
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
</div>
<nav class="resource">
<a href="http://docs.typecho.org">帮助文档</a> •
<a href="http://forum.typecho.org">支持论坛</a> •
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
<a href="http://extends.typecho.org">资源下载</a>
</nav>
</div>
<script src="https://www.ihewro.com/admin/js/jquery.js?v=14.10.10"></script>
<script src="https://www.ihewro.com/admin/js/jquery-ui.js?v=14.10.10"></script>
<script src="https://www.ihewro.com/admin/js/typecho.js?v=14.10.10"></script>
<script>(function () {$(document).ready(function() {(function () {var prefix ='cbdca92347632a738659f45459d65c5e',cookies ={notice :$.cookie(prefix + '__typecho_notice'),noticeType :$.cookie(prefix + '__typecho_notice_type'),highlight :$.cookie(prefix + '__typecho_notice_highlight')
},path ='/';if (!!cookies.notice &&'success|notice|error'.indexOf(cookies.noticeType) >=0) {var head =$('.typecho-head-nav'),p =$('<div class="message popup ' + cookies.noticeType + '">'
+ '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>')
+ '</li></ul></div>'),offset =0;if (head.length >0) {p.insertAfter(head);offset =head.outerHeight();} else {p.prependTo(document.body);}
function checkScroll () {if ($(window).scrollTop() >=offset) {p.css({'position' :'fixed','top' :0
});} else {p.css({'position' :'absolute','top' :offset
});}
}
$(window).scroll(function () {checkScroll();});checkScroll();p.slideDown(function () {var t =$(this),color ='#C6D880';if (t.hasClass('error')) {color ='#FBC2C4';} else if (t.hasClass('notice')) {color ='#FFD324';}
t.effect('highlight',{color :color})
.delay(5000).slideUp(function () {$(this).remove();});});$.cookie(prefix + '__typecho_notice',null,{path :path});$.cookie(prefix + '__typecho_notice_type',null,{path :path});}
if (cookies.highlight) {$('#' + cookies.highlight).effect('highlight',1000);$.cookie(prefix + '__typecho_notice_highlight',null,{path :path});}
})();(function () {$('#typecho-nav-list').find('.parent a').focus(function() {$('#typecho-nav-list').find('.child').hide();$(this).parents('.root').find('.child').show();});$('.operate').find('a').focus(function() {$('#typecho-nav-list').find('.child').hide();});})();if ($('.typecho-login').length ==0) {$('a').each(function () {var t =$(this),href =t.attr('href');if ((href &&href[0] =='#')
||/^https\:\/\/www\.ihewro\.com\/admin\/.*$/.exec(href)
||/^https\:\/\/www\.ihewro\.com\/action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {return;}
t.attr('target','_blank');});}
});})();</script>
<script>(function () {$(document).ready(function () {var error =$('.typecho-option .error:first');if (error.length >0) {$('html,body').scrollTop(error.parents('.typecho-option').offset().top);}
$('form').submit(function () {if (this.submitted) {return false;} else {this.submitted =true;}
});$('label input[type=text]').click(function (e) {var check =$('#' + $(this).parents('label').attr('for'));check.prop('checked',true);return false;});});})();</script>
<script src="https://www.ihewro.com/admin/js/timepicker.js?v=14.10.10"></script>
<script src="https://www.ihewro.com/admin/js/tokeninput.js?v=14.10.10"></script>
<script>$(document).ready(function() {$('#date').mask('9999-99-99 99:99').datetimepicker({currentText :'现在',prevText :'上一月',nextText :'下一月',monthNames :['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],dayNames :['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],dayNamesShort :['周日','周一','周二','周三','周四','周五','周六'],dayNamesMin :['日','一','二','三','四','五','六'],closeText :'完成',timeOnlyTitle :'选择时间',timeText :'时间',hourText :'时',amNames :['上午','A'],pmNames :['下午','P'],minuteText :'分',secondText :'秒',dateFormat :'yy-mm-dd',hour :(new Date()).getHours(),minute :(new Date()).getMinutes()
});$('#title').select();Typecho.editorResize('text','https://www.ihewro.com/action/ajax?do=editorResize&_=a3c5afd4d8458fcf22d4a074422bb850');var tags =$('#tags'),tagsPre =[];if (tags.length >0) {var items =tags.val().split(','),result =[];for (var i =0;i < items.length;i ++) {var tag =items[i];if (!tag) {continue;}
tagsPre.push({id :tag,tags :tag
});}
tags.tokenInput([{"id":"\u65f6\u5019","tags":"\u65f6\u5019"},{"id":"\u559c\u6b22","tags":"\u559c\u6b22"},{"id":"\u4ee3\u7801","tags":"\u4ee3\u7801"},{"id":"\u751f\u6d3b","tags":"\u751f\u6d3b"},{"id":"\u5185\u5bb9","tags":"\u5185\u5bb9"},{"id":"\u535a\u5ba2","tags":"\u535a\u5ba2"},{"id":"css","tags":"css"},{"id":"\u4e8b\u60c5","tags":"\u4e8b\u60c5"},{"id":"\u6548\u679c","tags":"\u6548\u679c"},{"id":"\u9ad8\u4e2d","tags":"\u9ad8\u4e2d"},{"id":"\u6587\u7ae0","tags":"\u6587\u7ae0"},{"id":"\u529e\u6cd5","tags":"\u529e\u6cd5"},{"id":"\u767e\u5ea6","tags":"\u767e\u5ea6"},{"id":"\u4e3b\u9898","tags":"\u4e3b\u9898"},{"id":"\u4f5c\u8005","tags":"\u4f5c\u8005"},{"id":"function","tags":"function"},{"id":"\u5730\u5740","tags":"\u5730\u5740"},{"id":"typecho","tags":"typecho"},{"id":"html","tags":"html"},{"id":"\u76ee\u5f55","tags":"\u76ee\u5f55"},{"id":"\u6587\u4ef6","tags":"\u6587\u4ef6"},{"id":"\u9875\u9762","tags":"\u9875\u9762"},{"id":"\u4f5c\u4e1a","tags":"\u4f5c\u4e1a"},{"id":"\u5ba4\u53cb","tags":"\u5ba4\u53cb"},{"id":"g","tags":"g"},{"id":"\u56de\u5bb6","tags":"\u56de\u5bb6"},{"id":"\u754c\u9762","tags":"\u754c\u9762"},{"id":"\u56fe\u7247","tags":"\u56fe\u7247"},{"id":"\u6b4c","tags":"\u6b4c"},{"id":"\u5b66\u6821","tags":"\u5b66\u6821"},{"id":"js","tags":"js"},{"id":"\u7248\u672c","tags":"\u7248\u672c"},{"id":"var","tags":"var"},{"id":"\u4e3b\u673a","tags":"\u4e3b\u673a"},{"id":"\u6587\u5b57","tags":"\u6587\u5b57"},{"id":"\u5bbf\u820d","tags":"\u5bbf\u820d"},{"id":"\u97f3\u4e50","tags":"\u97f3\u4e50"},{"id":"\u8bc4\u8bba","tags":"\u8bc4\u8bba"},{"id":"\u670b\u53cb","tags":"\u670b\u53cb"},{"id":"\u5b66\u4e60","tags":"\u5b66\u4e60"},{"id":"\u5de5\u4f5c","tags":"\u5de5\u4f5c"},{"id":"\u7535\u8111","tags":"\u7535\u8111"},{"id":"\u5c4f\u5e55","tags":"\u5c4f\u5e55"},{"id":"width","tags":"width"},{"id":"\u6559\u5ba4","tags":"\u6559\u5ba4"},{"id":"\u8003\u8bd5","tags":"\u8003\u8bd5"},{"id":"pjax","tags":"pjax"},{"id":"\u4fee\u6539","tags":"\u4fee\u6539"},{"id":"\u5b57","tags":"\u5b57"},{"id":"jquery","tags":"jquery"},{"id":"else","tags":"else"},{"id":"\u8bbe\u7f6e","tags":"\u8bbe\u7f6e"},{"id":"\u540e\u53f0","tags":"\u540e\u53f0"},{"id":"\u884c","tags":"\u884c"},{"id":"\u51fd\u6570","tags":"\u51fd\u6570"},{"id":"\u5b89\u88c5","tags":"\u5b89\u88c5"},{"id":"\u6e38\u620f","tags":"\u6e38\u620f"},{"id":"\u9879\u76ee","tags":"\u9879\u76ee"},{"id":"\u665a\u5b89","tags":"\u665a\u5b89"},{"id":"\u8868\u60c5","tags":"\u8868\u60c5"},{"id":"\u8def\u5f84","tags":"\u8def\u5f84"},{"id":"\u6807\u9898","tags":"\u6807\u9898"},{"id":"\u66f4\u65b0","tags":"\u66f4\u65b0"},{"id":"\u7b14\u8bb0","tags":"\u7b14\u8bb0"},{"id":"\u73ed\u4e3b\u4efb","tags":"\u73ed\u4e3b\u4efb"},{"id":"\u7231\u60c5","tags":"\u7231\u60c5"},{"id":"\u65e5\u8bb0","tags":"\u65e5\u8bb0"},{"id":"\u5988\u5988","tags":"\u5988\u5988"},{"id":"\u8001\u5e08","tags":"\u8001\u5e08"},{"id":"https","tags":"https"},{"id":"\u52a8\u7269","tags":"\u52a8\u7269"},{"id":"chrome","tags":"chrome"},{"id":"google","tags":"google"},{"id":"\u653e\u5047","tags":"\u653e\u5047"},{"id":"\u989c\u8272","tags":"\u989c\u8272"},{"id":"\u9996\u9875","tags":"\u9996\u9875"},{"id":"github","tags":"github"},{"id":"\u5c0f\u5b66","tags":"\u5c0f\u5b66"},{"id":"\u6211","tags":"\u6211"},{"id":"\u8d85\u5e02","tags":"\u8d85\u5e02"},{"id":"\u5bc6\u7801","tags":"\u5bc6\u7801"},{"id":"\u540c\u5b66","tags":"\u540c\u5b66"},{"id":"\u6837\u5f0f","tags":"\u6837\u5f0f"},{"id":"\u7f16\u7a0b","tags":"\u7f16\u7a0b"},{"id":"id","tags":"id"},{"id":"\u57df\u540d","tags":"\u57df\u540d"},{"id":"markdown","tags":"markdown"},{"id":"\u5173\u673a","tags":"\u5173\u673a"},{"id":"\u5b66\u957f","tags":"\u5b66\u957f"},{"id":"important","tags":"important"},{"id":"\u90ae\u4ef6","tags":"\u90ae\u4ef6"},{"id":"\u6d4b\u8bd5","tags":"\u6d4b\u8bd5"},{"id":"\u751f\u65e5","tags":"\u751f\u65e5"},{"id":"\u622a\u56fe","tags":"\u622a\u56fe"},{"id":"\u83dc\u5355","tags":"\u83dc\u5355"},{"id":"false","tags":"false"},{"id":"\u75db\u82e6","tags":"\u75db\u82e6"},{"id":"\u80e1\u7ffc","tags":"\u80e1\u7ffc"},{"id":"\u4efb\u7d20\u4eea","tags":"\u4efb\u7d20\u4eea"},{"id":"\u5c0f\u7c73","tags":"\u5c0f\u7c73"},{"id":"rgba","tags":"rgba"},{"id":"background","tags":"background"},{"id":"right","tags":"right"},{"id":"z-index","tags":"z-index"},{"id":"body","tags":"body"},{"id":"\u6d41\u91cf","tags":"\u6d41\u91cf"},{"id":"img","tags":"img"},{"id":"length","tags":"length"},{"id":"\u8bed\u53e5","tags":"\u8bed\u53e5"},{"id":"\u952e\u76d8","tags":"\u952e\u76d8"},{"id":"\u5e7f\u544a","tags":"\u5e7f\u544a"},{"id":"player","tags":"player"},{"id":"\u4f5c\u6587","tags":"\u4f5c\u6587"},{"id":"\u8bd5\u5377","tags":"\u8bd5\u5377"},{"id":"\u59d0\u59d0","tags":"\u59d0\u59d0"},{"id":"\u7167\u7247","tags":"\u7167\u7247"},{"id":"git","tags":"git"},{"id":"\u6559\u7a0b","tags":"\u6559\u7a0b"},{"id":"\u9759\u6001","tags":"\u9759\u6001"},{"id":"\u52a8\u753b","tags":"\u52a8\u753b"},{"id":"grunt","tags":"grunt"},{"id":"\u6807\u7b7e","tags":"\u6807\u7b7e"},{"id":"\u534f\u8bae","tags":"\u534f\u8bae"},{"id":"\u5907\u6848","tags":"\u5907\u6848"},{"id":"\u5b66\u671f","tags":"\u5b66\u671f"},{"id":"\u56fe\u6807","tags":"\u56fe\u6807"},{"id":"\u591a\u8bf4","tags":"\u591a\u8bf4"},{"id":"\u7f16\u8f91\u5668","tags":"\u7f16\u8f91\u5668"},{"id":"\u5c0f\u4e8b","tags":"\u5c0f\u4e8b"},{"id":"int","tags":"int"},{"id":"point_down","tags":"point_down"},{"id":"mysql","tags":"mysql"},{"id":"\u91cd\u590d","tags":"\u91cd\u590d"},{"id":"\u539f\u4f5c\u8005","tags":"\u539f\u4f5c\u8005"},{"id":"\u5b63","tags":"\u5b63"},{"id":"\u624b\u73af","tags":"\u624b\u73af"},{"id":"document","tags":"document"},{"id":"title","tags":"title"},{"id":"opacity","tags":"opacity"},{"id":"no-repeat","tags":"no-repeat"},{"id":"\u6e90\u7801","tags":"\u6e90\u7801"},{"id":"curl","tags":"curl"},{"id":"url","tags":"url"},{"id":"this","tags":"this"},{"id":"\u8fc7\u671f","tags":"\u8fc7\u671f"},{"id":"png","tags":"png"},{"id":"\u7248\u6743","tags":"\u7248\u6743"},{"id":"\u7b80\u6d01","tags":"\u7b80\u6d01"},{"id":"\u4f11\u606f","tags":"\u4f11\u606f"},{"id":"\u827a\u4eba","tags":"\u827a\u4eba"},{"id":"\u753b\u98ce","tags":"\u753b\u98ce"},{"id":"mac","tags":"mac"},{"id":"\u8033\u6735","tags":"\u8033\u6735"},{"id":"\u5f00\u95e8","tags":"\u5f00\u95e8"},{"id":"\u56de\u5fc6","tags":"\u56de\u5fc6"},{"id":"\u7238\u7238","tags":"\u7238\u7238"},{"id":"\u4eba\u6027","tags":"\u4eba\u6027"},{"id":"\u52a8\u6f2b","tags":"\u52a8\u6f2b"},{"id":"\u8d26\u53f7","tags":"\u8d26\u53f7"},{"id":"\u7535\u5b50","tags":"\u7535\u5b50"},{"id":"\u5907\u7528","tags":"\u5907\u7528"},{"id":"node","tags":"node"},{"id":"hexo","tags":"hexo"},{"id":"\u547d\u4ee4","tags":"\u547d\u4ee4"},{"id":"\u53d8\u91cf","tags":"\u53d8\u91cf"},{"id":"src","tags":"src"},{"id":"\u811a\u672c","tags":"\u811a\u672c"},{"id":"\u5ef6\u8fdf","tags":"\u5ef6\u8fdf"},{"id":"\u94fe\u63a5","tags":"\u94fe\u63a5"},{"id":"\u9192\u6765","tags":"\u9192\u6765"},{"id":"\u6b7b\u4ea1","tags":"\u6b7b\u4ea1"},{"id":"\u9009\u4fee\u8bfe","tags":"\u9009\u4fee\u8bfe"},{"id":"\u590d\u4e60","tags":"\u590d\u4e60"},{"id":"\u6dfb\u52a0","tags":"\u6dfb\u52a0"},{"id":"\u8bb8\u53ef","tags":"\u8bb8\u53ef"},{"id":"\u9ed1\u540d\u5355","tags":"\u9ed1\u540d\u5355"},{"id":"\u8f6f\u4ef6","tags":"\u8f6f\u4ef6"},{"id":"java","tags":"java"},{"id":"handsome","tags":"handsome"},{"id":"\u590f\u76ee","tags":"\u590f\u76ee"},{"id":"\u6e29\u67d4","tags":"\u6e29\u67d4"},{"id":"\u7535\u6e90","tags":"\u7535\u6e90"},{"id":"\u65e0\u5173\u7d27\u8981","tags":"\u65e0\u5173\u7d27\u8981"},{"id":"\u5341\u6708","tags":"\u5341\u6708"},{"id":"\u767d\u5929","tags":"\u767d\u5929"},{"id":"\u591c\u5149\u706f","tags":"\u591c\u5149\u706f"},{"id":"\u9519\u672c","tags":"\u9519\u672c"},{"id":"\u4e52\u4e53\u7403","tags":"\u4e52\u4e53\u7403"},{"id":"\u5410\u69fd","tags":"\u5410\u69fd"},{"id":"ueditor","tags":"ueditor"},{"id":"\u63d2\u4ef6","tags":"\u63d2\u4ef6"},{"id":"\u7aef\u5348","tags":"\u7aef\u5348"},{"id":"btnode","tags":"btnode"},{"id":"char","tags":"char"},{"id":"\u8868\u8fbe","tags":"\u8868\u8fbe"},{"id":"data","tags":"data"},{"id":"\u771f\u7684","tags":"\u771f\u7684"},{"id":"\u611f\u5eb7","tags":"\u611f\u5eb7"},{"id":"\u6807\u7b7e\u680f","tags":"\u6807\u7b7e\u680f"},{"id":"enable","tags":"enable"}],{propertyToSearch:'tags',tokenValue :'tags',searchDelay :0,preventDuplicates :true,animateDropdown :false,hintText :'请输入标签名',noResultsText :'此标签不存在, 按回车创建',prePopulate :tagsPre,onResult :function (result,query) {if (!query) {return result;}
if (!result) {result =[];}
if (!result[0] ||result[0]['id'] !=query) {result.unshift({id :query,tags :query
});}
return result.slice(0,5);}
});$('#token-input-tags').focus(function() {var t =$('.token-input-dropdown'),offset =t.outerWidth() - t.width();t.width($('.token-input-list').outerWidth() - offset);});}
var slug =$('#slug');if (slug.length >0) {var wrap =$('<div />').css({'position' :'relative','display' :'inline-block'
}),justifySlug =$('<pre />').css({'display' :'block','visibility':'hidden','height' :slug.height(),'padding' :'0 2px','margin' :0
}).insertAfter(slug.wrap(wrap).css({'left' :0,'top' :0,'minWidth' :'5px','position' :'absolute','width' :'100%'
})),originalWidth =slug.width();function justifySlugWidth() {var val =slug.val();justifySlug.text(val.length >0 ?val :' ');}
slug.bind('input propertychange',justifySlugWidth);justifySlugWidth();}
Typecho.insertFileToEditor =function (file,url,isImage) {var textarea =$('#text'),sel =textarea.getSelection(),html =isImage ?'<img src="' + url + '" alt="' + file + '" />'
:'<a href="' + url + '">' + file + '</a>',offset =(sel ?sel.start :0) + html.length;textarea.replaceSelection(html);textarea.setSelection(offset,offset);};var submitted =false,form =$('form[name=write_post],form[name=write_page]').submit(function () {submitted =true;}),savedData =null;var lastData =form.serialize();$(window).bind('beforeunload',function () {if (!!savedData) {lastData =savedData;}
if (form.serialize() !=lastData &&!submitted) {return '内容已经改变尚未保存, 您确认要离开此页面吗?';}
});var fileUploadInit =false;$('#edit-secondary .typecho-option-tabs li').click(function() {$('#edit-secondary .typecho-option-tabs li').removeClass('active');$(this).addClass('active');$('.tab-content').addClass('hidden');var selected_tab =$(this).find('a').attr('href'),selected_el =$(selected_tab).removeClass('hidden');if (!fileUploadInit) {selected_el.trigger('init');fileUploadInit =true;}
return false;});$('#advance-panel-btn').click(function() {$('#advance-panel').toggle();return false;});$('#visibility').change(function () {var val =$(this).val(),password =$('#post-password');console.log(val);if ('password' ==val) {password.removeClass('hidden');} else {password.addClass('hidden');}
});$('.edit-draft-notice a').click(function () {if (confirm('您确认要删除这份草稿吗?')) {window.location.href =$(this).attr('href');}
return false;});});</script>
<script src="https://www.ihewro.com/admin/js/pagedown.js?v=14.10.10"></script>
<script src="https://www.ihewro.com/admin/js/stmd.js?v=14.10.10"></script>
<script src="https://www.ihewro.com/admin/js/diff.js?v=14.10.10"></script>
<script>$(document).ready(function () {var textarea =$('#text'),toolbar =$('<div class="editor" id="wmd-button-bar" />').insertBefore(textarea.parent()),preview =$('<div id="wmd-preview" class="wmd-hidetab" />').insertAfter('.editor');var options ={},isMarkdown =1;options.strings ={bold:'加粗 <strong> Ctrl+B',boldexample:'加粗文字',italic:'斜体 <em> Ctrl+I',italicexample:'斜体文字',link:'链接 <a> Ctrl+L',linkdescription:'请输入链接描述',quote:'引用 <blockquote> Ctrl+Q',quoteexample:'引用文字',code:'代码 <pre><code> Ctrl+K',codeexample:'请输入代码',image:'图片 <img> Ctrl+G',imagedescription:'请输入图片描述',olist:'数字列表 <ol> Ctrl+O',ulist:'普通列表 <ul> Ctrl+U',litem:'列表项目',heading:'标题 <h1>/<h2> Ctrl+H',headingexample:'标题文字',hr:'分割线 <hr> Ctrl+R',more:'摘要分割线 <!--more--> Ctrl+M',undo:'撤销 - Ctrl+Z',redo:'重做 - Ctrl+Y',redomac:'重做 - Ctrl+Shift+Z',fullscreen:'全屏 - Ctrl+J',exitFullscreen:'退出全屏 - Ctrl+E',fullscreenUnsupport:'此浏览器不支持全屏操作',imagedialog:'<p><b>插入图片</b></p><p>请在下方的输入框内输入要插入的远程图片地址</p><p>您也可以使用附件功能插入上传的本地图片</p>',linkdialog:'<p><b>插入链接</b></p><p>请在下方的输入框内输入要插入的链接地址</p>',ok:'确定',cancel:'取消',help:'Markdown语法帮助'
};var converter =new Typecho.Markdown,editor =new Markdown.Editor(converter,'',options),diffMatch =new diff_match_patch(),last ='',preview =$('#wmd-preview'),mark ='@mark' + Math.ceil(Math.random() *100000000) + '@',span ='<span class="diff" />',cache ={};converter.hooks.chain('postConversion',function (html) {html =html.replace(/<\/?(\!doctype|html|head|body|link|title|input|select|button|textarea|style|noscript)[^>]*>/ig,function (all) {return all.replace(/&/g,'&')
.replace(/</g,'<')
.replace(/>/g,'>')
.replace(/'/g,''')
.replace(/"/g,'"');});html =html.replace(/\s*((?:<br>\n)+)\s*(<\/?(?:p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|form|fieldset|iframe|hr|legend|article|section|nav|aside|hgroup|header|footer|figcaption|li|dd|dt)[^\w])/gm,'$2');if (html.indexOf('<!--more-->') >0) {var parts =html.split(/\s*<\!\-\-more\-\->\s*/),summary =parts.shift(),details =parts.join('');html ='<div class="summary">' + summary + '</div>'
+ '<div class="details">' + details + '</div>';}
var diffs =diffMatch.diff_main(last,html);last =html;if (diffs.length >0) {var stack =[],markStr =mark;for (var i =0;i < diffs.length;i ++) {var diff =diffs[i],op =diff[0],str =diff[1]
sp =str.lastIndexOf('<'),ep =str.lastIndexOf('>');if (op !=0) {if (sp >=0 &&sp >ep) {if (op >0) {stack.push(str.substring(0,sp) + markStr + str.substring(sp));} else {var lastStr =stack[stack.length - 1],lastSp =lastStr.lastIndexOf('<');stack[stack.length - 1] =lastStr.substring(0,lastSp) + markStr + lastStr.substring(lastSp);}
} else {if (op >0) {stack.push(str + markStr);} else {stack.push(markStr);}
}
markStr ='';} else {stack.push(str);}
}
html =stack.join('');if (!markStr) {var pos =html.indexOf(mark),prev =html.substring(0,pos),next =html.substr(pos + mark.length),sp =prev.lastIndexOf('<'),ep =prev.lastIndexOf('>');if (sp >=0 &&sp >ep) {html =prev.substring(0,sp) + span + prev.substring(sp) + next;} else {html =prev + span + next;}
}
}
html =html.replace(/<(img)\s+([^>]*)\s*src="([^"]+)"([^>]*)>/ig,function (all,tag,prefix,src,suffix) {if (!cache[src]) {cache[src] =false;} else {return '<span class="cache" data-width="' + cache[src][0] + '" data-height="' + cache[src][1] + '" '
+ 'style="background:url(' + src + ') no-repeat left top; width:'
+ cache[src][0] + 'px; height:' + cache[src][1] + 'px; display: inline-block; max-width: 100%;'
+ '-webkit-background-size: contain;-moz-background-size: contain;-o-background-size: contain;background-size: contain;" />';}
return all;});html =html.replace(/<(iframe|embed)\s+([^>]*)>/ig,function (all,tag,src) {if (src[src.length - 1] =='/') {src =src.substring(0,src.length - 1);}
return '<div style="background: #ddd; height: 40px; overflow: hidden; line-height: 40px; text-align: center; font-size: 12px; color: #777">'
+ tag + ' : ' + $.trim(src) + '</div>';});return html;});function cacheResize() {var t =$(this),w =parseInt(t.data('width')),h =parseInt(t.data('height')),ow =t.width();t.height(h *ow / w);}
var to;editor.hooks.chain('onPreviewRefresh',function () {var diff =$('.diff',preview),scrolled =false;if (to) {clearTimeout(to);}
$('img',preview).load(function () {var t =$(this),src =t.attr('src');if (scrolled) {preview.scrollTo(diff,{offset :- 50
});}
if (!!src &&!cache[src]) {cache[src] =[this.width,this.height];}
});$('.cache',preview).resize(cacheResize).each(cacheResize);var changed =$('.diff',preview).parent();if (!changed.is(preview)) {changed.css('background-color','rgba(255,230,0,0.5)');to =setTimeout(function () {changed.css('background-color','transparent');},4500);}
if (diff.length >0) {var p =diff.position(),lh =diff.parent().css('line-height');lh =!!lh ?parseInt(lh) :0;if (p.top < 0 ||p.top >preview.height() - lh) {preview.scrollTo(diff,{offset :- 50
});scrolled =true;}
}
});var input =$('#text'),th =textarea.height(),ph =preview.height(),uploadBtn =$('<button type="button" id="btn-fullscreen-upload" class="btn btn-link">'
+ '<i class="i-upload">附件</i></button>')
.prependTo('.submit .right')
.click(function() {$('a',$('.typecho-option-tabs li').not('.active')).trigger('click');return false;});$('.typecho-option-tabs li').click(function () {uploadBtn.find('i').toggleClass('i-upload-active',$('#tab-files-btn',this).length >0);});editor.hooks.chain('enterFakeFullScreen',function () {th =textarea.height();ph =preview.height();$(document.body).addClass('fullscreen');var h =$(window).height() - toolbar.outerHeight();textarea.css('height',h);preview.css('height',h);});editor.hooks.chain('enterFullScreen',function () {$(document.body).addClass('fullscreen');var h =window.screen.height - toolbar.outerHeight();textarea.css('height',h);preview.css('height',h);});editor.hooks.chain('exitFullScreen',function () {$(document.body).removeClass('fullscreen');textarea.height(th);preview.height(ph);});function initMarkdown() {editor.run();var imageButton =$('#wmd-image-button'),linkButton =$('#wmd-link-button');Typecho.insertFileToEditor =function (file,url,isImage) {var button =isImage ?imageButton :linkButton;options.strings[isImage ?'imagename' :'linkname'] =file;button.trigger('click');var checkDialog =setInterval(function () {if ($('.wmd-prompt-dialog').length >0) {$('.wmd-prompt-dialog input').val(url).select();clearInterval(checkDialog);checkDialog =null;}
},10);};Typecho.uploadComplete =function (file) {Typecho.insertFileToEditor(file.title,file.url,file.isImage);};var edittab =$('.editor').prepend('<div class="wmd-edittab"><a href="#wmd-editarea" class="active">撰写</a><a href="#wmd-preview">预览</a></div>'),editarea =$(textarea.parent()).attr("id","wmd-editarea");$(".wmd-edittab a").click(function() {$(".wmd-edittab a").removeClass('active');$(this).addClass("active");$("#wmd-editarea, #wmd-preview").addClass("wmd-hidetab");var selected_tab =$(this).attr("href"),selected_el =$(selected_tab).removeClass("wmd-hidetab");if (selected_tab =="#wmd-preview") {$("#wmd-button-row").addClass("wmd-visualhide");} else {$("#wmd-button-row").removeClass("wmd-visualhide");}
$("#wmd-preview").outerHeight($("#wmd-editarea").innerHeight());return false;});}
if (isMarkdown) {initMarkdown();} else {var notice =$('<div class="message notice">这篇文章不是由Markdown语法创建的, 继续使用Markdown编辑它吗? '
+ '<button class="btn btn-xs primary yes">是</button> '
+ '<button class="btn btn-xs no">否</button></div>')
.hide().insertBefore(textarea).slideDown();$('.yes',notice).click(function () {notice.remove();$('<input type="hidden" name="markdown" value="1" />').appendTo('.submit');initMarkdown();});$('.no',notice).click(function () {notice.remove();});}
});</script>
<script src="https://www.ihewro.com/admin/js/moxie.js?v=14.10.10"></script>
<script src="https://www.ihewro.com/admin/js/plupload.js?v=14.10.10"></script>
<script>$(document).ready(function() {function updateAttacmentNumber () {var btn =$('#tab-files-btn'),balloon =$('.balloon',btn),count =$('#file-list li .insert').length;if (count >0) {if (!balloon.length) {btn.html($.trim(btn.html()) + ' ');balloon =$('<span class="balloon"></span>').appendTo(btn);}
balloon.html(count);} else if (0 ==count &&balloon.length >0) {balloon.remove();}
}
$('.upload-area').bind({dragenter :function () {$(this).parent().addClass('drag');},dragover :function (e) {$(this).parent().addClass('drag');},drop :function () {$(this).parent().removeClass('drag');},dragend :function () {$(this).parent().removeClass('drag');},dragleave :function () {$(this).parent().removeClass('drag');}
});updateAttacmentNumber();function fileUploadStart (file) {$('<li id="' + file.id + '" class="loading">'
+ file.name + '</li>').appendTo('#file-list');}
function fileUploadError (error) {var file =error.file,code =error.code,word;switch (code) {case plupload.FILE_SIZE_ERROR:word ='文件大小超过限制';break;case plupload.FILE_EXTENSION_ERROR:word ='文件扩展名不被支持';break;case plupload.FILE_DUPLICATE_ERROR:word ='文件已经上传过';break;case plupload.HTTP_ERROR:default:word ='上传出现错误';break;}
var fileError ='%s 上传失败'.replace('%s',file.name),li,exist =$('#' + file.id);if (exist.length >0) {li =exist.removeClass('loading').html(fileError);} else {li =$('<li>' + fileError + '<br />' + word + '</li>').appendTo('#file-list');}
li.effect('highlight',{color :'#FBC2C4'},2000,function () {$(this).remove();});}
var completeFile =null;function fileUploadComplete (id,url,data) {var li =$('#' + id).removeClass('loading').data('cid',data.cid)
.data('url',data.url)
.data('image',data.isImage)
.html('<input type="hidden" name="attachment[]" value="' + data.cid + '" />'
+ '<a class="insert" target="_blank" href="###" title="点击插入文件">' + data.title + '</a><div class="info">' + data.bytes
+ ' <a class="file" target="_blank" href="https://www.ihewro.com/admin/media.php?cid='
+ data.cid + '" title="编辑"><i class="i-edit"></i></a>'
+ ' <a class="delete" href="###" title="删除"><i class="i-delete"></i></a></div>')
.effect('highlight',1000);attachInsertEvent(li);attachDeleteEvent(li);updateAttacmentNumber();if (!completeFile) {completeFile =data;}
}
$('#tab-files').bind('init',function () {var uploader =new plupload.Uploader({browse_button :$('.upload-file').get(0),url :'https://www.ihewro.com/action/upload?_=a3c5afd4d8458fcf22d4a074422bb850',runtimes :'html5,flash,html4',flash_swf_url :'https://www.ihewro.com/admin/js/Moxie.swf',drop_element :$('.upload-area').get(0),filters :{max_file_size :'50mb',mime_types :[{'title' :'允许上传的文件','extensions' :'gif,jpg,jpeg,png,tiff,bmp,mp3,wmv,wma,rmvb,rm,avi,flv,txt,doc,docx,xls,xlsx,ppt,pptx,zip,rar,pdf,js,css'}],prevent_duplicates :true
},init :{FilesAdded :function (up,files) {plupload.each(files,function(file) {fileUploadStart(file);});completeFile =null;uploader.start();},UploadComplete :function () {if (completeFile) {Typecho.uploadComplete(completeFile);}
},FileUploaded :function (up,file,result) {if (200 ==result.status) {var data =$.parseJSON(result.response);if (data) {fileUploadComplete(file.id,data[0],data[1]);return;}
}
fileUploadError({code :plupload.HTTP_ERROR,file :file
});},Error :function (up,error) {fileUploadError(error);}
}
});uploader.init();});function attachInsertEvent (el) {$('.insert',el).click(function () {var t =$(this),p =t.parents('li');Typecho.insertFileToEditor(t.text(),p.data('url'),p.data('image'));return false;});}
function attachDeleteEvent (el) {var file =$('a.insert',el).text();$('.delete',el).click(function () {if (confirm('确认要删除文件 %s 吗?'.replace('%s',file))) {var cid =$(this).parents('li').data('cid');$.post('https://www.ihewro.com/action/contents-attachment-edit?_=a3c5afd4d8458fcf22d4a074422bb850',{'do' :'delete','cid' :cid},function () {$(el).fadeOut(function () {$(this).remove();updateAttacmentNumber();});});}
return false;});}
$('#file-list li').each(function () {attachInsertEvent(this);attachDeleteEvent(this);});});</script>
<script>$(document).ready(function () {$('#custom-field-expand').click(function() {var btn =$('i',this);if (btn.hasClass('i-caret-right')) {btn.removeClass('i-caret-right').addClass('i-caret-down');} else {btn.removeClass('i-caret-down').addClass('i-caret-right');}
$(this).parent().toggleClass('fold');return false;});function attachDeleteEvent (el) {$('button.btn-xs',el).click(function () {if (confirm('确认要删除此字段吗?')) {$(this).parents('tr').fadeOut(function () {$(this).remove();});}
});}
$('#custom-field table tbody tr').each(function () {attachDeleteEvent(this);});$('#custom-field button.operate-add').click(function () {var html ='<tr><td><input type="text" name="fieldNames[]" placeholder="字段名称" class="text-s w-100"></td>'
+ '<td><select name="fieldTypes[]" id="">'
+ '<option value="str">字符</option>'
+ '<option value="int">整数</option>'
+ '<option value="float">小数</option>'
+ '</select></td>'
+ '<td><textarea name="fieldValues[]" placeholder="字段值" class="text-s w-100" rows="2"></textarea></td>'
+ '<td><button type="button" class="btn btn-xs">删除</button></td></tr>',el =$(html).hide().appendTo('#custom-field table tbody').fadeIn();attachDeleteEvent(el);});});</script>
https://www.ihewro.com/action/metingapi<script type="text/javascript">var murl='';</script>
<script type="text/javascript" src="https://www.ihewro.com/usr/plugins/Meting/assets/editer.js?v=1.2.2"></script> </body>
</html>
貌似是这样的吧
[Meting]
[Music title="歌曲名" author="歌手" url="https://dwz.cn/5WLC3D" pic="图片文件URL" lrc="歌词文件URL"]
[Music title="歌曲名" author="歌手" url="http://dwz.cn/5WLIRv" pic="图片文件URL" lrc="歌词文件URL"]
[/Meting]
这样添加是否正确
我按您的顺序执行下来后
问题如上,并没有任何反应
ps:我是非原生的主题
在ie内核下提示Symbol未定义
[Meting]
[Music server="netease" id="31426608" type="song" url="https://example.com/31426608.mp3" /]
[/Meting]
如上短代码图片与歌词依旧使用平台来源,歌曲资源替换为第三方来源。
适用于部分下架/版权歌曲
单曲无法播放。专辑、歌手、歌单 、榜单中第一首无法播放,剩余歌曲正常。
系统、软件:
Win7 x64 Chrome 65
单曲浏览器console报错提示:
player.js:263 DOMException: The element has no supported sources.
F12下看了一下 提示500错误,提示如下,(将域名换成了abc.com)
synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.js?v=14.10.10:25
ajax @ jquery.js?v=14.10.10:25
(anonymous) @ editer.js?v=1.1.0:26
dispatch @ jquery.js?v=14.10.10:25
elemData.handle @ jquery.js?v=14.10.10:25
jquery.js?v=14.10.10:25 POST https://abc.com/MetingAPI?do=parse 500 (Internal Server Error)
send @ jquery.js?v=14.10.10:25
ajax @ jquery.js?v=14.10.10:25
(anonymous) @ editer.js?v=1.1.0:26
dispatch @ jquery.js?v=14.10.10:25
elemData.handle @ jquery.js?v=14.10.10:25
jquery.js?v=14.10.10:25 XHR finished loading: POST "https://abc.com/MetingAPI?do=parse".
send @ jquery.js?v=14.10.10:25
ajax @ jquery.js?v=14.10.10:25
(anonymous) @ editer.js?v=1.1.0:26
dispatch @ jquery.js?v=14.10.10:25
elemData.handle @ jquery.js?v=14.10.10:25``
应该是使用网易云的链接才会出现这样的问题,上次反应描述有误,麻烦大大再查看下是哪方面导致的;
不显示页面:https://waxxh.me/music/2/
显示页面:https://waxxh.me/music/3/
一直使用APlayer-Typecho-Plugin,换这个插件就不行了能不能兼容一下。
打开配置面板出错欸。。。
插件meting的配置信息没有找到
exception 'Typecho_Plugin_Exception' with message '插件meting的配置信息没有找到' in /home/public_html/var/Widget/Options.php:544
Stack trace:
#0 /home/public_html/var/Widget/Plugins/Config.php(103): Widget_Options->plugin('meting')
#1 /home/public_html/admin/options-plugin.php(12): Widget_Plugins_Config->config()
#2 {main}
iOS Safari 上点击播放后需要等进度条走完才开始播放?Chrome 上是 OK 的。
https://blog.imalan.me/music.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.