This file contains hidden or 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> | |
<title>Geolocation</title> | |
</head> | |
<body> | |
<script> | |
function get_location() { |
This file contains hidden or 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
install homebrew | |
sudo mkdir /usr/local | |
sudo chown -R $USER /usr/local | |
curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xvz -C /usr/local —strip 1 | |
install git |
This file contains hidden or 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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="stylesheet" type="text/css" media="all" href="style.css" /> | |
<script type="text/javascript" src="jquery.js"></script> | |
<title>Reading XML </title> | |
</head> | |
<body> |
This file contains hidden or 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> | |
$(document).ready(function(){ | |
$.ajax({ | |
type: "GET", | |
url: "sites.xml", | |
dataType: "xml", | |
success: function(xml) { | |
$(xml).find('site').each(function(){ | |
var id = $(this).attr('id'); | |
var title = $(this).find('title').text(); |
This file contains hidden or 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
<?xml version="1.0" encoding="iso-8859-1"?> | |
<sites> | |
<site id="0"> | |
<title>Travis Berry</title> | |
<url>http://www.travisberry.com</url> | |
<desc> | |
<brief>rockin out scripts like a BOSS</brief> | |
<long>...and this is the long description. See how long it is :)</long> | |
<meta>Denver, Colorado</meta> | |
</desc> |
This file contains hidden or 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
$(document).ready(function() { | |
function filterPath(string) { | |
return string | |
.replace(/^\//,'') | |
.replace(/(index|default).[a-zA-Z]{3,4}$/,'') | |
.replace(/\/$/,''); | |
} | |
var locationPath = filterPath(location.pathname); | |
var scrollElem = scrollableElement('html', 'body'); |
This file contains hidden or 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
<link rel="stylesheet" type="text/css" href="http://services.biemedia.com/client_deploys/current/Clients/Simple/Columbus/css/shbz.css"> | |
<script type="text/javascript" src="http://services.biemedia.com/client_deploys/current/Clients/Simple/Columbus/shbx.js"></script> | |
<script type="text/javascript"> | |
Shadowbox.init(); | |
</script> |
This file contains hidden or 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
<a href="http://services.biemedia.com/client_deploys/current/Clients/Simple/Columbus/index.html?videoEmbedCode=Columbus-XXXXX" rel="shadowbox;width=298;height=224">Click to open lightbox</a> |
This file contains hidden or 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
<a href="http://services.biemedia.com/client_deploys/current/Clients/Simple/Columbus/index.html?videoEmbedCode=Columbus-45454545" rel="shadowbox;width=298;height=224">Click to open lightbox</a> |
This file contains hidden or 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 type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css"> | |
<div id="timeperiod1"> <div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div></div> | |
<div id="timeperiod2"> <div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div> | |
</div> | |
<div id="timeperiod3"> <div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class="btn">yep</div><div id="btn"class=" |
OlderNewer