Permalink
Browse files

Replace master branch with page content via GitHub

  • Loading branch information...
1 parent ca8395a commit b7e66030fce9ae6f73339af569c47c7bd08d6b31 @vosechu committed Feb 13, 2013
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -4,24 +4,33 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Chuck Lauer Vose by vosechu</title>
-
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+ <script src="javascripts/main.js"></script>
<!--[if lt IE 9]>
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+
</head>
<body>
- <div class="wrapper">
+
<header>
<h1>Chuck Lauer Vose</h1>
<p></p>
+ </header>
+ <div id="banner">
+ <span id="logo"></span>
- <p class="view"><a href="https://github.com/vosechu">View My GitHub Profile</a></p>
+ <a href="https://github.com/vosechu" class="button fork"><strong>View On GitHub</strong></a>
+ </div><!-- end banner -->
- </header>
+ <div class="wrapper">
+ <nav>
+ <ul></ul>
+ </nav>
<section>
<h3>Welcome to GitHub Pages.</h3>
@@ -51,10 +60,10 @@
<p>Having trouble with Pages? Check out the documentation at <a href="http://help.github.com/pages">http://help.github.com/pages</a> or contact <a href="mailto:support@github.com">support@github.com</a> and we’ll help you sort it out.</p>
</section>
<footer>
- <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
+ <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="http://twitter.com/#!/michigangraham">mattgraham</a></small></p>
</footer>
</div>
- <script src="javascripts/scale.fix.js"></script>
+ <!--[if !IE]><script>fixScale(document);</script><![endif]-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
View
@@ -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);
+ }
+};
@@ -1,17 +0,0 @@
-var metas = document.getElementsByTagName('meta');
-var i;
-if (navigator.userAgent.match(/iPhone/i)) {
- for (i=0; i<metas.length; i++) {
- if (metas[i].name == "viewport") {
- metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
- }
- }
- document.addEventListener("gesturestart", gestureStart, false);
-}
-function gestureStart() {
- for (i=0; i<metas.length; i++) {
- if (metas[i].name == "viewport") {
- metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
- }
- }
-}
Oops, something went wrong.

0 comments on commit b7e6603

Please sign in to comment.