Skip to content

Instantly share code, notes, and snippets.

const list = [
// EU 27:
"AT", "Austria",
"BE", "Belgium",
"BG", "Bulgaria",
"HR", "Croatia",
"CY", "Cyprus",
"CZ", "Czech Republic",
"DK", "Denmark",
"EE", "Estonia",
@Andyrei
Andyrei / PinchScrollZoom.js
Last active October 15, 2024 15:27
Pinch Scroll Zoom for a media
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).
@Andyrei
Andyrei / History\-104808f5\IHfr.json
Last active November 30, 2022 14:19
Visual Studio Code Settings Sync Gist
{
"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",