Introduce: remove Materialize JS
This commit is contained in:
parent
b0bd85ccc6
commit
414782fd71
|
@ -11,6 +11,9 @@ body {
|
||||||
html {
|
html {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
.waves-effect:hover {
|
||||||
|
filter: brightness(120%);
|
||||||
|
}
|
||||||
.titlebar,
|
.titlebar,
|
||||||
.menubar-menu-container,
|
.menubar-menu-container,
|
||||||
.action-menu-item {
|
.action-menu-item {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
//モーダル・ドロップダウンの各種設定
|
//モーダル・ドロップダウンの各種設定
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered
|
// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered
|
||||||
|
return;
|
||||||
$('.modal').modal({
|
$('.modal').modal({
|
||||||
inDuration: 300,
|
inDuration: 300,
|
||||||
outDuration: 225,
|
outDuration: 225,
|
||||||
|
|
|
@ -573,7 +573,7 @@ function multiSelector(parseC) {
|
||||||
)
|
)
|
||||||
$('#dir-acct-sel').append('<option value="noauth">' + lang.lang_login_noauth + '</option>')
|
$('#dir-acct-sel').append('<option value="noauth">' + lang.lang_login_noauth + '</option>')
|
||||||
}
|
}
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
if (!parseC) {
|
if (!parseC) {
|
||||||
parseColumn(null, true)
|
parseColumn(null, true)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1007,7 +1007,7 @@ function multisel() {
|
||||||
$('.acct-sel').append(template)
|
$('.acct-sel').append(template)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
}
|
}
|
||||||
function mainacct() {
|
function mainacct() {
|
||||||
var acct_id = $('#main-acct-sel').val()
|
var acct_id = $('#main-acct-sel').val()
|
||||||
|
|
|
@ -154,7 +154,7 @@ async function media(b64, type, no, stamped) {
|
||||||
$('#nsfw').addClass('nsfw-avail')
|
$('#nsfw').addClass('nsfw-avail')
|
||||||
}
|
}
|
||||||
$('.toot-btn-group').prop('disabled', false)
|
$('.toot-btn-group').prop('disabled', false)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#mec').text(lang.lang_there)
|
$('#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 })
|
M.toast({ html: '<span>' + lang.lang_postimg_sync + '</span><button class="btn-flat toast-action" onclick="syncDetail()">Click</button>', displayLength: 3000 })
|
||||||
$('#imgup').text('')
|
$('#imgup').text('')
|
||||||
|
@ -176,7 +176,7 @@ async function media(b64, type, no, stamped) {
|
||||||
if (this.status !== 200) {
|
if (this.status !== 200) {
|
||||||
setLog(start, this.status, json)
|
setLog(start, this.status, json)
|
||||||
$('.toot-btn-group').prop('disabled', false)
|
$('.toot-btn-group').prop('disabled', false)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#mec').text(lang.lang_there)
|
$('#mec').text(lang.lang_there)
|
||||||
M.toast({ html: this.status + ':' +json, displayLength: 2000 })
|
M.toast({ html: this.status + ':' +json, displayLength: 2000 })
|
||||||
$('#imgup').text('')
|
$('#imgup').text('')
|
||||||
|
@ -187,14 +187,14 @@ async function media(b64, type, no, stamped) {
|
||||||
$('#imgup').text('')
|
$('#imgup').text('')
|
||||||
$('.toot-btn-group').prop('disabled', false)
|
$('.toot-btn-group').prop('disabled', false)
|
||||||
$('#post-acct-sel').prop('disabled', false)
|
$('#post-acct-sel').prop('disabled', false)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#imgsel').show()
|
$('#imgsel').show()
|
||||||
M.toast({ html: lang.lang_postimg_failupload, displayLength: 5000 })
|
M.toast({ html: lang.lang_postimg_failupload, displayLength: 5000 })
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
$('#imgup').text('')
|
$('#imgup').text('')
|
||||||
$('.toot-btn-group').prop('disabled', false)
|
$('.toot-btn-group').prop('disabled', false)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#imgsel').show()
|
$('#imgsel').show()
|
||||||
var img = localStorage.getItem('img')
|
var img = localStorage.getItem('img')
|
||||||
if (json.type.indexOf('image') != -1) {
|
if (json.type.indexOf('image') != -1) {
|
||||||
|
|
|
@ -34,7 +34,7 @@ function renoteqt(id, acct_id) {
|
||||||
$('#rec').text('Renote')
|
$('#rec').text('Renote')
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('#post-acct-sel').prop('disabled', true)
|
$('#post-acct-sel').prop('disabled', true)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#textarea').attr('placeholder', lang.lang_misskeyparse_qt)
|
$('#textarea').attr('placeholder', lang.lang_misskeyparse_qt)
|
||||||
$('#textarea').focus()
|
$('#textarea').focus()
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ function misskeyreply(id, acct_id) {
|
||||||
$('#rec').text('Renote')
|
$('#rec').text('Renote')
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('#post-acct-sel').prop('disabled', true)
|
$('#post-acct-sel').prop('disabled', true)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#textarea').attr('placeholder', lang.lang_misskeyparse_qt)
|
$('#textarea').attr('placeholder', lang.lang_misskeyparse_qt)
|
||||||
$('#textarea').focus()
|
$('#textarea').focus()
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ function reactioncustom(acct_id, id) {
|
||||||
$('#unreact').hide()
|
$('#unreact').hide()
|
||||||
$('#addreact').removeClass('hide')
|
$('#addreact').removeClass('hide')
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
localStorage.setItem('nohide', true)
|
localStorage.setItem('nohide', true)
|
||||||
show()
|
show()
|
||||||
emojiToggle(true)
|
emojiToggle(true)
|
||||||
|
|
|
@ -347,7 +347,7 @@ function clear() {
|
||||||
$('#post-acct-sel').val(localStorage.getItem('main'))
|
$('#post-acct-sel').val(localStorage.getItem('main'))
|
||||||
}
|
}
|
||||||
$('#emoji').addClass('hide')
|
$('#emoji').addClass('hide')
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#default-emoji').show()
|
$('#default-emoji').show()
|
||||||
$('#unreact').show()
|
$('#unreact').show()
|
||||||
$('#addreact').addClass('hide')
|
$('#addreact').addClass('hide')
|
||||||
|
|
|
@ -428,7 +428,7 @@ function redraft(id, acct_id) {
|
||||||
var json = httpreq.response
|
var json = httpreq.response
|
||||||
$('#post-acct-sel').prop('disabled', true)
|
$('#post-acct-sel').prop('disabled', true)
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
mdCheck()
|
mdCheck()
|
||||||
var medias = $('[toot-id=' + id + ']').attr('data-medias')
|
var medias = $('[toot-id=' + id + ']').attr('data-medias')
|
||||||
var mediack = json.media_attachments[0]
|
var mediack = json.media_attachments[0]
|
||||||
|
|
|
@ -15,7 +15,7 @@ function re(id, ats_cm, acct_id, mode) {
|
||||||
$('#rec').text(lang.lang_yesno)
|
$('#rec').text(lang.lang_yesno)
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('#post-acct-sel').prop('disabled', true)
|
$('#post-acct-sel').prop('disabled', true)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
mdCheck()
|
mdCheck()
|
||||||
$('#textarea').attr('placeholder', lang.lang_usetxtbox_reply)
|
$('#textarea').attr('placeholder', lang.lang_usetxtbox_reply)
|
||||||
$('#textarea').focus()
|
$('#textarea').focus()
|
||||||
|
@ -65,7 +65,7 @@ function qt(id, acct_id, at, url) {
|
||||||
$('#quote').val(id)
|
$('#quote').val(id)
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('#post-acct-sel').prop('disabled', true)
|
$('#post-acct-sel').prop('disabled', true)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
$('#textarea').attr('placeholder', lang.lang_usetxtbox_reply)
|
$('#textarea').attr('placeholder', lang.lang_usetxtbox_reply)
|
||||||
$('#textarea').focus()
|
$('#textarea').focus()
|
||||||
var profimg = localStorage.getItem('prof_' + acct_id)
|
var profimg = localStorage.getItem('prof_' + acct_id)
|
||||||
|
@ -75,7 +75,7 @@ function qt(id, acct_id, at, url) {
|
||||||
$('#acct-sel-prof').attr('src', profimg)
|
$('#acct-sel-prof').attr('src', profimg)
|
||||||
}
|
}
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
mdCheck()
|
mdCheck()
|
||||||
$('#textarea').focus()
|
$('#textarea').focus()
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ function announReactionNew(id, acct_id, tlid) {
|
||||||
$('#unreact').hide()
|
$('#unreact').hide()
|
||||||
$('#addreact').removeClass('hide')
|
$('#addreact').removeClass('hide')
|
||||||
$('#post-acct-sel').val(acct_id)
|
$('#post-acct-sel').val(acct_id)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
localStorage.setItem('nohide', true)
|
localStorage.setItem('nohide', true)
|
||||||
show()
|
show()
|
||||||
emojiToggle(true)
|
emojiToggle(true)
|
||||||
|
|
|
@ -656,7 +656,7 @@ function ctLoadCore(args) {
|
||||||
$('#custom-sel-sel').html(templete)
|
$('#custom-sel-sel').html(templete)
|
||||||
templete = '<option value="add_new">' + $('#edit-selector').attr('data-add') + '</option>' + templete
|
templete = '<option value="add_new">' + $('#edit-selector').attr('data-add') + '</option>' + templete
|
||||||
$('#custom-edit-sel').html(templete)
|
$('#custom-edit-sel').html(templete)
|
||||||
$('select').formSelect()
|
//$('select').formSelect()
|
||||||
}
|
}
|
||||||
function customSel() {
|
function customSel() {
|
||||||
var id = $('#custom-sel-sel').val()
|
var id = $('#custom-sel-sel').val()
|
||||||
|
|
|
@ -1724,10 +1724,10 @@
|
||||||
<script type="text/javascript" src="../../@@node_base@@/jquery/dist/jquery.js"></script>
|
<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="../../js/platform/first.js"></script>
|
||||||
<script type="text/javascript" src="../../@@node_base@@/grapheme-splitter/index.js"></script>
|
<script type="text/javascript" src="../../@@node_base@@/grapheme-splitter/index.js"></script>
|
||||||
<script
|
<!--script
|
||||||
type="text/javascript"
|
type="text/javascript"
|
||||||
src="../../@@node_base@@/materialize-css/dist/js/materialize.js"
|
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="../../@@node_base@@/lodash/lodash.min.js"></script>
|
||||||
<script type="text/javascript" src="main.js"></script>
|
<script type="text/javascript" src="main.js"></script>
|
||||||
<script type="text/javascript" src="../../js/common/time.js"></script>
|
<script type="text/javascript" src="../../js/common/time.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user