This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch('/shop-front-template-1/public/css/app.css').then(t => t.text()).then(css => { | |
let classes = {}; | |
let elements = Array.from(document.querySelectorAll('*')); | |
for (let i = 0; i < elements.length; i++) { | |
let element = elements[i] | |
let classes_ = Array.from(element.classList); | |
for (let j = 0; j < classes_.length; j++) { | |
classes[classes_[j]] = true; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if ($paginator->hasPages()) | |
<?php | |
if (sizeof($elements[0]) === 2) { | |
unset($elements[0][array_key_last($elements[0])]); | |
} | |
if (sizeof($elements[4]) === 2) { | |
unset($elements[4][array_key_first($elements[4])]); | |
} | |
?> |