mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 00:38:54 +00:00
[FEATURE] Style update required by CodeMirror
This commit is contained in:
parent
69fbe5d2b8
commit
e01e0fdb6e
@ -28,6 +28,15 @@
|
|||||||
<link rel="stylesheet" href="${contextroot}/plantuml.css" />
|
<link rel="stylesheet" href="${contextroot}/plantuml.css" />
|
||||||
<link rel="stylesheet" href="webjars/codemirror/3.21/lib/codemirror.css" />
|
<link rel="stylesheet" href="webjars/codemirror/3.21/lib/codemirror.css" />
|
||||||
<script src="webjars/codemirror/3.21/lib/codemirror.js"></script>
|
<script src="webjars/codemirror/3.21/lib/codemirror.js"></script>
|
||||||
|
<script src="mode/plantuml.js"></script>
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
var myCodeMirror = CodeMirror.fromTextArea(
|
||||||
|
document.getElementById("text"),
|
||||||
|
{lineNumbers: true}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
</script>
|
||||||
<title>PlantUMLServer</title>
|
<title>PlantUMLServer</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -43,13 +52,12 @@
|
|||||||
<%-- CONTENT --%>
|
<%-- CONTENT --%>
|
||||||
<form method="post" accept-charset="UTF-8" action="${contextroot}/form">
|
<form method="post" accept-charset="UTF-8" action="${contextroot}/form">
|
||||||
<p>
|
<p>
|
||||||
<textarea id="diagtext" name="text" cols="120" rows="10"><c:out value="${decoded}"/></textarea>
|
<textarea id="text" name="text" cols="120" rows="10"><c:out value="${decoded}"/></textarea>
|
||||||
<br/>
|
|
||||||
<input type="submit" />
|
<input type="submit" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<hr/>
|
<hr/>
|
||||||
You can enter here a previously generated URL:
|
<p>You can enter here a previously generated URL:</p>
|
||||||
<form method="post" action="${contextroot}/form">
|
<form method="post" action="${contextroot}/form">
|
||||||
<p>
|
<p>
|
||||||
<input name="url" type="text" size="150" value="${imgurl}" />
|
<input name="url" type="text" size="150" value="${imgurl}" />
|
||||||
@ -84,8 +92,5 @@
|
|||||||
</div>
|
</div>
|
||||||
<%-- FOOTER --%>
|
<%-- FOOTER --%>
|
||||||
<%@ include file="footer.jspf" %>
|
<%@ include file="footer.jspf" %>
|
||||||
<script>
|
|
||||||
var myCodeMirror = CodeMirror.fromTextArea(document.getElementById("diagtext"), {lineNumbers: true});
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
******************************/
|
******************************/
|
||||||
|
|
||||||
/* Font */
|
/* Font */
|
||||||
* {
|
h1, p, #content a {
|
||||||
font-family: arial,helvetica,sans-serif;
|
font-family: arial,helvetica,sans-serif;
|
||||||
|
/* font-size: medium; */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
@ -22,16 +23,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Form inputs */
|
/* Form inputs */
|
||||||
#content textarea, #content input[type=text] {
|
#content textarea, #content .CodeMirror, #content input[type=text] {
|
||||||
background-color: #ffc;
|
background-color: #ffc;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
|
font-size: medium;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XHTML tag */
|
#content input[type=text] {
|
||||||
#content code {
|
border: 0;
|
||||||
font-family: 'courier new',courier,monospace;
|
|
||||||
letter-spacing: -1pt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Diagram */
|
/* Diagram */
|
||||||
|
Loading…
Reference in New Issue
Block a user