mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2024-12-23 01:03:34 +01:00
13 lines
375 B
JavaScript
13 lines
375 B
JavaScript
|
SIZE_STEPS = [30, 50, 67, 80, 90, 100, 110, 120, 133, 150, 170, 200, 240, 300];
|
||
|
|
||
|
currSize = SIZE_STEPS.indexOf(100)
|
||
|
|
||
|
/** Changes the size of the lyrics and chords. */
|
||
|
function size(steps) {
|
||
|
if (steps === 0) {
|
||
|
currSize = SIZE_STEPS.indexOf(100);
|
||
|
}
|
||
|
currSize += steps;
|
||
|
document.getElementById('wholeSongDiv').style.fontSize = SIZE_STEPS[currSize] + '%';
|
||
|
}
|