From 9c71759d1e634ef78ad5cf099d742f5f2269a14c Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Thu, 29 Jun 2017 20:47:03 -0400 Subject: [PATCH] created nav.js, a script that generates the nav bar --- index.html | 11 +++-------- map.html | 10 ++-------- questions.html | 10 ++-------- resources/nav.js | 24 ++++++++++++++++++++++++ rules.html | 11 +++-------- sandbox.html | 10 ++-------- spawn.html | 10 ++-------- 7 files changed, 38 insertions(+), 48 deletions(-) create mode 100644 resources/nav.js diff --git a/index.html b/index.html index f26540c..9832448 100644 --- a/index.html +++ b/index.html @@ -3,17 +3,12 @@ Chromagaming Civilization Screen + + - +

The Civilization Screen

Welcome to the civilization screen.

diff --git a/map.html b/map.html index 10861d1..062af51 100644 --- a/map.html +++ b/map.html @@ -7,6 +7,7 @@ Civilization Map + - + diff --git a/questions.html b/questions.html index e754878..0b6371c 100644 --- a/questions.html +++ b/questions.html @@ -7,16 +7,10 @@ + - +

Who

Welcome to Chromagaming!

diff --git a/resources/nav.js b/resources/nav.js new file mode 100644 index 0000000..2ba0503 --- /dev/null +++ b/resources/nav.js @@ -0,0 +1,24 @@ +window.onload = function(){ + + $("nav") + .append($("") + .append("Main") + .attr("href", "./index.html")) + .append($("") + .append("Sandbox") + .attr("href", "./sandbox.html")) + .append($("") + .append("Map") + .attr("href", "./map.html")) + .append($("") + .append("Rules") + .attr("href", "./rules.html")) + .append($("") + .append("Questions") + .attr("href", "./questions.html")) + .append($("") + .append("Spawn") + .attr("href", "./spawn.html")); + + +} diff --git a/rules.html b/rules.html index bb5905c..21dcdbe 100644 --- a/rules.html +++ b/rules.html @@ -3,17 +3,12 @@ Rules + + - +

The Rules

Every server has its rules, these are the laws of our land.

diff --git a/sandbox.html b/sandbox.html index acaad22..d94e741 100644 --- a/sandbox.html +++ b/sandbox.html @@ -6,16 +6,10 @@ + - +

Developer's Sandbox

diff --git a/spawn.html b/spawn.html index fcd2dfb..4020071 100644 --- a/spawn.html +++ b/spawn.html @@ -6,20 +6,14 @@ +

Spawn Progress Tracker

NOTE: THIS TRACKER IS UNFINISHED AN WILL NOT SAVE DATA, USE AT OWN RISK

- +