TheDesk Miho (ver.10)

This commit is contained in:
cutls
2018-02-13 04:16:46 +09:00
parent eec72767c6
commit 1d92abf550
14 changed files with 145 additions and 20 deletions

View File

@@ -56,7 +56,7 @@
Object.keys(obj).forEach(function(key) {
var acct = obj[key];
var html = '<div class="box" id="timeline_box_' + key + '_box" tlid="' + key +
'"><div class="notice-box"><span id="notice_' + key + '"></span><br>' +
'"><div class="notice-box"><span id="notice_' + key + '" class="tl-title"></span><br>' +
'<a onclick="notfToggle(' + acct.domain + ',' + key +
')" class="setting nex" title="このアカウントの通知"><i class="material-icons nex notf-icon_' +
key + '">notifications</i></a>' +

36
app/js/ui/radio.js Normal file
View File

@@ -0,0 +1,36 @@
var r = document.getElementById("radio");
function Rtoggle(){
if($("#radio").hasClass("play")){
Rstop();
}else{
$("#radio-view").toggleClass("hide");
$("#radio-input").addClass("hide");
}
}
function Rplay(url,name){
$("#radio").attr('src',url);
r.load();
r.play();
$("#radio").addClass("play");
$("#radio-btn").addClass("teal-text");
$("#radio-sta").html("<br>Now Playing:"+name);
}
function Rstop(){
$("#radio").attr("src","");
r.pause();
$("#radio").removeClass("play");
$("#radio-btn").removeClass("teal-text");
$("#radio-sta").html("");
}
function Ryourself(){
$("#radio-input").removeClass("hide");
$("#radio-view").addClass("hide");
}
function Rselect(){
$("#radio-input").addClass("hide");
$("#radio-view").removeClass("hide");
}
function Rinput(){
var url=$("#radio-url").val();
Rplay(url,url)
}

View File

@@ -17,6 +17,12 @@ function scrollck() {
jQuery("time.timeago").timeago();
localStorage.removeItem("pool_" + tlid);
}
//自動リフレッシュ
if( $("#timeline_" + tlid+" .cvo").length > 100 ){
for(var i=100;i<$("#timeline_" + tlid +" .cvo").length;i++){
$("#timeline_" + tlid +" .cvo").eq(i).remove();
}
}
}
//続きを読むトリガー
var scrt = $(this).find(".tl").height() - 1000;
@@ -28,5 +34,5 @@ function scrollck() {
}
function goTop(id){
$("#timeline_"+id+"_box .tl-box").scrollTop(0)
$("#timeline_box_"+id+"_box .tl-box").scrollTop(0)
}