mirror of
https://github.com/fadden/6502bench.git
synced 2025-08-05 09:25:39 +00:00
Add ${ROOT} substitution
Doesn't really affect the pages on the web, but it's easier to preview them in the filesystem when linked to "../main.css" rather than "/main.css". The common portion of the <head> section is now in a separate "include" file. Added some indentation to masthead/topnav/sidenav so it looks nicer in the merged source listing.
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- START: /head-incl.html -->
|
||||
<!-- common head elements -->
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
|
||||
integrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
|
||||
<link rel="stylesheet" href="/main.css"/>
|
||||
<link rel="stylesheet" href="main.css"/>
|
||||
<!-- END: /head-incl.html -->
|
||||
|
||||
<style>
|
||||
img {
|
||||
@@ -23,33 +26,33 @@
|
||||
|
||||
<div id="masthead">
|
||||
<!-- START: /masthead-incl.html -->
|
||||
<!--<div class="masthead-title" style="background-image: url('images/screenshot-mainwin.png');">-->
|
||||
<div class="masthead-title">
|
||||
6502bench
|
||||
</div>
|
||||
<!--<div class="masthead-title" style="background-image: url('images/screenshot-mainwin.png');">-->
|
||||
<div class="masthead-title">
|
||||
6502bench
|
||||
</div>
|
||||
<!-- END: /masthead-incl.html -->
|
||||
</div>
|
||||
|
||||
<div id="topnav">
|
||||
<!-- START: /topnav-incl.html active:#topnav-home -->
|
||||
<!-- top navigation bar contents -->
|
||||
<nav>
|
||||
<a id="topnav-home" class="active" href="/">HOME</a>
|
||||
<a id="topnav-sgtutorial" href="/sgtutorial">SourceGen Tutorial</a>
|
||||
<a id="topnav-menuicon" href="javascript:void(0);" class="icon" onclick="toggleSidenav()">
|
||||
<i class="fa fa-bars"></i>
|
||||
</a>
|
||||
</nav>
|
||||
<script>
|
||||
// Sidenav toggle function.
|
||||
//
|
||||
// Use a jQuery function to toggle the sidenav bar. The initial state
|
||||
// is undefined / inherited, so it will pop in and out as the screen
|
||||
// resizes around the "large" breakpoint.
|
||||
function toggleSidenav() {
|
||||
$("#sidenav").toggle("fast");
|
||||
}
|
||||
</script>
|
||||
<!-- top navigation bar contents -->
|
||||
<nav>
|
||||
<a id="topnav-home" class="active" href="./">HOME</a>
|
||||
<a id="topnav-sgtutorial" href="sgtutorial">SourceGen Tutorial</a>
|
||||
<a id="topnav-menuicon" href="javascript:void(0);" class="icon" onclick="toggleSidenav()">
|
||||
<i class="fa fa-bars"></i>
|
||||
</a>
|
||||
</nav>
|
||||
<script>
|
||||
// Sidenav toggle function.
|
||||
//
|
||||
// Use a jQuery function to toggle the sidenav bar. The initial state
|
||||
// is undefined / inherited, so it will pop in and out as the screen
|
||||
// resizes around the "large" breakpoint.
|
||||
function toggleSidenav() {
|
||||
$("#sidenav").toggle("fast");
|
||||
}
|
||||
</script>
|
||||
<!-- END: /topnav-incl.html -->
|
||||
</div>
|
||||
|
||||
@@ -187,15 +190,15 @@ The full source code is available on
|
||||
|
||||
<div id="footer">
|
||||
<!-- START: /footer-incl.html -->
|
||||
<hr/>
|
||||
<p>Copyright 2021 faddenSoft</p>
|
||||
<!-- <p id="screen-size"></p>
|
||||
<script>
|
||||
var w = window.innerWidth;
|
||||
var h = window.innerHeight;
|
||||
var x = document.getElementById("screen-size");
|
||||
x.innerHTML = "DEBUG: initial window size " + w + "x" + h;
|
||||
</script> -->
|
||||
<hr/>
|
||||
<p>Copyright 2021 faddenSoft</p>
|
||||
<!-- <p id="screen-size"></p>
|
||||
<script>
|
||||
var w = window.innerWidth;
|
||||
var h = window.innerHeight;
|
||||
var x = document.getElementById("screen-size");
|
||||
x.innerHTML = "DEBUG: initial window size " + w + "x" + h;
|
||||
</script> -->
|
||||
<!-- END: /footer-incl.html -->
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user