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> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<!--[if lt IE 7 ]><html class="ie6"> <![endif]--> | |
<!--[if IE 7 ]><html class="ie7"> <![endif]--> | |
<!--[if IE 8 ]><html class="ie8"> <![endif]--> | |
<!--[if IE 9 ]><html class="ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--><html class=""><!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title>Before/after photos: Blizzard hits eastern Iowa</title> |
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> | |
<head> | |
<title>Before/after demo</title> | |
</head> | |
<body> | |
</body> | |
</html> |
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
<style> | |
.trackMe img.beforeafterphotos { | |
top:0 !important; | |
left:0 !important; | |
position:absolute; | |
margin:0 0 15px 0 !important; | |
} | |
</style> |
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> | |
<head> | |
<title>Before/after demo</title> | |
<style> | |
.trackMe img.beforeafterphotos { | |
top:0 !important; | |
left:0 !important; | |
position:absolute; |
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
<div style="position:relative; width:600px; height:460px;" class="trackMe"> | |
<img src="http://wcfcourier.com/app/special/beforeafter/beforeafter05b.jpg" class="beforeafterphotos" /> | |
<img src="http://wcfcourier.com/app/special/beforeafter/beforeafter05a.jpg" class="beforeafterphotos" /> | |
</div> |
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
// DataTables currency | |
// Use to sort the table via currency | |
jQuery.extend( jQuery.fn.dataTableExt.oSort, { | |
"currency-pre": function ( a ) { | |
a = (a==="-") ? 0 : a.replace( /[^\d\-\.]/g, "" ); | |
return parseFloat( a ); | |
}, | |
"currency-asc": function ( a, b ) { | |
return a - b; |
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
// Where we'll put the data | |
var newDataSet = []; | |
// Our column headers | |
// Change these to fit your table | |
var tableColumnSet = [ | |
{ "sTitle": "Employee" }, | |
{ "sTitle": "Department" }, | |
{ "sTitle": "Total FY12 Salary", "sType": "currency" }, | |
{ "sTitle": "Gender", "sClass": "center" }, |
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
// Our DataTable information | |
// Don't need to change anything here | |
// Unless you want to customize the table format | |
function showInfo() { | |
$('#table_div').html( '<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="table"></table>' ); | |
// Push the data to the table | |
$('#table').dataTable( { | |
"bProcessing":true, | |
"sPaginationType": "bootstrap", |
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
// Load up the CSV using Miso.Dataset | |
$(document).ready( function() { | |
// Change URL to the right path for your CSV | |
var ds = new Miso.Dataset({ | |
url : 'csvs/salary_book_clean.csv', | |
delimiter : ',' | |
}); | |
// Run this after we load our CSV | |
ds.fetch({ success : function() { |
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
/* Body */ | |
body { | |
padding-left: 0px; | |
padding-right: 0px; | |
margin: 0; | |
height: 100%; | |
} | |
html { | |
height: 100%; |