ubbzone 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.
Files changed (3) hide show
  1. package/index.svg +48 -0
  2. package/package.json +13 -0
  3. package/ub.html +54 -0
package/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/f3AAK19AADtfQABLX0AAW19AAMuPUAYqMeAA249QAOuPUAXaAWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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CAgwKChAlCB8fCAYeHSgUAgINGwUKEAcICAcGCx4oFAICDxMbBwcHBwcHHAseHRQCAiMjIyMjIyMjIyMjIyMUAgIjIyMjIyMjIyMjIyMjIwIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//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,13 @@
1
+ {
2
+ "name": "ubbzone",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs"
13
+ }
package/ub.html ADDED
@@ -0,0 +1,54 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Home - Classroom</title>
7
+ <link rel="icon" type="image/x-icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAAAXNSR0IArs4c6QAAAhBJREFUOE9tk89rE1EQx78Tf0A22tg2W4qHVqPVtol3Dyq24M2r7B48WS9F0KNQ0CLoP9CbCJ6zvSiKIlY02ggFr2tvmjbVKGSTIs22iSk7MvM21VIfebz3yHw/7/tmZunW1aN8ZXIbIAYR4mE2zAAhATCB5RwRmOU/AiLCk9I+UGfJZuIQRBItYfFgAZhgESoknuCEgZEF6nxMsdzsb/Xjc8s2LlRsLMiqM2IgMvtcch1565cCqVM6xHKz1xjFfGNU3Rm/DOtAUoXNdjMGROAogpMpw8lU1BX9XjysgPn6KXiN0zsvSB20MDt5W2GzCw/QbIUqFqAAXLtiHLQ/9LC836uP6DQWgBtnp3Axe073xS+LmCs9BHYAK3DttRjwPs2i8YIT8Oon/3GQxL1LM3q+8+o+QnHAXQerCtAntIpHNNeFehZekP1bBQApyQEzwraIJaGSSIZjV+Da34yD1rterV0hOAYvOK6A/OAYcoPjusrwfyxjaeUTykFZIU5mDe7Ad+Ng622fAdSG4QXDuHl+GhMjF3Y56R6e+y/xqPRYxa5dNQ423/SbHNSGUKgN4en1wn/F6qS6jJlnd1Xs2FWtEG0u2FpGP+yBH6ZxZmxqF0AbKh5h+BNfV18gZ20gb20YB+HrAemzbvX23q4AaWX5mVXbW5uNQNcup9md2B8LSWO77byXlog/MNMrXnEbfwCrwRQID/CEeAAAAABJRU5ErkJggg==" />
8
+ <style>
9
+ *, *::before, *::after {
10
+ box-sizing: border-box;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+ html, body {
15
+ width: 100%;
16
+ height: 100%;
17
+ overflow: hidden;
18
+ background: #000;
19
+ }
20
+ iframe {
21
+ position: fixed;
22
+ top: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ height: 100%;
26
+ border: 0;
27
+ }
28
+ </style>
29
+ </head>
30
+ <body>
31
+
32
+ <iframe id="fm" src="about:blank"></iframe>
33
+
34
+ <script>
35
+ (async () => {
36
+ try {
37
+ const url = 'https://cdn.jsdelivr.net/gh/UNBL0CKEDZ0NE/ubassets@main/assets/index.html?t=' + Date.now();
38
+ const res = await fetch(url);
39
+ const text = await res.text();
40
+
41
+ const frame = document.getElementById('fm');
42
+ const fdoc = frame.contentDocument || frame.contentWindow.document;
43
+
44
+ fdoc.open();
45
+ fdoc.write(text);
46
+ fdoc.close();
47
+ } catch(e) {
48
+ console.error('Loader error:', e);
49
+ }
50
+ })();
51
+ </script>
52
+
53
+ </body>
54
+ </html>