MCPcopy Create free account
hub / github.com/deanveloper/SkullCreator / show

Function show

docs/script.js:48–63  ·  view source on GitHub ↗
(tableId, selected, columns)

Source from the content-addressed store, hash-verified

46}
47
48function show(tableId, selected, columns) {
49 if (tableId !== selected) {
50 document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')')
51 .forEach(function(elem) {
52 elem.style.display = 'none';
53 });
54 }
55 document.querySelectorAll('div.' + selected)
56 .forEach(function(elem, index) {
57 elem.style.display = '';
58 var isEvenRow = index % (columns * 2) < columns;
59 elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor);
60 elem.classList.add(isEvenRow ? evenRowColor : oddRowColor);
61 });
62 updateTabs(tableId, selected);
63}
64
65function updateTabs(tableId, selected) {
66 document.querySelector('div#' + tableId +' .summary-table')

Callers

nothing calls this directly

Calls 1

updateTabsFunction · 0.85

Tested by

no test coverage detected