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:
@@ -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