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
// Source : http://stackoverflow.com/a/17789929 | |
// Patch since PhantomJS does not implement click() on HTMLElement. In some | |
// cases we need to execute the native click on an element. However, jQuery's | |
// $.fn.click() does not dispatch to the native function on <a> elements, so we | |
// can't use it in our implementations: $el[0].click() to correctly dispatch. | |
if (!HTMLElement.prototype.click) { | |
HTMLElement.prototype.click = function() { | |
var ev = document.createEvent('MouseEvent'); | |
ev.initMouseEvent( | |
'click', |
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
<!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
/*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
/*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
//RM: Before using check why it's not including 'only screen and (min-resolution: ' + num + 'dppx)' or the window property.. | |
// Device Pixel Density | |
// High res devices should have devicePixelRatio and a pixel density around 2, otherwise assume low res | |
// http://www.robertprice.co.uk/robblog/archive/2011/5/Detecting_Retina_Displays_From_JavaScript_And_CSS.shtml | |
// http://bradbirdsall.com/mobile-web-in-high-resolution | |
// http://www.w3.org/blog/CSS/2012/06/14/unprefix-webkit-device-pixel-ratio/ | |
// by @matthewlein |
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
http://blog.jcoglan.com/2013/11/15/why-github-is-not-your-cv/ |
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
/* | |
SublimeLinter user settings | |
*/ | |
{ | |
"jshint_options": | |
{ | |
// To fix column positions for JSHint errors you may want to add `"indent": 1` to your | |
// **User** "jshint_options". This issue affects users with tabs for indentation. | |
// This fix was reverted due to a conflict with using the `"white": true` option. | |
// "indent": 1, |
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
@include keyframes(slideInAccordion) { | |
0% { | |
min-height: 0; | |
max-height: 0; | |
display: none; | |
} | |
1% { | |
min-height: 0; | |
max-height: 0; |