This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint bitwise: true, eqeqeq: true, passfail: false, nomen: false, plusplus: false, undef: true, evil: true */ | |
/*global window, document, $, jQuery, LBI, self, Modernizr, setTimeout, define, require */ | |
define("utils/placeholder-shim", function () { | |
var hasPlaceholder, | |
placeHolderClass = 'showing-placeholder'; | |
function testForPlaceholder (){ | |
var i = document.createElement('input'); | |
return 'placeholder' in i; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint bitwise: true, eqeqeq: true, passfail: false, nomen: false, plusplus: false, undef: true, evil: true */ | |
/*global window, document, $, jQuery, LBI, self, Modernizr, setTimeout, define, require */ | |
define(['validate', 'createFormError' ], function (validateInclude, createFormError) { | |
var validationInitialized = false, | |
isSelectValid = 'is-select-valid', | |
isSelectValidMobile = 'is-select-valid-mobile', | |
validationDefaults = { | |
errorClass: "has-error", | |
validClass: "is-valid-marker", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Trident Test</title> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function centerOnLatLng(center) { | |
var map = this.map, | |
bounds = map.getBounds(), | |
ne = bounds.getNorthEast(), | |
sw = bounds.getSouthWest(), | |
neLatDif, swLatDif, | |
neLonDif, swLonDif, | |
newBoundary = new google.maps.LatLngBounds(); | |
//Lat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// given relative path test/fixtures/ to karma | |
// Important: These paths must be exposed in karma.conf.js | |
var path = ''; | |
if (typeof window.__karma__ !== 'undefined') { | |
path += 'base/'; | |
} | |
jasmine.getFixtures().fixturesPath = path + 'test/fixtures'; | |
jasmine.getJSONFixtures().fixturesPath = path + 'test/fixtures'; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require("express"), | |
serveIndex = require('serve-index'), | |
connectSSI = require('connect-ssi'), | |
app = module.exports = express(); | |
// serve directory listings | |
app.use(serveIndex(__dirname, {'icons': true})); | |
//catch shtml files and parse them | |
app.use(connectSSI({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Loose Lorem Ipsum replacer | |
*/ | |
(function(window, document, $, undefined) { | |
'use strict'; | |
var loremIpsum = ["lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit", "sed", "do", "eiusmod", "tempor", "incididunt", "ut", "labore", "et", "dolore", "magna", "aliqua", "ut", "enim", "ad", "minim", "veniam", "quis", "nostrud", "exercitation", "ullamco", "laboris", "nisi", "aliquip", "ex", "ea", "commodo", "consequat", "duis", "aute", "irure", "in", "reprehenderit", "voluptate", "velit", "esse", "cillum", "eu", "fugiat", "nulla", "pariatur", "excepteur", "sint", "occaecat", "cupidatat", "non", "proident", "sunt", "culpa", "qui", "officia", "deserunt", "mollit", "anim", "id", "est", "laborum", "at", "vero", "eos", "et", "accusamus", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "similique", "sunt", "in" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
var path = require('path'); | |
grunt.initConfig({ | |
//... | |
express : { | |
options : { | |
port : 80, | |
hostname : '*', | |
server : path.resolve(__dirname, 'server.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generate the tick values for a given axis | |
* Reference: https://github.com/mbostock/d3/blob/master/src/svg/axis.js | |
*/ | |
function getAxisTicks(axis) { | |
var scale1 = axis.scale(), | |
tickArguments_ = axis.ticks(), | |
tickValues = axis.tickValues(), | |
ticks; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Take a basic template and return a populated result | |
* Required until our use of mustache is greenlit | |
*/ | |
var Renderer = function () { | |
var startPattern = '{{', | |
endPattern = '}}', | |
tagPattern = /\{\{([#,\/])([\w,.]*\}\})/, //matches all opening or closing list tags | |
instance = this; |
OlderNewer