From e64050035dc9d3c810e14c205688a54393dd7b43 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 31 Dec 2016 23:16:24 -0700 Subject: indexes --- src/index.md | 30 -------------- src/main.js | 118 -------------------------------------------------------- src/main.scss | 7 ++-- src/missing.txt | 12 ++++++ 4 files changed, 16 insertions(+), 151 deletions(-) delete mode 100644 src/index.md delete mode 100644 src/main.js create mode 100644 src/missing.txt (limited to 'src') diff --git a/src/index.md b/src/index.md deleted file mode 100644 index a4cc5a7..0000000 --- a/src/index.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: AndrewDM -html_head_extra: | - - ---- - - -
- - -
-
-
- -
diff --git a/src/main.js b/src/main.js deleted file mode 100644 index 6f34e2a..0000000 --- a/src/main.js +++ /dev/null @@ -1,118 +0,0 @@ -/* - Copyright (C) 2016 Andrew Murrell - - The JavaScript code in this page is free software: you can - redistribute it and/or modify it under the terms of the GNU - General Public License (GNU GPL) as published by the Free Software - Foundation, either version 3 of the License, or (at your option) - any later version. The code is distributed WITHOUT ANY WARRANTY; - without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU GPL for more details. - - As additional permission under GNU GPL version 3 section 7, you - may distribute non-source (e.g., minimized or compacted) forms of - that code without the copy of the GNU GPL normally required by - section 4, provided you include this license notice and a URL - through which recipients can access the Corresponding Source. - -*/ - -function init() { - /* Search Bar Handling */ - /* - var searchbar = document.getElementById("search"); - searchbar.onfocus = function() { this.value = ""; } - searchbar.onblur = function() { - if (this.value == "") { - this.value = "Search"; - } - clear(); initSections(); - } - searchbar.onkeyup = clear;//function() { if (event.keycode == 13) clear }; - */ - initSections(); - -} - -function initSections() { - addSection("Writing"); - addItem("Writing", - mkItem("http://365tomorrows.com/12/03/a-simple-lament/", - "365 Tomorrows: A Simple Lament", - [["FF", "Flash Fiction"]])); - addItem("Writing", - mkItem("./DND/Tastavi.html", - "Tastavi's Backstory", - [["SS", "Short Story"]])); - addItem("Writing", - mkItem("./DND/SpellGauntlet.txt", - "Spell Gauntlet: Practical Spellcasting", - [["FF", "Flash Fiction"], - ["SS", "Short Story"], - ["WP", "WIP"]])); - addItem("Writing", - mkItem("./DND/SoP.txt", - "Psionic Schools for D&D", - [["ES", "Essay"], - ["HB", "Homebrew"]])); - - /*addItem("Writing", - mkItem("./DND/Psionist.html", - "D&D 5e Psionist Class", - [//["ES", "Essay"], - ["HB", "Homebrew"]]));*/ - - addSection("Programming"); - addItem("Programming", - mkItem("./DND/WaterdeepBazaar/WaterdeepBazaar.html", - "Waterdeep Bazaar: Marketplace Generator", - [["DM", "DMing Resource"], - ["WP", "WIP"]])); - - /*addSection("Music"); - addItem("Music", - mkItem("./Playlists.html", - "Playlists", - [["WP", "WIP"]]));*/ - - //addSection("Art"); - - /*addSection("Misc"); - addItem("Misc", - mkItem("./Reading_List.html", - "Reading List", - [["WP", "WIP"]]));*/ - -} - -function mkItem(href, title, tags) { - return { - href: href, - title: title, - tags: tags - }; -} - -function addSection(name) { - // add h2 with id 'name' there. - var append = "

" + name + "

"; - // add empty table there 'name-tbl' - append += "
"; - // find 'links' - document.getElementById("links").innerHTML += append; -} - -function addItem(section, item) { - var append = "" + item.title + ""; - for (i = 0; i < item.tags.length; i++) { - append += "" + item.tags[i][1] + ""; - } - append += ""; - document.getElementById(section + "-tbl").innerHTML += append; -} - -function clear() { - document.getElementById("links").innerHTML = ""; -} - -onload = init; diff --git a/src/main.scss b/src/main.scss index 53c5154..9a89e6d 100644 --- a/src/main.scss +++ b/src/main.scss @@ -7,11 +7,12 @@ header { width: 100%; background-color: black; color: white; + p.breadcrumbs { + background-color: blue; + } h1 { font-size: 50px; - height: 50px; - margin: 0px 0px 0px 0px; - padding: 0px 0px 0px 10px; + margin: 0; } } diff --git a/src/missing.txt b/src/missing.txt new file mode 100644 index 0000000..67de762 --- /dev/null +++ b/src/missing.txt @@ -0,0 +1,12 @@ +Writing/Programming "section"s + + addItem("Writing", + mkItem("http://365tomorrows.com/12/03/a-simple-lament/", + "365 Tomorrows: A Simple Lament", + [["FF", "Flash Fiction"]])); + + addItem("Programming", + mkItem("./DND/WaterdeepBazaar/WaterdeepBazaar.html", + "Waterdeep Bazaar: Marketplace Generator", + [["DM", "DMing Resource"], + ["WP", "WIP"]])); -- cgit v1.2.3