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
function pageNotTop() { | |
var notTop = false; | |
var body = jQuery('body'); | |
jQuery(document).scroll(function() { | |
if (jQuery(document).scrollTop() > 0) { | |
if (!notTop) { | |
notTop = true; | |
body.addClass('not-top'); | |
} | |
} else { |
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
/* Generic dropdown script */ | |
$.fn.edaDropdown = function() { | |
var dropDowns = this; | |
dropDowns.each(function( index, element ) { | |
jQuery(this).find('> span').click(function(e){ | |
e.stopPropagation(); | |
var currentOpen = false; | |
var a = jQuery(this); | |
if (a.parent().hasClass('open')) { | |
currentOpen = true; |
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
@mixin drop-down($background: #fff, $textColor: #000, $borderColor: #ccc) { | |
display: inline-block; | |
border: none; | |
position: relative; | |
background-color: $background; | |
margin-right: 23px; | |
> span { | |
color: $textColor; | |
padding: 12px 42px 12px 15px; | |
font-size: 16px; |
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
Patch the fancybox js file to make it work with jQuery v1.9.0 as follow : | |
Open the jquery.fancybox-1.3.4.js file (full version, not pack version) with a text/html editor. | |
Find around the line 29 where it says : | |
isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest, | |
and replace it by (EDITED March 19, 2013: more accurate filter): | |
isIE6 = navigator.userAgent.match(/msie [6]/i) && !window.XMLHttpRequest, | |
UPDATE (March 19, 2013): Also replace $.browser.msie by navigator.userAgent.match(/msie [6]/i) around line 615 (and/or replace all $.browser.msie instances, if any), thanks joofow ... that's it! |