mlv2boii 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/loader.svg +68 -0
- package/package.json +1 -1
- /package/{index.svg → index.html} +0 -0
package/loader.svg
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
3
|
+
width="100%"
|
|
4
|
+
height="100%"
|
|
5
|
+
viewBox="0 0 1000 1000">
|
|
6
|
+
|
|
7
|
+
<foreignObject width="100%" height="100%" x="0" y="0">
|
|
8
|
+
<xhtml:html xmlns="http://www.w3.org/1999/xhtml"
|
|
9
|
+
style="width:100%;height:100%;margin:0;padding:0;">
|
|
10
|
+
|
|
11
|
+
<head>
|
|
12
|
+
<style>
|
|
13
|
+
html, body {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
iframe {
|
|
22
|
+
position: fixed;
|
|
23
|
+
inset: 0;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
border: 0;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
|
|
31
|
+
<body>
|
|
32
|
+
<iframe id="mlv2" src="about:blank"></iframe>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
//<![CDATA[
|
|
36
|
+
(async function() {
|
|
37
|
+
try {
|
|
38
|
+
const response = await fetch(
|
|
39
|
+
'https://cdn.jsdelivr.net/npm/mlv2boii/index.html'
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
if (!response.ok) {
|
|
43
|
+
throw new Error(
|
|
44
|
+
'HTTP ' + response.status
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const html = await response.text();
|
|
49
|
+
|
|
50
|
+
const iframe = document.getElementById('mlv2');
|
|
51
|
+
const doc = iframe.contentDocument ||
|
|
52
|
+
iframe.contentWindow.document;
|
|
53
|
+
|
|
54
|
+
doc.open();
|
|
55
|
+
doc.write(html);
|
|
56
|
+
doc.close();
|
|
57
|
+
|
|
58
|
+
} catch (error) {
|
|
59
|
+
console.error('MLV2 loader error:', error);
|
|
60
|
+
}
|
|
61
|
+
})();
|
|
62
|
+
//]]>
|
|
63
|
+
</script>
|
|
64
|
+
</body>
|
|
65
|
+
|
|
66
|
+
</xhtml:html>
|
|
67
|
+
</foreignObject>
|
|
68
|
+
</svg>
|
package/package.json
CHANGED
|
File without changes
|