Created
November 7, 2016 18:22
-
-
Save benaubin/48e5a4f3da3ee5083a74ed6b3db6166b to your computer and use it in GitHub Desktop.
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
(function(){ | |
var homepage = { | |
aboutUsLink: jQuery("a[href*='/about']").css({'background-color': 'red'})[0].href | |
}; | |
if(homepage.aboutUsLink){ | |
var aboutUsPage = jQuery('<iframe>').attr('src', homepage.aboutUs).css({'visibility': 'hidden'}).appendTo('body'); | |
aboutUsPage[0].contentWindow.jQuery((function(){}).bind(aboutUsPage[0].contentWindow)) | |
} | |
var hoaxHash = {homepage: homepage, aboutUsPage: aboutUsPage}; | |
return hoaxHash; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment