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
<div id="content"></div> | |
<div id="border"></div> |
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
var animal = { | |
name: 'Karl', | |
type: 'cat', | |
color: 'black', | |
age: 7 | |
}; | |
//convert JSON animal into a string | |
var dehydratedAnimal = JSON.stringify(animal); |
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
window.localStorage.setItem('color', 'black'); | |
//retrieve our stored item later | |
var color = window.localStorage.getItem('color'); //returns 'black' |
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
var data = { | |
city: 'Denver', | |
state: 'Colorado', | |
lat: 39.737567, | |
lng: -104.9847179 | |
}; | |
data = JSON.stringify(data); | |
// 'data' is now a string that looks like... | |
// "{"city":"Denver","state":"Colorado","lat":39.737567,"lng":-104.9847179}" |
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
var website = { | |
name: '*Nothing Found' | |
url: 'http://www.jeffbail.com', | |
age_in_years: 12 | |
} |
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
window.onhashchange = function () { | |
updateTheViewOrDoSomethingElseAwesome(window.location.hash); | |
} |
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
.right-arrow { | |
background:url(data:image/gif;base64,R0lGODlhDAAMAJEAAAAAAGZmZv///wAAACH5BAUUAAIALAAAAAAMAAwAAAIXlI8YybB8gINGTmhv | |
ym/L7oGbmJAUVAAAOw==) | |
no-repeat center; | |
} |
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
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, | |
WindowManager.LayoutParams.FLAG_FULLSCREEN | | |
WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); |
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> | |
<title>Tabs | XUI</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link type="text/css" rel="stylesheet" href="https://raw.github.com/dhgamache/Skeleton/master/stylesheets/base.css" /> | |
<link type="text/css" rel="stylesheet" href="https://raw.github.com/dhgamache/Skeleton/master/stylesheets/layout.css" /> | |
<link type="text/css" rel="stylesheet" href="https://raw.github.com/dhgamache/Skeleton/master/stylesheets/skeleton.css" /> | |
<script src="http://xuijs.com/downloads/xui-2.0.0.min.js"></script> |
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
$('#box').css('padding-top', '+=10px'); |