template element method change
This commit is contained in:
parent
f0f2c8b7ce
commit
ed3ef9e384
|
@ -526,7 +526,7 @@ toggle.addEventListener('click', (e) => {
|
||||||
var demoContent = template.content;
|
var demoContent = template.content;
|
||||||
var standalone = window.open();
|
var standalone = window.open();
|
||||||
script.textContent = standaloneScript;
|
script.textContent = standaloneScript;
|
||||||
standalone.document.body.appendChild(document.importNode(template.content, true));
|
standalone.document.body.appendChild(template.content.cloneNode(true));
|
||||||
|
|
||||||
standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
|
standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
|
||||||
});
|
});
|
||||||
|
|
|
@ -1900,7 +1900,7 @@ toggle.addEventListener('click', (e) => {
|
||||||
var demoContent = template.content;
|
var demoContent = template.content;
|
||||||
var standalone = window.open();
|
var standalone = window.open();
|
||||||
script.textContent = standaloneScript;
|
script.textContent = standaloneScript;
|
||||||
standalone.document.body.appendChild(document.importNode(template.content, true));
|
standalone.document.body.appendChild(template.content.cloneNode(true));
|
||||||
|
|
||||||
standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
|
standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -40,7 +40,7 @@
|
||||||
var demoContent = template.content;
|
var demoContent = template.content;
|
||||||
var standalone = window.open();
|
var standalone = window.open();
|
||||||
script.textContent = standaloneScript;
|
script.textContent = standaloneScript;
|
||||||
standalone.document.body.appendChild(document.importNode(template.content, true));
|
standalone.document.body.appendChild(template.content.cloneNode(true));
|
||||||
{{ if .Get "backgroundColor" }}
|
{{ if .Get "backgroundColor" }}
|
||||||
standalone.document.body.style.backgroundColor = {{ .Get "backgroundColor" | safeCSS }};
|
standalone.document.body.style.backgroundColor = {{ .Get "backgroundColor" | safeCSS }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user