Skip to content

Instantly share code, notes, and snippets.

@jonthewayne
jonthewayne / index.html
Created May 26, 2019 10:28
window width x height
<div class="center-div">
<h1 id="info"></h1>
</div>
@jonthewayne
jonthewayne / centering-a-div-in-a-page-horizontally-and-vertically.markdown
Created May 26, 2019 10:23
Centering a div in a page, horizontally and vertically
It's absolutely no problem that you haven't worked with Serverless before. I think you'll be surprised at how easy it is to learn!
@jonthewayne
jonthewayne / css gradient
Created March 25, 2014 04:59
love this css gradient background: http://app.modnotebooks.com/login
.coming-soon-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #233236;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #233236), color-stop(100%, #658d8f));
background-image: -webkit-linear-gradient(-415deg, #233236 0%, #658d8f 100%);
background-image: linear-gradient(145deg, #233236 0%,#658d8f 100%);
@jonthewayne
jonthewayne / jquery.nav.js
Created August 30, 2013 22:14
edited jquery.nav.js to allow scrolling back to the head of currentClass elements. Simply commented out the if statement that excluded currentClass elements (just two lines: 148 and 182).
/*
* jQuery One Page Nav Plugin
* http://github.com/davist11/jQuery-One-Page-Nav
*
* Copyright (c) 2010 Trevor Davis (http://trevordavis.net)
* Dual licensed under the MIT and GPL licenses.
* Uses the same license as jQuery, see:
* http://jquery.org/license
*
* @version 2.2.0
@jonthewayne
jonthewayne / doubletaptogo.js
Created July 29, 2013 19:34
doubletaptogo.js
/*
AUTHOR: Osvaldas Valutis, www.osvaldas.info
*/
;(function( $, window, document, undefined )
{
$.fn.doubleTapToGo = function( params )
{