mirror of
https://github.com/RustyRaptor/rustyraptor.github.io.git
synced 2026-12-03 15:45:18 -07:00
176 lines
5.9 KiB
HTML
176 lines
5.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width">
|
|
<title>repl.it</title>
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
|
|
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
|
|
crossorigin="anonymous">
|
|
|
|
</script>
|
|
<script
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
|
|
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
|
|
crossorigin="anonymous">
|
|
|
|
</script>
|
|
<script src="./js/bootstrap.js">
|
|
</script>
|
|
<script src="script.js"></script>
|
|
<link href="./bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="style.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
<a class="navbar-brand" href="#">Linux Starter Kit</a>
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
|
data-target="#navbarColor03" aria-controls="navbarColor03"
|
|
aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarColor03">
|
|
<ul class="navbar-nav mr-auto">
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="./index.html">Home<span class="sr-only">(current)</span></a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="./distros.html">Distros</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="./install.html">Installation</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="./drivers.html">Drivers (GPU)</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="./about.html">About Me</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="./opinion.html">Opinion</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="./works.html">Works Cited</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="./more.html">Resources</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<!-- <h1>Heading 1</h1>
|
|
<h2>Heading 2</h2>
|
|
<h3>Heading 3</h3>
|
|
<h4>Heading 4</h4>
|
|
<h5>Heading 5</h5>
|
|
<h6>Heading 6</h6>
|
|
<h3>
|
|
Heading
|
|
<small class="text-muted">with muted text</small>
|
|
</h3>
|
|
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> -->
|
|
<!-- -->
|
|
<div class="jumbotron" style="max-width: 960px;">
|
|
<h1 class="text-primary">Linux Starter Kit</h1>
|
|
<h5 class="text-info">A beginner-friendly guide to getting started with
|
|
Linux.</h5>
|
|
<p class="text-info">Here's a checklist of things to go over for a new
|
|
user. (try it, it actually works and saves on refresh)</p>
|
|
<form>
|
|
<div class="form-check">
|
|
<label class="form-check-label">
|
|
<input type="checkbox" class="save-cb-state" name="mycheckbox"
|
|
value="yes">
|
|
<a href="/linux.html/#what">What is linux? Overview of Linux and
|
|
it's history.</a>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
<label class="form-check-label">
|
|
<input type="checkbox" class="save-cb-state" name="mycheckbox2"
|
|
value="yes">
|
|
<a href="/linux.html/#should">Should you try Linux? (TODO)</a>
|
|
</label>
|
|
</div>
|
|
<div class="form-check">
|
|
<label class="form-check-label">
|
|
<input type="checkbox" class="save-cb-state" name="mycheckbox3"
|
|
value="yes">
|
|
<a href="/distros.html">Picking a Linux distro.</a>
|
|
</label>
|
|
</div>
|
|
<div class="form-check">
|
|
<label class="form-check-label">
|
|
<input type="checkbox" class="save-cb-state" name="mycheckbox4"
|
|
value="yes">
|
|
<a href="/install.html">Install a Linux Distro.</a>
|
|
</label>
|
|
</div>
|
|
<div class="form-check">
|
|
<label class="form-check-label">
|
|
<input type="checkbox" class="save-cb-state" name="mycheckbox5"
|
|
value="yes">
|
|
<a href="/drivers.html">Installing drivers (graphics).</a>
|
|
</label>
|
|
</div>
|
|
<div class="form-check">
|
|
<label class="form-check-label">
|
|
<input type="checkbox" class="save-cb-state" name="mycheckbox6"
|
|
value="yes">
|
|
<a href="/more.html">Where to now? (TODO)</a>
|
|
</label>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
<script>
|
|
// Avoid scoping issues by encapsulating
|
|
// code inside anonymous function
|
|
(function() {
|
|
// variable to store our current state
|
|
var cbstate;
|
|
|
|
// bind to the onload event
|
|
window.addEventListener('load', function() {
|
|
// Get the current state from localstorage
|
|
// State is stored as a JSON string
|
|
cbstate = JSON.parse(localStorage['CBState'] || '{}');
|
|
|
|
// Loop through state array and restore checked
|
|
// state for matching elements
|
|
for(var i in cbstate) {
|
|
var el = document.querySelector('input[name="' + i + '"]');
|
|
if (el) el.checked = true;
|
|
}
|
|
|
|
// Get all checkboxes that you want to monitor state for
|
|
var cb = document.getElementsByClassName('save-cb-state');
|
|
|
|
// Loop through results and ...
|
|
for(var i = 0; i < cb.length; i++) {
|
|
|
|
//bind click event handler
|
|
cb[i].addEventListener('click', function(evt) {
|
|
// If checkboxe is checked then save to state
|
|
if (this.checked) {
|
|
cbstate[this.name] = true;
|
|
}
|
|
|
|
// Else remove from state
|
|
else if (cbstate[this.name]) {
|
|
delete cbstate[this.name];
|
|
}
|
|
|
|
// Persist state
|
|
localStorage.CBState = JSON.stringify(cbstate);
|
|
});
|
|
}
|
|
});
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html> |