Code files
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Add</title>
|
||||
<link rel='stylesheet' href='/stylesheets/style.css' />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Add it up!</h1>
|
||||
<form id='calc-form' action='/add/calculate' method='post'>
|
||||
<input type='text' id='first', name='first' value=<%= first %>></input>
|
||||
<input type='text' id='second', name='second' value=<%= second %>></input>
|
||||
</form>
|
||||
<button type="submit" form="calc-form" value="Submit">Submit</button>
|
||||
<h2>result = <%= result %></h2>
|
||||
</body>
|
||||
</html>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
<h1><%= message %></h1>
|
||||
<h2><%= error.status %></h2>
|
||||
<pre><%= error.stack %></pre>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= title %></title>
|
||||
<link rel='stylesheet' href='/stylesheets/style.css' />
|
||||
</head>
|
||||
<body>
|
||||
<h1><%= title %></h1>
|
||||
<p>Welcome to <%= title %></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user