User:Decomposer/common.js

// element with ID currentDate will receive the current time in ISO 8601 format var localTime = document.getElementById('localtime'); Date.prototype.toLocalISO = function { var tzo = -this.getTimezoneOffset, dif = tzo >= 0 ? '+' : '-',       pad = function(num) { var norm = Math.floor(Math.abs(num)); return (norm < 10 ? '0' : '') + norm; };   return this.getFullYear + '-' + pad(this.getMonth + 1) + '-' + pad(this.getDate) + 'T' + pad(this.getHours) + ':' + pad(this.getMinutes) + ':' + pad(this.getSeconds); };

var dt = new Date; localTime.innerHTML = dt.toLocalISO;

/////////////////////////////// /// HotCat shortcuts (function{function setShortCuts{if (!window.HotCat.addShortcuts) return; window.HotCat.addShortcuts({ // Do not modify above. Add your shortcuts below // Shortcut : Replacement, both inside single quotes. If the replacement shall contain a single quote, write it as \'

// ADD YOUR SHORTCUTS HERE. DO NOT FORGET THE COMMA AT THE END OF EACH LINE.

'ww':'Wild World', 'cf':'City Folk', 'nl':'New Leaf', 'wa':'Welcome amiibo', 'hhd':'Happy Home Designer', 'amf':'Amiibo Festival', 'nh':'New Horizons',

// Do not modify below ' ':""});} if (window.HotCat && window.HotCat.runWhenReady) window.HotCat.runWhenReady(setShortCuts); else $('body').on('hotcatSetupCompleted',setShortCuts);});