Skip to content

Commit

Permalink
fresh
Browse files Browse the repository at this point in the history
  • Loading branch information
nabilfreeman committed Jan 8, 2014
1 parent a61d368 commit e5fbe64
Show file tree
Hide file tree
Showing 12 changed files with 927 additions and 35 deletions.
435 changes: 420 additions & 15 deletions css/main.css

Large diffs are not rendered by default.

Binary file added img/arrow.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 img/bike red.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 modified img/bike.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 img/downarrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions img/downarrow.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 img/dudes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions img/dudes.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 img/mouse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 50 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ <h1 class="grid_12">
<div class="uibutton red"></div>
<div class="uibutton yellow"></div>
<div class="uibutton green"></div>
<div class="uibutton white"></div>
<div class="window">
<div class="logo">
<i>b</i><i>i</i><i>k</i><i>e</i><i>shop</i>
Expand Down Expand Up @@ -77,7 +78,7 @@ <h1 class="grid_12">
<div class="line"></div>
<div class="line"></div>
</div>
<div class="review">
<div class="review short">
<img class="photo" src="img/head.png">
<div class="stars">
<img src="img/star.png">
Expand All @@ -88,7 +89,6 @@ <h1 class="grid_12">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="review">
<img class="photo" src="img/head.png">
Expand All @@ -104,7 +104,7 @@ <h1 class="grid_12">
<div class="line"></div>
<div class="line"></div>
</div>
<div class="review">
<div class="review short">
<img class="photo" src="img/head.png">
<div class="stars">
<img src="img/star.png">
Expand All @@ -116,7 +116,6 @@ <h1 class="grid_12">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="review">
<img class="photo" src="img/head.png">
Expand All @@ -132,12 +131,59 @@ <h1 class="grid_12">
<div class="line"></div>
</div>
</div>
<div class="cnvrt">
<div class="item fanCount big">9</div>
<div class="item fanCount caption">people bought this bike</div>
<div class="close"></div>
<div class="downarrow"></div>
</div>
<img class="mouse" src="img/mouse.png"></img>

</div>

<div class="ctacontainer">
<button class="calltoaction">Get CNVRT now</button>
</div>
</div>
</div>
</div>
</div>

<div id="featureicons">
<div class="container_12">
<h1 class="grid_12">CNVRT improves your conversions<span class="underscore">_</span></h1>
<div class="spacer empty"></div>
<div class="circle">lads</div>
<div class="arrow"><img src="img/arrow.png"></div>
<div class="circle">lads</div>
<div class="arrow"><img src="img/arrow.png"></div>
<div class="circle">
<div class="graphcaption"></div>
</div>
<div class="spacer empty"></div>
</div>
</div>

<div id="featurelist">
<div class="container_12">
<ul class="grid_12">
<li>
One line of code<span class="underscore">_</span>
</li>
<li>
Automatic colour coding<span class="underscore">_</span>
</li>
<li>
Enhanced analytics<span class="underscore">_</span>
</li>
<li class="ctacontainer">
<button class="calltoaction">Get CNVRT now</button>
<button class="calltoaction grey">Contact us</button>
</li>
</ul>
</div>
</div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.2.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
Expand Down
43 changes: 39 additions & 4 deletions js/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
var entries = ["bookings","sales","donations"];
var entries = ["bookings","sales","users","donations","audience","subscribers"];
var entrypos = 0;
var stringpos = 0;

function loop(string, callback){
console.log("hey");

if(stringpos == string.length){
callback();
return;
Expand All @@ -20,6 +18,7 @@ function loop(string, callback){

function cycle(instantly){
if(instantly){
$(".graphcaption").html(entries[entrypos]);
loop(entries[entrypos], function(){
cycle();
});
Expand All @@ -30,11 +29,47 @@ function cycle(instantly){

setTimeout(function(){
$(".subject").html("");
$(".graphcaption").html(entries[entrypos]);
loop(entries[entrypos], function(){
cycle();
});
}, 2000);
}
}

cycle(true);
cycle(true);

function animation(){
var obj = $(".mac .window");
var scrollheight = obj[0].scrollHeight;
var midway = scrollheight/2;

$(".cnvrt").fadeIn(400, function(){
$(".cnvrt").addClass("pulsate");
obj.animate({scrollTop: scrollheight,opacity:0.2}, 1400, function(){
obj.find("button").addClass("pulsate");
setTimeout(function(){
obj.animate({scrollTop:0,opacity:1},700);

$(".mouse").fadeIn(200).animate({top:275,left:520},1400, function(){
setTimeout(function(){
obj.find("button").removeClass("pulsate").addClass("active");
setTimeout(function(){
obj.find("button").removeClass("active");
$(".mouse").fadeOut(1000, function(){
$(".mouse").css({
"top":"",
"left":"",
});
setTimeout(animation, 1000);
});
$(".cnvrt").fadeOut(1000).removeClass("pulsate");
},1000);
}, 1600);
});
}, 4000);
});
});
}

setTimeout(animation, 1000);
Loading

0 comments on commit e5fbe64

Please sign in to comment.