Skip to content

Commit

Permalink
updated quick start page to reflect changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdznr committed Mar 31, 2012
1 parent b15aaf5 commit 71dec28
Showing 1 changed file with 77 additions and 60 deletions.
137 changes: 77 additions & 60 deletions big.quickstart.html
@@ -1,84 +1,101 @@
<!DOCTYPE html><html><head><title></title><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /><style type='text/css'>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
background:#000;
background-size:100%;
color:#fff;
margin:0;
padding:0;
font-weight:bold;
font-family: "Lucida Grande", Lucida, Verdana, "Helvetica Neue", Helvetica, sans-serif;
background: #fefefe;
background-size: 100%;
color: #7f7f7f;
margin: 0;
padding: 0;
width: 100%;
text-align: center;
}

h1, h2, h3, p {
margin:0;
margin: 0;
}

em, a {
font-style:normal;
color:#8dbd0c;
font-style: normal;
color: #f2790f;
}

a {
background: #34d0e7;
color:#000;
text-decoration:none;
background: #f2790f;
color: #fff;
text-decoration: none;
border-radius: 5px;
padding: 5px 9px;
}

img {
width:100%;
width: 100%;
}

div {
cursor:pointer;
cursor:hand;
position:absolute;
top:0;
left:0;
cursor: pointer;
cursor: hand;
position: absolute;
text-align: center;
display: block;
width: auto;
height: auto;
margin-top: -10px;
}
</style><script type='text/javascript'>
window.onload = function() {
var s = document.getElementsByTagName('div'), cur = 0;
if (!s) return;
function go(n) {
cur = n;
var i = 1e3, e = s[n];
for (var k = 0; k < s.length; k++) s[k].style.display = 'none';
e.style.display = 'inline';
e.style.fontSize = i + 'px';
if (e.firstChild.nodeName === 'IMG') {
document.body.style.backgroundImage = 'url(' + e.firstChild.src + ')';
e.firstChild.style.display = 'none';
} else {
document.body.style.backgroundImage = '';
}
while (
e.offsetWidth > window.innerWidth ||
e.offsetHeight > window.innerHeight) {
e.style.fontSize = (i -= 10) + 'px';
}
if (window.location.hash !== n) window.location.hash = n;
document.title = e.textContent || e.innerText;
}
document.onclick = function() {
go(++cur % (s.length));
};
document.onkeydown = function(e) {
(e.which === 39) && go(Math.min(s.length - 1, ++cur));
(e.which === 37) && go(Math.max(0, --cur));
};
function parse_hash() {
return Math.max(Math.min(
s.length - 1,
parseInt(window.location.hash.substring(1), 10)), 0);
};
if (window.location.hash) cur = parse_hash() || cur;
window.onhashchange = function() {
var c = parse_hash();
if (c !== cur) go(c);
};
function go(n) {
cur = n;
var idealTextSize = 14;
var i = Math.pow(1.618, 8)*idealTextSize;
var e = s[n];
for (var k = 0; k < s.length; k++) s[k].style.display = 'none';
e.style.display = 'inline';
e.style.fontSize = i + 'px';
if (e.firstChild.nodeName === 'IMG') {
document.body.style.backgroundImage = 'url(' + e.firstChild.src + ')';
e.firstChild.style.display = 'none';
} else {
document.body.style.backgroundImage = '';
}
while ( e.offsetWidth > window.innerWidth/1.1 || e.offsetHeight > window.innerHeight/1.5 ) {
e.style.fontSize = (i -= i/1.6180339887498948482045868343656381177203091798057628) + 'px';
// console.log(e.style.fontSize);
e.style.left = ( window.innerWidth - e.offsetWidth )/2 + 'px';
e.style.top = ( window.innerHeight - e.offsetHeight )/2 + 'px';
}
e.style.fontSize = Math.round(e.style.fontSize); // Round to nearest whole number
if (window.location.hash !== n) window.location.hash = n;
document.title = e.textContent || e.innerText;
}
document.onclick = function() {
go(++cur % (s.length));
};
document.onkeydown = function(e) {
(e.which === 39) && go(Math.min(s.length - 1, ++cur));
(e.which === 37) && go(Math.max(0, --cur));
};
function parse_hash() {
return Math.max( Math.min( s.length - 1, parseInt(window.location.hash.substring(1), 10)), 0);
};
if (window.location.hash) cur = parse_hash() || cur;
window.onhashchange = function() {
var c = parse_hash();
if (c !== cur) go(c);
};

go(cur);
go(cur);
};
</script></head><body>
</script>
</head>
<body>
<!-- Your slides go here in a <div>tags</div> -->
<div>welcome to <em>Big</em></div>
</body>
</html>

0 comments on commit 71dec28

Please sign in to comment.