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

Function toggleLevel

docs/html/dynsections.js:51–70  ·  view source on GitHub ↗
(level)

Source from the content-addressed store, hash-verified

49}
50
51function toggleLevel(level)
52{
53 $('table.directory tr').each(function() {
54 var l = this.id.split('_').length-1;
55 var i = $('#img'+this.id.substring(3));
56 var a = $('#arr'+this.id.substring(3));
57 if (l<level+1) {
58 i.removeClass('iconfopen iconfclosed').addClass('iconfopen');
59 a.html('&#9660;');
60 $(this).show();
61 } else if (l==level+1) {
62 i.removeClass('iconfclosed iconfopen').addClass('iconfclosed');
63 a.html('&#9658;');
64 $(this).show();
65 } else {
66 $(this).hide();
67 }
68 });
69 updateStripes();
70}
71
72function toggleFolder(id)
73{

Callers

nothing calls this directly

Calls 1

updateStripesFunction · 0.85

Tested by

no test coverage detected