Last active
December 24, 2018 06:11
-
-
Save AndrewChamp/880a111b40cf24e84b44 to your computer and use it in GitHub Desktop.
iFrame'd Site
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(function($) { | |
if(window.location !== window.parent.location){ | |
$('header, footer').hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allows you to hide elements of your site if it's being iframed.