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
console.timeline(); | |
$('body').animate({ scrollTop: 2800 }, 12000, 'linear', function() { | |
console.timelineEnd(); | |
}); |
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) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
sass: { | |
files: ['sass/**/*.{scss,sass}','sass/_partials/**/*.{scss,sass}'], | |
tasks: ['sass:dist'] | |
}, | |
livereload: { | |
files: ['*.html', '*.php', 'js/**/*.{js,json}', 'css/*.css','img/**/*.{png,jpg,jpeg,gif,webp,svg}'], |
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
<div class="ff-worky">Works in Firefox.</div> | |
<div class="ff-no-worky">Does not work in Firefox.</div>> | |
<div class"base">base</div> | |
<div class"test">base64</div> |
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
/** | |
* Set divs to equal heights. | |
*/ | |
function equalheight(selector, bypassCheck) { | |
if (($(window).width() > 720) && ((bypassCheck == 1) || !(Modernizr.flexbox) || !(Modernizr.flexboxlegacy))) { | |
var maxHeight = 0; | |
$(selector).each(function(){ | |
if ($(this).height() > maxHeight) { | |
maxHeight = $(this).height(); | |
} |
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
<?php | |
/* | |
* Add level indicator css class to all menu items and menu links. | |
*/ | |
function THEME_menu_link(array $variables) { | |
$element = $variables['element']; | |
$sub_menu = ''; | |
$element['#attributes']['class'][] = 'menu-item menu-item--level' . $element['#original_link']['depth']; |
NewerOlder