Skip to content

Commit

Permalink
Did a bouncebar myself. Much simpler. #43
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jul 9, 2015
1 parent c5f2b29 commit 45df131
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
14 changes: 13 additions & 1 deletion application/views/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"https://plus.google.com/104724190750629608501/"]
}
</script>
<script type="text/javascript" src="//cdn.bounce.bar/114697.js"></script>

<meta name="p:domain_verify" content="6187231235ed576f7d6e438a438b6b9a"/>
<?php
foreach($styleSheets as $css) { echo '<link rel="stylesheet" href="'.css_url($css).'?'.time().'">'; }
Expand All @@ -86,7 +86,19 @@
</div>
</div>
<header class="navbar <?php echo $headerClass; ?>">

<?php

if (!$this->agent->is_mobile() && $_SERVER["REQUEST_URI"] == "/") { ?>
<div id="ph">

<p >We are proud of being on <b><a href="<?php echo getenv("PH_URL"); ?>">Product Hunt</a></b> today ! <img width="35px" src="https://mail.google.com/mail/e/231a"/></p>

</div>
<?php } ?>

<div class="container container-fluid">

<div class="row collapse navbar-collapse" id="nav-menu">
<div class="col-md-12">
<div class="nav navbar-nav">
Expand Down
19 changes: 18 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ textarea:focus, textarea:hover, textarea:active
margin-bottom: 0;
position: fixed;
width: 100%;
top:0px;
min-height: 70px;
}

Expand Down Expand Up @@ -282,6 +283,7 @@ header .navbar-nav li a:hover, header .navbar-nav li a:focus
header #nav-menu
{
margin-top: 10px;
padding-bottom: 5px;
}
header .navbar-toggle
{
Expand Down Expand Up @@ -919,4 +921,19 @@ footer .links{
video{
background-color: black;
opacity: 0.7;
}
}

#ph{
margin-top: -10px;
color:white;
background-color: #da552f;
width: 100%;
font-weight: 200;
font-size: 16px;
text-align: center;
height: 75px;
}

#ph p{
padding-top: 20px;
}
2 changes: 1 addition & 1 deletion assets/js/home.logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $( document ).ready(function() {
if(activeIndex === 1){
timeouts.push(setTimeout(countDownDisplay, 1000));
}
var scrollTo = $("#"+possibleIndex[activeIndex]).offset().top - $("#bouncebar").height() - $(".navbar").height();
var scrollTo = $("#"+possibleIndex[activeIndex]).offset().top - $(".navbar").height();
console.log(scrollTo);
$('html, body').animate({
scrollTop: scrollTo
Expand Down

0 comments on commit 45df131

Please sign in to comment.