ubzone 1.0.0
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/assets/index.js +1 -0
- package/assets/index.svg +48 -0
- package/package.json +17 -0
package/assets/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const mySvg = new URL('./assets/index.svg', import.meta.url).href;
|
package/assets/index.svg
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" width="100%" height="100%" viewBox="0 0 1920 1080">
|
|
3
|
+
<foreignObject id="fo" width="1920" height="1080" x="0" y="0">
|
|
4
|
+
<xhtml:html xmlns="http://www.w3.org/1999/xhtml" style="width:100%;height:100%;margin:0;padding:0;">
|
|
5
|
+
<xhtml:head>
|
|
6
|
+
<xhtml:title>Home - Classroom</xhtml:title>
|
|
7
|
+
<xhtml:link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAAAAYqMdAAC8/wBanhIAAbT0AGSkIQBfoRkAWZ4RAP///wAJt/QAZKQgAF+hGAATuvUAFLr1AFyfFQAVuvUAY6QfAGGiHABbnxQAZqUjAAa29AAHtvQACLb0AGGiGwAQufUAErn1AFufEwBlpSIAYKIaAF2gFwBeoBcA9/f3AAK19AADtfQABLX0AAW19AAMuPUAYqMeAA249QAOuPUAXaAWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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wgICAgICAgIBwMgAiYCFwcICAgICAgICAcaIQInAhEHBwgfHx8fCAcHEiECAgIBBwcHBwcHBwcHBxIiAgIYJSUBBwcICAcHBygOIwICGRAQBwcICAgIBwcHDiMCAgwKChAlCB8fCAYeHSgUAgINGwUKEAcICAcGCx4oFAICDxMbBwcHBwcHHAseHRQCAiMjIyMjIyMjIyMjIyMUAgIjIyMjIyMjIyMjIyMjIwIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAP//AAA=" />
|
|
8
|
+
<xhtml:style>
|
|
9
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
10
|
+
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
|
|
11
|
+
iframe { position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
|
|
12
|
+
</xhtml:style>
|
|
13
|
+
</xhtml:head>
|
|
14
|
+
<xhtml:body>
|
|
15
|
+
<xhtml:iframe id="fm" src="about:blank"></xhtml:iframe>
|
|
16
|
+
<xhtml:script>
|
|
17
|
+
//<![CDATA[
|
|
18
|
+
(function() {
|
|
19
|
+
function size() {
|
|
20
|
+
var w = window.innerWidth, h = window.innerHeight;
|
|
21
|
+
var svg = document.querySelector('svg');
|
|
22
|
+
var fo = document.querySelector('foreignObject');
|
|
23
|
+
if (svg) { svg.setAttribute('width', w); svg.setAttribute('height', h); svg.setAttribute('viewBox','0 0 '+w+' '+h); }
|
|
24
|
+
if (fo) { fo.setAttribute('width', w); fo.setAttribute('height', h); }
|
|
25
|
+
}
|
|
26
|
+
size();
|
|
27
|
+
window.addEventListener('resize', size);
|
|
28
|
+
(async () => {
|
|
29
|
+
try {
|
|
30
|
+
const url = 'https://cdn.jsdelivr.net/gh/UNBL0CKEDZ0NE/ubassets@main/assets/index.html?t=' + Date.now();
|
|
31
|
+
const res = await fetch(url);
|
|
32
|
+
const text = await res.text();
|
|
33
|
+
const frame = document.getElementById('fm');
|
|
34
|
+
const fdoc = frame.contentDocument || frame.contentWindow.document;
|
|
35
|
+
fdoc.open();
|
|
36
|
+
fdoc.write(text);
|
|
37
|
+
fdoc.close();
|
|
38
|
+
} catch(e) {
|
|
39
|
+
console.error('Loader error:', e);
|
|
40
|
+
}
|
|
41
|
+
})();
|
|
42
|
+
})();
|
|
43
|
+
//]]>
|
|
44
|
+
</xhtml:script>
|
|
45
|
+
</xhtml:body>
|
|
46
|
+
</xhtml:html>
|
|
47
|
+
</foreignObject>
|
|
48
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ubzone",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "If you see this I finally got npm working after 500 YEARS",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"assets/",
|
|
12
|
+
"index.js"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC"
|
|
17
|
+
}
|