Introducing: Materialize 1.0.0

This commit is contained in:
Cutls
2019-06-07 01:11:04 +09:00
parent 8d1012c9fb
commit 8b1ac63343
37 changed files with 13751 additions and 11750 deletions

View File

@@ -40,7 +40,7 @@ function mdCheck() {
$("#trendtag").html("");
}
if (localStorage.getItem("mode_" + domain) == "misskey") {
Materialize.toast(lang.lang_bbmd_misskey, 5000);
M.toast({ html: lang.lang_bbmd_misskey, displayLength: 5000 })
}
if (idata[domain + "_letters"]) {
$("#textarea").attr("data-length", idata[domain + "_letters"])

View File

@@ -151,7 +151,7 @@ function media(b64, type, no) {
$(".toot-btn-group").prop("disabled", false);
$('select').material_select();
$("#mec").text(lang.lang_there);
Materialize.toast(lang.lang_postimg_aftupload, 1000);
M.toast({ html: lang.lang_postimg_aftupload, displayLength: 1000 })
$("#imgup").text("");
$("#imgsel").show();
localStorage.removeItem("image");

View File

@@ -45,7 +45,7 @@ function vis(set) {
var acct_id = $("#post-acct-sel").val();
localStorage.setItem("vis-memory-" + acct_id, set);
}
$('.dropdown-button').dropdown('close');
M.Dropdown.getInstance($('#dropdown1')).close();
}
function loadVis() {
var vist = localStorage.getItem("vis");

View File

@@ -43,7 +43,7 @@ function fav(id, acct_id, remote) {
$(".fav_" + id).addClass("yellow-text");
}
} else {
Materialize.toast(lang.lang_status_favWarn, 1000);
M.toast({ html: lang.lang_status_favWarn, displayLength: 1000 })
}
}
}
@@ -90,7 +90,7 @@ function rt(id, acct_id, remote) {
$(".rt_" + id).addClass("teal-text");
}
} else {
Materialize.toast(lang.lang_status_btWarn, 1000);
M.toast({ html: lang.lang_status_btWarn, displayLength: 1000 })
}
}
}
@@ -373,7 +373,7 @@ function empUser() {
if (!obj) {
var obj = [];
obj.push(id);
Materialize.toast(id + lang.lang_status_emphas, 4000);
M.toast({ html: id + lang.lang_status_emphas, displayLength: 4000 })
} else {
var can;
Object.keys(obj).forEach(function (key) {
@@ -383,7 +383,7 @@ function empUser() {
} else {
can = true;
obj.splice(key, 1);
Materialize.toast(id + lang.lang_status_unemphas, 4000);
M.toast({ html: id + lang.lang_status_unemphas, displayLength: 4000 })
}
});
}
@@ -425,7 +425,7 @@ function pinUser() {
//URLコピー
function tootUriCopy(url) {
execCopy(url);
Materialize.toast(lang.lang_details_url, 1500);
M.toast({ html: lang.lang_details_url, displayLength: 1500 })
}
//他のアカウントで…