Skip to content
Permalink
1544322e8f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
40 lines (31 sloc) 1.14 KB
{{!--
Sources:
https://www.youtube.com/watch?v=WLEtj-iZL3g
https://stackoverflow.com/questions/11944932/how-to-download-a-file-with-node-js-without-using-third-party-libraries/11944984#11944984
https://www.w3schools.com/nodejs/nodejs_uploadfiles.asp
--}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hashes testing</title>
{{!-- <link href="style.css" type="text/css" rel="stylesheet" /> --}}
</head>
<body>
<h1>Hashes testing</h1>
<form action="/hashes/" method="get">
<input type="text" name="q" value="{{query}}">
<input type="submit" value="Submit" />
</form>
{{#if text}}
<p>Hash for string "{{query}}" is: <b>{{text}}</b></p>
{{!-- <input type="button" name="email" value="Send via email" onclick="showDiv()" /> --}}
<br><p>Send via email:</p>
<form action="/hashes/" method="get">
<input type="text" placeholder="E-mail" name="a" value="{{toAddress}}">
<input type="submit" value="Send" />
</form>
<br><a href="/testingDownloads/testFile.txt" download>Download testFile</a>
{{/if}}
</body>
</html>