Skip to content

Instantly share code, notes, and snippets.

View Muirrum's full-sized avatar
🐐

Cara Salter Muirrum

🐐
View GitHub Profile
@Muirrum
Muirrum / navbar.js
Created March 19, 2019 15:19
Javascript to create a templated navbar using bootstrap. Requires bootstrap and a <nav id="navbar"> to exist in the HTML file. Should be deferred.
// Define navbar variable
var nav = document.getElementById("navbar");
// Navbar setup
nav.setAttribute("class", "navbar navbar-expand-lg navbar-light bg-light");
// Create UL and container div
var contDiv = document.createElement("DIV");
contDiv.setAttribute("class", "collapse navbar-collapse");
contDiv.setAttribute("id", "navbarSupportedContent");
nav.appendChild(contDiv);
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 24, 2024 18:21
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example