http://ln.hixie.ch/?start=1037910467&count=1
http://ln.hixie.ch/?start=1137740632&count=1
/* global $, _ */ | |
var TemplateManager = {}; | |
(function () { | |
'use strict'; | |
var cache = {}; | |
TemplateManager.template = function (path) { |
<!-- switch to htts if available --> | |
<a href="javascript:(function(){if(location.protocol!='https:'){location.href='https:'+window.location.href.substring(window.location.protocol.length);}})();">HTTPS Switcher</a> |
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
/** | |
* Return a timestamp with the format "m/d/yy h:MM:ss TT" | |
* @type {Date} | |
*/ | |
function timeStamp() { | |
// Create a date object with the current time | |
var now = new Date(); | |
// Create an array with the current month, day and time |
<!-- include jQuery --> | |
<script> | |
$('form').find('input:text').val( function(i, val) { | |
return $(this).attr('name'); | |
}); | |
$('form').find('select').each( function(a) { | |
$(this).find('option').each( function(b) { | |
if ( $(this).val() !== '' ) { | |
$(this).parent().val( $(this).val() ); |
/* 1. write it out for older browsers */ | |
/* 2. use the vendor prefix for webkit */ | |
/* 3. use the vendor prefix for moz */ | |
/* 4. include the un-prefixed version last */ | |
#foo { | |
width: 200px; | |
width: -webkit-calc(50% - 100px); | |
width: -moz-calc(50% - 100px); | |
width: calc(50% - 100px); |
const testModule = (() => { | |
let counter = 0; | |
return { | |
incrementCounter() { | |
return counter++; | |
}, | |
// Validation method for US currency | |
$.validator.addMethod("currency", function (value, element) { | |
return this.optional(element) || /^\$(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$/.test(value); | |
}, "Please specify a valid amount"); |