Merge pull request #66 from ascribe/sprint

Sprint
This commit is contained in:
Matthias Kretschmann 2016-03-03 18:01:35 +01:00
commit b01775c5cd
4 changed files with 38 additions and 7 deletions

View File

@ -29,6 +29,31 @@ var GoogleAnalytics = (function(w,d,$) {
$('.js-tracking-whitepaper-download').on('click', function() { $('.js-tracking-whitepaper-download').on('click', function() {
ga('send', 'event', 'whitepaper', 'download', 'button', true); ga('send', 'event', 'whitepaper', 'download', 'button', true);
}); });
// Social links
$('.js-social-link').on('click', function() {
var href = this.getAttribute('href'),
network = extractDomain(href);
ga('send', 'event', 'social', 'click', network);
});
function extractDomain(url) {
var domain;
//find & remove protocol (http, ftp, etc.) and get domain
if (url.indexOf("://") > -1) {
domain = url.split('/')[2];
}
else {
domain = url.split('/')[0];
}
//find & remove port number
domain = domain.split(':')[0];
return domain;
}
}, },

View File

@ -1,8 +1,11 @@
//=include ../../../node_modules/is-in-viewport/lib/isInViewport.js //=include ../../../node_modules/is-in-viewport/lib/isInViewport.js
//=include bigchain/testimonials.js
jQuery(function($) { jQuery(function($) {
Testimonials.init();
var wrigley = $('#wrigley'), var wrigley = $('#wrigley'),
wrigleyArm = wrigley.find('#arm'), wrigleyArm = wrigley.find('#arm'),
wrigleyHead = wrigley.find('#head'), wrigleyHead = wrigley.find('#head'),

View File

@ -5,6 +5,7 @@ title: Community
description: 'There are many ways you can contribute to the BigchainDB project, some very easy and others more involved.' description: 'There are many ways you can contribute to the BigchainDB project, some very easy and others more involved.'
js: page-community.min.js js: page-community.min.js
quotes: set3
--- ---
<section class="section section-community"> <section class="section section-community">
@ -20,13 +21,13 @@ js: page-community.min.js
<div class="grid__col"> <div class="grid__col">
<h1>Join the discussion</h1> <h1>Join the discussion</h1>
<p>Participate via Gitter or Google Group</p> <p>Participate via Gitter or Google Group</p>
<a class="social-link" href="https://gitter.im/{{ site.gitter }}"> <a class="social-link js-social-link" href="https://gitter.im/{{ site.gitter }}">
<svg class="icon icon--social icon--gitter" aria-labelledby="title"> <svg class="icon icon--social icon--gitter" aria-labelledby="title">
<title>Gitter</title> <title>Gitter</title>
<use xlink:href="/assets/img/sprite.svg#gitter"></use> <use xlink:href="/assets/img/sprite.svg#gitter"></use>
</svg> </svg>
</a> </a>
<a class="social-link" href="https://groups.google.com/forum/#!forum/{{ site.googlegroup }}"> <a class="social-link js-social-link" href="https://groups.google.com/forum/#!forum/{{ site.googlegroup }}">
<svg class="icon icon--social icon--github" aria-labelledby="title"> <svg class="icon icon--social icon--github" aria-labelledby="title">
<title>Google Group</title> <title>Google Group</title>
<use xlink:href="/assets/img/sprite.svg#google"></use> <use xlink:href="/assets/img/sprite.svg#google"></use>
@ -37,23 +38,23 @@ js: page-community.min.js
<h1>Follow</h1> <h1>Follow</h1>
<p>Follow us for the latest updates</p> <p>Follow us for the latest updates</p>
<p> <p>
<a class="social-link" href="https://github.com/{{ site.github.org }}"> <a class="social-link js-social-link" href="https://github.com/{{ site.github.org }}">
<svg class="icon icon--social icon--github" aria-labelledby="title"> <svg class="icon icon--social icon--github" aria-labelledby="title">
<title>GitHub</title> <title>GitHub</title>
<use xlink:href="/assets/img/sprite.svg#github"></use> <use xlink:href="/assets/img/sprite.svg#github"></use>
</svg> </svg>
</a> </a>
<a class="social-link" href="https://twitter.com/{{ site.twitter }}"> <a class="social-link js-social-link" href="https://twitter.com/{{ site.twitter }}">
<svg class="icon icon--social icon--twitter" aria-labelledby="title"> <svg class="icon icon--social icon--twitter" aria-labelledby="title">
<title>Twitter</title> <title>Twitter</title>
<use xlink:href="/assets/img/sprite.svg#twitter"></use> <use xlink:href="/assets/img/sprite.svg#twitter"></use>
</svg> </svg>
</a> </a>
<a class="social-link" href="https://medium.com/{{ site.medium }}"> <a class="social-link js-social-link" href="https://medium.com/{{ site.medium }}">
<svg class="icon icon--social icon--blog" aria-labelledby="title"> <svg class="icon icon--social icon--blog" aria-labelledby="title">
<title>Blog</title> <title>Medium</title>
<use xlink:href="/assets/img/sprite.svg#medium"></use> <use xlink:href="/assets/img/sprite.svg#medium"></use>
</svg> </svg>
</a> </a>
@ -68,3 +69,5 @@ js: page-community.min.js
</section> </section>
{% include section-newsletter.html %} {% include section-newsletter.html %}
{% include section-testimonials.html %}

View File

@ -227,7 +227,7 @@ js: page-features.min.js
</header> </header>
<p class="text-center"> <p class="text-center">
<a href="/community/" class="btn btn-primary btn-sm">Learn More</a> <a href="https://github.com/{{ site.github.org }}/{{ site.github.repo }}/blob/develop/CONTRIBUTING.md" class="btn btn-primary btn-sm">Read Guidelines</a>
</p> </p>
</div> </div>
</section> </section>