-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[documentation] Update CSS formatting, add JavaScript code, minor oth…
…er changes [#95]
- Loading branch information
1 parent
007d9c1
commit 9f26cbc
Showing
3 changed files
with
64 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
"use strict"; | ||
|
||
|
||
(function () { | ||
|
||
function _apply () { | ||
$("html:root > body pre") .dblclick (_selectAll); | ||
$("html:root > body code") .dblclick (_selectAll); | ||
} | ||
|
||
function _selectAll (_event) { | ||
var _selection = window.getSelection (); | ||
_selection.removeAllRanges (); | ||
var _range = document.createRange (); | ||
_range.selectNodeContents (this); | ||
_selection.addRange (_range); | ||
} | ||
|
||
$(window) .on ("load", _apply); | ||
|
||
}) (); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters