1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +02: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

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),