Last active
October 6, 2016 20:28
-
-
Save Aslan11/ee15a0b7a7c06012812fc0523a201cfd to your computer and use it in GitHub Desktop.
How to shim for non-js-browsers
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
| <div id="parent"> | |
| <p id="main-description"> | |
| This needs to be the paragraph you want to see on search results | |
| </p> | |
| </div> | |
| <script> | |
| (function() { | |
| var text = document.getElementById('main-description'); | |
| text.parentNode.removeChild(text); | |
| document.getElementById('parent').appendChild(<iframe>); | |
| })(); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment