Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-14 13:52:54 +01:00
18 Zeilen
581 B
Text
18 Zeilen
581 B
Text
|
// discourse-skip-module
|
||
|
|
||
|
document.addEventListener("DOMContentLoaded", function () {
|
||
|
document.body.insertAdjacentHTML(
|
||
|
"afterbegin",
|
||
|
`
|
||
|
<div id="ember-testing-container"><div id="ember-testing"></div></div>
|
||
|
<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style>
|
||
|
`
|
||
|
);
|
||
|
});
|
||
|
|
||
|
Object.keys(requirejs.entries).forEach(function (entry) {
|
||
|
if (/\-test/.test(entry)) {
|
||
|
requirejs(entry);
|
||
|
}
|
||
|
});
|