So, yesterday I felt rather bored and was inspired to give it another shot. Surprisingly in just a few hours work I've got something that's working fairly well, probably as I'm using Bedrock so I haven't needed to worry about tons of stuff.
Screenshots
Spoiler
Anyway, this is a really basic example page.And another one, this will hopefully eventually become some form of Google type thing.
This shows inline elements (multiple things side by side).
This shows forms.
At this stage it supports a few types of tags, headings (h), paragraphs (p), images (img), dividers/colour blocks (div), empty lines (br) and a way to center child elements (center). It's only loading a local page at the moment, but the awesome thing about it is you will be able to use things like PHP and the like to make completely dynamic pages. Oh and it supports scrolling too which is pretty useful.
I'll probably make a Google type site, or at the very least a site listing page, so you can find pages you can actually view. I also want to add Lua, which would be used similar to JavaScript, soon.
Here's the markup for the top screenshot. I'm calling the format 'CCML' (ComputerCraft Markup Language), but I'll probably ignore the file extension so you can still use things like index.html without needing to change server stuff.
Spoiler
<!DOCTYPE ccml>
<html>
<head>
<title>My Page Title</title>
<meta name="description" content="A page description." />
<meta name="keywords" content="keyword anotherkeyword" />
<script>
-- This will be Lua
-- I'll try to add a jQuery type API to allow you to easily modify the page.
-- No guarantees though.
</script>
<script src="">
-- Basically the same as above, except that you can load it from a external script.
-- Not sure whether I should use <link> for this.
-- I always thought it made more sense to use link for external JavaScript files
-- But it goes against convention
</script>
</head>
<body>
<br/>
<h bgcolour="white" colour="blue">Welcome!</h>
<center>
<p width="38" align="center">Introducing the juicy goodness of CCML, powered by Quest, the first true web browser for ComputerCraft!</p>
</center>
<br/>
<center>
<img type="nft" src="test.nft" width="10" height="3" />
</center>
<br/>
<div bgcolour="blue">
<br/>
<center>
<h colour="white">I also support divs!</h>
</center>
</div>
</body>
</html>
At this stage I'm really looking for feedback about how makes are made and their layout. If people don't like the way they're made or viewed there's not much point in making this. Any comments or questions are most welcome.
Preview Download
This isn't a final product. It's really just to allow you to make sites ready for release at this stage. Download all the files on GitHub: https://github.com/oeed/Quest
Alternatively use a single file Pastebin.
Client: pastebin get VDUGPdiA quest
Wi-Fi Server: pastebin get qpWzu0HA questserver
Oh and this will be included in OneOS obviously, and I'll also make sure to release it as a standalone program too.