From 5f8b897a3ba80dc4bd82a13372ae8b8a279930f2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 9 May 2016 14:08:56 -0400 Subject: Migrateing to nicer looking stuff --- ws2a/bugs.html | 58 ++++++++++++++++++++++++++++++++++ ws2a/bugsdata.c | 13 ++++++++ ws2a/bugsload.js | 10 ++++++ ws2a/index.html | 74 ++++++++++++++++++++++++++++++++++++++++++++ ws2a/jumbotron-narrow.css | 79 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 234 insertions(+) create mode 100644 ws2a/bugs.html create mode 100644 ws2a/bugsdata.c create mode 100644 ws2a/bugsload.js create mode 100644 ws2a/index.html create mode 100644 ws2a/jumbotron-narrow.css (limited to 'ws2a') diff --git a/ws2a/bugs.html b/ws2a/bugs.html new file mode 100644 index 0000000..fab0858 --- /dev/null +++ b/ws2a/bugs.html @@ -0,0 +1,58 @@ + + + + + + + + + + + WS2A + + + + + + + + + + + + + + + +
+
+ +

Winter Survival 2 - Anarchy

+
+ +

Section title

+
+ + + + +
+
+ + + +
+ + + diff --git a/ws2a/bugsdata.c b/ws2a/bugsdata.c new file mode 100644 index 0000000..33a7b67 --- /dev/null +++ b/ws2a/bugsdata.c @@ -0,0 +1,13 @@ +#include +#include +#include +#include +#include "common.c" + +int main(){ + char* data = getenv("QUERY_STRING"); + char* hardip = getenv("REMOTE_ADDR"); + printf("%s%c%c\n", + "Content-Type:text/html;charset=iso-8859-1",13,10); + printf("Data:%s",data); +} diff --git a/ws2a/bugsload.js b/ws2a/bugsload.js new file mode 100644 index 0000000..d1662a9 --- /dev/null +++ b/ws2a/bugsload.js @@ -0,0 +1,10 @@ +function loadLastBugs() { + var xhttp = new XMLHttpRequest(); + xhttp.onreadystatechange = function() { + if (xhttp.readyState == 4 && xhttp.status == 200) { + document.getElementById("bugstable").innerHTML = xhttp.responseText; + } + }; + xhttp.open("GET", "/cgi-bin/bugsdata.cgi", true); + xhttp.send(); +} diff --git a/ws2a/index.html b/ws2a/index.html new file mode 100644 index 0000000..adf04cc --- /dev/null +++ b/ws2a/index.html @@ -0,0 +1,74 @@ + + + + + + + + + + + WS2A + + + + + + + + + + + + + +
+
+ +

Winter Survival 2 - Anarchy

+
+ +
+

WS2A

+

The first gamemode in the extended Winter Survival series!

+

Join server!

+
+ +
+
+

What is it?

+

Winter Survival 2 - Anarchy is the first installment of my extenstions to Winter Survival 2

+ +

History

+

Winter Survival 2 was originally created by The Maw, and a few other helpers. It has been dead for a little while, until some guy on the internet with fond memorires of playing it during his nights in highschool decided to revive it!

+ +

It's so fucking broken!

+

Consider fileing a bug in the bugs tab, then wait patiently until it gets fixed!

+
+ +
+

I want to help!

+

Feel free to get a copy of the source code and start hacking away here

+ +

Where's the liscense?

+

Although I like useing and publishing under copyleft liscenses, other people involved in development didn't give me much to work with! I can't bind their code under a liscense of my choice, but my code is free to use under the BSD 2-clause, and assets under Creative Commons Attribution

+
+
+ + + +
+ + + diff --git a/ws2a/jumbotron-narrow.css b/ws2a/jumbotron-narrow.css new file mode 100644 index 0000000..952adc5 --- /dev/null +++ b/ws2a/jumbotron-narrow.css @@ -0,0 +1,79 @@ +/* Space out content a bit */ +body { + padding-top: 20px; + padding-bottom: 20px; +} + +/* Everything but the jumbotron gets side spacing for mobile first views */ +.header, +.marketing, +.footer { + padding-right: 15px; + padding-left: 15px; +} + +/* Custom page header */ +.header { + padding-bottom: 20px; + border-bottom: 1px solid #e5e5e5; +} +/* Make the masthead heading the same height as the navigation */ +.header h3 { + margin-top: 0; + margin-bottom: 0; + line-height: 40px; +} + +/* Custom page footer */ +.footer { + padding-top: 19px; + color: #777; + border-top: 1px solid #e5e5e5; +} + +/* Customize container */ +@media (min-width: 768px) { + .container { + max-width: 730px; + } +} +.container-narrow > hr { + margin: 30px 0; +} + +/* Main marketing message and sign up button */ +.jumbotron { + text-align: center; + border-bottom: 1px solid #e5e5e5; +} +.jumbotron .btn { + padding: 14px 24px; + font-size: 21px; +} + +/* Supporting marketing content */ +.marketing { + margin: 40px 0; +} +.marketing p + h4 { + margin-top: 28px; +} + +/* Responsive: Portrait tablets and up */ +@media screen and (min-width: 768px) { + /* Remove the padding we set earlier */ + .header, + .marketing, + .footer { + padding-right: 0; + padding-left: 0; + } + /* Space out the masthead */ + .header { + margin-bottom: 30px; + } + /* Remove the bottom border on the jumbotron for visual effect */ + .jumbotron { + border-bottom: 0; + } +} -- cgit v1.2.3-70-g09d2