Skip to content

Instantly share code, notes, and snippets.

View Quasaur's full-sized avatar

Calvin L. Mitchell Quasaur

View GitHub Profile
@mad9scientist
mad9scientist / index.html
Created October 11, 2012 07:48
A menu icon base in SVG the reveals a menu when clicked. Loosely based on: http://css-tricks.com/three-line-menu-navicon/
<nav>
<a href="#" id="activateMenu">
<svg width="30" height="30" id="icoOpen">
<path d="M0,5 30,5" stroke="#000" stroke-width="5"/>
<path d="M0,14 30,14" stroke="#000" stroke-width="5"/>
<path d="M0,23 30,23" stroke="#000" stroke-width="5"/>
</svg>
<svg width="30" height="30" id="ico">
@jrivero
jrivero / jsCookies.js
Last active February 21, 2024 11:36
Pure Javascript Cookies Management
// found on http://snipplr.com/view/36790/jscookies--my-simple-easy-pure-js-javascript-cookies-function/
// create my jsCookies function
var jsCookies = {
// this gets a cookie and returns the cookies value, if no cookies it returns blank ""
get: function(c_name) {
if (document.cookie.length > 0) {
var c_start = document.cookie.indexOf(c_name + "=");
if (c_start != -1) {