iOS Hover Fix / Double-Tap

How to fix the iOS double-tap problem on links with hover effects.

Distance Rampage Achievement unlocked

How to unlock rampage achievement in Distance.

How to find all links on a website

Open the developer console of your browser and run the following command: urls = document.querySelectorAll(‘a’); for (url in urls) console.log(urls[url].href);

Elementor – Customize Flatpickr (Date and Time)

jQuery(document).ready(function($) { function waitForFlatpicker(callback) { if (typeof window.flatpickr !== ‘function’) { setTimeout(function() { waitForFlatpicker(callback); }, 100); } callback(); } waitForFlatpicker(function() { if (typeof flatpickr === ‘undefined’) { return; } flatpickr.l10ns.de = { weekdays: { shorthand: [‘So’, ‘Mo’, ‘Di’, ‘Mi’, ‘Do’, ‘Fr’, ‘Sa’], longhand: [ ‘Sonntag’, ‘Montag’, ‘Dienstag’, ‘Mittwoch’, ‘Donnerstag’, ‘Freitag’, ‘Samstag’ ], }, months: { […]

WordPress User Roles – Allow editors to edit menus

Add the following lines to your themes functions.php $role_object = get_role(‘editor’); $role_object->add_cap(‘edit_theme_options’);

Detect scroll direction with plain JavaScript

var position = document.documentElement.scrollTop; document.addEventListener(‘scroll’, function() { var scroll = document.documentElement.scrollTop; if (scroll > position) { console.log(‘down’); } else { console.log(‘up’); } position = scroll; });

Open all external links in a new window

var externalLinks = document.querySelectorAll(‘a’); function handleExternalLinks(e) { e.preventDefault(); window.open(this.href); } externalLinks.forEach(function(externalLink) { if(externalLink.host !== location.host) { externalLink.addEventListener(‘click’, handleExternalLinks); } });

Blank HTML5 Template

Just a blank HTML5 template. You can use it as boilerplate or whatever you want.

.htaccess force SSL

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Google Analytics – “not provided” Filter

…unter “Datenansicht” auf “Filter” klicken und “Filter hinzufügen” wählen. Folgende Einstellungen übernehmen: Filtername: “not provided” (oder so ähnlich) Filtertyp: Benutzerdefiniert » Erweitert Feld A -> A extrahieren » Kampagnenbegriff: “(.not provided.)“ Feld B -> B extrahieren » Anforderungs-URI: “(.*)“ Ausgabe in -> Konstruktor » Kampagnenbegriff: “np – $B1“ Feld A erforderlich: aktivieren Feld B erforderlich: […]