This file contains hidden or 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
/* | |
* This Module adds the ability to :focus on divs that are linked to from | |
* the .skip-links section with a hash href. | |
*/ | |
app.skipLinks = (function($){ | |
'use strict'; | |
//A list of all skip-link hashes | |
var hashes = []; |
This file contains hidden or 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
/* | |
* Close the thing and bind close listeners | |
*/ | |
function closeThing(){ | |
//Do some stuff | |
//Unbind close listeners | |
$(document).off('keyup.closeThing').off('click.closeThing'); | |
} |
This file contains hidden or 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
// | |
//implements theme_date_display_range() | |
//A more human friendly date range | |
//Example output: | |
//Oct 8 to 15, 2015 | |
//Oct 8 to Nov 3, 2015 | |
//Oct 8, 2015 to Jan 3, 2016 | |
function dnv_date_display_range($variables) { | |
$timezone = $variables['timezone']; | |
$attributes_start = $variables['attributes_start']; |
This file contains hidden or 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
//Test if browser supports position fixed and transforms in combination | |
//http://stackoverflow.com/questions/18572488/transform-doesnt-work-on-position-fixed-divs-on-android | |
Modernizr.addTest('fixedtransforms', function(){ | |
var css = '#modernizr { position: fixed; top: 0; left: 10px; width: 100%; height: 50px; -moz-transform: transformX(-20px); -ms-transform: translateX(-20px); -webkit-transform: translateX(-20px); transform: translateX(-20px); }'; | |
return Modernizr.testStyles(css, function(element, rule){ | |
//NOTE: Android gives false positives | |
return navigator.userAgent.indexOf('Android 4.1') === -1 && | |
navigator.userAgent.indexOf('Android 2.') === -1 && | |
element.getBoundingClientRect().left === -10; |
This file contains hidden or 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
/* | |
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. | |
For licensing, see LICENSE.html or http://ckeditor.com/license | |
*/ | |
/* | |
WARNING: clear browser's cache after you modify this file. | |
If you don't do this, you may notice that browser is ignoring all your changes. | |
*/ | |
CKEDITOR.editorConfig = function(config) { |
This file contains hidden or 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
/* | |
* This file is used/requested by the 'Styles' button. | |
* The 'Styles' button is not enabled by default in DrupalFull and DrupalFiltered toolbars. | |
*/ | |
if(typeof(CKEDITOR) !== 'undefined') { | |
CKEDITOR.addStylesSet( 'drupal', | |
[ | |
/* Block Styles */ |
This file contains hidden or 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
uglify: { | |
options: { | |
banner: '<%= banner %>', | |
compress: { | |
//THE MAGIC HAPPENS HERE | |
drop_console: true, | |
drop_debugger: true | |
} | |
}, | |
dist: { |
NewerOlder