Skip to content
Snippets Groups Projects
Commit 929ac407 authored by Jonas Leder's avatar Jonas Leder
Browse files

moved qr show funtion in button

parent 0bbf0aef
Branches
Tags
No related merge requests found
......@@ -10,6 +10,9 @@
background-color: black;
color: white;
}
smaller {
font-size: 13px;
}
</style>
<title>API docs</title>
</head>
......@@ -67,13 +70,7 @@
</table>
<h2>Preview image</h2>
<p>Please paste your base64 image here: <input type="text" id="base64Input"> <button onclick="showBase64Image();">show</button></p>
<p style="font-size: 13px;">(this will not work very well in google Chrome)</p>
<p>Please paste your base64 image here: <input type="text" id="base64Input"> <button onclick='document.getElementById("base64Image").src = document.getElementById("base64Input").value;'>show</button><br>
<smaller>(this will not work very well in google Chrome)</smaller></p>
<img id="base64Image">
<script>
function showBase64Image(){
document.getElementById("base64Image").src = document.getElementById("base64Input").value;
}
</script>
</body>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment