Commit cd169dc2 authored by sp2419's avatar sp2419
Browse files

Increased size of search result windows

parent aff3ee35
Pipeline #173709 passed with stages
in 4 minutes and 30 seconds
...@@ -40,6 +40,8 @@ public class HTMLResultPage implements Page { ...@@ -40,6 +40,8 @@ public class HTMLResultPage implements Page {
+ "\">"); + "\">");
// Content // Content
writer.println("<p><a href=\"/\">Back to Search Page</a></p><br>");
if (answer == null || answer.isEmpty()) { if (answer == null || answer.isEmpty()) {
writer.println("<h1>Sorry</h1>"); writer.println("<h1>Sorry</h1>");
writer.print("<p>Sorry, we didn't understand <em>" + query + "</em></p>"); writer.print("<p>Sorry, we didn't understand <em>" + query + "</em></p>");
...@@ -51,8 +53,6 @@ public class HTMLResultPage implements Page { ...@@ -51,8 +53,6 @@ public class HTMLResultPage implements Page {
} }
writer.println("<p><a href=\"/\">Back to Search Page</a></p>");
// Footer // Footer
writer.println("</body>"); writer.println("</body>");
writer.println("</html>"); writer.println("</html>");
...@@ -64,12 +64,12 @@ public class HTMLResultPage implements Page { ...@@ -64,12 +64,12 @@ public class HTMLResultPage implements Page {
writer.print("<embed src=\""); writer.print("<embed src=\"");
writer.print(bingLink); writer.print(bingLink);
writer.print("\" style=\""); writer.print("\" style=\"");
writer.print("width:50%; height: 300px;\">"); writer.print("width:50%; height: 75%;\">");
String wikipediaLink = "https://en.wikipedia.org/wiki/" + query; String wikipediaLink = "https://en.wikipedia.org/wiki/" + query;
writer.print("<embed src=\""); writer.print("<embed src=\"");
writer.print(wikipediaLink); writer.print(wikipediaLink);
writer.print("\" style=\""); writer.print("\" style=\"");
writer.print("width:50%; height: 300px;\">"); writer.print("width:50%; height: 75%;\">");
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment