mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 02:00:48 +01:00
refactor: update scroll script
This commit is contained in:
@@ -6,5 +6,5 @@ if (skinsElement) {
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
skinsElement.scrollLeft += (ev.deltaY + ev.deltaX);
|
skinsElement.scrollLeft += (ev.deltaY + ev.deltaX);
|
||||||
}
|
}
|
||||||
});
|
}, { passive: false });
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('bottom_scripts')
|
@push('bottom_scripts')
|
||||||
@vite('resources/js/vert-scroll.js')
|
@vite('resources/js/horizontal-scroll.js')
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
@php
|
@php
|
||||||
$description = $champion->name . " is a " . strtolower(implode('/', $champion->roles)) . " champion in League of Legends";
|
$description = $champion->name . " is a " . strtolower(implode('/', $champion->roles)) . " champion in League of Legends";
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('bottom_scripts')
|
@push('bottom_scripts')
|
||||||
@vite('resources/js/vert-scroll.js')
|
@vite('resources/js/horizontal-scroll.js')
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
@php
|
@php
|
||||||
$description = $skin->skin_name . " is a " . $skin->rarity . " tier skin for " . $skin->champion->name . " in League of Legends";
|
$description = $skin->skin_name . " is a " . $skin->rarity . " tier skin for " . $skin->champion->name . " in League of Legends";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export const hash = Math.floor(Math.random() * 90000) + 10000;
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
laravel({
|
laravel({
|
||||||
input: ['resources/css/app.css', 'resources/js/app.js', 'resources/js/lane-filter.js', 'resources/js/vert-scroll.js'],
|
input: ['resources/css/app.css', 'resources/js/app.js', 'resources/js/lane-filter.js', 'resources/js/horizontal-scroll.js'],
|
||||||
refresh: true,
|
refresh: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user