0.1.5b
This commit is contained in:
parent
5f0583dc1c
commit
7e06b5f4cf
Binary file not shown.
|
@ -1,106 +1,135 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>About DremJS</title>
|
<title>About DremJS</title>
|
||||||
<embed src="ambient.mp3" width="0" height="0" loop="true" autostart="true" hidden="true">
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
font-family: Calibri;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
width: 80%;
|
||||||
|
margin: auto;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
.left {
|
||||||
|
width: 30%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.right {
|
||||||
|
margin-left: 5%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<section class="container">
|
||||||
|
<div class="left">
|
||||||
|
<img src="logo.png" style="width:128px;height:128px" />
|
||||||
|
</div>
|
||||||
|
<div class="right">
|
||||||
<h1>About DremJS</h1>
|
<h1>About DremJS</h1>
|
||||||
<h2>Version: 0.1.4b</h2>
|
<h2>Version: 0.1.5b</h2>
|
||||||
<h2>Agenda WM 0.1.0b</h2>
|
<h2>Agenda WM 0.1.0b</h2>
|
||||||
<p>Note: If something isn't right with your desktop, try reloading the frame! If that doesn't work, clear your browsers cache!</p>
|
</div>
|
||||||
<p>Another Note: When loading an app or clicking the Start button, flickering is normal. This is just because the IFrame is loading the application.</p>
|
</section>
|
||||||
<p>Changelog:</p>
|
<p>Changelog:<br />
|
||||||
<p>Version 0.1.4b</p>
|
Version 0.1.5b<br />
|
||||||
<p>+Added ProcMan (Process Manager) to the terminal which allows you to list all processes or kill a process</p>
|
+Readded the start menu<br />
|
||||||
<p>+Added insmod (Install Module). It's on its first prototype so it's not able to do much.</p>
|
+A lite theme for the terminal, if that's your thing. You can toggle the theme with "settheme".<br />
|
||||||
<p>~Separated Terminal from Debug and made it accessible when not in Debug mode.</p>
|
~DremJS went on a strict diet and lost about 15MBs<br />
|
||||||
<p>~Updated Terminal image.</p>
|
~Changed DremJS's font to Calibri<br />
|
||||||
<p>~Probable a ton more changes that I forgot about before I went on a break</p>
|
~Overhauled the About application a lot.
|
||||||
<p>~Updated to Agenda WM 0.1.0b, which adds some new features and tweaks including, but not limited to:</p>
|
~General system stability improvements to enhance the user's experience.
|
||||||
<p> ~Made Agenda its own .js file</p>
|
NOTE: Even though DremJS's font is Calibri, it does NOT mean that applications will automagically change to Calibri. Developers need to set their own font if they want a custom one.<br /><br />
|
||||||
<p> ~Moved the taskbar that was originally in DremJS into Agenda WM</p>
|
Version 0.1.4b<br />
|
||||||
<p> +Added the ability to minimize and restore applications (hence the taskbar move)</p>
|
+Added ProcMan (Process Manager) to the terminal which allows you to list all processes or kill a process<br />
|
||||||
<p>Version 0.1.3b</p>
|
+Added insmod (Install Module). It's on its first prototype so it's not able to do much.<br />
|
||||||
<p>~Updated to Agenda WM 0.0.4b, which adds some new features and tweaks including, but not limited to:
|
~Separated Terminal from Debug and made it accessible when not in Debug mode.<br />
|
||||||
<p> +A maximize button</p>
|
~Updated Terminal image.<br />
|
||||||
<p> +The ability to launch applications with a specific size.</p>
|
~Probable a ton more changes that I forgot about before I went on a break<br />
|
||||||
<p>Version 0.1.2b (Hotfix 1)</p>
|
~Updated to Agenda WM 0.1.0b, which adds some new features and tweaks including, but not limited to:<br />
|
||||||
<p>~Fixed a bug where multiple instances of the same app will have the same (supposed to be) unique identifier, which caused problems with closing and layering.</p>
|
~Made Agenda its own .js file<br />
|
||||||
<p>Version 0.1.2b</p>
|
~Moved the taskbar that was originally in DremJS into Agenda WM<br />
|
||||||
<p>This is a very important and large release for DremJS!</p>
|
+Added the ability to minimize and restore applications (hence the taskbar move)<br /><br />
|
||||||
<p>We are going to hard code the start menu to stay open at all times for a while until we care enough to reimpliment it better.</p>
|
Version 0.1.3b<br />
|
||||||
|
~Updated to Agenda WM 0.0.4b, which adds some new features and tweaks including, but not limited to:<br />
|
||||||
|
+A maximize button<br />
|
||||||
|
+The ability to launch applications with a specific size.<br /><br />
|
||||||
|
Version 0.1.2b (Hotfix 1)<br />
|
||||||
|
~Fixed a bug where multiple instances of the same app will have the same (supposed to be) unique identifier, which caused problems with closing and layering.<br /><br />
|
||||||
|
Version 0.1.2b<br />
|
||||||
|
This is a very important and large release for DremJS!<br />
|
||||||
|
We are going to hard code the start menu to stay open at all times for a while until we care enough to reimpliment it better.<br />
|
||||||
<!-- Maybe in 0.1.3b... -->
|
<!-- Maybe in 0.1.3b... -->
|
||||||
<!--<p>+++We're very glad to present a very basic application installation program! It only works on MiniWeb. I don't know if it will work on Apache servers or not.</p>-->
|
<!--+++We're very glad to present a very basic application installation program! It only works on MiniWeb. I don't know if it will work on Apache servers or not.-->
|
||||||
<p>+++With the brand new Agenda WM, you can now multitask in DremJS!</p>
|
+++With the brand new Agenda WM, you can now multitask in DremJS!<br />
|
||||||
<p>+Added 'cmd_fm' command to terminal. CMD.FM is a free online radio service that looks like a computer terminal.</p>
|
+Added 'cmd_fm' command to terminal. CMD.FM is a free online radio service that looks like a computer terminal. <br /><br />
|
||||||
<p>Version 0.1.1b</p>
|
Version 0.1.1b<br />
|
||||||
<p>+A terminal that is accessable from the Debug Menu. It's based off of <a href="https://codepen.io/AndrewBarfield/pen/qEqWMq?css-preprocessor=scss">Andrew Barfield's HTML5 Web Terminal</a>.</p>
|
+A terminal that is accessable from the Debug Menu. It's based off of <a href="https://codepen.io/AndrewBarfield/pen/qEqWMq?css-preprocessor=scss">Andrew Barfield's HTML5 Web Terminal</a>.<br />
|
||||||
<p>~Some UI Tweaks</p>
|
~Some UI Tweaks<br />
|
||||||
<p>~Bug Fixes</p>
|
~Bug Fixes<br />
|
||||||
<p>~Made the shutdown function actually shut DremJS down</p>
|
~Made the shutdown function actually shut DremJS down<br /><br />
|
||||||
<p>Version 0.1.0b</p>
|
Version 0.1.0b<br />
|
||||||
<p>+A taskbar</p>
|
+A taskbar<br />
|
||||||
<p>++Home button moved to taskbar</p>
|
++Home button moved to taskbar<br />
|
||||||
<p>++About app is on taskbar for defaults. Because we are still working on the taskbar, documentation for adding or removing icons from the taskbar will not be released yet.</p>
|
++About app is on taskbar for defaults. Because we are still working on the taskbar, documentation for adding or removing icons from the taskbar will not be released yet.<br />
|
||||||
<p>~Some apps moved to the Marketplace to make DremJS smaller. The most important apps stay (About, DremJS Market, How to Install Apps, Report a Bug)</p>
|
~Some apps moved to the Marketplace to make DremJS smaller. The most important apps stay (About, DremJS Market, How to Install Apps, Report a Bug)<br /><br />
|
||||||
<p>Version 0.0.9-1a</p>
|
Version 0.0.9-1a<br />
|
||||||
<p>+PVT Counter</p>
|
+PVT Counter<br />
|
||||||
<p>~Improved 404 screen that isn't an eye sore when you look at it in the dark</p>
|
~Improved 404 screen that isn't an eye sore when you look at it in the dark<br />
|
||||||
<p>~Bug Fixes</p>
|
~Bug Fixes<br />
|
||||||
<p>~Made the GUI more centered and prettier</p>
|
~Made the GUI more centered and prettier<br /><br />
|
||||||
<p>Version 0.0.8-2a</p>
|
Version 0.0.8-2a<br />
|
||||||
<p>=More WAV to MP3 fixes</p>
|
=More WAV to MP3 fixes<br /><br />
|
||||||
<p>Version 0.0.8-1a</p>
|
Version 0.0.8-1a<br />
|
||||||
<p>+A crash handler for 404 errors, should you have any.</p>
|
+A crash handler for 404 errors, should you have any.<br />
|
||||||
<p>+A little debug menu that can be found in the bug report application. Uncommenting it will enable it. At the moment, it is mostly useless.</p>
|
+A little debug menu that can be found in the bug report application. Uncommenting it will enable it. At the moment, it is mostly useless.<br />
|
||||||
<p>~A few minor patches</p>
|
~A few minor patches<br /><br />
|
||||||
<p>Version 0.0.8a</p>
|
Version 0.0.8a<br />
|
||||||
<p>+Shutdown animation</p>
|
+Shutdown animation<br />
|
||||||
<p>+Added icons for downloadable apps (apps in DremJS Market)</p>
|
+Added icons for downloadable apps (apps in DremJS Market)<br />
|
||||||
<p>=Better Shop app (no iframe inside an iframe)</p>
|
=Better Shop app (no iframe inside an iframe)<br />
|
||||||
<p>=Better way of getting downloads from DremJS Market (GitHub Releases)</p>
|
=Better way of getting downloads from DremJS Market (GitHub Releases)<br />
|
||||||
<p>=To prevent having to resize div in index-open.html, the start menu takes up the entire left hand side of the open page</p>
|
=To prevent having to resize div in index-open.html, the start menu takes up the entire left hand side of the open page<br />
|
||||||
<p>=SO MANY MORE BUG FIXES!!!</p>
|
=SO MANY MORE BUG FIXES!!!<br /><br />
|
||||||
<p>Version 0.0.7-3a</p>
|
Version 0.0.7-3a<br />
|
||||||
<p>Removed the underlines and made all application links black in the start menu.</p>
|
Removed the underlines and made all application links black in the start menu.<br /><br />
|
||||||
<p>Version 0.0.7-2a</p>
|
Version 0.0.7-2a<br />
|
||||||
<p>Ironically, fixed a bug in the debug application which caused DremJS to open in a new tab when clicking "Go Back" by simply removing it. That's the home button's job anyway!</p>
|
Ironically, fixed a bug in the debug application which caused DremJS to open in a new tab when clicking "Go Back" by simply removing it. That's the home button's job anyway!<br /><br />
|
||||||
<p>Version 0.0.7-1a</p>
|
Version 0.0.7-1a<br />
|
||||||
<p>~Compatibility Update</p>
|
~Compatibility Update<br />
|
||||||
<p>Tured some .wav files into mp3 files for consistancy, and for better support for MiniWeb</p>
|
Turned some .wav files into mp3 files for consistancy, and for better support for MiniWeb<br />
|
||||||
<p>Made the Debug application an application with the purpose of bug reporting</p>
|
Made the Debug application an application with the purpose of bug reporting<br /><br />
|
||||||
<p>Version 0.0.7a</p>
|
Version 0.0.7a<br />
|
||||||
<p>~Compatibility Update</p>
|
~Compatibility Update<br />
|
||||||
<p>+Changed iframes to use %'s rather than px. This will make the OS grow or shrink per the device's size. This was mainly added for smaller devices such as phones and tablets.</p>
|
+Changed iframes to use %'s rather than px. This will make the OS grow or shrink per the device's size. This was mainly added for smaller devices such as phones and tablets.<br /><br />
|
||||||
<p>Version 0.0.6-1a</p>
|
Version 0.0.6-1a<br />
|
||||||
<p>+Open menu sound added</p>
|
+Open menu sound added<br />
|
||||||
<p>+Ambient music added in some built in applications</p>
|
+Ambient music added in some built in applications<br /><br />
|
||||||
<p>Version 0.0.6a</p>
|
Version 0.0.6a<br />
|
||||||
<p>This update was really only made for fun and to make the OS overall prettier.</p>
|
This update was really only made for fun and to make the OS overall prettier.<br />
|
||||||
<p>~The Market got moved to the actual DremJS-Market repository so that everyone has the same DremJS Market</p>
|
~The Market got moved to the actual DremJS-Market repository so that everyone has the same DremJS Market<br />
|
||||||
<p>+App Icons!</p>
|
+App Icons!<br />
|
||||||
<p>+Favicon!</p>
|
+Favicon!<br />
|
||||||
<p>+Shutdown Button</p>
|
+Shutdown Button<br />
|
||||||
<p>+Shutdown Sound</p>
|
+Shutdown Sound<br />
|
||||||
<p>+Startup Sound</p>
|
+Startup Sound<br />
|
||||||
<p>+A few more small tweaks to make the OS prettier</p>
|
+A few more small tweaks to make the OS prettier<br /><br />
|
||||||
<p>Version 0.0.5a</p>
|
Version 0.0.5a<br />
|
||||||
<p>+Whats that?! It's a gradualy improving app store!! You must download DremJS and host it or run it on your browser on your own PC to use it though.</p>
|
+Whats that?! It's a gradualy improving app store!! You must download DremJS and host it or run it on your browser on your own PC to use it though.<br />
|
||||||
<p>Installation instructions are inside the zip that will download from it. Read it before you install!!!</p>
|
Installation instructions are inside the zip that will download from it. Read it before you install!!!<br /><br />
|
||||||
<p>Version 0.0.4a</p>
|
Version 0.0.4a<br />
|
||||||
<p>+Sam&Yoe Group: The Video Game</p>
|
+Sam&Yoe Group: The Video Game<br />
|
||||||
<p> ~Music has some problems</p>
|
~Music has some problems<br /><br />
|
||||||
<p>Version 0.0.3a</p>
|
Version 0.0.3a<br />
|
||||||
<p>Now for some functionality.</p>
|
Now for some functionality.<br />
|
||||||
<p>+TinyMCE Text Editor</p>
|
+TinyMCE Text Editor<br />
|
||||||
<p>+Paint app</p>
|
+Paint app<br /><br />
|
||||||
<p>Version 0.0.2a</p>
|
Version 0.0.2a<br />
|
||||||
<p>+This version actually used javascript for the home button! Now DremJS really is DremJS! Seriously though, when installing web apps on this thing that don't have a home button, this button is a life saver.</p>
|
+This version actually used javascript for the home button! Now DremJS really is DremJS! Seriously though, when installing web apps on this thing that don't have a home button, this button is a life saver.<br />
|
||||||
<p>-All built-in apps have gotten their home buttons removed due to the "master" home button.</p>
|
-All built-in apps have gotten their home buttons removed due to the "master" home button.<br />
|
||||||
<p>-Test Apps Removed (from start menu)</p>
|
-Test Apps Removed (from start menu)<br /><br />
|
||||||
<p>Version 0.0.1a</p>
|
Version 0.0.1a<br />
|
||||||
<p>The first ever version. Doesn't even have JS yet, despite the name. Don't expect much.</p>
|
The first ever version. Doesn't even have JS yet, despite the name. Don't expect much.<br />
|
||||||
<p>Future ideas:</p>
|
Future ideas:<br />
|
||||||
<p>To be able to go back to the home screen easier, I will soon add a home button by loading apps using iframe instead.</p>
|
To be able to go back to the home screen easier, I will soon add a home button by loading apps using iframe instead.</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Before Width: | Height: | Size: 508 KiB After Width: | Height: | Size: 508 KiB |
|
@ -10,6 +10,9 @@
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
body {
|
||||||
|
font-family: Calibri;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<body>
|
<body>
|
||||||
<embed src="ambient.mp3" width="0" height="0" loop="true" autostart="true" hidden="true">
|
<embed src="ambient.mp3" width="0" height="0" loop="true" autostart="true" hidden="true">
|
||||||
|
|
Binary file not shown.
|
@ -27,10 +27,10 @@
|
||||||
<a target="_blank" href="https://gitreports.com/issue/DremOSDeveloperTeam/DremJS"><button>Proceed</button></a>
|
<a target="_blank" href="https://gitreports.com/issue/DremOSDeveloperTeam/DremJS"><button>Proceed</button></a>
|
||||||
<hr />
|
<hr />
|
||||||
<!-- Uncomment everything below to enable the Debug Menu -->
|
<!-- Uncomment everything below to enable the Debug Menu -->
|
||||||
<h2>Debug Menu (only works if DremJS is on the root of your HTML server)</h2>
|
<!--<h2>Debug Menu (only works if DremJS is on the root of your HTML server)</h2>
|
||||||
<p>Notice: the debug menu is fairly useless at the moment.</p>
|
<p>Notice: the debug menu is fairly useless at the moment.</p>
|
||||||
<a href="/404.html"><button>Initiate 404 Crash</button></a>
|
<a href="/404.html"><button>Initiate 404 Crash</button></a>
|
||||||
<a href="/index.html" target="_parent"><button>Force DremJS to go to the Home Menu</button></a>
|
<a href="/index.html" target="_parent"><button>Force DremJS to go to the Home Menu</button></a>
|
||||||
<a href="../../terminal.html"><button>Start Terminal</button></a>
|
<a href="../../terminal.html"><button>Start Terminal</button></a>-->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Binary file not shown.
106
css/lite.css
Normal file
106
css/lite.css
Normal file
|
@ -0,0 +1,106 @@
|
||||||
|
::selection {
|
||||||
|
background: #ACCEF7;
|
||||||
|
}
|
||||||
|
html, body {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
font-size: 11pt;
|
||||||
|
font-family: Inconsolata, monospace;
|
||||||
|
color: black;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
#container {
|
||||||
|
padding: .1em 1.5em 1em 1em;
|
||||||
|
}
|
||||||
|
#container output {
|
||||||
|
clear: both;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#container output h3 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
#container output pre {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.input-line {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
-webkit-box-align: stretch;
|
||||||
|
display: -moz-box;
|
||||||
|
-moz-box-orient: horizontal;
|
||||||
|
-moz-box-align: stretch;
|
||||||
|
display: box;
|
||||||
|
box-orient: horizontal;
|
||||||
|
box-align: stretch;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.input-line > div:nth-child(2) {
|
||||||
|
-webkit-box-flex: 1;
|
||||||
|
-moz-box-flex: 1;
|
||||||
|
box-flex: 1;
|
||||||
|
}
|
||||||
|
.prompt {
|
||||||
|
white-space: nowrap;
|
||||||
|
color: #0000ff;
|
||||||
|
margin-right: 7px;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-pack: center;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
display: -moz-box;
|
||||||
|
-moz-box-pack: center;
|
||||||
|
-moz-box-orient: vertical;
|
||||||
|
display: box;
|
||||||
|
box-pack: center;
|
||||||
|
box-orient: vertical;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
.cmdline {
|
||||||
|
outline: none;
|
||||||
|
background-color: transparent;
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
font: inherit;
|
||||||
|
border: none;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.ls-files {
|
||||||
|
height: 45px;
|
||||||
|
-webkit-column-width: 100px;
|
||||||
|
-moz-column-width: 100px;
|
||||||
|
-o-column-width: 100px;
|
||||||
|
column-width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************/
|
||||||
|
/* SVG Clock */
|
||||||
|
/************************************************************/
|
||||||
|
|
||||||
|
.clock-container {
|
||||||
|
display: none /*inline-block*/;
|
||||||
|
position: relative;
|
||||||
|
width: 200px;
|
||||||
|
vertical-align: middle;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clock-container > svg > circle {
|
||||||
|
stroke-width: 2px;
|
||||||
|
stroke: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hour, .min, .sec {
|
||||||
|
stroke-width: 1px;
|
||||||
|
fill: #333;
|
||||||
|
stroke: #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sec {
|
||||||
|
stroke: #f55;
|
||||||
|
}
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
<html>
|
|
||||||
<!-- classes were from SparrOS Developer Team -->
|
|
||||||
<title>DremJS</title>
|
|
||||||
<embed src="mclose.mp3" width="0" height="0" loop="false" autostart="true" hidden="true" />
|
|
||||||
<audio loop autoplay>
|
|
||||||
Aw fiddle sticks. What now? (ERROR: 1040-0001)
|
|
||||||
Your browser doesn't support the AUDIO tag! Get a newer browser or update it
|
|
||||||
<source src="ambient.mp3" type="audio/mp3">
|
|
||||||
</audio>
|
|
||||||
<style>
|
|
||||||
a:link {
|
|
||||||
color: black;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
a:visited {
|
|
||||||
color: black;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.start {
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
bottom: 0px;
|
|
||||||
}
|
|
||||||
.cwhite {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
html {
|
|
||||||
background: url(DremJS-Background.png) no-repeat center center fixed;
|
|
||||||
-webkit-background-size: cover;
|
|
||||||
-moz-background-size: cover;
|
|
||||||
-o-background-size: cover;
|
|
||||||
background-size: cover;
|
|
||||||
}
|
|
||||||
.br1 {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 8px;
|
|
||||||
right: 16px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.br2 {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 22px;
|
|
||||||
right: 16px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.br3 {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 36px;
|
|
||||||
right: 16px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
div {
|
|
||||||
background-color: gray;
|
|
||||||
width: 50px;
|
|
||||||
padding: 0px;
|
|
||||||
border: 5px solid gray;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<body>
|
|
||||||
<p class="cwhite br3">DremJS Version 0.1.1b</p>
|
|
||||||
<p class="cwhite br2">Build 25</p>
|
|
||||||
<p class="cwhite br1">© Innovation Inc.</p>
|
|
||||||
<div class="start">
|
|
||||||
<a href="index-open.html"><p style="text-align:center;">Start</p></a>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
163
index-open.html
163
index-open.html
|
@ -1,163 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
|
||||||
<!-- classes were from SparrOS Developer Team -->
|
|
||||||
<title>DremJS</title>
|
|
||||||
<!--<embed src="mopen.mp3" width="0" height="0" loop="false" autostart="true" hidden="true" />
|
|
||||||
<audio loop autoplay>
|
|
||||||
Aw fiddle sticks. What now? (ERROR: 1040-0001)
|
|
||||||
Your browser doesn't support the AUDIO tag! Get a newer browser or update it
|
|
||||||
<source src="ambient.mp3" type="audio/mp3">
|
|
||||||
</audio>-->
|
|
||||||
<style>
|
|
||||||
.framewrap {
|
|
||||||
width:500px;
|
|
||||||
height:300px;
|
|
||||||
padding:10px;
|
|
||||||
position: fixed;
|
|
||||||
top: 50px;
|
|
||||||
left: 10px;
|
|
||||||
background-color:#87CEEB;
|
|
||||||
}
|
|
||||||
.appFrame {
|
|
||||||
width:99%;
|
|
||||||
height:93%;
|
|
||||||
background-color:#FFFFFF;
|
|
||||||
}
|
|
||||||
.start {
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
bottom: 0px;
|
|
||||||
}
|
|
||||||
.astart {
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
bottom: 50px;
|
|
||||||
}
|
|
||||||
.cwhite {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
.br1 {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 8px;
|
|
||||||
right: 16px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.br2 {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 22px;
|
|
||||||
right: 16px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.br3 {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 36px;
|
|
||||||
right: 16px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
html {
|
|
||||||
background: url(DremJS-Background.png) no-repeat center center fixed;
|
|
||||||
-webkit-background-size: cover;
|
|
||||||
-moz-background-size: cover;
|
|
||||||
-o-background-size: cover;
|
|
||||||
background-size: cover;
|
|
||||||
}
|
|
||||||
a:link {
|
|
||||||
color: black;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
a:visited {
|
|
||||||
color: black;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.startgray {
|
|
||||||
background-color: gray;
|
|
||||||
padding: 300px;
|
|
||||||
border: 5px solid gray;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.cent {
|
|
||||||
position: relative;
|
|
||||||
top: 4px;
|
|
||||||
}
|
|
||||||
.taskbar {
|
|
||||||
background-color: black;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 42px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body onload="initAgendaWM()">
|
|
||||||
<p class="cwhite br3">DremJS Version 0.1.2b</p>
|
|
||||||
<p class="cwhite br2">Build 31</p>
|
|
||||||
<p class="cwhite br1">© Innovation Inc.</p>
|
|
||||||
<div class="start startgray">
|
|
||||||
<ul class="astart">
|
|
||||||
<dt><a onclick="openApplication('About')"><p><img src="apps/About/about.png" align="top"> About DremJS</p></a></dt>
|
|
||||||
<dt><a onclick="openApplication('HowTo')"><p><img src="apps/HowTo/howto.png" align="top"> How to Install Applications</p></a></dt>
|
|
||||||
<dt><a onclick="openApplication('Market')"><p><img src="apps/Market/market.png" align="top"> DremJS Market</p></a></dt>
|
|
||||||
<dt><a onclick="openApplication('debug')"><p><img src="apps/debug/debug.png" align="top"> Report a Bug</p></a></dt>
|
|
||||||
<!--Below is where remotely installed apps will start -->
|
|
||||||
|
|
||||||
<hr />
|
|
||||||
<dt><a target="_top" href="shuttingdown.html"><p><img src="shutdown.png" align="top" style="width:16px;height:16px;"> Shutdown DremJS</p></dt>
|
|
||||||
</ul>
|
|
||||||
<a href="#"><p class="start" style="left:12px;">Start</p></a>
|
|
||||||
</div>
|
|
||||||
<div id="appContainer">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="taskbar">
|
|
||||||
<div class="cwhite" style="text-align:left" id="txt"></div> <a onclick="openApplication('About')"><img class="cent" src="apps/About/about.png"> |</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function initAgendaWM() {
|
|
||||||
makeDraggable();
|
|
||||||
startTime();
|
|
||||||
}
|
|
||||||
function makeDraggable() {
|
|
||||||
$(".framewrap")
|
|
||||||
.draggable()
|
|
||||||
.resizable();
|
|
||||||
}
|
|
||||||
function moveToFront(app) {
|
|
||||||
$('.framewrap').css('z-index', 1);
|
|
||||||
$('#' + app).css('z-index', 9999);
|
|
||||||
}
|
|
||||||
function openApplication(app) {
|
|
||||||
var i = 0;
|
|
||||||
while ($('#' + i).length)
|
|
||||||
i++;
|
|
||||||
var newElement="<div onclick=\"moveToFront('" + i + "')\" id='" + i + "' class='framewrap'><input type='button' onclick=\"closeApplication('" + i + "')\" value='X' /><iframe class='appFrame' src='apps/" + app + "/'></iframe></div>";
|
|
||||||
var parent=document.getElementById('appContainer');
|
|
||||||
parent.innerHTML+=newElement;
|
|
||||||
moveToFront(i);
|
|
||||||
makeDraggable();
|
|
||||||
}
|
|
||||||
function closeApplication(app) {
|
|
||||||
var element = document.getElementById(app);
|
|
||||||
element.parentNode.removeChild(element);
|
|
||||||
}
|
|
||||||
function startTime() {
|
|
||||||
var today = new Date();
|
|
||||||
var h = today.getHours();
|
|
||||||
var m = today.getMinutes();
|
|
||||||
var s = today.getSeconds();
|
|
||||||
m = checkTime(m);
|
|
||||||
s = checkTime(s);
|
|
||||||
document.getElementById('txt').innerHTML =
|
|
||||||
h + ":" + m + ":" + s;
|
|
||||||
var t = setTimeout(startTime, 500);
|
|
||||||
}
|
|
||||||
function checkTime(i) {
|
|
||||||
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
81
index.html
81
index.html
|
@ -5,12 +5,6 @@
|
||||||
<link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css"/>
|
<link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css"/>
|
||||||
<!-- classes were from SparrOS Developer Team -->
|
<!-- classes were from SparrOS Developer Team -->
|
||||||
<title>DremJS</title>
|
<title>DremJS</title>
|
||||||
<!--<embed src="mopen.mp3" width="0" height="0" loop="false" autostart="true" hidden="true" />
|
|
||||||
<audio loop autoplay>
|
|
||||||
Aw fiddle sticks. What now? (ERROR: 1040-0001)
|
|
||||||
Your browser doesn't support the AUDIO tag! Get a newer browser or update it
|
|
||||||
<source src="ambient.mp3" type="audio/mp3">
|
|
||||||
</audio>-->
|
|
||||||
<style>
|
<style>
|
||||||
.framewrap {
|
.framewrap {
|
||||||
width:500px;
|
width:500px;
|
||||||
|
@ -26,16 +20,6 @@
|
||||||
height:93%;
|
height:93%;
|
||||||
background-color:#FFFFFF;
|
background-color:#FFFFFF;
|
||||||
}
|
}
|
||||||
.start {
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
bottom: 0px;
|
|
||||||
}
|
|
||||||
.astart {
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
bottom: 50px;
|
|
||||||
}
|
|
||||||
.cwhite {
|
.cwhite {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
@ -64,6 +48,9 @@
|
||||||
-o-background-size: cover;
|
-o-background-size: cover;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
body {
|
||||||
|
font-family: Calibri;
|
||||||
|
}
|
||||||
a:link {
|
a:link {
|
||||||
color: black;
|
color: black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -72,12 +59,6 @@
|
||||||
color: black;
|
color: black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.startgray {
|
|
||||||
background-color: gray;
|
|
||||||
padding: 300px;
|
|
||||||
border: 5px solid gray;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.cent {
|
.cent {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
|
@ -88,6 +69,7 @@
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
/*z-index: 20000;*/
|
||||||
}
|
}
|
||||||
.taskbarTime {
|
.taskbarTime {
|
||||||
height: 42px;
|
height: 42px;
|
||||||
|
@ -99,24 +81,55 @@
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
.startbtn {
|
||||||
|
background-color: gray;
|
||||||
|
color: black;
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: none;
|
||||||
|
z-index: 30000;
|
||||||
|
}
|
||||||
|
.start-content {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
right:0px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
min-width: 200px;
|
||||||
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||||
|
padding: 12px 16px;
|
||||||
|
z-index: 30000;
|
||||||
|
}
|
||||||
|
.start {
|
||||||
|
position: absolute;
|
||||||
|
display: inline-block;
|
||||||
|
top:0px;
|
||||||
|
right:0px;
|
||||||
|
z-index:30000;
|
||||||
|
}
|
||||||
|
.start-content a:hover {background-color: #ccc}
|
||||||
|
.start:hover .start-content {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.start:hover .startbtn {
|
||||||
|
background-color: gray;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body onload="initAgendaWM()">
|
<body onload="initAgendaWM()">
|
||||||
<p class="cwhite br2">DremJS Version 0.1.4b</p>
|
<p class="cwhite br2">DremJS Version 0.1.5b</p>
|
||||||
<p class="cwhite br1">© Innovation Inc.</p>
|
<p class="cwhite br1">© Innovation Inc.</p>
|
||||||
<div class="start startgray">
|
|
||||||
<ul class="astart">
|
|
||||||
<dt><a onclick="openApplication('About', 800, 500, 'about.png')"><p><img src="apps/About/about.png" align="top"> About DremJS</p></a></dt>
|
|
||||||
<dt><a onclick="openApplication('HowTo', 800, 500, 'howto.png')"><p><img src="apps/HowTo/howto.png" align="top"> How to Install Applications</p></a></dt>
|
|
||||||
<dt><a onclick="openApplication('Market', 'max', 'max', 'market.png')"><p><img src="apps/Market/market.png" align="top"> DremJS Market</p></a></dt>
|
|
||||||
<dt><a onclick="openApplication('debug', 700, 450, 'debug.png')"><p><img src="apps/debug/debug.png" align="top"> Report a Bug</p></a></dt>
|
|
||||||
<dt><a onclick="openApplication('terminal', 700, 450, 'terminal.png')"><p><img src="apps/terminal/terminal.png" align="top" width="16" height="16"> Terminal</p></a></dt>
|
|
||||||
<!--Below is where remotely installed apps will start -->
|
|
||||||
|
|
||||||
|
<div class="start">
|
||||||
|
<button class="startbtn">Start</button>
|
||||||
|
<div class="start-content">
|
||||||
|
<a onclick="openApplication('About', 800, 500, 'about.png')"><p><img src="apps/About/about.png" align="top"> About DremJS</p></a>
|
||||||
|
<a onclick="openApplication('HowTo', 800, 500, 'howto.png')"><p><img src="apps/HowTo/howto.png" align="top"> How to Install Applications</p></a>
|
||||||
|
<a onclick="openApplication('Market', 'max', 'max', 'market.png')"><p><img src="apps/Market/market.png" align="top"> DremJS Market</p></a>
|
||||||
|
<a onclick="openApplication('debug', 700, 450, 'debug.png')"><p><img src="apps/debug/debug.png" align="top"> Report a Bug</p></a>
|
||||||
|
<a onclick="openApplication('terminal', 700, 450, 'terminal.png')"><p><img src="apps/terminal/terminal.png" align="top" width="16" height="16"> Terminal</p></a>
|
||||||
<hr />
|
<hr />
|
||||||
<dt><a target="_top" href="shuttingdown.html"><p><img src="shutdown.png" align="top" style="width:16px;height:16px;"> Shutdown DremJS</p></dt>
|
<a target="_top" href="shuttingdown.html"><p><img src="shutdown.png" align="top" style="width:16px;height:16px;"> Shutdown DremJS</p>
|
||||||
</ul>
|
</div>
|
||||||
<a href="#"><p class="start" style="left:12px;">Start</p></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="appContainer">
|
<div id="appContainer">
|
||||||
<!-- This is the taskbar -->
|
<!-- This is the taskbar -->
|
||||||
|
|
10364
jquery/jquery-3.3.1.js
vendored
10364
jquery/jquery-3.3.1.js
vendored
File diff suppressed because it is too large
Load diff
2
jquery/jquery-3.3.1.min.js
vendored
2
jquery/jquery-3.3.1.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
@ -8,6 +8,23 @@ var modules = [];
|
||||||
var moduleCode = [];
|
var moduleCode = [];
|
||||||
var modInstall;
|
var modInstall;
|
||||||
var firstLine = "";
|
var firstLine = "";
|
||||||
|
var theme = getCookie('terminalTheme');
|
||||||
|
|
||||||
|
function getCookie(cname) {
|
||||||
|
var name = cname + "=";
|
||||||
|
var decodedCookie = decodeURIComponent(document.cookie);
|
||||||
|
var ca = decodedCookie.split(';');
|
||||||
|
for(var i = 0; i <ca.length; i++) {
|
||||||
|
var c = ca[i];
|
||||||
|
while (c.charAt(0) == ' ') {
|
||||||
|
c = c.substring(1);
|
||||||
|
}
|
||||||
|
if (c.indexOf(name) == 0) {
|
||||||
|
return c.substring(name.length, c.length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
util.toArray = function(list) {
|
util.toArray = function(list) {
|
||||||
return Array.prototype.slice.call(list || [], 0);
|
return Array.prototype.slice.call(list || [], 0);
|
||||||
|
@ -32,7 +49,7 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
|
||||||
var output_ = document.querySelector(outputContainer);
|
var output_ = document.querySelector(outputContainer);
|
||||||
|
|
||||||
cmds = [
|
cmds = [
|
||||||
'cat', 'clear', 'clock', 'date', 'echo', 'help', 'uname', 'cmd_fm', 'procman', 'insmod', 'rmmod'
|
'cat', 'clear', 'clock', 'date', 'echo', 'help', 'uname', 'cmd_fm', 'procman', 'insmod', 'rmmod', 'settheme'
|
||||||
];
|
];
|
||||||
|
|
||||||
var fs_ = null;
|
var fs_ = null;
|
||||||
|
@ -250,7 +267,7 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
|
||||||
if (firstLine == "type immediate") {
|
if (firstLine == "type immediate") {
|
||||||
output('[insmod] module type is immediate');
|
output('[insmod] module type is immediate');
|
||||||
moduleTypeFlag = 1;
|
moduleTypeFlag = 1;
|
||||||
output('[insmod] fatal: module type "immediate" not implimented. Maybe 0.1.5b?');
|
output('[insmod] fatal: module type "immediate" not implimented. Maybe 0.1.6b?');
|
||||||
} else if (firstLine == "type terminal") {
|
} else if (firstLine == "type terminal") {
|
||||||
output('[insmod] module type is terminal');
|
output('[insmod] module type is terminal');
|
||||||
moduleTypeFlag = 2;
|
moduleTypeFlag = 2;
|
||||||
|
@ -269,13 +286,13 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
|
||||||
} else if (firstLine == "type parentscript") {
|
} else if (firstLine == "type parentscript") {
|
||||||
output('[insmod] module type is parentscript');
|
output('[insmod] module type is parentscript');
|
||||||
moduleTypeFlag = 3;
|
moduleTypeFlag = 3;
|
||||||
output('[insmod] fatal: module type "parentscript" not implimented. Maybe 0.1.5b?');
|
output('[insmod] fatal: module type "parentscript" not implimented. Maybe 0.1.6b?');
|
||||||
} else {
|
} else {
|
||||||
output('[insmod] fatal: the input file is not a DremJS Module or DremJS Module Script');
|
output('[insmod] fatal: the input file is not a DremJS Module or DremJS Module Script');
|
||||||
moduleTypeFlag = 0;
|
moduleTypeFlag = 0;
|
||||||
}
|
}
|
||||||
/*if (moduleTypeFlag = 1) {
|
/*if (moduleTypeFlag = 1) {
|
||||||
output('[insmod] fatal: not implimented. Maybe 0.1.5b?');
|
output('[insmod] fatal: not implimented. Maybe 0.1.6b?');
|
||||||
} else if */
|
} else if */
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -284,7 +301,7 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
|
||||||
break;
|
break;
|
||||||
} else if ((args[1].substring(args[1].length-6)) == ".djsms") {
|
} else if ((args[1].substring(args[1].length-6)) == ".djsms") {
|
||||||
//output('Running module installation script at ' + args[1] + '...');
|
//output('Running module installation script at ' + args[1] + '...');
|
||||||
output('[insmod] fatal: module installation scripts are not implimented. Maybe 0.1.5b?');
|
output('[insmod] fatal: module installation scripts are not implimented. Maybe 0.1.6b?');
|
||||||
} else {
|
} else {
|
||||||
output('[insmod] fatal: the input file is not a DremJS Module or DremJS Module Script');
|
output('[insmod] fatal: the input file is not a DremJS Module or DremJS Module Script');
|
||||||
break;
|
break;
|
||||||
|
@ -298,7 +315,22 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'rmmod':
|
case 'rmmod':
|
||||||
output('[rmmod] fatal: not implimented. Maybe 0.1.5b?');
|
output('[rmmod] fatal: not implimented. Maybe 0.1.6b?');
|
||||||
|
break;
|
||||||
|
case 'settheme':
|
||||||
|
if (args[0] == 0 || args[0] == "dark") {
|
||||||
|
document.cookie = "terminalTheme=0";
|
||||||
|
output('Terminal theme updated to dark mode. Please restart the terminal for changes to take effect.')
|
||||||
|
} else if (args[0] == 1 || args[0] == "lite") {
|
||||||
|
document.cookie = "terminalTheme=1";
|
||||||
|
output('Terminal theme updated to lite mode. Please restart the terminal for changes to take effect.')
|
||||||
|
} else {
|
||||||
|
output('Usage:');
|
||||||
|
output('settheme <theme>');
|
||||||
|
output('Possible themes:');
|
||||||
|
output('0 - dark');
|
||||||
|
output('1 - lite');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
@ -384,7 +416,11 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
|
||||||
//
|
//
|
||||||
return {
|
return {
|
||||||
init: function() {
|
init: function() {
|
||||||
output('<img align="left" src="termlogo.png" width="100" height="100" style="padding: 0px 10px 20px 0px"><h2 style="letter-spacing: 4px">DremJS Terminal</h2><p>' + new Date() + '</p><p>Enter "help" for more information.</p>');
|
if(theme == 0) {
|
||||||
|
output('<img align="left" src="termlogo-dark.png" width="100" height="100" style="padding: 0px 10px 20px 0px"><h2 style="letter-spacing: 4px">DremJS Terminal</h2><p>' + new Date() + '</p><p>Enter "help" for more information.</p>');
|
||||||
|
} else {
|
||||||
|
output('<img align="left" src="termlogo-lite.png" width="100" height="100" style="padding: 0px 10px 20px 0px"><h2 style="letter-spacing: 4px">DremJS Terminal</h2><p>' + new Date() + '</p><p>Enter "help" for more information.</p>');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
output: output
|
output: output
|
||||||
}
|
}
|
||||||
|
|
BIN
mclose.mp3
BIN
mclose.mp3
Binary file not shown.
|
@ -5,14 +5,11 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>DremJS Terminal</title>
|
<title>DremJS Terminal</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" title="dark" href="css/dark.css">
|
||||||
|
<!--<link rel="alternate stylesheet" type="text/css" title="lite" href="css/lite.css">-->
|
||||||
<link rel="stylesheet" href="css/style.css">
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body onload="setTheme();">
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -23,6 +20,46 @@
|
||||||
rel="stylesheet" type="text/css" />
|
rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<script>
|
||||||
|
function setTheme() {
|
||||||
|
if (checkCookie('terminalTheme') == false) {
|
||||||
|
document.cookie = "terminalTheme=0";
|
||||||
|
} else {
|
||||||
|
theme = getCookie('terminalTheme');
|
||||||
|
if (theme == 1) {
|
||||||
|
/*var stylesheet = document.getElementById("stylesheet");
|
||||||
|
stylesheet.setAttribute('href', 'css/lite.css');*/
|
||||||
|
var cssLink = $('link[href*="css/dark.css"]');
|
||||||
|
cssLink.replaceWith('<link href="css/lite.css" type="text/css" rel="stylesheet">');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkCookie(cname) {
|
||||||
|
var cookie = getCookie(cname);
|
||||||
|
if (cookie != "") {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getCookie(cname) {
|
||||||
|
var name = cname + "=";
|
||||||
|
var decodedCookie = decodeURIComponent(document.cookie);
|
||||||
|
var ca = decodedCookie.split(';');
|
||||||
|
for(var i = 0; i <ca.length; i++) {
|
||||||
|
var c = ca[i];
|
||||||
|
while (c.charAt(0) == ' ') {
|
||||||
|
c = c.substring(1);
|
||||||
|
}
|
||||||
|
if (c.indexOf(name) == 0) {
|
||||||
|
return c.substring(name.length, c.length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<output></output>
|
<output></output>
|
||||||
<div id="input-line" class="input-line">
|
<div id="input-line" class="input-line">
|
||||||
|
|
BIN
termlogo-dark.png
Normal file
BIN
termlogo-dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 508 KiB |
BIN
termlogo-lite.png
Normal file
BIN
termlogo-lite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 508 KiB |
Loading…
Reference in a new issue