Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
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-1
Commits
5652573d
Commit
5652573d
authored
Nov 09, 2017
by
Vanessa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
about #12360
parent
d2c8588e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
35 deletions
+34
-35
src/main/webapp/images/code-bg.png
src/main/webapp/images/code-bg.png
+0
-0
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+16
-18
src/main/webapp/js/lib/CodeMirrorEditor/editor.js
src/main/webapp/js/lib/CodeMirrorEditor/editor.js
+16
-16
src/main/webapp/js/page.js
src/main/webapp/js/page.js
+0
-1
src/main/webapp/skins/9IPHP/footer.ftl
src/main/webapp/skins/9IPHP/footer.ftl
+2
-0
No files found.
src/main/webapp/images/code-bg.png
0 → 100644
View file @
5652573d
343 Bytes
src/main/webapp/js/common.js
View file @
5652573d
...
...
@@ -37,7 +37,6 @@ var Util = {
$
(
this
).
find
(
'
p
'
).
each
(
function
()
{
if
(
$
(
this
).
text
().
indexOf
(
'
$/
'
)
>
-
1
||
$
(
this
).
text
().
indexOf
(
'
$$
'
)
>
-
1
)
{
hasMathJax
=
true
;
return
false
;
}
});
if
(
$
(
this
).
find
(
'
code.lang-flow, code.language-flow
'
).
length
>
0
)
{
...
...
@@ -68,16 +67,15 @@ var Util = {
if
(
typeof
MathJax
!==
'
undefined
'
)
{
initMathJax
();
return
;
}
else
{
$
.
ajax
({
method
:
"
GET
"
,
url
:
"
https://cdn.staticfile.org/MathJax/MathJax-2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&_=1473258780393
"
,
dataType
:
"
script
"
}).
done
(
function
()
{
initMathJax
();
});
}
$
.
ajax
({
method
:
"
GET
"
,
url
:
"
https://cdn.staticfile.org/MathJax/MathJax-2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&_=1473258780393
"
,
dataType
:
"
script
"
}).
done
(
function
()
{
initMathJax
();
});
}
if
(
hasFlow
)
{
...
...
@@ -96,15 +94,15 @@ var Util = {
if
(
typeof
(
flowchart
)
!==
'
undefined
'
)
{
initFlow
();
return
;
}
else
{
$
.
ajax
({
method
:
"
GET
"
,
url
:
latkeConfig
.
staticServePath
+
'
/js/lib/flowchart/flowchart.min.js
'
,
dataType
:
"
script
"
}).
done
(
function
()
{
initFlow
()
});
}
$
.
ajax
({
method
:
"
GET
"
,
url
:
latkeConfig
.
staticServePath
+
'
/js/lib/flowchart/flowchart.min.js
'
,
dataType
:
"
script
"
}).
done
(
function
()
{
initFlow
()
});
}
},
/**
...
...
src/main/webapp/js/lib/CodeMirrorEditor/editor.js
View file @
5652573d
...
...
@@ -1359,23 +1359,23 @@
preview
.
className
+=
'
editor-preview-active
'
},
1
);
toolbar
.
className
+=
'
active
'
;
var
text
=
cm
.
getValue
();
$
.
ajax
({
url
:
editor
.
options
.
htmlURL
,
type
:
"
POST
"
,
cache
:
false
,
data
:
{
markdownText
:
text
},
success
:
function
(
result
,
textStatus
)
{
preview
.
innerHTML
=
result
.
html
;
Util
.
parseMarkdown
();
hljs
.
initHighlighting
.
called
=
false
;
hljs
.
initHighlighting
();
}
});
}
var
text
=
cm
.
getValue
();
$
.
ajax
({
url
:
editor
.
options
.
htmlURL
,
type
:
"
POST
"
,
cache
:
false
,
data
:
{
markdownText
:
text
},
success
:
function
(
result
,
textStatus
)
{
preview
.
innerHTML
=
result
.
html
;
hljs
.
initHighlighting
.
called
=
false
;
hljs
.
initHighlighting
();
Util
.
parseMarkdown
();
}
});
}
function
_replaceSelection
(
cm
,
active
,
start
,
end
)
{
...
...
src/main/webapp/js/page.js
View file @
5652573d
...
...
@@ -422,7 +422,6 @@ $.extend(Page.prototype, {
}
catch
(
e
)
{
document
.
write
(
"
<script src=
\"
"
+
latkeConfig
.
staticServePath
+
"
/js/lib/json2.js
\"
><
\
/script>
"
);
}
Util
.
parseMarkdown
();
},
/*
* @description 加载随机文章
...
...
src/main/webapp/skins/9IPHP/footer.ftl
View file @
5652573d
...
...
@@ -39,5 +39,7 @@
"em13Label": "${em13Label}",
"em14Label": "${em14Label}"
};
Util.parseMarkdown();
</script>
${plugins}
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