2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

updated docs, fixed language, added copy-code js for selecting text on focus

This commit is contained in:
Mark Otto
2011-06-30 10:40:28 -07:00
parent 6aae3930c9
commit 588b2da937
8 changed files with 39 additions and 47 deletions
+9
View File
@@ -35,6 +35,15 @@ $(document).ready(function(){
});
// Copy code blocks in docs
$(".copy-code").focus(function() {
$(this).select();
});
$(".copy-code").mouseup(function(e) {
e.preventDefault();
});
// scroll spyer
var activeTarget,
$window = $(window),