Created
October 29, 2018 20:30
-
-
Save jenshelderweirdt/043b3e2b18edbd35432726773fc6853f 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
$container = document.getElementById("custom-paragraph-containter"); | |
$container.attachShadow({mode: 'open'}); | |
$container.shadowRoot.appendChild((document.getElementById('custom-paragraph').content).cloneNode(true)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment