This file contains hidden or 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
const list = [ | |
// EU 27: | |
"AT", "Austria", | |
"BE", "Belgium", | |
"BG", "Bulgaria", | |
"HR", "Croatia", | |
"CY", "Cyprus", | |
"CZ", "Czech Republic", | |
"DK", "Denmark", | |
"EE", "Estonia", |
This file contains hidden or 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
document.addEventListener("DOMContentLoaded", () => { | |
const container = document.getElementById("container"); | |
const scrollZoom = new ScrollZoom(container, 5, 0.5); | |
}); | |
/** | |
* ScrollZoom constructor function to enable zooming with mouse scroll and pinch gestures. | |
* @param {HTMLElement} container - The wrapper of the element to be zoomed. | |
* @param {number} maxScale - The maximum scale for zoom (e.g., 4 = 400% zoom). | |
* @param {number} factor - The zoom-speed factor (e.g., 1 = 100% zoom per scroll tick). |
This file contains hidden or 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
{ | |
"name": "laravel/laravel", | |
"type": "project", | |
"description": "The Laravel Framework.", | |
"keywords": ["framework", "laravel"], | |
"license": "MIT", | |
"require": { | |
"php": "^8.0.2", | |
"guzzlehttp/guzzle": "^7.2", | |
"laravel/framework": "^7.0", |