3 Star 3 Fork 0

Gitee 极速下载 / scuttle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/scronide/scuttle
克隆/下载
jsScuttle.php 2.48 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
header('Content-Type: text/javascript');
require_once 'header.inc.php';
require_once 'functions.inc.php';
$player_root = $root .'includes/player/';
?>
var deleted = false;
function deleteBookmark(ele, input) {
$(ele).hide();
$(ele).parent().append("<span><?php echo T_('Are you sure?') ?> <a href=\"#\" onclick=\"deleteConfirmed(this, " + input + "); return false;\"><?php echo T_('Yes'); ?></a> - <a href=\"#\" onclick=\"deleteCancelled(this); return false;\"><?php echo T_('No'); ?></a></span>");
return false;
}
function deleteCancelled(ele) {
$(ele).parent().prev().show();
$(ele).parent().remove();
return false;
}
function deleteConfirmed(ele, input) {
$.get("<?php echo $root; ?>ajaxDelete.php?id=" + input, function(data) {
if (1 === parseInt(data)) {
$(ele).parents(".xfolkentry").slideUp();
}
});
return false;
}
function useAddress(ele) {
var address = ele.value;
if (address != '') {
if (address.indexOf(':') < 0) {
address = 'http:\/\/' + address;
}
getTitle(address, null);
ele.value = address;
}
}
function getTitle(input) {
var title = $("#titleField").val();
if (title.length < 1) {
$("#titleField").css("background-image", "url(<?php echo $root; ?>loading.gif)");
if (input.indexOf("http") > -1) {
$.get("<?php echo $root; ?>ajaxGetTitle.php?url=" + input, function(data) {
$("#titleField").css("background-image", "none")
.val(data);
});
}
}
}
/* Page load */
$(function() {
// Insert Flash player for MP3 links
if ($("#bookmarks").length > 0) {
$("a[href$=.mp3].taggedlink").each(function() {
var url = this.href;
var code = '<object type="application/x-shockwave-flash" data="<?php echo $player_root ?>musicplayer_f6.swf?song_url=' + url +'&amp;b_bgcolor=ffffff&amp;b_fgcolor=000000&amp;b_colors=0000ff,0000ff,ff0000,ff0000&buttons=<?php echo $player_root ?>load.swf,<?php echo $player_root ?>play.swf,<?php echo $player_root ?>stop.swf,<?php echo $player_root ?>error.swf" width="14" height="14">';
code = code + '<param name="movie" value="<?php echo $player_root ?>musicplayer.swf?song_url=' + url +'&amp;b_bgcolor=ffffff&amp;b_fgcolor=000000&amp;b_colors=0000ff,0000ff,ff0000,ff0000&amp;buttons=<?php echo $player_root ?>load.swf,<?php echo $player_root ?>play.swf,<?php echo $player_root ?>stop.swf,<?php echo $player_root ?>error.swf" />';
code = code + '</object> ';
$(this).prepend(code);
});
}
})
1
https://gitee.com/mirrors/scuttle.git
git@gitee.com:mirrors/scuttle.git
mirrors
scuttle
scuttle
master

搜索帮助