MCPcopy Create free account
hub / github.com/PowerBroker2/DFPlayerMini_Fast / toggleVisibility

Function toggleVisibility

docs/html/dynsections.js:24–43  ·  view source on GitHub ↗
(linkObj)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected