Skip to content

Instantly share code, notes, and snippets.

View jakerb's full-sized avatar
🏠
Working from home

Jake Bown jakerb

🏠
Working from home
View GitHub Profile
@jakerb
jakerb / templating.md
Last active June 22, 2016 15:37
Templating Shwing!

###This is the structure of a standard template:

<!-- Example Hero -->
<div theme="Example">
	<h1 name="header" type="text">Lorem Ipsum</h1>
	<p name="paragraph" type="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
	tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
	quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
	consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
@jakerb
jakerb / header.html
Created June 29, 2016 13:47
How templates will work in the CMS
<!-- Example Header -->
<div theme="Holbeck" resources="header.css, header.js">
<h1 name="header" type="text">Lorem Ipsum</h1>
<div class="swiper-container">
<div loop="slides as slide" class="swiper-slide"><img set-src="slide"></div>
</div>
</div>
<!-- Example Header -->
@jakerb
jakerb / hero.html
Created June 29, 2016 15:58
So it does this now.
<!-- Example Hero -->
<div wstheme="Example" wsextends="Templates/Layouts/Default/template.html:here" wsresources="example.css, examples.js">
<h1 wsname="header" wstype="text">Lorem Ipsum</h1>
<p wsname="paragraph" wstype="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a wsname="book_link" wstype="link" href="#"></a>
@jakerb
jakerb / utility.css
Last active June 30, 2016 15:53
Custom CSS Stuff
.mt-1 {
margin-top: 1px !important;
}
.pb-1 {
padding-bottom: 1px !important;
}
.mt-2 {
margin-top: 2px !important;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Angel Hotel Email Template</title>
<style type="text/css">
/* Client-specific Styles */
div, p, a, li, td { -webkit-text-size-adjust:none; }
@jakerb
jakerb / quotes.json
Created October 3, 2016 22:25
Quotes
{
"Life isn’t about getting and having, it’s about giving and being.": "Kevin Kruse",
"Whatever the mind of man can conceive and believe, it can achieve.": "Napoleon Hill",
"Strive not to be a success, but rather to be of value.": "Albert Einstein",
"Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.": "Robert Frost",
"I attribute my success to this: I never gave or took any excuse.": "Florence Nightingale",
"You miss 100% of the shots you don’t take.": "Wayne Gretzky",
"I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.": "Michael Jordan",
"The most difficult thing is the decision to act, the rest is merely tenacity.": "Amelia Earhart",
"Every strike brings me closer to the next home run.": "Babe Ruth",
@jakerb
jakerb / until.js
Last active November 10, 2016 11:02
Until width.
var setWidth = 768;
var ranOnce = false;
function onWidth(func) {
if($(window).width() <= setWidth && !ranOnce) {
ranOnce = true;
func();
}
}
@jakerb
jakerb / example.html
Created July 5, 2017 08:10
Required field
<input name="query" required requiree="required">
<input name="query" required required="required">
@jakerb
jakerb / example.html
Created July 5, 2017 08:12
Required in Input
<input type="text" name="query" required required="required" placeholder="Search..">