File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 < script src ="/s/pasteclick.js "> </ script >
1010 < style > a {color : white;} </ style >
1111 </ head >
12- < body class ='hljs ' id ="body " onload ="initPaste(); "> < pre id ="code "> ################################################################################
12+ < body class ='hljs ' id ="body " onload ="initPaste(); "> < pre id ="code " class ="codeType(); ">
13+ ################################################################################
1314###### ######
1415### ###
1516# _ _ _ _ #
Original file line number Diff line number Diff line change @@ -12,8 +12,14 @@ function getPastePre(){
1212function highlightPre ( pastePre ) {
1313 hljs . highlightBlock ( document . body ) ;
1414 hljs . highlightBlock ( pastePre ) ;
15- }
15+ }
1616function initPaste ( ) {
1717 inPastePre = getPastePre ( ) ;
1818 highlightPre ( inPastePre ) ;
1919}
20+ function codeType ( ) {
21+ if ( window . location . hash ) {
22+ var lang = window . location . hash . substr ( 1 ) ;
23+ }
24+ return lang ;
25+ }
You can’t perform that action at this time.
0 commit comments