This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
//on page load | |
$(document).ready( function () { | |
//when the checkbox is checked or unchecked | |
$('#copyaddress').click(function() { | |
// If checked | |
if($('#copyaddress').is(':checked')) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title></title> | |
<style> | |
li { color: black; } | |
.emphasis > li { color: red; } <!-- Only the direct children --> | |
</style> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title>Appending Content</title> | |
<style> | |
article { | |
width: 600px; | |
margin: auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/Desktop && mkdir {query} && cd {query} | |
#Begin with my templates | |
cp -R ~/Dropbox/Templates/html/ . | |
#Pull in jQuery | |
curl http://code.jquery.com/jquery.js > assets/js/libs/jquery.js | |
#Pull in Modernizr | |
curl https://raw.github.com/Modernizr/Modernizr/master/modernizr.js > assets/js/libs/modernizr.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Simple Image Slider</title> | |
<style> | |
.gallery { position: relative; width: 400px; height: 200px; } | |
.gallery figure { | |
top: 0; | |
left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
$('.back').on('click', function(e) { | |
history.back() | |
e.preventDefault(); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="vcard"> | |
<li class="fn">Gareth Redfern</li> | |
<li class="email"> | |
<span aria-hidden="true" data-icon=")" class="icon-alone"></span> | |
<span class="screen-reader-text">Email</span> | |
<span>your@email.com</span> | |
</li> | |
<li class="tel"> | |
<span aria-hidden="true" data-icon="(" class="icon-alone"></span> | |
<span class="type screen-reader-text">work</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!-- THIS PULLS IN THE VIEW TEMPLATE (ALL THE HTML STRUCTURE) --} | |
{embed="_views/_two_col"} | |
{!-- USE STASH TO SET THE BANNER CONTENT --} | |
{exp:stash:set name="banner" parse_tags="yes"} | |
{exp:channel:entries channel="banners" url_title="events-banner" dynamic="no"} | |
{mx_banner_images} | |
{exp:ce_img:pair src="{mx_image}" width="920" height="435" crop="yes"} | |
<img src="{made}" width="{width}" height="{height}" alt="" title="{mx_caption}"> | |
{/exp:ce_img:pair} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Selecting jQuery</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Adding Content To The DOM</title> | |
<style> | |
article { width: 600px; margin: 0 auto; } | |
blockquote { | |
width: 30%; | |
float: right; |
OlderNewer