diff --git a/NeoAbolitionism/LICENSE b/NeoAbolitionism/LICENSE new file mode 100644 index 0000000..bdd35fd --- /dev/null +++ b/NeoAbolitionism/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2019 Benjamin "Tearzz" Stigsen + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/NeoAbolitionism/README.md b/NeoAbolitionism/README.md new file mode 100644 index 0000000..227d680 --- /dev/null +++ b/NeoAbolitionism/README.md @@ -0,0 +1,29 @@ +## RemarkPortable + +A simple and portable way of using **[Remark](https://github.com/gnab/remark)**, that doesn't require an internet connection. Decluttered `index.html` to make it easier to get an overview. + +Also included all necessary files in the repo for easy setup after downloading / cloning. + +--- + +### Getting Started + +1. Download or clone this repo (you can also use the **[releases](https://github.com/BenTearzz/RemarkPortable/releases)** page). +2. Write your markdown in the ` + + + + + + + + + + + + + + diff --git a/NeoAbolitionism/main.js b/NeoAbolitionism/main.js new file mode 100644 index 0000000..fc8c21b --- /dev/null +++ b/NeoAbolitionism/main.js @@ -0,0 +1,53 @@ +var slideshow; + +// Load file and read content +function loadFile(event) +{ + var selectedFile = event.target.files[0]; + + var reader = new FileReader(); + reader.onload = function(event) { + document.getElementById('source').innerHTML = event.target.result; + }; + + reader.readAsText(selectedFile); +} + +// Rebuild slides and delete previous +function loadContent() +{ + document.documentElement.className = ''; + document.body.className = ''; + + var x = document.querySelectorAll('div[class^=remark]'); + + for (var i = 0; i < x.length; i++) + { + (x[i]).parentNode.removeChild(x[i]); + } + + slideshow = remark.create(); + slideshow.gotoFirstSlide(); +} + +window.onload = function() { + // Hide buttons on fullscreen + var btn_load = document.getElementById('load'); + var btn_file = document.getElementById('file'); + + window.addEventListener('resize', function(event){ + if (!window.screenTop && !window.screenY) + { + btn_load.style.display = "none"; + btn_file.style.display = "none"; + } + else + { + btn_load.style.display = "inline"; + btn_file.style.display = "inline"; + } + }); +}; + + +loadContent(); diff --git a/index.html b/index.html index fa614db..c737a4f 100644 --- a/index.html +++ b/index.html @@ -173,6 +173,7 @@ Illustrious American and Other Verses by Lewis A. Young (plain text version here) +
  • Neo Abolitionism presentation
  • Immigration Rights March
  • Photographs from Venezuela