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:
@@ -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),
|
||||
|
Reference in New Issue
Block a user