mirror of
https://github.com/Expand-sys/whoscatrevival
synced 2026-03-22 09:47:08 +11:00
26 lines
857 B
Text
26 lines
857 B
Text
<!DOCTYPE html>
|
|
<html class="no-js">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Whos Cat IS THAT??!?</title>
|
|
link(rel='stylesheet' href='/stylesheets/style.css')
|
|
</head>
|
|
<body>
|
|
<form action="/upload" method="POST" enctype="multipart/form-data">
|
|
<legend>Whos Cat is That??!?</legend>
|
|
<input type="file" name="file" onchange="loadFile(event)">
|
|
<img id="output" width="200" />
|
|
|
|
<button type="submit" class="btn btn-primary">Upload</button>
|
|
</form>
|
|
center
|
|
p not 100% success rate pls dont be too mad if it gets things wrong
|
|
script.
|
|
var loadFile = function(event){
|
|
var image = document.getElementById('output');
|
|
image.src = URL.createObjectURL(event.target.files[0]);
|
|
};
|
|
</body>
|
|
</html>
|