summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/js/bootswatch.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/bootswatch.js b/assets/js/bootswatch.js
index 9a32eee5..cc6ca998 100644
--- a/assets/js/bootswatch.js
+++ b/assets/js/bootswatch.js
@@ -10,6 +10,10 @@
$('#home > .navbar').addClass('navbar-transparent');
});
+ $("a[href='#'").click(function(e) {
+ e.preventDefault();
+ });
+
var $button = $("<div id='source-button' class='btn btn-primary btn-xs'>&lt; &gt;</div>").click(function(){
var html = $(this).parent().html();
html = cleanSource(html);