Skip to content

Instantly share code, notes, and snippets.

@NateWeiler
Last active June 16, 2020 05:24
Show Gist options
  • Save NateWeiler/ed204238fab4b52e02719a2251c34ac3 to your computer and use it in GitHub Desktop.
Save NateWeiler/ed204238fab4b52e02719a2251c34ac3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136931534-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-136931534-2');
</script>
<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
let f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-N6CPWJZ');
</script>
<!-- End Google Tag Manager -->
<meta charset='UTF-8'>
<link href='styles.css' rel='stylesheet'>
<link rel="apple-touch-icon" sizes="180x180" href="Images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="Images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="Images/favicon-16x16.png">
<link rel="manifest" href="Images/site.webmanifest">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0">
<!--
HH HH EEEFEE LL LL OOOOO0O
HH HH EE LL LL OO OO
HH HH EE LL LL OO OO
HH HH EE LL LL OO OO
HH HH EE LL LL OO OO
HHHHHHHH EEEE LL LL OO OO
HH HH EE LL LL OO OO
HH HH EE LL LL OO OO
HH HH EE LL LL OO OO
HH HH EE LL LL OO OO
HH HH EEEEEE LLLLLLLLL LLLLLLLLLL OOOOOOO
Welcome to my source code at NateWeiler!
Were you expecting to see this in my source code?
If you like what you see, and want to contact me.
[email protected]
-->
<title>ADD A TITLE</title>
</head>
<!-- Body -->
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6CPWJZ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!-- Header Navigation Bar -->
<header>
</header>
<!-- Footer -->
<footer></footer>
</body>
</html>
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
})
// and load the index.html of the app.
mainWindow.loadFile('index.html')
// Open the DevTools.
// mainWindow.webContents.openDevTools()
// Emitted when the window is closed.
mainWindow.on('closed', function () {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null
})
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', createWindow)
// Quit when all windows are closed.
app.on('window-all-closed', function () {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', function () {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) {
createWindow()
}
})
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
/* Making page border box */
* {
box-sizing: border-box;
margin: 0;
}
/* Page height and text setting */
html,
body {
height: 100%;
text-align: center;
}
/* Responsive images */
.responsive {
max-width: 100%;
height: auto;
}
/* Header sticky to be scrollable with page */
header {
width: 100%;
position: fixed;
top: 0;
padding: 20px 0;
background-color: lightblue;
z-index: 1;
}
/* Header anchor styling */
header a {
font-size: 20px;
color: black;
width: auto;
padding: 25px 10px;
text-decoration: none;
}
/* Header anchor hover color */
header a: hover {
background-color: yellow;
}
/* Sstyling for home */
#home {
margin: 0;
padding: 100px 0 100px 0;
width: 100%;
}
/* Footer styling */
footer {
text-align: center;
position: sticky;
margin: 0;
bottom: 0px;
color: rgb(17, 22, 41);
background-color: lightblue;
font-family: 'Permanent Marker', cursive;
font-size: 26px;
height: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment