Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up app.'s and move page-specific code into their respective pages

  • Loading branch information...
commit 4ba4750ae2f7fa57a073d58f2a084e0a4610cbf1 1 parent ecbde15
@mhayes mhayes authored
Showing with 14 additions and 13 deletions.
  1. +2 −13 javascripts/app.js
  2. +12 −0 virtual-giving-holiday.php
View
15 javascripts/app.js
@@ -25,7 +25,7 @@
$(document).foundationTabs({callback:$.foundation.customForms.appendCustomMarkup});
$(document).tooltips();
- $('input, textarea').placeholder();
+ $("input, textarea").placeholder();
// UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids
// $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'left'});
@@ -35,24 +35,13 @@
});
$(window).load(function () {
- $('body').raptorize({
+ $("body").raptorize({
"enterOn" : "konami-code"
});
$("[data-sticky]").each(GivingTree.setInitialStickyNavOffset);
});
-
- $("[data-sticky]").each(function(idx,el){
- $(el).data("offset-top", $(el).offset().top);
- });
-
$(window).scroll(GivingTree.updateStickyNav);
- $('#holidaySlider').orbit({
- directionalNav: true,
- timer:false,
- fluid: true
-
- });
$("[data-sticky]").each(GivingTree.setInitialStickyNavOffset);
$(window).on("scroll.sticky-nav",GivingTree.updateStickyNav);
View
12 virtual-giving-holiday.php
@@ -56,4 +56,16 @@
</div>
</div>
+<?php content_for('footer', function() { ?>
+<script type="text/javascript">
+$(window).load(function(){
+ $("#holidaySlider").orbit({
+ directionalNav: true,
+ timer:false,
+ fluid: true
+ });
+});
+</script>
+<?php })?>
+
<?php include("includes/_footer.php"); ?>
Please sign in to comment.
Something went wrong with that request. Please try again.