Skip to content

Commit

Permalink
Create gh-pages branch via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus-G committed Nov 8, 2012
1 parent 2e9dc3d commit 4926335
Show file tree
Hide file tree
Showing 32 changed files with 3,783 additions and 264 deletions.
Binary file added fonts/copse-regular-webfont.eot
Binary file not shown.
247 changes: 247 additions & 0 deletions fonts/copse-regular-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/copse-regular-webfont.ttf
Binary file not shown.
Binary file added fonts/copse-regular-webfont.woff
Binary file not shown.
Binary file added fonts/quattrocentosans-bold-webfont.eot
Binary file not shown.
247 changes: 247 additions & 0 deletions fonts/quattrocentosans-bold-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/quattrocentosans-bold-webfont.ttf
Binary file not shown.
Binary file added fonts/quattrocentosans-bold-webfont.woff
Binary file not shown.
Binary file added fonts/quattrocentosans-bolditalic-webfont.eot
Binary file not shown.
248 changes: 248 additions & 0 deletions fonts/quattrocentosans-bolditalic-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/quattrocentosans-bolditalic-webfont.ttf
Binary file not shown.
Binary file added fonts/quattrocentosans-bolditalic-webfont.woff
Binary file not shown.
Binary file added fonts/quattrocentosans-italic-webfont.eot
Binary file not shown.
247 changes: 247 additions & 0 deletions fonts/quattrocentosans-italic-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/quattrocentosans-italic-webfont.ttf
Binary file not shown.
Binary file added fonts/quattrocentosans-italic-webfont.woff
Binary file not shown.
Binary file added fonts/quattrocentosans-regular-webfont.eot
Binary file not shown.
247 changes: 247 additions & 0 deletions fonts/quattrocentosans-regular-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/quattrocentosans-regular-webfont.ttf
Binary file not shown.
Binary file added fonts/quattrocentosans-regular-webfont.woff
Binary file not shown.
Binary file added images/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/body-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bullet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hr.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/octocat-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,060 changes: 1,046 additions & 14 deletions index.html

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions javascripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
var sectionHeight = function() {
var total = $(window).height(),
$section = $('section').css('height','auto');

if ($section.outerHeight(true) < total) {
var margin = $section.outerHeight(true) - $section.height();
$section.height(total - margin - 20);
} else {
$section.css('height','auto');
}
}

$(window).resize(sectionHeight);

$(document).ready(function(){
$("section h1, section h2").each(function(){
$("nav ul").append("<li class='tag-" + this.nodeName.toLowerCase() + "'><a href='#" + $(this).text().toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g,'') + "'>" + $(this).text() + "</a></li>");
$(this).attr("id",$(this).text().toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g,''));
$("nav ul li:first-child a").parent().addClass("active");
});

$("nav ul li").on("click", "a", function(event) {
var position = $($(this).attr("href")).offset().top - 190;
$("html, body").animate({scrollTop: position}, 400);
$("nav ul li a").parent().removeClass("active");
$(this).parent().addClass("active");
event.preventDefault();
});

sectionHeight();

$('img').load(sectionHeight);
});

fixScale = function(doc) {

var addEvent = 'addEventListener',
type = 'gesturestart',
qsa = 'querySelectorAll',
scales = [1, 1],
meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];

function fix() {
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
doc.removeEventListener(type, fix, true);
}

if ((meta = meta[meta.length - 1]) && addEvent in doc) {
fix();
scales = [.25, 1.6];
doc[addEvent](type, fix, true);
}
};
17 changes: 0 additions & 17 deletions javascripts/scale.fix.js

This file was deleted.

2 changes: 1 addition & 1 deletion params.json

Large diffs are not rendered by default.

Loading

0 comments on commit 4926335

Please sign in to comment.