From d2081b574e17a7bce0a626a5f9f77763d6e24eaa Mon Sep 17 00:00:00 2001 From: Maingron Date: Wed, 4 Dec 2019 16:11:30 +0100 Subject: [PATCH] Version 00120; Part of Version 00130 ### Core / Various - Added (path) to listfs() - It can now output the contents of a path directly - Removed automatic embedding of helper.css through helper.js - Developers are now supposed to embed both - Fixed some SVGs - Updated preload.html - Updated some outdated links - Added dark scrollbar to Darkmode ### CMD - Removed toggledevmode command ### Soft Excel - Added helper.css ### Explorer - Added helper.css - Changed from unknown_file.png to unknown_file.svg ### Startmenu - Added helper.css ### Hype Chat - Added helper.css - Added Altbar - Changes to CSS ### Notepad - Added helper.css ### Paint - Added helper.css ### Paint32x32 - Added helper.css ### Settings - Added helper.css ### Simple Cookieclicker - Added helper.css Set Version to 00124 --- Program Files/Explorer/Start/exec.html | 1 + Program Files/Explorer/inner/exec.html | 1 + Program Files/Explorer/inner/innerexplorer.js | 4 +- Program Files/cmd/scripts.js | 38 ++--- Program Files/colors/exec.html | 61 +++---- Program Files/colors/imgstyle.css | 15 +- Program Files/devexample/devexample.css | 150 ++++++++++++++++++ Program Files/devexample/exec.html | 16 ++ Program Files/devexample/icon.png | Bin 0 -> 16612 bytes Program Files/devexample/script.js | 33 ++++ Program Files/excel/exec.html | 1 + Program Files/hype/exec.html | 2 + Program Files/hype/style.css | 19 ++- Program Files/notepad/exec.html | 3 +- Program Files/paint/exec.html | 3 +- Program Files/paint32x32/exec.html | 3 +- Program Files/settings/exec.html | 3 +- Program Files/simple cookieclicker/exec.html | 3 +- changelogs/00120.txt | 40 +++++ changelogs/00130.txt | 18 +++ helper.css | 23 ++- helper.js | 4 +- img/logo.svg | 66 +------- img/{ => old}/Show-Desktop-icon.png | Bin img/{ => old}/WLQXHbd.png | Bin ...ebsite-website-clipart-website-256_256.png | Bin img/{ => old}/zoom-in.png | Bin img/windows_folder.svg | 2 +- img/windows_folder_1.svg | 1 + index.html | 23 ++- mainos/createiofs.js | 9 +- mainos/createiofs_async.js | 0 mainos/iofs.js | 38 ++++- mainos/vars.js | 27 ---- preload.html | 4 +- script_async.js | 90 ----------- script.js => scripts.js | 114 ++++++++++++- style.css | 2 +- style.scss | 8 + 39 files changed, 526 insertions(+), 299 deletions(-) create mode 100644 Program Files/devexample/devexample.css create mode 100644 Program Files/devexample/exec.html create mode 100644 Program Files/devexample/icon.png create mode 100644 Program Files/devexample/script.js create mode 100644 changelogs/00120.txt create mode 100644 changelogs/00130.txt rename img/{ => old}/Show-Desktop-icon.png (100%) rename img/{ => old}/WLQXHbd.png (100%) rename img/{ => old}/clip-art-website-website-clipart-website-256_256.png (100%) rename img/{ => old}/zoom-in.png (100%) create mode 100644 img/windows_folder_1.svg delete mode 100644 mainos/createiofs_async.js delete mode 100644 mainos/vars.js delete mode 100644 script_async.js rename script.js => scripts.js (86%) diff --git a/Program Files/Explorer/Start/exec.html b/Program Files/Explorer/Start/exec.html index 469a008..b7476c6 100644 --- a/Program Files/Explorer/Start/exec.html +++ b/Program Files/Explorer/Start/exec.html @@ -4,6 +4,7 @@ Start + diff --git a/Program Files/Explorer/inner/innerexplorer.js b/Program Files/Explorer/inner/innerexplorer.js index 63fc9db..62b68fb 100644 --- a/Program Files/Explorer/inner/innerexplorer.js +++ b/Program Files/Explorer/inner/innerexplorer.js @@ -57,7 +57,7 @@ function explorerdo(nowpath) { mylistedfile_img.src = "../../../Program%20Files/notepad/icon.png"; } if (mylistedfile_inner.indexOf(".dat") == mylistedfile_inner.length - 4) { - mylistedfile_img.src = "../../../img/unknown_file.png"; + mylistedfile_img.src = "../../../img/unknown_file.svg"; } if (mylistedfile_inner.indexOf(".xec") == mylistedfile_inner.length - 4) { mylistedfiles[mylistedfilesnr].setAttribute("onClick", "window.parent.run('" + mylistedfile_inner.split('.xec')[0] + "')"); @@ -66,7 +66,7 @@ function explorerdo(nowpath) { if (mylistedfile_inner.indexOf(".del") == mylistedfile_inner.length - 4) { mylistedfiles[mylistedfilesnr].setAttribute("onClick", "window.parent.formatfs('yes')"); - mylistedfile_img.src = "../../../img/unknown_file.png"; + mylistedfile_img.src = "../../../img/unknown_file.svg"; } diff --git a/Program Files/cmd/scripts.js b/Program Files/cmd/scripts.js index c325730..ddb93ef 100644 --- a/Program Files/cmd/scripts.js +++ b/Program Files/cmd/scripts.js @@ -83,7 +83,6 @@ function runcmd(which) { return ""; } - if (which.indexOf("setting") == 4) { which = which.split("cmd:setting ")[1]; which = which.toLowerCase(); @@ -106,35 +105,18 @@ function runcmd(which) { if (which.indexOf("help") == 4) { - return "cls clears console
echo [Message] well, it's echo...
run [name of program] opens a program
close [pid of program] closes a program
pids lists currently running programs
exit closes the terminal
setting [Name of setting] [value] changes a setting
restart restarts MainOS
toggledev [boolean] activates or deactivates the developer mode

 

devmode commands:
js js executes js
"; + return `cls clears console
+ echo [Message] well, it's echo...
+ run [name of program] opens a program
+ close [pid of program] closes a program
+ pids lists currently running programs
exit closes the terminal
+ setting [Name of setting] [value] changes a setting
+ restart restarts MainOS
+
+

 

+ devmode commands:
js js executes js
`; } - if (which.indexOf("toggledev") == 4) { - cls = 1; - if (which.indexOf("toggledev 0") == 4 || which.indexOf("toggledev false") == 4) { - - window.parent.savefile("C:/mainos/system32/settings/developer.txt", 0, 1, "t=txt"); - window.parent.location.reload(); - runcmd("cmd:exit"); - return (""); - - } - if (which.indexOf("toggledev 1") == 4 || which.indexOf("toggledev true") == 4) { - window.parent.savefile("C:/mainos/system32/settings/developer.txt", 1, 1, "t=txt"); - window.parent.location.reload(); - runcmd("cmd:exit"); - return (""); - } - - if (window.parent.setting.developer == 0) { - window.parent.savefile("C:/mainos/system32/settings/developer.txt", 1, 1, "t=txt"); - } else { - window.parent.savefile("C:/mainos/system32/settings/developer.txt", 0, 1, "t=txt"); - } - window.parent.location.reload(); - runcmd("cmd:exit"); - return (""); - } if (which.indexOf("toggledownfall") == 4) { return "Command not found. Try /mc:help to get help."; diff --git a/Program Files/colors/exec.html b/Program Files/colors/exec.html index 4912108..6af1071 100644 --- a/Program Files/colors/exec.html +++ b/Program Files/colors/exec.html @@ -2,40 +2,41 @@ - + + + Colors
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- diff --git a/Program Files/colors/imgstyle.css b/Program Files/colors/imgstyle.css index bcbf614..965ec95 100644 --- a/Program Files/colors/imgstyle.css +++ b/Program Files/colors/imgstyle.css @@ -1,31 +1,22 @@ * { - transition: 2s; - transition-timing-function: ease-out -} - -body { - margin: 0; - background: #000 + transition: 2s ease-out; } #imgs { display: flex; - flex-wrap: wrap + flex-wrap: wrap; } #imgs div { display: inline; position: relative; - top: 0; width: calc(33.33% - 4px); margin: 2px; padding: 0; height: 33vw; max-height: 80vh; float: left; - border-style: none; - border-width: 0; - border-radius: 0; + border: none; object-fit: cover; filter: grayscale(.2) } diff --git a/Program Files/devexample/devexample.css b/Program Files/devexample/devexample.css new file mode 100644 index 0000000..b13dc7b --- /dev/null +++ b/Program Files/devexample/devexample.css @@ -0,0 +1,150 @@ +body { + height: 100vh; +} + +* { + transition: 0s; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + outline:0px solid transparent; + border:0px solid transparent; + +} + +#imagep { + position: relative; + display: flex; + top: 0; + left: 0; + height: calc(100% - var(--altbarheight)); + width: 100%; + justify-content: center; + align-items: center; + background:var(--beige2); +} + +#image { + overflow: hidden; + height: calc(90vmin - var(--altbarheight)); + width: calc(90vmin - var(--altbarheight)); + display: flex; + position: relative; + flex-wrap: wrap; + align-content: flex-start; + border:1px solid #000; + +} + +#image button { + margin: 0; + width: 6.25%; + padding:0; + padding-top: 6.25%; + border:0; + background:#fff; +} + +#colorselect { + background-color: var(--hovercolor); + z-index: 943; + display: flex; + flex-direction: column; + align-items: center; + position: absolute; + left: 10px; + top: calc(var(--altbarheight) + 10px); + height: auto; + width: auto; + max-height:calc(85vh - var(--altbarheight)); + padding-bottom: 3px; + border: 2px solid #000; +} + +#colorselect button { + height: 20px; + width: 20px; + margin:0; + padding:0; + border:0; +} + +#colorselect #currentcolor { + transition: .5s; + display: block; + border: 2px solid #000; + margin: 3px; + background-color: #000; + height: 40px; + width: 40px; +} + +#blue { + background-color: #00f; +} + +#blue2 { + background-color: #07f; +} + +#yellow { + background-color: #ff0; +} + +#green { + background-color: #0f0; +} + +#green2 { + background-color:#7a1; +} + +#red { + background-color: #f00; +} + +#orange { + background-color: #f70; +} + +#pink { + background-color:#f0f; +} + +#white { + background-color: #fff; +} + +#black { + background-color: #000; +} + +#gray1 { + background-color: #555; +} + +#gray2 { + background-color: #bbb; +} + +#brown { + background-color: #7c3e15; +} + +@media (prefers-color-scheme:dark) { + #imagep { + background:var(--black); + } + + #colorselect { + border-color: var(--themecolor); + background:var(--black3); + } + #imagep #image { + border:2px solid var(--themecolor); + } + +} \ No newline at end of file diff --git a/Program Files/devexample/exec.html b/Program Files/devexample/exec.html new file mode 100644 index 0000000..942cb36 --- /dev/null +++ b/Program Files/devexample/exec.html @@ -0,0 +1,16 @@ + + + + + + + + + Devexample + + + +
+ + + \ No newline at end of file diff --git a/Program Files/devexample/icon.png b/Program Files/devexample/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..59d9cf42f309903b41063c10f5d5e78b05a85636 GIT binary patch literal 16612 zcmV*JKxV&*P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGmbN~PnbOGLGA9w%&02p*dSaefwW^{L9 za%BK;VQFr3E^cLXAT%y9E;jv63FrU-KvhXZK~#9!?Y(!Hq*rz4|GD=~l{)t%g&Ap- zK_EnQkioFVEH<`b*NL^gwtppNFb3UkN^dgh2m%= zP0-}f)499Sn{N31ao?)04ihw*5d)t4JT*PlUETH8d(OG%obUObbK&$ly-u&w>-0Lk zPOsDJ^!j(V#OYh`%&o28`S4`||JfEUv|0^gHCn5ZRY}?8**24B&`SwRXIk5VS=bJpeBrH`98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L&XglN#=qm`pW@eNkMjJeYx*B9 zdAl_lt2GBFQzmCzLFZeeZ~L#lr^mkd53i3;E5Hx)vRs+xn#q}rL(`c%LdFn}`xi`< ze0z|8=S%*uf53L4J~vSazu9tBv~LgnL1F#B5}#IpAM$nfpKX8V#GLp{qvf~=`-5k_ zZ>)6D-r0I`Yq"; +} + +canvas.innerHTML = canvascontent1; + +document.body.onmousedown = function() { + mouseDown = 1; +} +document.body.onmouseup = function() { + mouseDown = 0; +} + +function paint(thepixel) { + if(mouseDown){ + thepixel.style.backgroundColor = color; + } +} + +function paint1(thepixel) { + thepixel.style.backgroundColor = color; +} + +function clr(clr) { + color = clr; + document.getElementById("currentcolor").style.backgroundColor = color; + +} +var color="#000"; diff --git a/Program Files/excel/exec.html b/Program Files/excel/exec.html index 0988715..d42caad 100644 --- a/Program Files/excel/exec.html +++ b/Program Files/excel/exec.html @@ -3,6 +3,7 @@ +
diff --git a/Program Files/hype/exec.html b/Program Files/hype/exec.html index aaf7838..1b50acf 100644 --- a/Program Files/hype/exec.html +++ b/Program Files/hype/exec.html @@ -4,11 +4,13 @@ Hype Chat + +
diff --git a/Program Files/hype/style.css b/Program Files/hype/style.css index fded094..7a034be 100644 --- a/Program Files/hype/style.css +++ b/Program Files/hype/style.css @@ -3,8 +3,8 @@ } .content { - position: absolute; - height: 100%; + position: relative; + height: calc(100vh - var(--altbarheight)); width: 100%; margin: 0; padding: 0; @@ -16,6 +16,7 @@ width:30%; height:100%; border-right:2px solid gray; + background:var(--beige) } .right { @@ -79,11 +80,19 @@ #videocallbutton { position:absolute; border-radius:50%; - border:2px solid white; - background-color:blue; + border:2px solid #fff; + background-color:var(--themecolor); height:48px; width:48px; bottom:0; right:30%; - color:white; + color:#fff; } + +@media (prefers-color-scheme:dark) { + + .left { + background:var(--themecolor) + } + +} \ No newline at end of file diff --git a/Program Files/notepad/exec.html b/Program Files/notepad/exec.html index 1f46635..ac793e3 100644 --- a/Program Files/notepad/exec.html +++ b/Program Files/notepad/exec.html @@ -4,6 +4,7 @@ Notepad + @@ -11,8 +12,6 @@

Save as

Open File

-

View

-

Help

diff --git a/Program Files/paint/exec.html b/Program Files/paint/exec.html index a1c42ee..f87292a 100644 --- a/Program Files/paint/exec.html +++ b/Program Files/paint/exec.html @@ -2,7 +2,8 @@ - + + Paint diff --git a/Program Files/paint32x32/exec.html b/Program Files/paint32x32/exec.html index 895b25b..6a1884e 100644 --- a/Program Files/paint32x32/exec.html +++ b/Program Files/paint32x32/exec.html @@ -2,7 +2,8 @@ - + + Paint32x32 diff --git a/Program Files/settings/exec.html b/Program Files/settings/exec.html index 1446a7c..2af526b 100644 --- a/Program Files/settings/exec.html +++ b/Program Files/settings/exec.html @@ -3,7 +3,8 @@ - + + Settings - Beta diff --git a/Program Files/simple cookieclicker/exec.html b/Program Files/simple cookieclicker/exec.html index b75e6b6..39a96bc 100644 --- a/Program Files/simple cookieclicker/exec.html +++ b/Program Files/simple cookieclicker/exec.html @@ -2,7 +2,8 @@ - + + Simple Cookieclicker diff --git a/changelogs/00120.txt b/changelogs/00120.txt new file mode 100644 index 0000000..c0338e8 --- /dev/null +++ b/changelogs/00120.txt @@ -0,0 +1,40 @@ +### Core / Various + - Added (path) to listfs() - It can now output the contents of a path directly + - Removed automatic embedding of helper.css through helper.js - Developers are now supposed to embed both + - Fixed some SVGs + - Updated preload.html + - Updated some outdated links + - Added dark scrollbar to Darkmode + +### CMD + - Removed toggledevmode command + +### Soft Excel + - Added helper.css + +### Explorer + - Added helper.css + - Changed from unknown_file.png to unknown_file.svg + +### Startmenu + - Added helper.css + +### Hype Chat + - Added helper.css + - Added Altbar + - Changes to CSS + +### Notepad + - Added helper.css + +### Paint + - Added helper.css + +### Paint32x32 + - Added helper.css + +### Settings + - Added helper.css + +### Simple Cookieclicker + - Added helper.css \ No newline at end of file diff --git a/changelogs/00130.txt b/changelogs/00130.txt new file mode 100644 index 0000000..b6dd7f2 --- /dev/null +++ b/changelogs/00130.txt @@ -0,0 +1,18 @@ +### Core / Various + - Removed Polyfill + - Combined mainos/vars.js and mainos/iofs.js into mainos/iofs.js + - Combined script.js and script_async.js into scripts.js + - Removed mainos/createiofs_async.js + - Removed mainos/iofs.min.js + - Made body background color transparent in helper.css, instead the program frames now have the background color + +### Colors + - Changes to inline styles + - Added helper.js and helper.css + - Changes to CSS + +### Hype Chat + - Changes to CSS + +### Notepad + - Removed non-functional stuff from Altbar \ No newline at end of file diff --git a/helper.css b/helper.css index 917e448..869a62f 100644 --- a/helper.css +++ b/helper.css @@ -18,7 +18,8 @@ body { - background: var(--beige4); + /* background: var(--beige4); */ + background: transparent; color: #000; margin: 0; padding: 0; @@ -65,9 +66,14 @@ textarea { background:var(--beige3); } + + + + @media (prefers-color-scheme: dark) { body { - background: var(--black); + /* background: var(--black); */ + background: transparent; color: #fff; } @@ -93,4 +99,17 @@ textarea { background: var(--black2); border: 1px solid #444; } + + ::-webkit-scrollbar { + background:var(--black); + width:initial; + } + ::-webkit-scrollbar-thumb { + background:var(--black3); + border:1px solid var(--themecolor) + } + ::-webkit-scrollbar-corner { + background:var(--black); + } + } \ No newline at end of file diff --git a/helper.js b/helper.js index e8fe29c..0fcd3a3 100644 --- a/helper.js +++ b/helper.js @@ -1,5 +1,5 @@ -document.write(""); -document.write(""); +// document.write(""); +// document.write(""); document.documentElement.style.setProperty("--themecolor",window.parent.setting.themecolor); diff --git a/img/logo.svg b/img/logo.svg index 9eefdc1..1d9ade0 100644 --- a/img/logo.svg +++ b/img/logo.svg @@ -1,65 +1 @@ - - - - - - image/svg+xml - - - - - - - - - - - + \ No newline at end of file diff --git a/img/Show-Desktop-icon.png b/img/old/Show-Desktop-icon.png similarity index 100% rename from img/Show-Desktop-icon.png rename to img/old/Show-Desktop-icon.png diff --git a/img/WLQXHbd.png b/img/old/WLQXHbd.png similarity index 100% rename from img/WLQXHbd.png rename to img/old/WLQXHbd.png diff --git a/img/clip-art-website-website-clipart-website-256_256.png b/img/old/clip-art-website-website-clipart-website-256_256.png similarity index 100% rename from img/clip-art-website-website-clipart-website-256_256.png rename to img/old/clip-art-website-website-clipart-website-256_256.png diff --git a/img/zoom-in.png b/img/old/zoom-in.png similarity index 100% rename from img/zoom-in.png rename to img/old/zoom-in.png diff --git a/img/windows_folder.svg b/img/windows_folder.svg index 77de3f2..2bba353 100644 --- a/img/windows_folder.svg +++ b/img/windows_folder.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/windows_folder_1.svg b/img/windows_folder_1.svg new file mode 100644 index 0000000..9099362 --- /dev/null +++ b/img/windows_folder_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index f0591f6..fb8c203 100644 --- a/index.html +++ b/index.html @@ -4,13 +4,9 @@ + MainOS - - - - - @@ -26,11 +22,10 @@ -

Welcome to MainOS Version

+ onclick="savefile('C:/mainos/system32/settings/tts.txt',1); location.reload()">If you are using a Screen reader, please click here to enhance tts functionality + +

Welcome to + MainOS Version

@@ -53,8 +48,7 @@
- - +

@@ -63,11 +57,12 @@

- - + + + \ No newline at end of file diff --git a/mainos/createiofs.js b/mainos/createiofs.js index 01efb48..98c105a 100644 --- a/mainos/createiofs.js +++ b/mainos/createiofs.js @@ -48,7 +48,7 @@ savefile("C:/users/" + setting.username + "/settings/german_tv.txt", 0, 0, "t=tx savefile("C:/users/" + setting.username + "/Program Data", 0, 0, "t=dir"); -savefile("C:/Documents and Settings/wallpapers.txt", "Links to wallpapers to use as background image for MainOS\n\nWallpapers made by Michael Gillett (https://twitter.com/MichaelGillett):\n https://maingron.de/things/wp/michael_gillett/fluent.jpg\n https://maingron.de/things/wp/michael_gillett/andromeda.jpg\n https://maingron.de/things/wp/michael_gillett/bliss-night.jpg\n https://maingron.de/things/wp/michael_gillett/clippy-x-rex.jpg (modified by Maingron)\n https://maingron.de/things/wp/michael_gillett/polaris.jpg", 0, "t=txt"); +savefile("C:/Documents and Settings/wallpapers.txt", "Links to wallpapers to use as background image for MainOS\n\nWallpapers made by Michael Gillett (https://twitter.com/MichaelGillett):\n https://maingron.com/things/wp/michael_gillett/fluent.jpg\n https://maingron.com/things/wp/michael_gillett/andromeda.jpg\n https://maingron.com/things/wp/michael_gillett/bliss-night.jpg\n https://maingron.com/things/wp/michael_gillett/clippy-x-rex.jpg (modified by Maingron)\n https://maingron.com/things/wp/michael_gillett/polaris.jpg", 0, "t=txt"); savefile("C:/Documents and Settings/Credits.txt", "MainOS Credits:\n\nMainOS is a one-man project, though some people contributed to it. Thanks to:\n\nDavid King - Optisocubes | https://twitter.com/dr_d_king\nMichael Gillett - Wallpapers | https://twitter.com/MichaelGillett\n\nYou - Enjoying MainOS", 1, "t=txt"); @@ -81,15 +81,12 @@ savefile(chgd + "/Version 00070.txt", "- Updated Paint and made it more compatib savefile(chgd + "/Version 00080.txt", "- Changed Settingpath to C:/users/USERNAME/settings. The setting username is still at C:/mainos/system32/settings, but it shouldn't be changed. Any other value than 'User' would result in errors, because there's no user generation yet.\n- Added Settings App (beta)\n- Fixed Settingpath in cmd", 0, "t=txt"); savefile(chgd + "/Version 00090.txt", "- Defined position for content div and redefined height and width\n- Added setting 'Big Buttons'\n- Added setting 'Fullscreen by default'\n- Started developing Theme Builder\n- Added setting.userpath\n- Added setting.userdata\n- Added function jsoncombine()\n- Added class program.id to program iframes\n- Added function wait(), which halts the entire system for x ms. Might be updated so the system won't hang. Max waiting time is 500ms.\n- Fixed Autostart\n- Made the notification from Colors work with the new notification system\n- Added notifications\n- Reassigned function alert() to notification(), to enhance user experience, though this might not work sometimes.\n- Variable --font is now automatically set in programs. Due to security policies, you still shouldn't rely on it.\n- Added possibility to limit max running instances of a program with maxopen - The highest you can define is about 100\n- Configured notifications and Start Menu to a instance limit of 1\n- Removed old notification system\n", 0, "t=txt"); savefile(chgd + "/Version 00100.txt", "### Core / Various\n````- Fixed Filepaths in Notifications\n````- Added Notification Log\n````- You can now open .log Files with Notepad when using Explorer\n````- Added year, month, day, date, time and full to settings.time\n````- Added setting for language\n````- Added setting for German TV stations (Available only, when language is set to German)\n````- Added ZDF and KiKA as German TV stations\n````- Added current language to Taskbar\n````- Added button to the MainOS website\n````- Switched from style.min.css to style.css\n````- Switched from script.min.js and script_async.min.js to script.js and script_async.js\n````- Switched from vars.min.js and iofs.min.js to vars.js and iofs.js\n````- Switched from createiofs.min.js to createiofs.js\n````- Removed some temporary stuff to fix specific versions from iofs.js\n````- Removed 'Use strict' from some js files\n\n### Explorer:\n````- Switched from explorerstyle.min.css to explorerstyle.css\n````- Switched from innerexplorer.min.js to innerexplorer.js\n\n### CMD:\n````- Switched from scripts.min.js to scripts.js\n````- Added title 'CMD'\n\n### Colors:\n````- Some code cleanup\n````- Removed test achivement\n````- Switched from imgstyle.min.css to imgstyle.css\n````- Added title 'colors'\n\n### Hype chat:\n````- Switched from style.min.css and script.min.js to style.css and script.js\n````- Changed title to 'Hype chat'\n````- Removed HTML lang and dir\n\n### Notepad:\n````- Switched from notepad.min.css and notepad.min.js to notepad.css and notepad.js\n````- Some code cleanup\n\n### Notifications:\n````- Changed empty title to 'Notifications'\n````- Changed from style.min.css to style.css\n````- Removed HTML dir \n\n### Paint (Not Paint 32x32):\n````- Switched from paint.min.css and script.min.js to paint.css and script.js\n````- Some code cleanup\n````- Added title 'Paint'\n````\n### Settings beta:\n````- Switched from style.min.css to style.css\n````- Some code cleanup\n\n### Simple Cookieclicker:\n````- Added title 'Simple Cookieclicker'\n````- Switched from scripts.min.js to scripts.js\n````- Some code cleanup", 0, "t=txt"); - savefile(chgd + "/Version 00110.txt", "### Core / Various\n````- Replaced some PNGs with SVGs\n````- Changed the MainOS Logo\n````- Changed old version type(mainos.versionlt) id to 0CC, where it will stay from now on. Will be removed entirely soon\n````- Removed dir and lang from html in index.html\n````- Code optimisations in index.html\n````- Removed all traces of the Midi engine\n````- IOFS: Code optimisations\n````- IOFS Generator: Optimisations\n````- TTS: Code optimisations\n````- Removed unused progreg.js and progreg.min.js\n````- Removed unused helper.js and helper.css\n````- Moved from normal style.css to style.scss\n````- Added helper.css\n````- Added helper.js - Developers are supposed to include it into their programs\n````- Added Darkmode v2, which currently automatically switches to darkmode, if your host system is set to use darkmode and your browser supports it\n````- Added variables --font --themecolor --black --black2 --black3 --black4 --black5 --hovercolor --hovercolornontransparent --beige --beige2 --beige3 --beige4 --altbarheight --altbarcolor to helper.css\n````- Decided to switch from blueish hover colors to a uniformly orange color\n````- Added setting 'hovercolor' and 'hovercolornontransparent'\n````- Dropped support for Internet Explorer entirely\n\n### Explorer\n````- Updated image paths\n````- Code optimisations\n````- 'closed' Details in sidebar\n````- Added helper.js\n````- Added Darkmode v2\n````- Removed sidebar on the left side because it did not bring any functionality\n````- Code cleanup\n````- Some improvements to CSS\n\n### Desktop \n````- Changed to --hovercolor as the hover color\n````- Changed the style for the link to the project website\n\n### Startmenu\n````- Code optimisations\n````- Switched to style.css from style.min.css\n````- Added Darkmode v2\n````- Removed support for Darkmode v1\n\n### CMD\n````- Code optimisations\n\n### Notepad\n````- Code optimisations\n````- CSS improvements\n````- Added helper.js and so Darkmode v2\n\n### Settings \n````- Added Setting for Darkmode v2\n````- Added Darkmode v2\n````- Added Setting for Hover Color and Hover Color (Non Transparent variant)\n\n### Hype Chat\n````- Added helper.js\n````- Removed unnecessary CSS to make Darkmode v2 work\n\n### Soft Excel \n````- Added helper.js and Darkmode v2\n````- Added Altbar\n````- Improved column 'generation'\n````- Minor CSS improvements\n````- Removed Easter Eggs\n\n### Paint \n````- Added helper.js\n````- Added Darkmode v2\n````- Changed Lightmode design\n````- Added Altbar\n\n### Paint32x32\n````- Switched to script.js and style.css from script.min.js and style.min.js\n````- Added helper.js\n````- Added Darkmode v2\n````- Changed Lightmode design\n````- Added Altbar \n\n### Simple Cookieclicker\n````- Added helper.js and so Darkmode v2\n````- Slightly changed CSS to make Darkmode work properly", 0, "t=txt"); +savefile(chgd + "/Version 00120.txt", "### Core / Various\n````- Added (path) to listfs() - It can now output the contents of a path directly\n````- Removed automatic embedding of helper.css through helper.js - Developers are now supposed to embed both\n````- Fixed some SVGs\n````- Updated preload.html\n````- Updated some outdated links\n````- Added dark scrollbar to Darkmode\n\n### CMD\n````- Removed toggledevmode command\n\n### Soft Excel\n````- Added helper.css\n\n### Explorer\n````- Added helper.css\n````- Changed from unknown_file.png to unknown_file.svg\n\n### Startmenu\n````- Added helper.css\n\n### Hype Chat\n````- Added helper.css\n````- Added Altbar\n````- Changes to CSS\n\n### Notepad\n````- Added helper.css\n\n### Paint\n````- Added helper.css\n\n### Paint32x32\n````- Added helper.css\n\n### Settings\n````- Added helper.css\n\n### Simple Cookieclicker\n````- Added helper.css", 0, "t=txt"); - - - -savefile("C:/users/" + setting.username + "/Program Data/notifications/notify_changelog.dat", chgd + "/Version 00110.txt", 1, "t=txt"); +savefile("C:/users/" + setting.username + "/Program Data/notifications/notify_changelog.dat", chgd + "/Version "+mainos.versionnrstring+".txt", 1, "t=txt"); diff --git a/mainos/createiofs_async.js b/mainos/createiofs_async.js deleted file mode 100644 index e69de29..0000000 diff --git a/mainos/iofs.js b/mainos/iofs.js index b7b8602..470608d 100644 --- a/mainos/iofs.js +++ b/mainos/iofs.js @@ -1,8 +1,35 @@ +var mainos = {}; +mainos.versionnr = 124; +mainos.versionnrstring = "00" + mainos.versionnr; +mainos.version = mainos.versionnr; +mainos.versionlt = "0CC"; +mainos.settings = {}; + +var ismainos = 1; +var appdata = "C:/Documents and Settings/appdata"; +var setting = {}; + +/* +0BN - 00090 +0BO - 00100 +00110+ = 0CC +*/ + + + + + function listfs(path) { - var mylist = ""; - for (i=0; i - + + + diff --git a/script_async.js b/script_async.js deleted file mode 100644 index 515daf1..0000000 --- a/script_async.js +++ /dev/null @@ -1,90 +0,0 @@ -objects.taskbartime = document.getElementById("taskbartime"); - - -window.setInterval(function() { - setting.time = new Date(); - setting.time = { - hour: setting.time.getHours(), - minute: setting.time.getMinutes(), - - year: setting.time.getFullYear(), - month: setting.time.getMonth() + 1, - day: setting.time.getDate() - }; - - if (setting.time.hour < 10) { - setting.time.hour = "0" + setting.time.hour; - } - if (setting.time.minute < 10) { - setting.time.minute = "0" + setting.time.minute; - } - - if (setting.time.month < 10) { - setting.time.month = "0" + setting.time.month; - } - - if (setting.time.day < 10) { - setting.time.day = "0" + setting.time.day; - } - - - - - setting.time.date = setting.time.year + "-" + setting.time.month + "-" + setting.time.day; - setting.time.time = setting.time.hour + ":" + setting.time.minute; - setting.time.full = setting.time.date + " " + setting.time.time; - /* Automatically update these time displays: */ - objects.taskbartime.innerHTML = setting.time.hour + ":" + setting.time.minute; -}, 250); - -function enterFullscreen(element) { - if (element.requestFullscreen) { - element.requestFullscreen(); - } else if (element.mozRequestFullScreen) { - element.mozRequestFullScreen(); - } else if (element.msRequestFullscreen) { - element.msRequestFullscreen(); - } else if (element.webkitRequestFullscreen) { - element.webkitRequestFullscreen(); - } -} - -if (setting.default_fullscreen == 1) { - enterFullscreen(document.body); -} - -if (setting.tts == 1) { - - objects.tts_script = document.createElement("script"); - objects.tts_script.src = "mainos/tts.js"; - document.body.appendChild(objects.tts_script); - -} else { - function make_tts() {}; -} - - - -document.getElementById("background").style.backgroundImage = "url(" + setting.backgroundimage + ")"; - - -setTimeout(function() { - for (i = 0; i < setting.temp.toautostart.length; i++) { - run(setting.temp.toautostart[i]); - } -}, 500); - -function notification(title, content) { - - if (document.getElementsByClassName("notifications")[0] != null) { - document.getElementsByClassName("notifications")[0].contentWindow.send_notification(title, content); - - } else { - run("notifications", { - "title": title, - "content": content - }); - } -} - -window.alert = notification; \ No newline at end of file diff --git a/script.js b/scripts.js similarity index 86% rename from script.js rename to scripts.js index e0250ae..d200847 100644 --- a/script.js +++ b/scripts.js @@ -580,4 +580,116 @@ function wait(time) { } var starttime = new Date().getTime(); while (new Date().getTime() < starttime + time) {} -} \ No newline at end of file +} + + + + + + + + + + + + + + + + + + + + + +objects.taskbartime = document.getElementById("taskbartime"); + +window.setInterval(function() { + setting.time = new Date(); + setting.time = { + hour: setting.time.getHours(), + minute: setting.time.getMinutes(), + + year: setting.time.getFullYear(), + month: setting.time.getMonth() + 1, + day: setting.time.getDate() + }; + + if (setting.time.hour < 10) { + setting.time.hour = "0" + setting.time.hour; + } + if (setting.time.minute < 10) { + setting.time.minute = "0" + setting.time.minute; + } + + if (setting.time.month < 10) { + setting.time.month = "0" + setting.time.month; + } + + if (setting.time.day < 10) { + setting.time.day = "0" + setting.time.day; + } + + + + + setting.time.date = setting.time.year + "-" + setting.time.month + "-" + setting.time.day; + setting.time.time = setting.time.hour + ":" + setting.time.minute; + setting.time.full = setting.time.date + " " + setting.time.time; + /* Automatically update these time displays: */ + objects.taskbartime.innerHTML = setting.time.hour + ":" + setting.time.minute; +}, 250); + +function enterFullscreen(element) { + if (element.requestFullscreen) { + element.requestFullscreen(); + } else if (element.mozRequestFullScreen) { + element.mozRequestFullScreen(); + } else if (element.msRequestFullscreen) { + element.msRequestFullscreen(); + } else if (element.webkitRequestFullscreen) { + element.webkitRequestFullscreen(); + } +} + +if (setting.default_fullscreen == 1) { + enterFullscreen(document.body); +} + + +if (setting.tts == 1) { + objects.tts_script = document.createElement("script"); + objects.tts_script.src = "mainos/tts.js"; + document.body.appendChild(objects.tts_script); + +} else { + function make_tts() {}; +} + + + +document.getElementById("background").style.backgroundImage = "url(" + setting.backgroundimage + ")"; + +setTimeout(function() { + for (i = 0; i < setting.temp.toautostart.length; i++) { + run(setting.temp.toautostart[i]); + } +}, 500); + +function notification(title, content) { + + if (document.getElementsByClassName("notifications")[0] != null) { + document.getElementsByClassName("notifications")[0].contentWindow.send_notification(title, content); + + } else { + run("notifications", { + "title": title, + "content": content + }); + } +} + +window.alert = notification; + + + diff --git a/style.css b/style.css index 6ff88ed..8c44c08 100644 --- a/style.css +++ b/style.css @@ -1 +1 @@ -@import url(helper.css);body{margin:0;background-color:#058;overflow:hidden!important;position:fixed;top:0;left:0;height:100%;width:100%}*{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--font)}iframe{border:1px solid #222}.content{position:absolute;top:0;left:0;height:100%;width:100%}.speak{display:inline;border:0;width:0;height:0;opacity:0}.autostart{display:none!important}.noborder{border-radius:0!important}.noborder iframe{top:0!important;border:0px!important;background-color:transparent!important}.noborder .headbar,.noborder .resizers{display:none}#background{position:absolute;top:0px;left:0px;height:100%;width:100%;background-size:cover;background-position:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#background img{position:absolute;bottom:50px;left:20px;z-index:0;width:50px;height:50px;opacity:1;-o-object-fit:contain;object-fit:contain;-webkit-filter:drop-shadow(2px 2px 2px #fff) drop-shadow(-2px 2px 2px #fff) drop-shadow(2px -2px 2px #fff) drop-shadow(-2px -2px 2px #fff);filter:drop-shadow(2px 2px 2px #fff) drop-shadow(-2px 2px 2px #fff) drop-shadow(2px -2px 2px #fff) drop-shadow(-2px -2px 2px #fff)}#background #eggpng{display:none;position:fixed;top:auto;bottom:35px;right:40%;left:auto;height:40px;width:auto;-o-object-fit:contain;object-fit:contain;z-index:0;-webkit-filter:drop-shadow(0 0);filter:drop-shadow(0 0)}.program{position:absolute;display:none;min-width:100px;min-height:50px;background-color:transparent;border-top-left-radius:10px;border-top-right-radius:10px;max-height:90vh;max-width:95vw}.program *{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.program iframe{position:absolute;border:0;top:30px;left:0;height:calc(100% - 30px);width:100%;background-color:#fff;overflow:hidden;border:2px solid var(--themecolor)}.explorer_start,.explorer_start iframe{background-color:transparent!important}.program .headbar{position:relative;top:0px;background-color:#222;background-color:var(--themecolor);height:30px;width:100%;padding-right:2px;border-top-left-radius:5px;border-top-right-radius:5px;border:none;overflow:hidden}.headbar *{display:inline;-webkit-transition:.5s;-o-transition:.5s;transition:.5s}.headbar .close,.headbar .max{height:24px;width:40px;top:-2px;border:0;margin:0;position:absolute;border-left:1px solid #fff;border-bottom:1px solid #fff}.headbar .close{right:-2px;background-color:#f00}.headbar .max{background-color:#18f;right:28px;border-bottom-left-radius:8px}.box2{position:absolute;height:200px;width:200px;top:400px;left:400px}.resizers *{height:10px;width:10px;position:absolute}.resizers :active{outline:3px solid #222;outline:3px solid var(--themecolor);z-index:9999;-webkit-transition:0s;-o-transition:0s;transition:0s;cursor:se-resize}.resizer2{bottom:-5px;right:-5px;cursor:se-resize;z-index:20}.maximized{height:calc(100% - 35px);width:100%;max-height:100vh;max-width:100vw}.maximized .resizers{display:none}.maximized .headbar{border-radius:0}.notmaximized{height:50%;width:50%}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;display:none;opacity:1;z-index:99999999}.progtitle{position:relative;left:0;top:5px;margin:5px;font-size:16px;height:16px;color:#fff}.progicon{position:relative;float:left;left:0;height:24px;margin:4px 4px 4px 6px}#taskbar{background-color:#222;background-color:var(--themecolor);position:absolute;bottom:0px;left:0px;width:100%;height:35px;overflow:visible;z-index:99999;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#taskbar #start{background-color:green;position:absolute;height:100%;width:150px;border:none;border-bottom-right-radius:15px;border-top-right-radius:15px;display:-webkit-box;display:-ms-flexbox;display:flex;top:0px;left:0px;z-index:999;font-size:2em;padding-right:25px;padding-left:10px;-webkit-box-pack:right;-ms-flex-pack:right;justify-content:right;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#taskbar #start p{position:absolute;display:inline;bottom:-2px;margin:0;padding:0;right:35px;z-index:999;color:#fff}#taskbar #start #starticonm{display:inline;opacity:0;width:0px;height:0px}#taskbar #taskbarright{position:absolute;right:0;bottom:0;height:100%;width:180px;background-color:#1256cd;border-left:2px solid #2845ba;max-width:28%}#taskbar #taskbarright img{height:30px;margin:3px;width:auto}#taskbar #taskbarright #taskbartime{position:relative;float:right;top:6px;margin:0;margin-left:7px;width:60px;height:18px;font-size:18px;color:#fff}#taskbar #taskbarright .taskbarlanguage{position:relative;top:7px;margin:0;padding:1px 3px;margin-left:7px;width:60px;height:18px;font-size:18px;color:#fff}#startmenu{display:none;z-index:99999}#icons{padding:15px;position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:visible;top:0;left:0;width:auto;height:calc(100% - 65px);-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#icons button{-webkit-transition:.2s;-o-transition:.2s;transition:.2s;position:relative;margin:3px;overflow:hidden;width:70px;height:100px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;border:0;padding:0}#icons button p{color:#fff}#icons button:hover{background-color:var(--hovercolor);overflow:visible}#icons img{position:absolute;left:2px;top:2px;margin:0;display:inline-block;height:auto;max-height:60px;width:calc(100% - 4px);-o-object-fit:contain;object-fit:contain}#icons p{left:2px;top:60px;text-align:center;font-size:0.85em;word-wrap:break-word;position:absolute;display:inline-block;width:calc(100% - 4px)}.aboutthisversion{position:absolute;bottom:20px;right:5px;font-size:1.2em}.aboutthisversion a{color:#fff}.explorer_start{overflow:visible!important;z-index:99999999!important}.explorer_start *{border:none;border-radius:0;overflow:hidden!important;z-index:999999999!important}.explorer_start .headbar{display:none}.explorer_start iframe{top:auto;position:absolute;bottom:-35px;height:calc(100% + 35px);background-color:transparent}.preloadframe{position:fixed;top:-20%;left:-20%;height:1%;width:1%;border:none}.support_mainos{bottom:35px;right:40vw;display:inline;position:absolute;background:var(--themecolor);-webkit-transition:.2s;-o-transition:.2s;transition:.2s}.support_mainos:hover{-webkit-transform:scale(1.5) translateY(-12.5%);-ms-transform:scale(1.5) translateY(-12.5%);transform:scale(1.5) translateY(-12.5%)}.support_mainos *{text-decoration:none;font-family:var(--font);padding:0;margin:0;color:#fff}@media screen and (max-width:350px){#icons{padding:5px;position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:visible;top:0;left:0;width:90%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}#icons button{position:relative;margin:2px;overflow:hidden;width:30px;height:30px;display:inline-block}#icons img{height:30px;width:30px}#icons p{display:none}.program{position:absolute;display:none;min-width:100px;min-height:40px;background-color:transparent;border-top-left-radius:10px;border-top-right-radius:10px}.program iframe{-webkit-transform:scale(0.5, 0.5) translate(-50%, -50%);-ms-transform:scale(0.5, 0.5) translate(-50%, -50%);transform:scale(0.5, 0.5) translate(-50%, -50%);height:calc(200% - 30px);width:calc(200%);top:15px}.explorer_start iframe{height:calc(200% + 36px);background-color:transparent}#taskbar{-webkit-transform:scale(0.5, 0.5) translate(-50%, 50%);-ms-transform:scale(0.5, 0.5) translate(-50%, 50%);transform:scale(0.5, 0.5) translate(-50%, 50%);width:calc(200%)}.headbar{position:relative;top:0px;background-color:var(--themecolor);height:15px;width:100%;padding-right:1px;border-top-left-radius:5px;border-top-right-radius:5px;border:none}.headbar .close,.headbar .max{height:12px;width:12px;top:0;border:1px solid #fff;margin:2px 1px;border-radius:3px;position:absolute}.headbar .close{right:2px}.headbar .max{right:15px}.progtitle{top:-6px;margin:0;font-size:8px;height:8px}.progicon{height:13px;margin:1px}.maximized{height:calc(100% - 17.5px);width:100%}} \ No newline at end of file +@import url(helper.css);body{margin:0;background-color:#058;overflow:hidden!important;position:fixed;top:0;left:0;height:100%;width:100%}*{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--font)}iframe{border:1px solid #222}.content{position:absolute;top:0;left:0;height:100%;width:100%}.speak{display:inline;border:0;width:0;height:0;opacity:0}.autostart{display:none!important}.noborder{border-radius:0!important}.noborder iframe{top:0!important;border:0px!important;background-color:transparent!important}.noborder .headbar,.noborder .resizers{display:none}#background{position:absolute;top:0px;left:0px;height:100%;width:100%;background-size:cover;background-position:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#background img{position:absolute;bottom:50px;left:20px;z-index:0;width:50px;height:50px;opacity:1;-o-object-fit:contain;object-fit:contain;-webkit-filter:drop-shadow(2px 2px 2px #fff) drop-shadow(-2px 2px 2px #fff) drop-shadow(2px -2px 2px #fff) drop-shadow(-2px -2px 2px #fff);filter:drop-shadow(2px 2px 2px #fff) drop-shadow(-2px 2px 2px #fff) drop-shadow(2px -2px 2px #fff) drop-shadow(-2px -2px 2px #fff)}#background #eggpng{display:none;position:fixed;top:auto;bottom:35px;right:40%;left:auto;height:40px;width:auto;-o-object-fit:contain;object-fit:contain;z-index:0;-webkit-filter:drop-shadow(0 0);filter:drop-shadow(0 0)}.program{position:absolute;display:none;min-width:100px;min-height:50px;background-color:transparent;border-top-left-radius:10px;border-top-right-radius:10px;max-height:90vh;max-width:95vw}.program *{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.program iframe{position:absolute;border:0;top:30px;left:0;height:calc(100% - 30px);width:100%;background-color:#fff;overflow:hidden;border:2px solid var(--themecolor)}.explorer_start,.explorer_start iframe{background-color:transparent!important}.program .headbar{position:relative;top:0px;background-color:#222;background-color:var(--themecolor);height:30px;width:100%;padding-right:2px;border-top-left-radius:5px;border-top-right-radius:5px;border:none;overflow:hidden}.headbar *{display:inline;-webkit-transition:.5s;-o-transition:.5s;transition:.5s}.headbar .close,.headbar .max{height:24px;width:40px;top:-2px;border:0;margin:0;position:absolute;border-left:1px solid #fff;border-bottom:1px solid #fff}.headbar .close{right:-2px;background-color:#f00}.headbar .max{background-color:#18f;right:28px;border-bottom-left-radius:8px}.box2{position:absolute;height:200px;width:200px;top:400px;left:400px}.resizers *{height:10px;width:10px;position:absolute}.resizers :active{outline:3px solid #222;outline:3px solid var(--themecolor);z-index:9999;-webkit-transition:0s;-o-transition:0s;transition:0s;cursor:se-resize}.resizer2{bottom:-5px;right:-5px;cursor:se-resize;z-index:20}.maximized{height:calc(100% - 35px);width:100%;max-height:100vh;max-width:100vw}.maximized .resizers{display:none}.maximized .headbar{border-radius:0}.notmaximized{height:50%;width:50%}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;display:none;opacity:1;z-index:99999999}.progtitle{position:relative;left:0;top:5px;margin:5px;font-size:16px;height:16px;color:#fff}.progicon{position:relative;float:left;left:0;height:24px;margin:4px 4px 4px 6px}#taskbar{background-color:#222;background-color:var(--themecolor);position:absolute;bottom:0px;left:0px;width:100%;height:35px;overflow:visible;z-index:99999;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#taskbar #start{background-color:green;position:absolute;height:100%;width:150px;border:none;border-bottom-right-radius:15px;border-top-right-radius:15px;display:-webkit-box;display:-ms-flexbox;display:flex;top:0px;left:0px;z-index:999;font-size:2em;padding-right:25px;padding-left:10px;-webkit-box-pack:right;-ms-flex-pack:right;justify-content:right;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#taskbar #start p{position:absolute;display:inline;bottom:-2px;margin:0;padding:0;right:35px;z-index:999;color:#fff}#taskbar #start #starticonm{display:inline;opacity:0;width:0px;height:0px}#taskbar #taskbarright{position:absolute;right:0;bottom:0;height:100%;width:180px;background-color:#1256cd;border-left:2px solid #2845ba;max-width:28%}#taskbar #taskbarright img{height:30px;margin:3px;width:auto}#taskbar #taskbarright #taskbartime{position:relative;float:right;top:6px;margin:0;margin-left:7px;width:60px;height:18px;font-size:18px;color:#fff}#taskbar #taskbarright .taskbarlanguage{position:relative;top:7px;margin:0;padding:1px 3px;margin-left:7px;width:60px;height:18px;font-size:18px;color:#fff}#startmenu{display:none;z-index:99999}#icons{padding:15px;position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:visible;top:0;left:0;width:auto;height:calc(100% - 65px);-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#icons button{-webkit-transition:.2s;-o-transition:.2s;transition:.2s;position:relative;margin:3px;overflow:hidden;width:70px;height:100px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;border:0;padding:0}#icons button p{color:#fff}#icons button:hover{background-color:var(--hovercolor);overflow:visible}#icons img{position:absolute;left:2px;top:2px;margin:0;display:inline-block;height:auto;max-height:60px;width:calc(100% - 4px);-o-object-fit:contain;object-fit:contain}#icons p{left:2px;top:60px;text-align:center;font-size:0.85em;word-wrap:break-word;position:absolute;display:inline-block;width:calc(100% - 4px)}.aboutthisversion{position:absolute;bottom:20px;right:5px;font-size:1.2em}.aboutthisversion a{color:#fff}.explorer_start{overflow:visible!important;z-index:99999999!important}.explorer_start *{border:none;border-radius:0;overflow:hidden!important;z-index:999999999!important}.explorer_start .headbar{display:none}.explorer_start iframe{top:auto;position:absolute;bottom:-35px;height:calc(100% + 35px);background-color:transparent}.preloadframe{position:fixed;top:-20%;left:-20%;height:1%;width:1%;border:none}.support_mainos{bottom:35px;right:40vw;display:inline;position:absolute;background:var(--themecolor);-webkit-transition:.2s;-o-transition:.2s;transition:.2s}.support_mainos:hover{-webkit-transform:scale(1.5) translateY(-12.5%);-ms-transform:scale(1.5) translateY(-12.5%);transform:scale(1.5) translateY(-12.5%)}.support_mainos *{text-decoration:none;font-family:var(--font);padding:0;margin:0;color:#fff}@media screen and (max-width:350px){#icons{padding:5px;position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:visible;top:0;left:0;width:90%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}#icons button{position:relative;margin:2px;overflow:hidden;width:30px;height:30px;display:inline-block}#icons img{height:30px;width:30px}#icons p{display:none}.program{position:absolute;display:none;min-width:100px;min-height:40px;background-color:transparent;border-top-left-radius:10px;border-top-right-radius:10px}.program iframe{-webkit-transform:scale(0.5, 0.5) translate(-50%, -50%);-ms-transform:scale(0.5, 0.5) translate(-50%, -50%);transform:scale(0.5, 0.5) translate(-50%, -50%);height:calc(200% - 30px);width:calc(200%);top:15px}.explorer_start iframe{height:calc(200% + 36px);background-color:transparent}#taskbar{-webkit-transform:scale(0.5, 0.5) translate(-50%, 50%);-ms-transform:scale(0.5, 0.5) translate(-50%, 50%);transform:scale(0.5, 0.5) translate(-50%, 50%);width:calc(200%)}.headbar{position:relative;top:0px;background-color:var(--themecolor);height:15px;width:100%;padding-right:1px;border-top-left-radius:5px;border-top-right-radius:5px;border:none}.headbar .close,.headbar .max{height:12px;width:12px;top:0;border:1px solid #fff;margin:2px 1px;border-radius:3px;position:absolute}.headbar .close{right:2px}.headbar .max{right:15px}.progtitle{top:-6px;margin:0;font-size:8px;height:8px}.progicon{height:13px;margin:1px}.maximized{height:calc(100% - 17.5px);width:100%}}@media (prefers-color-scheme:dark){.program iframe{background-color:var(--black)}} \ No newline at end of file diff --git a/style.scss b/style.scss index d29620f..b1d1169 100644 --- a/style.scss +++ b/style.scss @@ -611,4 +611,12 @@ iframe { height: calc(100% - 17.5px); width: 100%; } +} + +@media (prefers-color-scheme:dark) { + .program { + iframe { + background-color: var(--black); + } + } } \ No newline at end of file