Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
5e874143
Commit
5e874143
authored
Jul 23, 2014
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码高亮使用单独的 CSS 类
parent
3a3b812a
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
war/src/main/webapp/js/page.js
war/src/main/webapp/js/page.js
+3
-3
war/src/main/webapp/js/page.min.js
war/src/main/webapp/js/page.min.js
+1
-1
No files found.
war/src/main/webapp/js/page.js
View file @
5e874143
...
...
@@ -18,7 +18,7 @@
*
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.
0.3.5, Oct 26, 2013
* @version 1.
1.3.5, Jul 23, 2014
*/
var
Page
=
function
(
tips
)
{
this
.
currentCommentId
=
""
;
...
...
@@ -294,7 +294,7 @@ $.extend(Page.prototype, {
// get brush settings
var
languages
=
[],
isScrip
=
false
;
$
(
"
.article-body pre
"
).
each
(
function
()
{
$
(
"
.article-body pre
, .code-highlight pre
"
).
each
(
function
()
{
var
name
=
this
.
className
.
split
(
"
;
"
)[
0
];
var
language
=
name
.
substr
(
7
,
name
.
length
-
1
);
if
(
this
.
className
.
indexOf
(
"
html-script: true
"
)
>
-
1
&&
...
...
@@ -329,7 +329,7 @@ $.extend(Page.prototype, {
parseLanguage
:
function
(
obj
)
{
var
isPrettify
=
false
,
isSH
=
false
;
$
(
"
.article-body pre
"
).
each
(
function
()
{
$
(
"
.article-body pre
, .code-highlight pre
"
).
each
(
function
()
{
if
(
this
.
className
.
indexOf
(
"
brush
"
)
>
-
1
)
{
isSH
=
true
;
}
...
...
war/src/main/webapp/js/page.min.js
View file @
5e874143
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment