Skip to content

Commit

Permalink
Replace master branch with page content via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoeskau committed Jul 24, 2014
1 parent 5a4738e commit 2acc48c
Show file tree
Hide file tree
Showing 5 changed files with 325 additions and 152 deletions.
Binary file added images/arrow-down.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/octocat-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 11 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src="javascripts/scale.fix.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
Expand All @@ -15,11 +16,14 @@
<body>
<div class="wrapper">
<header>
<h1>Bleeding Edge Web</h1>
<p>A meetup for the discerning web app developer</p>
<h1 class="header">Bleeding Edge Web</h1>
<p class="header">A meetup for the discerning web app developer</p>



<p class="view"><a href="https://github.com/edgeATX">View My GitHub Profile</a></p>
<ul>
<li><a class="buttons github" href="https://github.com/edgeATX">GitHub Profile</a></li>
</ul>

</header>
<section>
Expand All @@ -37,11 +41,11 @@ <h1>
<p>Follow us on <a href="https://twitter.com/edgeatx">Twitter</a>.</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 <a href="http://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
</footer>
</div>
<script src="javascripts/scale.fix.js"></script>
<script type="text/javascript">
<!--[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"));
</script>
Expand All @@ -53,4 +57,4 @@ <h1>
</script>

</body>
</html>
</html>
37 changes: 20 additions & 17 deletions javascripts/scale.fix.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
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";
}
}
}
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);
}

};
Loading

0 comments on commit 2acc48c

Please sign in to comment.