MCPcopy Index your code
hub / github.com/stackgl/shader-school / select

Function select

lib/diff-ui.js:50–60  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

48
49 select('slide')
50 function select(mode) {
51 compare.mode = mode
52
53 buttons.forEach(function(button) {
54 button.classList.remove('selected')
55 })
56
57 el.querySelector('[data-mode="'+mode+'"]')
58 .classList
59 .add('selected')
60 }
61}

Callers 1

DiffUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected