fix: heading into body

This commit is contained in:
Artemy 2023-08-15 16:26:49 +03:00
parent c70a84db52
commit e073e9f1ec
2 changed files with 65 additions and 49 deletions

View File

@ -1,15 +1,24 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<%= parsed.lang %>"> <html lang="<%= parsed.lang %>">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
<title><%= parsed.title %></title> <title>
<%= parsed.title %>
</title>
<link rel="stylesheet" href="/static/common.css"> <link rel="stylesheet" href="/static/common.css">
</head> </head>
<body> <body>
<h1><%= parsed.title %></h1> <main>
<main><%- parsed.content %></main> <h1>
<%= parsed.title %>
</h1>
<%- parsed.content %>
</main>
</body> </body>
</html>
</html>

View File

@ -1,49 +1,56 @@
<% const desc = "txtdot is a HTTP proxy that parses text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts" %> <% const
<!DOCTYPE html> desc="txtdot is a HTTP proxy that parses text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts"
<html> %>
<head> <!DOCTYPE html>
<meta charset="utf-8"> <html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <head>
<meta name="description" content="<%= desc %>"> <meta charset="utf-8">
<title>txt. main page</title> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/static/common.css"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="/static/index.css"> <meta name="description" content="<%= desc %>">
</head> <title>txt. main page</title>
<body> <link rel="stylesheet" href="/static/common.css">
<main> <link rel="stylesheet" href="/static/index.css">
<header> </head>
<h1>txt.</h1>
<p><%= desc %></p> <body>
</header> <main>
<form action="/get" method="get" class="input-grid"> <header>
<div class="input"> <h1>txt.</h1>
<input type="text" name="url" id="url" placeholder="URL"> <p>
</div> <%= desc %>
<div class="input"> </p>
<input type="submit" id="submit" value="Parse"> </header>
</div> <form action="/get" method="get" class="input-grid">
<div class="input-row">
<div class="input"> <div class="input">
<label for="engine">Engine</label> <input type="text" name="url" id="url" placeholder="URL">
<select name="engine">
<option value="" selected>Default</option>
<% engineList.forEach((engine) => { %>
<option value="<%= engine %>">
<%= engine %>
</option>
<% }) %>
</select>
</div> </div>
<div class="input"> <div class="input">
<label for="format">Format</label> <input type="submit" id="submit" value="Parse">
<select name="format">
<option value="html" selected>HTML</option>
<option value="text">Text</option>
</select>
</div> </div>
</div> <div class="input-row">
</form> <div class="input">
</main> <label for="engine">Engine</label>
</body> <select name="engine">
</html> <option value="" selected>Default</option>
<% engineList.forEach((engine)=> { %>
<option value="<%= engine %>">
<%= engine %>
</option>
<% }) %>
</select>
</div>
<div class="input">
<label for="format">Format</label>
<select name="format">
<option value="html" selected>HTML</option>
<option value="text">Text</option>
</select>
</div>
</div>
</form>
</main>
</body>
</html>