mirror of
https://github.com/gmemstr/notdonemywebsite.git
synced 2024-09-19 13:41:10 +01:00
Merge pull request #15 from macno/macno/issue-14
Loading templates dynamically
This commit is contained in:
commit
acccfae8b2
|
@ -41,6 +41,7 @@ const getTemplateHtml = template => {
|
|||
|
||||
const valueChange = value => {
|
||||
const iframehtml = document.getElementById('iframe').contentWindow.document.getElementById(value);
|
||||
if(!iframehtml) return;
|
||||
const val = document.getElementById(value).value;
|
||||
iframehtml.innerHTML = val
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue