This commit is contained in:
DremOSDeveloperTeam 2020-03-30 22:57:55 -05:00
parent 5f0583dc1c
commit 7e06b5f4cf
22 changed files with 375 additions and 19018 deletions

Binary file not shown.

View file

@ -1,106 +1,135 @@
<html>
<head>
<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>
<body>
<section class="container">
<div class="left">
<img src="logo.png" style="width:128px;height:128px" />
</div>
<div class="right">
<h1>About DremJS</h1>
<h2>Version: 0.1.4b</h2>
<h2>Version: 0.1.5b</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>
<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>
<p>Changelog:</p>
<p>Version 0.1.4b</p>
<p>+Added ProcMan (Process Manager) to the terminal which allows you to list all processes or kill a process</p>
<p>+Added insmod (Install Module). It's on its first prototype so it's not able to do much.</p>
<p>~Separated Terminal from Debug and made it accessible when not in Debug mode.</p>
<p>~Updated Terminal image.</p>
<p>~Probable a ton more changes that I forgot about before I went on a break</p>
<p>~Updated to Agenda WM 0.1.0b, which adds some new features and tweaks including, but not limited to:</p>
<p> ~Made Agenda its own .js file</p>
<p> ~Moved the taskbar that was originally in DremJS into Agenda WM</p>
<p> +Added the ability to minimize and restore applications (hence the taskbar move)</p>
<p>Version 0.1.3b</p>
<p>~Updated to Agenda WM 0.0.4b, which adds some new features and tweaks including, but not limited to:
<p> +A maximize button</p>
<p> +The ability to launch applications with a specific size.</p>
<p>Version 0.1.2b (Hotfix 1)</p>
<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>
<p>Version 0.1.2b</p>
<p>This is a very important and large release for DremJS!</p>
<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>
</div>
</section>
<p>Changelog:<br />
Version 0.1.5b<br />
+Readded the start menu<br />
+A lite theme for the terminal, if that's your thing. You can toggle the theme with "settheme".<br />
~DremJS went on a strict diet and lost about 15MBs<br />
~Changed DremJS's font to Calibri<br />
~Overhauled the About application a lot.
~General system stability improvements to enhance the user's experience.
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 />
Version 0.1.4b<br />
+Added ProcMan (Process Manager) to the terminal which allows you to list all processes or kill a process<br />
+Added insmod (Install Module). It's on its first prototype so it's not able to do much.<br />
~Separated Terminal from Debug and made it accessible when not in Debug mode.<br />
~Updated Terminal image.<br />
~Probable a ton more changes that I forgot about before I went on a break<br />
~Updated to Agenda WM 0.1.0b, which adds some new features and tweaks including, but not limited to:<br />
~Made Agenda its own .js file<br />
~Moved the taskbar that was originally in DremJS into Agenda WM<br />
+Added the ability to minimize and restore applications (hence the taskbar move)<br /><br />
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... -->
<!--<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>-->
<p>+++With the brand new Agenda WM, you can now multitask in DremJS!</p>
<p>+Added 'cmd_fm' command to terminal. CMD.FM is a free online radio service that looks like a computer terminal.</p>
<p>Version 0.1.1b</p>
<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>
<p>~Some UI Tweaks</p>
<p>~Bug Fixes</p>
<p>~Made the shutdown function actually shut DremJS down</p>
<p>Version 0.1.0b</p>
<p>+A taskbar</p>
<p>++Home button moved to taskbar</p>
<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>
<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>
<p>Version 0.0.9-1a</p>
<p>+PVT Counter</p>
<p>~Improved 404 screen that isn't an eye sore when you look at it in the dark</p>
<p>~Bug Fixes</p>
<p>~Made the GUI more centered and prettier</p>
<p>Version 0.0.8-2a</p>
<p>=More WAV to MP3 fixes</p>
<p>Version 0.0.8-1a</p>
<p>+A crash handler for 404 errors, should you have any.</p>
<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>
<p>~A few minor patches</p>
<p>Version 0.0.8a</p>
<p>+Shutdown animation</p>
<p>+Added icons for downloadable apps (apps in DremJS Market)</p>
<p>=Better Shop app (no iframe inside an iframe)</p>
<p>=Better way of getting downloads from DremJS Market (GitHub Releases)</p>
<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>
<p>=SO MANY MORE BUG FIXES!!!</p>
<p>Version 0.0.7-3a</p>
<p>Removed the underlines and made all application links black in the start menu.</p>
<p>Version 0.0.7-2a</p>
<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>
<p>Version 0.0.7-1a</p>
<p>~Compatibility Update</p>
<p>Tured some .wav files into mp3 files for consistancy, and for better support for MiniWeb</p>
<p>Made the Debug application an application with the purpose of bug reporting</p>
<p>Version 0.0.7a</p>
<p>~Compatibility Update</p>
<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>
<p>Version 0.0.6-1a</p>
<p>+Open menu sound added</p>
<p>+Ambient music added in some built in applications</p>
<p>Version 0.0.6a</p>
<p>This update was really only made for fun and to make the OS overall prettier.</p>
<p>~The Market got moved to the actual DremJS-Market repository so that everyone has the same DremJS Market</p>
<p>+App Icons!</p>
<p>+Favicon!</p>
<p>+Shutdown Button</p>
<p>+Shutdown Sound</p>
<p>+Startup Sound</p>
<p>+A few more small tweaks to make the OS prettier</p>
<p>Version 0.0.5a</p>
<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>
<p>Installation instructions are inside the zip that will download from it. Read it before you install!!!</p>
<p>Version 0.0.4a</p>
<p>+Sam&Yoe Group: The Video Game</p>
<p> ~Music has some problems</p>
<p>Version 0.0.3a</p>
<p>Now for some functionality.</p>
<p>+TinyMCE Text Editor</p>
<p>+Paint app</p>
<p>Version 0.0.2a</p>
<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>
<p>-All built-in apps have gotten their home buttons removed due to the "master" home button.</p>
<p>-Test Apps Removed (from start menu)</p>
<p>Version 0.0.1a</p>
<p>The first ever version. Doesn't even have JS yet, despite the name. Don't expect much.</p>
<p>Future ideas:</p>
<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>
<!--+++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.-->
+++With the brand new Agenda WM, you can now multitask in DremJS!<br />
+Added 'cmd_fm' command to terminal. CMD.FM is a free online radio service that looks like a computer terminal. <br /><br />
Version 0.1.1b<br />
+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 />
~Some UI Tweaks<br />
~Bug Fixes<br />
~Made the shutdown function actually shut DremJS down<br /><br />
Version 0.1.0b<br />
+A taskbar<br />
++Home button moved to taskbar<br />
++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 />
~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 />
Version 0.0.9-1a<br />
+PVT Counter<br />
~Improved 404 screen that isn't an eye sore when you look at it in the dark<br />
~Bug Fixes<br />
~Made the GUI more centered and prettier<br /><br />
Version 0.0.8-2a<br />
=More WAV to MP3 fixes<br /><br />
Version 0.0.8-1a<br />
+A crash handler for 404 errors, should you have any.<br />
+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 />
~A few minor patches<br /><br />
Version 0.0.8a<br />
+Shutdown animation<br />
+Added icons for downloadable apps (apps in DremJS Market)<br />
=Better Shop app (no iframe inside an iframe)<br />
=Better way of getting downloads from DremJS Market (GitHub Releases)<br />
=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 />
=SO MANY MORE BUG FIXES!!!<br /><br />
Version 0.0.7-3a<br />
Removed the underlines and made all application links black in the start menu.<br /><br />
Version 0.0.7-2a<br />
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 />
Version 0.0.7-1a<br />
~Compatibility Update<br />
Turned some .wav files into mp3 files for consistancy, and for better support for MiniWeb<br />
Made the Debug application an application with the purpose of bug reporting<br /><br />
Version 0.0.7a<br />
~Compatibility Update<br />
+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 />
Version 0.0.6-1a<br />
+Open menu sound added<br />
+Ambient music added in some built in applications<br /><br />
Version 0.0.6a<br />
This update was really only made for fun and to make the OS overall prettier.<br />
~The Market got moved to the actual DremJS-Market repository so that everyone has the same DremJS Market<br />
+App Icons!<br />
+Favicon!<br />
+Shutdown Button<br />
+Shutdown Sound<br />
+Startup Sound<br />
+A few more small tweaks to make the OS prettier<br /><br />
Version 0.0.5a<br />
+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 />
Installation instructions are inside the zip that will download from it. Read it before you install!!!<br /><br />
Version 0.0.4a<br />
+Sam&Yoe Group: The Video Game<br />
~Music has some problems<br /><br />
Version 0.0.3a<br />
Now for some functionality.<br />
+TinyMCE Text Editor<br />
+Paint app<br /><br />
Version 0.0.2a<br />
+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 />
-All built-in apps have gotten their home buttons removed due to the "master" home button.<br />
-Test Apps Removed (from start menu)<br /><br />
Version 0.0.1a<br />
The first ever version. Doesn't even have JS yet, despite the name. Don't expect much.<br />
Future ideas:<br />
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>
</html>

View file

Before

Width:  |  Height:  |  Size: 508 KiB

After

Width:  |  Height:  |  Size: 508 KiB

View file

@ -10,6 +10,9 @@
padding: 5px;
display: block;
}
body {
font-family: Calibri;
}
</style>
<body>
<embed src="ambient.mp3" width="0" height="0" loop="true" autostart="true" hidden="true">

Binary file not shown.

View file

@ -27,10 +27,10 @@
<a target="_blank" href="https://gitreports.com/issue/DremOSDeveloperTeam/DremJS"><button>Proceed</button></a>
<hr />
<!-- 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>
<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="../../terminal.html"><button>Start Terminal</button></a>
<a href="../../terminal.html"><button>Start Terminal</button></a>-->
</body>
</html>

Binary file not shown.

106
css/lite.css Normal file
View 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;
}

View file

@ -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">&copy; Innovation Inc.</p>
<div class="start">
<a href="index-open.html"><p style="text-align:center;">Start</p></a>
</div>
</body>
</html>

View file

@ -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">&copy; 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>

View file

@ -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"/>
<!-- 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;
@ -26,16 +20,6 @@
height:93%;
background-color:#FFFFFF;
}
.start {
position: absolute;
left: 0px;
bottom: 0px;
}
.astart {
position: absolute;
left: 0px;
bottom: 50px;
}
.cwhite {
color: white;
}
@ -64,6 +48,9 @@
-o-background-size: cover;
background-size: cover;
}
body {
font-family: Calibri;
}
a:link {
color: black;
text-decoration: none;
@ -72,12 +59,6 @@
color: black;
text-decoration: none;
}
.startgray {
background-color: gray;
padding: 300px;
border: 5px solid gray;
margin: 0;
}
.cent {
position: relative;
top: 4px;
@ -88,6 +69,7 @@
top: 0;
right: 0;
width: 100%;
/*z-index: 20000;*/
}
.taskbarTime {
height: 42px;
@ -99,24 +81,55 @@
margin-left: 5px;
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>
</head>
<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">&copy; 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 />
<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>
<a target="_top" href="shuttingdown.html"><p><img src="shutdown.png" align="top" style="width:16px;height:16px;"> Shutdown DremJS</p>
</div>
</div>
<div id="appContainer">
<!-- This is the taskbar -->

10364
jquery/jquery-3.3.1.js vendored

File diff suppressed because it is too large Load diff

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.

View file

@ -8,6 +8,23 @@ var modules = [];
var moduleCode = [];
var modInstall;
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) {
return Array.prototype.slice.call(list || [], 0);
@ -32,7 +49,7 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
var output_ = document.querySelector(outputContainer);
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;
@ -250,7 +267,7 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
if (firstLine == "type immediate") {
output('[insmod] module type is immediate');
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") {
output('[insmod] module type is terminal');
moduleTypeFlag = 2;
@ -269,13 +286,13 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
} else if (firstLine == "type parentscript") {
output('[insmod] module type is parentscript');
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 {
output('[insmod] fatal: the input file is not a DremJS Module or DremJS Module Script');
moduleTypeFlag = 0;
}
/*if (moduleTypeFlag = 1) {
output('[insmod] fatal: not implimented. Maybe 0.1.5b?');
output('[insmod] fatal: not implimented. Maybe 0.1.6b?');
} else if */
});
@ -284,7 +301,7 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
break;
} else if ((args[1].substring(args[1].length-6)) == ".djsms") {
//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 {
output('[insmod] fatal: the input file is not a DremJS Module or DremJS Module Script');
break;
@ -298,7 +315,22 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
}
break;
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;
default:
@ -384,7 +416,11 @@ var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
//
return {
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
}

Binary file not shown.

BIN
mopen.mp3

Binary file not shown.

View file

@ -5,14 +5,11 @@
<meta charset="UTF-8">
<title>DremJS Terminal</title>
<link rel="stylesheet" href="css/style.css">
<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">-->
</head>
<body>
<body onload="setTheme();">
<html>
<head>
@ -23,6 +20,46 @@
rel="stylesheet" type="text/css" />
</head>
<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">
<output></output>
<div id="input-line" class="input-line">

BIN
termlogo-dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

BIN
termlogo-lite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB