2 lines
1.6 KiB
Plaintext
2 lines
1.6 KiB
Plaintext
$('body').scrollspy({target:'.sb-sidebar>.sticky-top>ul'})
|
|
$(function(){$('#search-query').lunrSearch({indexUrl:'/js/index.json',results:'#search-results',template:'#search-results-template',titleMsg:'<h2>Search results<h2>',emptyMsg:'<p>Nothing found.</p>'});});$('#download').click(function(){setTimeout(function(){$('#downloadModal').modal('show');},2000);});!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");(function(){var user_name,api_key,twitch_widget;user_name="startbootstrap";api_key="5j0r5b7qb7kro03fvka3o8kbq262wwm";twitch_widget=$("#twitch-widget");twitch_widget.attr("href","https://twitch.tv/"+user_name);$.getJSON('https://api.twitch.tv/kraken/streams/'+user_name+'?client_id='+api_key+'&callback=?',function(data){if(data.stream){twitch_widget.html('<div class="container"><span class="pulse"></span> Start Bootstrap is streaming! Click here to watch live and to chat with the developer!'+'<img src="/assets/img/brand-logos/twitch-logo.svg"></div>');}else{twitch_widget.html('');}});})();(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-38417733-17','startbootstrap.com');ga('send','pageview');$(".masthead-img").click(function(){ga('send','event','Referral','click','Referral - Home Box');}); |