This commit is contained in:
Matthew Slowe 2020-04-05 12:25:43 +01:00
parent 3fdd9c33ba
commit 87577944fb
4 changed files with 38 additions and 4 deletions

32
Makefile Normal file
View File

@ -0,0 +1,32 @@
JAVA = /usr/bin/java
# JAVAFLAGS = -version # -classpath $(LIBS)
JAVAC = /usr/bin/javac
JFLAGS = -g # -classpath $(LIBS)
SRCS = uk/org/mafoo/wordsearch/CouldNotPlaceWordException.java \
uk/org/mafoo/wordsearch/Bounds.java \
uk/org/mafoo/wordsearch/GridFactory.java \
uk/org/mafoo/wordsearch/DistributedRandomNumberGenerator.java \
uk/org/mafoo/wordsearch/Direction.java
JSPS = $(wildcard war/*.jsp war/*.css)
OBJS = ${SRCS:.java=.class}
.SUFFIXES: .java .class
.PHONY: default clean
default: wordsearch.war
clean:
rm -f $(OBJS) wordsearch.jar wordsearch.war
.java.class:
$(JAVAC) $(JFLAGS) $<
wordsearch.jar: $(OBJS)
jar cf $@ $(OBJS)
wordsearch.war: wordsearch.jar
cp -f wordsearch.jar war/lib
jar -c -f $@ -C war .

View File

@ -1,5 +1,5 @@
body {
font-family: sans-serif;
body {
font-family: 'Roboto', sans-serif;
}
.tooltip {
@ -14,8 +14,8 @@ table, th, td {
}
table#grid td {
font-family: monospace;
font-size: 22px;
font-family: 'Fira Mono', monospace;
font-size: 14pt;
}
#wrapper {

View File

@ -3,6 +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">
</head>
<%@ page import="uk.org.mafoo.wordsearch.*" %>
<%@ page import="java.util.*" %>

View File

@ -3,6 +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">
</head>
<body>
<h1>Wordsearch Builder</h1>