Compare commits

...

2 Commits

Author SHA1 Message Date
iotcat 40d8c32d20 aplayer_list 4 years ago
iotcat 4afb5658e0 v3.4.10 4 years ago
  1. 31
      dist/ushio-footer.js
  2. 2
      dist/ushio-footer.min.js
  3. 2
      dist/ushio-footer.min.js.map
  4. 2
      package.json
  5. 31
      ushio-footer.js
  6. 199
      ushio-head.js.dump

@ -521,8 +521,8 @@ session.onload(function(){
/* audio player */
function player_ini(){
$.post("https://api.yimian.xyz/msc/?type=single&id="+((session.get('aplayer/playing') == undefined)?'477215840':session.get('aplayer/playing'))+"&limit=15&random=true", function(e){
$.post("https://api.yimian.xyz/msc/?type=playlist&id="+((typeof aplayer_playlist == "undefined")?'808097971':aplayer_playlist)+"&limit=14&random=true", function(res){
$.post("https://api.yimian.xyz/msc/?type=single&id="+((session.get('aplayer/playing') == undefined)?'531786301':session.get('aplayer/playing'))+"&limit=15&random=true", function(e){
$.post("https://api.yimian.xyz/msc/?type=playlist&id="+((typeof aplayer_playlist == "undefined")?'2675649523':aplayer_playlist)+"&limit=14&random=true", function(res){
res.unshift(e);
$('body').append('<div class="aplayer-footer"><div class="ap-f" id="ap-f"></div></div>');
var a = new APlayer({
@ -838,25 +838,16 @@ page.setting={
mainobj.$control=$('<div id="_setting" >'+mainobj.controlHTML+"</div>").css({position:mainobj.cssfixedsupport?"fixed":"absolute",'z-index': 9999999,bottom:mainobj.controlattrs.offsety,right:mainobj.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Ushio Setting"}).click(function(){/*mainobj.scrollup();return false;*/}).appendTo("body");if(document.all&&!window.XMLHttpRequest&&mainobj.$control.text()!=""){mainobj.$control.css({width:mainobj.$control.width()});}mainobj.togglecontrol();
//$('a[href="'+mainobj.anchorkeyword+'"]').click(function(){mainobj.scrollup();return false;});
$(window).bind("scroll resize",function(e){/*mainobj.togglecontrol();*/});
$('#_setting').draggable({
start: function() {
mainobj.lastStartTime = new Date().valueOf();
},
stop: function() {
mainobj.lastStopTime = new Date().valueOf();
console.log(mainobj.lastStopTime - mainobj.lastStartTime);
if(mainobj.lastStopTime - mainobj.lastStartTime > 0 && mainobj.lastStopTime - mainobj.lastStartTime < 270){
mainobj.scrollup();
}
$('#_setting').draggable();
$('#_setting').on(('ontouchend' in document)?'touchstart':'mousedown', function(){
mainobj.lastStartTime = new Date().valueOf();
});
$('#_setting').on(('ontouchend' in document)?'touchend':'mouseup', function(){
mainobj.lastStopTime = new Date().valueOf();
if(mainobj.lastStopTime - mainobj.lastStartTime > 0 && mainobj.lastStopTime - mainobj.lastStartTime < 370){
mainobj.scrollup();
}
});
$('#_setting').click(function(){
setTimeout(function(){
if(!$(this).hasClass('dragging')){
mainobj.scrollup();
}
}, 10);
});
});
});
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
{
"name": "ushio-js",
"version": "3.4.9",
"version": "3.4.10",
"main": "ushio-head.js",
"repository": "https://github.com/iotcat/ushio-js",
"author": "iotcat <i@iotcat.me>",

@ -521,8 +521,8 @@ session.onload(function(){
/* audio player */
function player_ini(){
$.post("https://api.yimian.xyz/msc/?type=single&id="+((session.get('aplayer/playing') == undefined)?'477215840':session.get('aplayer/playing'))+"&limit=15&random=true", function(e){
$.post("https://api.yimian.xyz/msc/?type=playlist&id="+((typeof aplayer_playlist == "undefined")?'808097971':aplayer_playlist)+"&limit=14&random=true", function(res){
$.post("https://api.yimian.xyz/msc/?type=single&id="+((session.get('aplayer/playing') == undefined)?'531786301':session.get('aplayer/playing'))+"&limit=15&random=true", function(e){
$.post("https://api.yimian.xyz/msc/?type=playlist&id="+((typeof aplayer_playlist == "undefined")?'2675649523':aplayer_playlist)+"&limit=14&random=true", function(res){
res.unshift(e);
$('body').append('<div class="aplayer-footer"><div class="ap-f" id="ap-f"></div></div>');
var a = new APlayer({
@ -838,25 +838,16 @@ page.setting={
mainobj.$control=$('<div id="_setting" >'+mainobj.controlHTML+"</div>").css({position:mainobj.cssfixedsupport?"fixed":"absolute",'z-index': 9999999,bottom:mainobj.controlattrs.offsety,right:mainobj.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Ushio Setting"}).click(function(){/*mainobj.scrollup();return false;*/}).appendTo("body");if(document.all&&!window.XMLHttpRequest&&mainobj.$control.text()!=""){mainobj.$control.css({width:mainobj.$control.width()});}mainobj.togglecontrol();
//$('a[href="'+mainobj.anchorkeyword+'"]').click(function(){mainobj.scrollup();return false;});
$(window).bind("scroll resize",function(e){/*mainobj.togglecontrol();*/});
$('#_setting').draggable({
start: function() {
mainobj.lastStartTime = new Date().valueOf();
},
stop: function() {
mainobj.lastStopTime = new Date().valueOf();
console.log(mainobj.lastStopTime - mainobj.lastStartTime);
if(mainobj.lastStopTime - mainobj.lastStartTime > 0 && mainobj.lastStopTime - mainobj.lastStartTime < 270){
mainobj.scrollup();
}
$('#_setting').draggable();
$('#_setting').on(('ontouchend' in document)?'touchstart':'mousedown', function(){
mainobj.lastStartTime = new Date().valueOf();
});
$('#_setting').on(('ontouchend' in document)?'touchend':'mouseup', function(){
mainobj.lastStopTime = new Date().valueOf();
if(mainobj.lastStopTime - mainobj.lastStartTime > 0 && mainobj.lastStopTime - mainobj.lastStartTime < 370){
mainobj.scrollup();
}
});
$('#_setting').click(function(){
setTimeout(function(){
if(!$(this).hasClass('dragging')){
mainobj.scrollup();
}
}, 10);
});
});
});
}
};

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save