Created
May 22, 2019 00:52
-
-
Save techmuzz/b1d78dae0f8fb920fb7aa1ab2c057cb9 to your computer and use it in GitHub Desktop.
Embed Flipboard Magazine On Your Website In Two Steps - https://www.techmuzz.com/how-to/embed-flipboard-magazine-on-your-website-in-two-steps/
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> | |
$(function () { | |
var width = 0, | |
flipboard = document.getElementById('flipboard'); | |
width = flipboard.getBoundingClientRect().width ? flipboard.getBoundingClientRect().width : flipboard.offsetWidth; | |
if (width > 800) { | |
flipboard.innerHTML = '<iframe width="100%" frameborder="0" height="600px" marginheight="0" marginwidth="0" scrolling="no" src="https://flipboard.com/section/the-internet-of-things-bn8l9H"></iframe>' | |
} | |
})(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment