「sandbox/js/2」の編集履歴(バックアップ)一覧はこちら
sandbox/js/2 - (2019/03/30 (土) 12:57:41) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
#html2(){{{{{
<div id="test-style" style="display: none;"><!--
.zeb table
{
table-layout: fixed;
}
.actdsk fa-chevron-right,
.actdsk fa-chevron-down {
float: right;
padding-top: 5px;
padding-right: 10px;
}
.actdsk table tr:nth-child(n+2)
{
display: none;
}
--></div>
}}}}}
#js(){{{{{
<script type="text/javascript">
(function() {
for (var i = 0, root = document.getElementById('test-style'), nodes = root.childNodes; i < nodes.length; i++) {
if (nodes[i].nodeType === document.COMMENT_NODE) {
var elem = document.createElement('style');
elem.type = 'text/css';
elem.setAttribute('media', 'screen');
if (elem.styleSheet) elem.styleSheet.cssText = nodes[i].data;
else elem.appendChild(document.createTextNode(nodes[i].data));
document.getElementsByTagName('head').item(0).appendChild(elem);
root.parentNode.removeChild(root);
break;
}
}
})();
$(function() {
//let tr = $('.actdsk_open').text('宝具・スキルを開く▼').parent().parent();
//let tr2= tr.clone().appendTo(tr.parent());
//tr2.find('.actdsk_open').removeClass('actdsk_open').addClass('actdsk_close').text('宝具・スキルを閉じる▲');
//tr.addClass('actdsk_tropen');
//tr2.addClass('actdsk_trclose');
$('.actdsk table').on('click', 'tr:first', function(e) {
let arrow = $(this).find('.fa:first');
if (arrow) {
if (arrow.hasClass('fa-chevron-right')) {
arrow.removeClass('fa-chevron-right').addClass('fa-chevron-down');
$(this).nextAll().show();
} else {
arrow.removeClass('fa-chevron-down').addClass('fa-chevron-right');
$(this).nextAll().hide();
}
}
});
//$('.actdsk table').on('click', '.actdsk_trclose', function(e) {
// let t = $(this).siblings('.actdsk_tropen');
// t.show();
// t.nextAll().hide();
//});
});
</script>
}}}}}
#html2(){{{{{
<div id="test-style" style="display: none;"><!--
.zeb table
{
table-layout: fixed;
}
.actdsk .fa-chevron-right,
.actdsk .fa-chevron-down {
float: right;
padding-top: 5px;
padding-right: 10px;
}
.actdsk table tr:nth-child(n+2)
{
display: none;
}
--></div>
}}}}}
#js(){{{{{
<script type="text/javascript">
(function() {
for (var i = 0, root = document.getElementById('test-style'), nodes = root.childNodes; i < nodes.length; i++) {
if (nodes[i].nodeType === document.COMMENT_NODE) {
var elem = document.createElement('style');
elem.type = 'text/css';
elem.setAttribute('media', 'screen');
if (elem.styleSheet) elem.styleSheet.cssText = nodes[i].data;
else elem.appendChild(document.createTextNode(nodes[i].data));
document.getElementsByTagName('head').item(0).appendChild(elem);
root.parentNode.removeChild(root);
break;
}
}
})();
$(function() {
//let tr = $('.actdsk_open').text('宝具・スキルを開く▼').parent().parent();
//let tr2= tr.clone().appendTo(tr.parent());
//tr2.find('.actdsk_open').removeClass('actdsk_open').addClass('actdsk_close').text('宝具・スキルを閉じる▲');
//tr.addClass('actdsk_tropen');
//tr2.addClass('actdsk_trclose');
$('.actdsk table').on('click', 'tr:first', function(e) {
let arrow = $(this).find('.fa:first');
if (arrow) {
if (arrow.hasClass('fa-chevron-right')) {
arrow.removeClass('fa-chevron-right').addClass('fa-chevron-down');
$(this).nextAll().show();
} else {
arrow.removeClass('fa-chevron-down').addClass('fa-chevron-right');
$(this).nextAll().hide();
}
}
});
//$('.actdsk table').on('click', '.actdsk_trclose', function(e) {
// let t = $(this).siblings('.actdsk_tropen');
// t.show();
// t.nextAll().hide();
//});
});
</script>
}}}}}
Comments policy & Terms of Use
・ネタバレ自粛期間中はシナリオや真名のネタバレは禁止です!
ネタバレ自粛期間の文字列挿入箇所
・コメントの内容に準じたコメントフォームを利用しましょう!
※報告を扇動したり異なるフォームへの投稿が散見した場合、coや規制対応することがあります
・現在、異なる板へのガチャ報告に利用者が定型文で誘導を行えるようルール改定するか議論中です。
時間がありましたら賛成/反対だけで構わないのでレスの協力お願いします
閉じる