Skip to content

Commit

Permalink
analytics and share
Browse files Browse the repository at this point in the history
  • Loading branch information
gopatrik committed Apr 1, 2015
1 parent 4b3b6b2 commit 0419c54
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 13 deletions.
10 changes: 8 additions & 2 deletions demo1.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>Demo 1</title><script src="jquery-2.0.2.min.js"></script><link rel="stylesheet" type="text/css" href="css/main.css"/><link rel="stylesheet" type="text/css" href="css/demo.css"/></head><script>function preload(arrayOfImages) {
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>Demo 1</title><script src="jquery-2.0.2.min.js"></script><link rel="stylesheet" type="text/css" href="css/main.css"/><link rel="stylesheet" type="text/css" href="css/demo.css"/><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-38987463-8', 'auto');
ga('send', 'pageview');
</script></head><script>function preload(arrayOfImages) {
$(arrayOfImages).each(function(){
$('<img/>')[0].src = this;
// Alternatively you could use:
Expand All @@ -21,4 +27,4 @@
'img/spacejs.png'
]);
}, 1000);
</script></html><body><header style="z-index:100;" class="codrops-header absolute"><h1>Space.js</h1><nav class="codrops-demos center"><a href="/space.js"><b>Home</b></a><span class="mr">|</span><a href="demo1.html"><b>Demo 1 – </b>The Gallery</a><a href="demo2.html"><b>Demo 2: </b>Out of Space</a></nav></header><div class="space-frame"><section class="space-inner-frame"><div style="background-image:url(img/splash.jpg); padding:150px 200px;" class="bg"><section><p style="color:white;" class="nm right">Demo 1</p><h1 style="color:white;" class="nm large">The Gallery</h1></section></div></section></div><div class="space-frame" data-enter="rotateInQuarterClockwise fadeIn" data-exit="fadeOut scaleOut"><section class="space-inner-frame"><p>Not too long ago</p></section></div><div class="space-frame" data-enter="slideInBottom rotateInQuarterClockwise scaleIn" data-exit="slideOutDown scaleOut rotateQuarterRight"><section class="space-inner-frame"><div style="width:300px; height:400px;" class="paper relative"><div class="center-center"><p style="color:rgba(0,0,0,0.5);" class="bold">This canvas.</p></div></div></section></div><div class="space-frame" data-enter="scaleIn" data-exit="fadeOut"><section class="space-inner-frame"><p class="large">Was our<br><b>Medium</b></p></section></div><div class="space-frame"><section class="space-inner-frame"><p>Our platform</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>We hung our work in bright spaces</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>For people to see our stories</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>We called them <span class="modal">galleries</span>.</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>There we could design <span class="modal">a path</span>.</p></section></div><div class="space-frame"><section class="space-inner-frame"><p class="large bold modal">A narrative.</p></section></div><div class="space-frame" data-enter="scaleIn" data-exit="scaleOut fadeOut" data-duration="2"><section class="space-inner-frame"><p class="nm center">Now <i>this </i>is our <b>gallery</b></p><img src="img/browser.png" width="500px" alt=""></section></div><div class="space-frame"><section class="space-inner-frame"><p>Where we share our content <b>with the world.</b></p></section></div><div class="space-frame" data-enter="slideInTop scaleIn" data-exit="rotate3dOut" data-duration="2"><section class="space-inner-frame"><img src="img/browser_tiled.png" width="500px" alt=""><p class="nm center">To make space, <b>we tile.</b></p></section></div><div class="space-frame"><section class="space-inner-frame"><p>This <span class="modal">removes </span>narrative.</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>Not to mention It's been getting more and more</p></section></div><div class="space-frame" data-enter="rotate360 scaleIn" data-exit="rotate3dOut slideOutRight" data-duration="1.2"><section class="space-inner-frame"><div class="flat-shadow"><p class="nm huge bold">Flat</p></div></section></div><div class="space-frame"><section class="space-inner-frame"><p>Let's try <span class="modal">something new.</span></p></section></div><div class="space-frame" data-enter="slideInLeft" data-exit="slideOutLeft rotate3dOut rotateQuarterRight"><section class="space-inner-frame"><div class="wall-wrap"><div class="left-wall"><div class="painting"><img src="img/paper.jpg"/></div><br><div class="painting"><img src="img/househill.jpg"/></div></div><section class="center-center"><p class="large">Because <br>Our content <br>deserves <b>Space</b></p></section></div></section></div><div class="space-frame" data-enter="fadeIn" data-exit="fadeOut"><div style="background-image:url(img/flowers.jpg);" class="background"></div><section class="space-inner-frame"><p class="large bold">To flourish.</p></section></div><div class="space-frame" data-enter="slideInBottom" data-exit="slideOutDown fadeOut" data-duration="2"><section class="space-inner-frame"><p class="large center">To impact</p><div class="whole"><div class="half"><div class="painting"><img src="img/paper.jpg"/></div><div class="painting"><img src="img/househill.jpg"/></div></div><div class="half"><div class="painting nm"><img src="img/umbrella.jpg"/></div></div></div></section></div><div class="space-frame" data-enter="slideInRight" data-exit="rotate3dOut"><section class="space-inner-frame"><div class="whole"><div class="half"><p style="padding-top:60px;" class="right">To Touch</p></div><div class="half"><div class="painting"><img src="img/paper.jpg"/></div></div></div></section></div><div class="space-frame"><section class="space-inner-frame"><p>Welcome to the future.</p></section></div><div class="space-frame" data-enter="scaleIn" data-exit="scaleOut fadeOut"><section class="space-inner-frame"><img src="img/spacejs.png" width="300px" alt=""></section></div><div class="space-frame"><section class="space-inner-frame"><section style="max-width:600px;" class="codrops-header"><h1>Space.js</h1><nav class="codrops-demos center"><a href="/space.js"><b>Home</b></a><span class="mr">|</span><a href="demo1.html"><b>Demo 1 – </b>The Gallery</a><a href="demo2.html"><b>Demo 2: </b>Out of Space</a></nav></section></section></div><script src="space.js"></script></body>
</script></html><body><header style="z-index:100;" class="codrops-header absolute"><h1>Space.js</h1><nav class="codrops-demos center"><a href="/space.js"><b>Home</b></a><span class="mr">|</span><a href="demo1.html"><b>Demo 1 – </b>The Gallery</a><a href="demo2.html"><b>Demo 2: </b>Out of Space</a></nav></header><div class="space-frame"><section class="space-inner-frame"><div style="background-image:url(img/splash.jpg); padding:150px 200px;" class="bg"><section><p style="color:white;" class="nm right">Demo 1</p><h1 style="color:white;" class="nm large">The Gallery</h1></section></div></section></div><div class="space-frame" data-enter="rotateInQuarterClockwise fadeIn" data-exit="fadeOut scaleOut"><section class="space-inner-frame"><p>Not too long ago</p></section></div><div class="space-frame" data-enter="slideInBottom rotateInQuarterClockwise scaleIn" data-exit="slideOutDown scaleOut rotateQuarterRight"><section class="space-inner-frame"><div style="width:300px; height:400px;" class="paper relative"><div class="center-center"><p style="color:rgba(0,0,0,0.5);" class="bold">This canvas.</p></div></div></section></div><div class="space-frame" data-enter="scaleIn" data-exit="fadeOut"><section class="space-inner-frame"><p class="large">Was our<br><b>Medium</b></p></section></div><div class="space-frame"><section class="space-inner-frame"><p>Our platform</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>We hung our work in bright spaces</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>For people to see our stories</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>We called them <span class="modal">galleries</span>.</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>There we could design <span class="modal">a path</span>.</p></section></div><div class="space-frame"><section class="space-inner-frame"><p class="large bold modal">A narrative.</p></section></div><div class="space-frame" data-enter="scaleIn" data-exit="scaleOut fadeOut" data-duration="2"><section class="space-inner-frame"><p class="nm center">Now <i>this </i>is our <b>gallery</b></p><img src="img/browser.png" width="500px" alt=""></section></div><div class="space-frame"><section class="space-inner-frame"><p>Where we share our content <b>with the world.</b></p></section></div><div class="space-frame" data-enter="slideInTop scaleIn" data-exit="rotate3dOut" data-duration="2"><section class="space-inner-frame"><img src="img/browser_tiled.png" width="500px" alt=""><p class="nm center">To make space, <b>we tile.</b></p></section></div><div class="space-frame"><section class="space-inner-frame"><p>This <span class="modal">removes </span>narrative.</p></section></div><div class="space-frame"><section class="space-inner-frame"><p>Not to mention It's been getting more and more</p></section></div><div class="space-frame" data-enter="rotate360 scaleIn" data-exit="rotate3dOut slideOutRight" data-duration="1.2"><section class="space-inner-frame"><div class="flat-shadow"><p class="nm huge bold">Flat</p></div></section></div><div class="space-frame"><section class="space-inner-frame"><p>Let's try <span class="modal">something new.</span></p></section></div><div class="space-frame" data-enter="slideInLeft" data-exit="slideOutLeft rotate3dOut rotateQuarterRight"><section class="space-inner-frame"><div class="wall-wrap"><div class="left-wall"><div class="painting"><img src="img/paper.jpg"/></div><br><div class="painting"><img src="img/househill.jpg"/></div></div><section class="center-center"><p class="large">Because <br>Our content <br>deserves <b>Space</b></p></section></div></section></div><div class="space-frame" data-enter="fadeIn" data-exit="fadeOut"><div style="background-image:url(img/flowers.jpg);" class="background"></div><section class="space-inner-frame"><p class="large bold">To flourish.</p></section></div><div class="space-frame" data-enter="slideInBottom" data-exit="slideOutDown fadeOut" data-duration="2"><section class="space-inner-frame"><p class="large center">To impact</p><div class="whole"><div class="half"><div class="painting"><img src="img/paper.jpg"/></div><div class="painting"><img src="img/househill.jpg"/></div></div><div class="half"><div class="painting nm"><img src="img/umbrella.jpg"/></div></div></div></section></div><div class="space-frame" data-enter="slideInRight" data-exit="rotate3dOut"><section class="space-inner-frame"><div class="whole"><div class="half"><p style="padding-top:60px;" class="right">To Touch</p></div><div class="half"><div class="painting"><img src="img/paper.jpg"/></div></div></div></section></div><div class="space-frame"><section class="space-inner-frame"><p>Welcome to the future.</p></section></div><div class="space-frame" data-enter="scaleIn" data-exit="scaleOut fadeOut"><section class="space-inner-frame"><img src="img/spacejs.png" width="300px" alt=""></section></div><div class="space-frame"><section class="space-inner-frame"><section style="max-width:600px;" class="codrops-header"><h1>Space.js</h1><nav class="codrops-demos center"><a href="/space.js"><b>Home</b></a><span class="mr">|</span><a href="demo1.html"><b>Demo 1 – </b>The Gallery</a><a href="demo2.html"><b>Demo 2: </b>Out of Space</a></nav><p class="center"><a href="https://twitter.com/share" class="twitter-share-button" data-text="Space.js – HTML-driven narrative parallax." data-via="gopatrik" data-size="large">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p></section></section></div><div class="space-frame"><section class="space-inner-frame"></section></div><script src="space.js"></script></body>
1 change: 1 addition & 0 deletions demo1.jade
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ body
img(src="img/spacejs.png", width="300px" alt="")

+lastNav
+frame

script(src="space.js")

Expand Down
Loading

0 comments on commit 0419c54

Please sign in to comment.