game/js/registrationTraining/features/changeStylesForRelines.js

12 lines
314 B
JavaScript
Raw Normal View History

2022-12-19 20:22:19 +00:00
/**
* @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;
};