Last active
August 26, 2015 14:40
-
-
Save teyc/0acd789e75d5d264273f to your computer and use it in GitHub Desktop.
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
| /* substitute links etc for ad campaigns */ | |
| jQuery.ready(function() { | |
| jQuery("a[href][rel=m_PageScroll2id]"). | |
| each(function(index) { | |
| this.attr("href", this.attr("href").replace("/#", "#")); | |
| }); | |
| jQuery("a[href]"). | |
| filter(function() { | |
| return this.attr("href") === "http://www.maccsmedicalgroup.com.au"; | |
| }) | |
| .each(function() { | |
| this.attr("href", window.location.pathname); | |
| }); | |
| jQuery("a[href]"). | |
| filter(function() { | |
| return this.attr("href") === "http://www.maccsmedicalgroup.com.au/"; | |
| }) | |
| .each(function() { | |
| this.attr("href", window.location.pathname); | |
| }); | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment