Introduce: remove Materialize JS

This commit is contained in:
cutls 2020-07-05 19:45:21 +09:00
parent b0bd85ccc6
commit 414782fd71
12 changed files with 22 additions and 18 deletions

View File

@ -11,6 +11,9 @@ body {
html {
font-size: 13px;
}
.waves-effect:hover {
filter: brightness(120%);
}
.titlebar,
.menubar-menu-container,
.action-menu-item {

View File

@ -1,6 +1,7 @@
//モーダル・ドロップダウンの各種設定
$(document).ready(function () {
// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered
return;
$('.modal').modal({
inDuration: 300,
outDuration: 225,

View File

@ -573,7 +573,7 @@ function multiSelector(parseC) {
)
$('#dir-acct-sel').append('<option value="noauth">' + lang.lang_login_noauth + '</option>')
}
$('select').formSelect()
//$('select').formSelect()
if (!parseC) {
parseColumn(null, true)
}

View File

@ -1007,7 +1007,7 @@ function multisel() {
$('.acct-sel').append(template)
})
}
$('select').formSelect()
//$('select').formSelect()
}
function mainacct() {
var acct_id = $('#main-acct-sel').val()

View File

@ -154,7 +154,7 @@ async function media(b64, type, no, stamped) {
$('#nsfw').addClass('nsfw-avail')
}
$('.toot-btn-group').prop('disabled', false)
$('select').formSelect()
//$('select').formSelect()
$('#mec').text(lang.lang_there)
M.toast({ html: '<span>' + lang.lang_postimg_sync + '</span><button class="btn-flat toast-action" onclick="syncDetail()">Click</button>', displayLength: 3000 })
$('#imgup').text('')
@ -176,7 +176,7 @@ async function media(b64, type, no, stamped) {
if (this.status !== 200) {
setLog(start, this.status, json)
$('.toot-btn-group').prop('disabled', false)
$('select').formSelect()
//$('select').formSelect()
$('#mec').text(lang.lang_there)
M.toast({ html: this.status + ':' +json, displayLength: 2000 })
$('#imgup').text('')
@ -187,14 +187,14 @@ async function media(b64, type, no, stamped) {
$('#imgup').text('')
$('.toot-btn-group').prop('disabled', false)
$('#post-acct-sel').prop('disabled', false)
$('select').formSelect()
//$('select').formSelect()
$('#imgsel').show()
M.toast({ html: lang.lang_postimg_failupload, displayLength: 5000 })
return false
}
$('#imgup').text('')
$('.toot-btn-group').prop('disabled', false)
$('select').formSelect()
//$('select').formSelect()
$('#imgsel').show()
var img = localStorage.getItem('img')
if (json.type.indexOf('image') != -1) {

View File

@ -34,7 +34,7 @@ function renoteqt(id, acct_id) {
$('#rec').text('Renote')
$('#post-acct-sel').val(acct_id)
$('#post-acct-sel').prop('disabled', true)
$('select').formSelect()
//$('select').formSelect()
$('#textarea').attr('placeholder', lang.lang_misskeyparse_qt)
$('#textarea').focus()
}
@ -46,7 +46,7 @@ function misskeyreply(id, acct_id) {
$('#rec').text('Renote')
$('#post-acct-sel').val(acct_id)
$('#post-acct-sel').prop('disabled', true)
$('select').formSelect()
//$('select').formSelect()
$('#textarea').attr('placeholder', lang.lang_misskeyparse_qt)
$('#textarea').focus()
}
@ -120,7 +120,7 @@ function reactioncustom(acct_id, id) {
$('#unreact').hide()
$('#addreact').removeClass('hide')
$('#post-acct-sel').val(acct_id)
$('select').formSelect()
//$('select').formSelect()
localStorage.setItem('nohide', true)
show()
emojiToggle(true)

View File

@ -347,7 +347,7 @@ function clear() {
$('#post-acct-sel').val(localStorage.getItem('main'))
}
$('#emoji').addClass('hide')
$('select').formSelect()
//$('select').formSelect()
$('#default-emoji').show()
$('#unreact').show()
$('#addreact').addClass('hide')

View File

@ -428,7 +428,7 @@ function redraft(id, acct_id) {
var json = httpreq.response
$('#post-acct-sel').prop('disabled', true)
$('#post-acct-sel').val(acct_id)
$('select').formSelect()
//$('select').formSelect()
mdCheck()
var medias = $('[toot-id=' + id + ']').attr('data-medias')
var mediack = json.media_attachments[0]

View File

@ -15,7 +15,7 @@ function re(id, ats_cm, acct_id, mode) {
$('#rec').text(lang.lang_yesno)
$('#post-acct-sel').val(acct_id)
$('#post-acct-sel').prop('disabled', true)
$('select').formSelect()
//$('select').formSelect()
mdCheck()
$('#textarea').attr('placeholder', lang.lang_usetxtbox_reply)
$('#textarea').focus()
@ -65,7 +65,7 @@ function qt(id, acct_id, at, url) {
$('#quote').val(id)
$('#post-acct-sel').val(acct_id)
$('#post-acct-sel').prop('disabled', true)
$('select').formSelect()
//$('select').formSelect()
$('#textarea').attr('placeholder', lang.lang_usetxtbox_reply)
$('#textarea').focus()
var profimg = localStorage.getItem('prof_' + acct_id)
@ -75,7 +75,7 @@ function qt(id, acct_id, at, url) {
$('#acct-sel-prof').attr('src', profimg)
}
$('#post-acct-sel').val(acct_id)
$('select').formSelect()
//$('select').formSelect()
mdCheck()
$('#textarea').focus()
}

View File

@ -121,7 +121,7 @@ function announReactionNew(id, acct_id, tlid) {
$('#unreact').hide()
$('#addreact').removeClass('hide')
$('#post-acct-sel').val(acct_id)
$('select').formSelect()
//$('select').formSelect()
localStorage.setItem('nohide', true)
show()
emojiToggle(true)

View File

@ -656,7 +656,7 @@ function ctLoadCore(args) {
$('#custom-sel-sel').html(templete)
templete = '<option value="add_new">' + $('#edit-selector').attr('data-add') + '</option>' + templete
$('#custom-edit-sel').html(templete)
$('select').formSelect()
//$('select').formSelect()
}
function customSel() {
var id = $('#custom-sel-sel').val()

View File

@ -1724,10 +1724,10 @@
<script type="text/javascript" src="../../@@node_base@@/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="../../js/platform/first.js"></script>
<script type="text/javascript" src="../../@@node_base@@/grapheme-splitter/index.js"></script>
<script
<!--script
type="text/javascript"
src="../../@@node_base@@/materialize-css/dist/js/materialize.js"
></script>
></script-->
<script type="text/javascript" src="../../@@node_base@@/lodash/lodash.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript" src="../../js/common/time.js"></script>