Fix LESS import error and refactor project structure

This commit is contained in:
kirill.khorkov
2026-01-03 18:59:56 +03:00
parent 1bb0fc02e6
commit 4a8d4f8c3f
201 changed files with 891 additions and 14311 deletions

View File

@@ -47,16 +47,16 @@
<?= \App\Core\View::partial('footer') ?>
<script>
function showNotification(message, type = 'success') {
const notification = $('#notification');
function showNotification(message, type) {
type = type || 'success';
var notification = $('#notification');
notification.text(message);
notification.removeClass('success error').addClass(type + ' show');
setTimeout(function() { notification.removeClass('show'); }, 3000);
}
$(document).ready(function() {
// Обновляем счетчик корзины
$.get('/cite_practica/cart/count', function(response) {
$.get('/cart/count', function(response) {
if (response.success) {
$('.cart-count').text(response.cart_count);
}
@@ -65,4 +65,3 @@
</script>
</body>
</html>