TheDesk Riina (ver.1)

This commit is contained in:
cutls
2018-02-18 14:43:11 +09:00
parent 51097abce6
commit 4588b646a9
16 changed files with 321 additions and 63 deletions

View File

@@ -28,12 +28,12 @@ function fav(id, acct_id) {
} else {
$("[toot-id=" + id + "] .rt_ct").text(json.reblog.reblogs_count);
}
if ($("#pub_" + id).hasClass("faved")) {
$("#pub_" + id).removeClass("faved");
$("#fav_" + id).removeClass("yellow-text");
if ($("[toot-id=" + id +"]").hasClass("faved")) {
$("[toot-id=" + id +"]").removeClass("faved");
$(".fav_" + id).removeClass("yellow-text");
} else {
$("#pub_" + id).addClass("faved");
$("#fav_" + id).addClass("yellow-text");
$("[toot-id=" + id +"]").addClass("faved");
$(".fav_" + id).addClass("yellow-text");
}
});
}
@@ -74,12 +74,12 @@ function rt(id, acct_id) {
$("[toot-id=" + id + "] .rt_ct").text(json.reblog.reblogs_count);
}
if ($("#pub_" + id).hasClass("rted")) {
$("#pub_" + id).removeClass("rted");
$("#rt_" + id).removeClass("teal-text");
if ($("[toot-id=" + id +"]").hasClass("rted")) {
$("[toot-id=" + id +"]").removeClass("rted");
$(".rt_" + id).removeClass("teal-text");
} else {
$("#pub_" + id).addClass("rted");
$("#rt_" + id).addClass("teal-text");
$("[toot-id=" + id +"]").addClass("rted");
$(".rt_" + id).addClass("teal-text");
}
});
}
@@ -278,3 +278,8 @@ function addDomainblock() {
var domain = $("#domainblock").val();
domainblock(domain, 'POST');
}
//URLコピー
function tootUriCopy(url){
execCopy(url);
Materialize.toast("トゥートURLをコピーしました", 1500);
}