Skip to content

Commit cb9c8a9

Browse files
committed
Add hn button to welcome page
1 parent 17667f7 commit cb9c8a9

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/welcome/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,16 @@ <h2>Themes</h2>
564564
#github_stars:hover {
565565
-webkit-filter: none;
566566
}
567+
.hn-share-iframe {
568+
position: fixed;
569+
bottom: 36px;
570+
left: 225px;
571+
-webkit-filter: grayscale(1) contrast(1.3);
572+
z-index: 3;
573+
}
574+
.hn-share-iframe:hover {
575+
-webkit-filter: none;
576+
}
567577
</style>
568578
<div id="retweet_button">
569579
<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://github.hubspot.com/pace/docs/welcome" data-text="pace.js - Add an automatic page load progress bar to your site" data-count="horizontal" data-via="HubSpotDev">Tweet</a>
@@ -572,6 +582,16 @@ <h2>Themes</h2>
572582
<div id="github_stars">
573583
<iframe src="http://ghbtns.com/github-btn.html?user=HubSpot&amp;repo=pace&amp;type=watch&amp;count=true&amp;size=small" allowtransparency="true" frameborder="0" scrolling="0" width="200" height="20"></iframe>
574584
</div>
585+
<a href="http://news.ycombinator.com/submit" class="hn-share-button" data-title="Show HN: Pace / Automatic page load progress bars" data-url="http://github.hubspot.com/pace/docs/welcome/?hn=1">Vote on HN</a>
586+
587+
<script>
588+
(function(d, t) {
589+
var g = d.createElement(t),
590+
s = d.getElementsByTagName(t)[0];
591+
g.src = '//hnbutton.appspot.com/static/hn.min.js';
592+
s.parentNode.insertBefore(g, s);
593+
}(document, 'script'));
594+
</script>
575595

576596
<!-- Start of Async HubSpot Analytics Code -->
577597
<script type="text/javascript">

0 commit comments

Comments
 (0)