mirror of
https://github.com/fooflington/wordsearch.git
synced 2025-04-16 06:19:16 +00:00
Improve formatting
This commit is contained in:
parent
cb87f5cbd5
commit
4761199617
2
war/WEB-INF/jspf/footer.jspf
Normal file
2
war/WEB-INF/jspf/footer.jspf
Normal file
@ -0,0 +1,2 @@
|
||||
<div id="footer">
|
||||
</div>
|
@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<title>Wordsearch Builder: About</title>
|
||||
<link rel="stylesheet" type="text/css" href="base.css" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Roboto:wght@500&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
11
war/base.css
11
war/base.css
@ -19,10 +19,8 @@ table#grid td {
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
width: 80%;
|
||||
margin: 0 auto 60px auto;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
#wordsearch {
|
||||
float: left;
|
||||
}
|
||||
@ -35,8 +33,11 @@ table#grid td {
|
||||
#footer {
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
width:100%;
|
||||
height:60px; /* Height of the footer */
|
||||
}
|
||||
|
||||
textarea#textarea_words {
|
||||
font-family: 'Fira Mono', monospace;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
@media only print {
|
||||
|
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<title>Wordsearch builder</title>
|
||||
<link rel="stylesheet" type="text/css" href="base.css" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Roboto:wght@500&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Roboto:wght@500&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<%@ page import="uk.org.mafoo.wordsearch.*" %>
|
||||
<%@ page import="java.util.*" %>
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
List<String> words = new ArrayList<String>();
|
||||
for ( String line : request.getParameter("words").split("\r\n")) {
|
||||
words.add(line.trim());
|
||||
words.add(line.trim().toLowerCase());
|
||||
}
|
||||
Collections.sort(words);
|
||||
|
||||
@ -48,18 +48,18 @@
|
||||
<table id="grid">
|
||||
<% for(char[] row : grid) { %>
|
||||
<tr>
|
||||
<% for(char c : row) {
|
||||
<% for(char c : row) {
|
||||
csv += "" + c + ',';
|
||||
%>
|
||||
<td class="cell"><%= c %></td>
|
||||
<% } %>
|
||||
</tr>
|
||||
<%
|
||||
<%
|
||||
csv += "\\n";
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
</div> <!-- end wordsearch -->
|
||||
</div> <!-- end wordsearch -->
|
||||
|
||||
<div id="words">
|
||||
<h2>Words</h2>
|
||||
@ -69,7 +69,7 @@
|
||||
<% } %>
|
||||
</ul>
|
||||
</div> <!-- end words -->
|
||||
</div> <!-- end wrapper -->
|
||||
</div> <!-- end wrapper -->
|
||||
<br />
|
||||
<br />
|
||||
<%@include file="/WEB-INF/jspf/footer.jspf" %>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<h2>Words</h2>
|
||||
<form action="build.jsp" method="post">
|
||||
Name: <input type="text" size="25" name="name" value="Wordsearch"><br />
|
||||
<textarea name="words" rows="10">
|
||||
<textarea id="textarea_words" name="words" rows="10">
|
||||
Kitchen
|
||||
Lounge
|
||||
Study
|
||||
|
Loading…
x
Reference in New Issue
Block a user