forked from foundation/foundation-sites
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
84 changed files
with
1,877 additions
and
6,231 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source :rubygems | ||
|
||
gem "jammit", "~> 0.6.5" |
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
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,94 @@ | ||
$(document).ready(function() { | ||
$(document).ready(function () { | ||
|
||
/* Use this js doc for all application specific JS */ | ||
|
||
/* TABS --------------------------------- */ | ||
/* Remove if you don't need :) */ | ||
|
||
var tabs = $('dl.tabs'); | ||
tabsContent = $('ul.tabs-content') | ||
|
||
tabs.each(function(i) { | ||
|
||
function activateTab($tab) { | ||
var $activeTab = $tab.closest('dl').find('a.active'), | ||
contentLocation = $tab.attr("href") + 'Tab'; | ||
|
||
//Make Tab Active | ||
$activeTab.removeClass('active'); | ||
$tab.addClass('active'); | ||
|
||
//Show Tab Content | ||
$(contentLocation).closest('.tabs-content').children('li').hide(); | ||
$(contentLocation).css('display', 'block'); | ||
} | ||
|
||
$('dl.tabs').each(function () { | ||
//Get all tabs | ||
var tab = $(this).children('dd').children('a'); | ||
tab.click(function(e) { | ||
|
||
//Get Location of tab's content | ||
var contentLocation = $(this).attr("href") | ||
contentLocation = contentLocation + "Tab"; | ||
|
||
//Let go if not a hashed one | ||
if(contentLocation.charAt(0)=="#") { | ||
|
||
e.preventDefault(); | ||
|
||
//Make Tab Active | ||
tab.removeClass('active'); | ||
$(this).addClass('active'); | ||
|
||
//Show Tab Content | ||
$(contentLocation).parent('.tabs-content').children('li').css({"display":"none"}); | ||
$(contentLocation).css({"display":"block"}); | ||
|
||
} | ||
var tabs = $(this).children('dd').children('a'); | ||
tabs.click(function (e) { | ||
activateTab($(this)); | ||
}); | ||
}); | ||
|
||
|
||
|
||
if (window.location.hash) { | ||
activateTab($('a[href="' + window.location.hash + '"]')); | ||
} | ||
|
||
/* ALERT BOXES ------------ */ | ||
$(".alert-box").delegate("a.close", "click", function(event) { | ||
event.preventDefault(); | ||
$(this).closest(".alert-box").fadeOut(function(event){ | ||
$(this).remove(); | ||
}); | ||
}); | ||
|
||
|
||
/* PLACEHOLDER FOR FORMS ------------- */ | ||
/* Remove this and jquery.placeholder.min.js if you don't need :) */ | ||
|
||
$('input, textarea').placeholder(); | ||
|
||
|
||
|
||
/* TOOLTIPS ------------ */ | ||
$(this).tooltips(); | ||
|
||
|
||
|
||
/* UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE6/7/8 SUPPORT AND ARE USING .block-grids */ | ||
// $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'left'}); | ||
// $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'left'}); | ||
// $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'left'}); | ||
// $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'left'}); | ||
|
||
|
||
|
||
/* DROPDOWN NAV ------------- */ | ||
|
||
var lockNavBar = false; | ||
$('.nav-bar a.flyout-toggle').live('click', function(e) { | ||
e.preventDefault(); | ||
var flyout = $(this).siblings('.flyout'); | ||
if (lockNavBar === false) { | ||
$('.nav-bar .flyout').not(flyout).slideUp(500); | ||
flyout.slideToggle(500, function(){ | ||
lockNavBar = false; | ||
}); | ||
} | ||
lockNavBar = true; | ||
}); | ||
if (Modernizr.touch) { | ||
$('.nav-bar>li.has-flyout>a.main').css({ | ||
'padding-right' : '75px' | ||
}); | ||
$('.nav-bar>li.has-flyout>a.flyout-toggle').css({ | ||
'border-left' : '1px dashed #eee' | ||
}); | ||
} else { | ||
$('.nav-bar>li.has-flyout').hover(function() { | ||
$(this).children('.flyout').show(); | ||
}, function() { | ||
$(this).children('.flyout').hide(); | ||
}) | ||
} | ||
|
||
|
||
/* DISABLED BUTTONS ------------- */ | ||
/* Gives elements with a class of 'disabled' a return: false; */ | ||
}); | ||
|
||
}); |
Oops, something went wrong.