From 69b062648773ae3879f88b12bda858d1d8d8d741 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Sun, 4 Aug 2013 17:11:22 +0200 Subject: [PATCH] alternate stylesheet for jtageditor --- layout/jtageditor.css | 5 +---- layout/jtageditor_blue.css | 11 +---------- tools/jtageditor.pl | 17 ++++++----------- 3 files changed, 8 insertions(+), 25 deletions(-) diff --git a/layout/jtageditor.css b/layout/jtageditor.css index 572f46d..cddc8c0 100644 --- a/layout/jtageditor.css +++ b/layout/jtageditor.css @@ -171,10 +171,7 @@ table.fields td.button_move_deac { visibility:collapse; } -.visiblebitfield { - background:#dea; - visibility:visible; -} + table.registers td.fieldcontainer { margin:0; diff --git a/layout/jtageditor_blue.css b/layout/jtageditor_blue.css index 6ae8076..29eefda 100644 --- a/layout/jtageditor_blue.css +++ b/layout/jtageditor_blue.css @@ -166,18 +166,9 @@ table.fields td.button_move_deac { font-variant:small-caps; } -.bitfield, .visiblebitfield { +.bitfield { background:#dea; visibility:collapse; - max-height:0px; - transition: all .4s; -} - -.visiblebitfield { - background:#dea; - visibility:visible; - max-height:600px; - transition: all .4s; } table.registers td.fieldcontainer { diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 4f384fc..43d7ffe 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -738,14 +738,12 @@ getdata('$me?print=fileSelection&configFile='+file_,'fileSelection',false); function toggleVis(elementId,t) { if(document.getElementById(elementId)){ -if( document.getElementById(elementId).style.class == "visiblebitfield") { - //document.getElementById(elementId).style.visibility = "collapse"; - document.getElementById(elementId).style.class = "bitfield"; +if( document.getElementById(elementId).style.visibility == "visible") { + document.getElementById(elementId).style.visibility = "collapse"; visHash[elementId]=false; t.innerHTML = " + "; } else { - //document.getElementById(elementId).style.visibility = "visible" ; - document.getElementById(elementId).style.class = "visiblebitfield"; + document.getElementById(elementId).style.visibility = "visible" ; visHash[elementId]=true; t.innerHTML = " − "; } @@ -753,22 +751,19 @@ if( document.getElementById(elementId).style.class == "visiblebitfield") { } function showElement(elementId) { if(document.getElementById(elementId)){ - //document.getElementById(elementId).style.visibility = "visible" ; - document.getElementById(elementId).class = "visiblebitfield"; + document.getElementById(elementId).style.visibility = "visible" ; visHash[elementId]=true; } } function hideElement(elementId) { if(document.getElementById(elementId)){ - //document.getElementById(elementId).style.visibility = "hidden" ; - document.getElementById(elementId).class = "bitfield"; + document.getElementById(elementId).style.visibility = "hidden" ; visHash[elementId]=false; } } function collapseElement(elementId) { if(document.getElementById(elementId)){ - //document.getElementById(elementId).style.visibility = "collapse" ; - document.getElementById(elementId).class = "bitfield"; + document.getElementById(elementId).style.visibility = "collapse" ; visHash[elementId]=false; } } -- 2.43.0