From 5e05f276c5ea784df0de86d70bf7aab2e5de32d5 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 9 Sep 2021 12:30:24 +1000 Subject: Rejig the web stuff. Move to examples to example/var/www. Move the web socket to scRoot/var/run. Make the name of the web socket configurable. Populate the scRoot/var/www from exomples if it's empty. Everyone uses SledjChisl.css now. Some clean ups. Comment++ --- example/var/www/html/SledjChisl.css | 89 ++++++++++++++++++++++++++++ example/var/www/html/SledjHamr.png | Bin 0 -> 1655233 bytes example/var/www/html/SledjHamrIcon.png | Bin 0 -> 95362 bytes example/var/www/html/SledjHamrIconSmall.png | Bin 0 -> 8535 bytes example/var/www/html/about.html | 13 ++++ example/var/www/html/debugStyle.css | 36 +++++++++++ example/var/www/html/help.html | 13 ++++ example/var/www/html/loginpage.html | 50 ++++++++++++++++ example/var/www/html/password_help.html | 13 ++++ example/var/www/html/register.html | 17 ++++++ example/var/www/html/stats.html | 29 +++++++++ 11 files changed, 260 insertions(+) create mode 100644 example/var/www/html/SledjChisl.css create mode 100644 example/var/www/html/SledjHamr.png create mode 100644 example/var/www/html/SledjHamrIcon.png create mode 100644 example/var/www/html/SledjHamrIconSmall.png create mode 100644 example/var/www/html/about.html create mode 100644 example/var/www/html/debugStyle.css create mode 100644 example/var/www/html/help.html create mode 100644 example/var/www/html/loginpage.html create mode 100644 example/var/www/html/password_help.html create mode 100644 example/var/www/html/register.html create mode 100644 example/var/www/html/stats.html (limited to 'example/var') diff --git a/example/var/www/html/SledjChisl.css b/example/var/www/html/SledjChisl.css new file mode 100644 index 0000000..95b55cb --- /dev/null +++ b/example/var/www/html/SledjChisl.css @@ -0,0 +1,89 @@ +html, body +{ + background-color: black; + color: white; + font-family: 'sans-serif'; + margin: 0; + padding: 0; +} + +a {color: aqua;} +a:link {color: aqua;} +a:visited {color: fuchsia;} +a:hover {color: blue;} +a:active {color: red;} + +button +{ + background-color: darkgreen; + color: white; + font-family: 'sans-serif'; +} +button:hover {color: blue;} +button:active {color: red;} + +label +{ + background-color:darkgreen; + color: white; + font-family: 'sans-serif'; + font-size: 160%; +} +input +{ + background-color:darkblue; + color: white; + font-family: 'sans-serif'; + font-size: 80%; +} +textarea +{ + background-color:darkblue; + color: white; + font-family: 'sans-serif'; + font-size: 80%; + /* What idiot thought aligning the label with the bottom of textareas was a good default? */ + vertical-align: top; +} + +.container +{ + position: relative; + text-align: left; +} +.top-left +{ + position: absolute; + top: 8px; + left: 16px; + width: 30%; +} +.top-right +{ + position: absolute; + top: 8px; + right: 16px; + width: 30%; +} +.centre +{ + position: absolute; + top: 50%; + left: 50%; + width: 30%; + transform: translate(-50%, -50%); +} +.bottom-left +{ + position: absolute; + bottom: 8px; + left: 16px; + width: 30%; +} +.bottom-right +{ + position: absolute; + bottom: 8px; + right: 16px; + width: 30%; +} diff --git a/example/var/www/html/SledjHamr.png b/example/var/www/html/SledjHamr.png new file mode 100644 index 0000000..9089573 Binary files /dev/null and b/example/var/www/html/SledjHamr.png differ diff --git a/example/var/www/html/SledjHamrIcon.png b/example/var/www/html/SledjHamrIcon.png new file mode 100644 index 0000000..e3b50e1 Binary files /dev/null and b/example/var/www/html/SledjHamrIcon.png differ diff --git a/example/var/www/html/SledjHamrIconSmall.png b/example/var/www/html/SledjHamrIconSmall.png new file mode 100644 index 0000000..a1a6d72 Binary files /dev/null and b/example/var/www/html/SledjHamrIconSmall.png differ diff --git a/example/var/www/html/about.html b/example/var/www/html/about.html new file mode 100644 index 0000000..7294c21 --- /dev/null +++ b/example/var/www/html/about.html @@ -0,0 +1,13 @@ + +About this grid + + + + + + + +

This is a virtual world, usually called a grid, based on opensim-SC.

+

 

+ + diff --git a/example/var/www/html/debugStyle.css b/example/var/www/html/debugStyle.css new file mode 100644 index 0000000..98645cc --- /dev/null +++ b/example/var/www/html/debugStyle.css @@ -0,0 +1,36 @@ +.hoverWrapper0:hover #hoverShow0 +{ + display: block; + border-style: solid; + border-color: fuchsia; +} +.hoverWrapper0 #hoverShow0 +{ + display: none; + background-color: #222222; + text-align: left; + position: absolute; + width: 100%; + border-style: solid; + border-color: fuchsia; +} +.hoverWrapper1:hover #hoverShow1 +{ + display: block; + border-style: solid; + border-color: fuchsia; +} +.hoverWrapper1 #hoverShow1 +{ + display: none; + background-color: #222222; + text-align: left; + position: absolute; + width: 100%; + border-style: solid; + border-color: fuchsia; +} +.hoverItem +{ + border: 1px solid fuchsia; +} diff --git a/example/var/www/html/help.html b/example/var/www/html/help.html new file mode 100644 index 0000000..17022d8 --- /dev/null +++ b/example/var/www/html/help.html @@ -0,0 +1,13 @@ + +Help for this grid + + + + + + + +

Include help for your grid here.

+

 

+ + diff --git a/example/var/www/html/loginpage.html b/example/var/www/html/loginpage.html new file mode 100644 index 0000000..38d5761 --- /dev/null +++ b/example/var/www/html/loginpage.html @@ -0,0 +1,50 @@ + +<!--#echo var="grid" --> splash page + + + + + + + + +
+ SledjHamr +
+

+

+

DEBUG

+
+

DEBUG log

+ +
+
+

+

Add your fancy splash page for here.

+

 

+

 

+

 

+

Perhaps describe here.

+
+
+

is

+

Login URI -

+

 

+

There are members of this grid.

+

There are locals and hypergrid visitors in world.

+

There are locals out on the hypergrid.

+

There have been locals and visitors on this grid in the last month.

+

There are regions, though some might not be online right now.

+
+
+

Maybe add some news or events here, or something.

+
+
+

CSS by Taylor Temper, photo by onefang rejected.

+
+
+

is running , + part of the SledjHamr project.

+
+ + diff --git a/example/var/www/html/password_help.html b/example/var/www/html/password_help.html new file mode 100644 index 0000000..db6c659 --- /dev/null +++ b/example/var/www/html/password_help.html @@ -0,0 +1,13 @@ + +Password help for this grid + + + + + + + +

Include password help for your grid here.

+

 

+ + diff --git a/example/var/www/html/register.html b/example/var/www/html/register.html new file mode 100644 index 0000000..e37d2b0 --- /dev/null +++ b/example/var/www/html/register.html @@ -0,0 +1,17 @@ + + Account for this grid + + + + + + + +

Include account registration help for your grid here.

+

 

+

If you want to register an account on this grid, ask the person that runs it to do that for you.

+

 

+

If you want to register an account on this grid, click here (when it's written).

+

 

+ + diff --git a/example/var/www/html/stats.html b/example/var/www/html/stats.html new file mode 100644 index 0000000..a48ee01 --- /dev/null +++ b/example/var/www/html/stats.html @@ -0,0 +1,29 @@ + + <!--#echo var="grid" --> stats page + + + + + + + + +

statistics.

+

Grid is -

+

Login URI -

+

Login page - /loginpage.html">/loginpage.html

+

There are members of this grid.

+

There are locals and hypergrid visitors in world right now.

+

There are locals out on the hypergrid right now.

+

There have been locals and hypergrid visitors on this grid in the last 30 days ( total).

+

There have been locals and hypergrid visitors on this grid in the last 60 days ( total).

+

There are regions, though might not be online right now.

+

There may be regions online, with a total area of roughly square metres.

+

There are varregions that might be online now.

+

There are normal regions that might be online now.

+

is running , + part of the SledjHamr project.

+

This statistics page will update every two minutes.

+
+ + -- cgit v1.1