Skip to content

Commit 6aaf2fa

Browse files
committed
use toggle
Signed-off-by: Doug Davis <[email protected]>
1 parent 066c9d7 commit 6aaf2fa

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

registry/httpStuff.go

+9-5
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@ func (pw *PageWriter) Done() {
606606
border-radius: 5px ;
607607
background-color: lightgrey ;
608608
margin-right: 2px ;
609-
font-family: menlo ;
609+
font-family: menlo ;
610+
font-size: 16px ;
610611
}
611612
612613
.spc {
@@ -631,7 +632,7 @@ func (pw *PageWriter) Done() {
631632
// background-color: lightsteelblue ; // #e7eff7 ;
632633
color: black ;
633634
// font-weight: bold ;
634-
font-family: menlo ;
635+
font-family: menlo ;
635636
font-size: medium ;
636637
overflow: hidden ;
637638
line-height: 10px ;
@@ -663,7 +664,7 @@ func (pw *PageWriter) Done() {
663664
<div id=buttonList>
664665
`+filters+`
665666
`+inlines+`
666-
`+apply+`
667+
`+apply+`
667668
</div>
668669
<div style="height:12px"></div> <!-- buffer for "Commmit:" line -->
669670
<div id=commit><a target=_blank
@@ -712,6 +713,10 @@ function apply() {
712713
713714
function toggleExp(elem, exp) {
714715
if ( !elem ) {
716+
elem = document.getElementById("expAll")
717+
exp = (elem.show == true)
718+
elem.show = !exp
719+
elem.innerHTML = (exp ? '`+HTML_MIN+`' : '`+HTML_EXP+`')
715720
for ( var i = 1 ;; i++ ) {
716721
elem = document.getElementById("s"+i)
717722
if ( !elem ) return false
@@ -755,8 +760,7 @@ function dokeydown(event) {
755760
<b>Path:</b> `+urlPath+`
756761
</div>
757762
<div id=myOutput tabindex=0 onkeydown=dokeydown(event)><div class=expandAll>
758-
<span class=expandBtn title="Collapse all" onclick=toggleExp(null,false)>`+HTML_MIN+`</span>
759-
<span class=expandBtn title="Expand all" onclick=toggleExp(null,true)>`+HTML_EXP+`</span>
763+
<span id=expAll class=expandBtn title="Collapse/Expand all" onclick=toggleExp(null,false)>`+HTML_MIN+`</span>
760764
</div><div id='text'>%s</div></div> <!--myOutput-->
761765
</div> <!--right-->
762766

0 commit comments

Comments
 (0)