This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stub-view.ejs
57 lines (45 loc) · 1.57 KB
/
stub-view.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<%
locals.OLSKPageAssets = [
'__compiled/ui-style.css',
'/node_modules/launchlet/__compiled/launchlet.css',
'/node_modules/launchlet/__compiled/launchlet.js',
];
locals._OLSKPageAssetFolder = 'node_modules';
locals.OLSKPagePublicConstants = {
OLSKSharedPageCurrentLanguage,
};
locals.OLSKPagePublicLocalizedStringKeys = OLSKLocalizedStringKeys();
%>
<script src="/<%= OLSKSharedPageControllerSlug %>/__compiled/ui-behaviour.js"></script>
<script>
const mod = {
_OLSKPasscode: new Main({
target: document.body,
props: Object.assign({
OLSKPasscodeDispatchContinue: (function () {
window.TestOLSKPasscodeDispatchContinue.innerHTML = parseInt(window.TestOLSKPasscodeDispatchContinue.innerHTML) + 1;
}),
}, Object.fromEntries(Array.from((new window.URLSearchParams(window.location.search)).entries()))),
}),
// INTERFACE
InterfaceLauncherButtonDidClick () {
window.Launchlet.LCHSingletonCreate({
LCHOptionRecipes: mod._OLSKPasscode.modPublic.OLSKPasscodeRecipes({
OLSKLocalized: window.OLSKLocalized,
ParamMod: mod,
ParamSpecUI: true,
}),
});
},
};
window.mod = mod;
</script>
<button id="TestOLSKModalViewShow" onclick="mod._OLSKPasscode.modPublic.OLSKModalViewShow()">TestOLSKModalViewShow</button>
<button id="TestOLSKModalViewClose" onclick="mod._OLSKPasscode.modPublic.OLSKModalViewClose()">TestOLSKModalViewClose</button>
<p>
<button class="OLSKAppToolbarLauncherButton" onclick="mod.InterfaceLauncherButtonDidClick()">Launcher</button>
</p>
<p>
<strong>OLSKPasscodeDispatchContinue</strong>
<span id="TestOLSKPasscodeDispatchContinue">0</span>
</p>