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
| // Better way | |
| function scrollToTarget(target, shift = 0, timing = 500) { | |
| $('html, body').animate({ | |
| scrollTop: $(target).offset().top + shift | |
| }, timing); | |
| } | |
| // Same as above but with IE friendly default parameters | |
| function scrollToTarget(target, shift, timing) { | |
| if (typeof shift == 'undefined') {shift = 0} |
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
| [[E130:"[[S8]]" "https://secure2.edf.org/site/" "" replaceall "http://support.edf.org/site/" "" replaceall "/" "-" replaceall ".html" "" replaceall "SPageServer?" "" replaceall "PageServer?" "" replaceall "SPageNavigator?" "" replaceall "PageNavigator?" "" replaceall "Donation2?" "" replaceall "Advocacy?" "" replaceall "SSurvey?" "" replaceall "Survey?" "" replaceall "MessageViewer?" "" replaceall "?" "-" replaceall "&" "_" replaceall]] |
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
| [[E130:"[[S120:dc:giftAmount]]" "$" "" replaceall]] |
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
| <script type="application/ld+json">// <![CDATA[ | |
| { | |
| "@context": "http://schema.org", | |
| "@type": "EmailMessage", | |
| "publisher": { | |
| "@type": "Organization", | |
| "name": "African Wildlife Foundation", | |
| "url": "http://www.awf.org", | |
| "url/googlePlus": "https://plus.google.com/+AfricanWildlifeFoundation" | |
| }, |
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
| /**document ready**/ | |
| $(document).ready(function () { | |
| /** scroll to element function **/ | |
| function scrollToElement(selector, time, verticalOffset) { | |
| time = typeof (time) != 'undefined' ? time : 500; | |
| verticalOffset = typeof (verticalOffset) != 'undefined' ? verticalOffset : 0; | |
| element = $(selector); | |
| offset = element.offset(); | |
| offsetTop = offset.top + verticalOffset; |
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
| @import "compass"; | |
| @import "compass/reset"; | |
| @import "icon/*.png"; | |
| @include all-icon-sprites; | |
| @import "logo/*.png"; | |
| @include all-logo-sprites; | |
| @import "pencil/*.png"; | |
| @include all-pencil-sprites; |
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
| $('a').each(function() { | |
| if (location.search.substr(1) !== '') { | |
| query = location.search.substr(1); | |
| symbol = $(this).attr('href').indexOf("?") == -1 ? '?' : '&'; | |
| $(this).attr('href', $(this).attr('href') + symbol + query); | |
| } | |
| }); |
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
| if (!Modernizr.input.placeholder) { | |
| $('[placeholder]').focus(function() { | |
| var input; | |
| input = $(this); | |
| if (input.val() === input.attr('placeholder')) { | |
| input.val(''); | |
| return input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { | |
| var input; |
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
| # placeholder for inputs in IE | |
| unless Modernizr.input.placeholder | |
| $('[placeholder]') | |
| .focus -> | |
| input = $(@) | |
| if input.val() == input.attr('placeholder') | |
| input.val('') | |
| input.removeClass('placeholder') | |
| .blur -> | |
| input = $(@) |