A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| import os | |
| import arrow | |
| import urllib | |
| import zipfile | |
| import time | |
| # get times | |
| timezone = 'Europe/Amsterdam' | |
| timestamp_format = 'YYYY-MM-DD_HH-mm-ss' | |
| log_timestamp_format = "YYYY-MM-DD HH:mm:ss.SSS ZZ" |
| <?php | |
| // Goes into functions.php | |
| function fwp_theme_fix() { | |
| ?> | |
| <script> | |
| (function($) { | |
| $(document).on('facetwp-loaded', function() { | |
| $('.iso-grid').addClass('cont-id-0').isotope(); | |
| $('.wf-cell').addClass('shown'); |
| # for neater URLS like /{text}/{size}/{bg} | |
| RewriteEngine on | |
| RewriteRule ^img/([^/]+)/(\d+)/([a-fA-F0-9]{6})$ i/index.php?text=$1&size=$2&bg=$3 [NC,QSA] | |
| RewriteRule ^img/([^/]+)/(\d+)$ i/index.php?text=$1&size=$2 [NC,QSA] | |
| RewriteRule ^img/([^/]+)$ i/index.php?text=$1 [NC,QSA] | |
| RewriteRule ^img/([^/]+)/.+$ i/index.php?text=$1 [NC,QSA] |
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa