add dev
This commit is contained in:
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<body class="h-100">
|
<body class="h-100">
|
||||||
<div class="container h-100">
|
<div class="container h-100">
|
||||||
|
<div id="dev-marker" class="d-flex justify-content-start pt-3"></div>
|
||||||
<div class="d-flex justify-content-end pt-3">
|
<div class="d-flex justify-content-end pt-3">
|
||||||
<button class="btn btn-primary" type="button" id="reset-button"><i class="fas fa-sync"></i> Сбросить</button>
|
<button class="btn btn-primary" type="button" id="reset-button"><i class="fas fa-sync"></i> Сбросить</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -127,7 +127,6 @@ const getExample = () => {
|
|||||||
default:
|
default:
|
||||||
return isPlusMinusKind ? getMinusExample() : getDivisionExample();
|
return isPlusMinusKind ? getMinusExample() : getDivisionExample();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getDifficultyById = id => {
|
export const getDifficultyById = id => {
|
||||||
@ -323,3 +322,13 @@ resetButton.addEventListener(EVENTS.CLICK, () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
renderPage();
|
renderPage();
|
||||||
|
|
||||||
|
const markDev = () => {
|
||||||
|
if (['localhost', 'dev'].some(v => location.href.includes(v))) {
|
||||||
|
const marker = document.getElementById('dev-marker');
|
||||||
|
|
||||||
|
marker.innerText = 'DEVELOP';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
markDev();
|
||||||
|
|||||||
Reference in New Issue
Block a user