MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / toggleVisibility

Function toggleVisibility

doc/html/dynsections.js:25–44  ·  view source on GitHub ↗
(linkObj)

Source from the content-addressed store, hash-verified

23 @licend The above is the entire license notice for the JavaScript code in this file
24 */
25function toggleVisibility(linkObj)
26{
27 var base = $(linkObj).attr('id');
28 var summary = $('#'+base+'-summary');
29 var content = $('#'+base+'-content');
30 var trigger = $('#'+base+'-trigger');
31 var src=$(trigger).attr('src');
32 if (content.is(':visible')===true) {
33 content.hide();
34 summary.show();
35 $(linkObj).addClass('closed').removeClass('opened');
36 $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
37 } else {
38 content.show();
39 summary.hide();
40 $(linkObj).removeClass('closed').addClass('opened');
41 $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
42 }
43 return false;
44}
45
46function updateStripes()
47{

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected