game/js/registrationTraining/features/changeStylesForRelines.js

12 lines
314 B
JavaScript

/**
* @param {boolean} showRelines
*/
export const changeStylesForRelines = (showRelines) => {
const $relineX = document.getElementById('reline1');
const $relineY = document.getElementById('reline2');
$relineX.style.zIndex = showRelines ? 1001 : -1;
$relineY.style.zIndex = showRelines ? 1000 : -1;
};