「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> }}}}}

表示オプション

横に並べて表示:
変化行の前後のみ表示: