From 929ac407a69b30a387106d967faa3cf98f0072a7 Mon Sep 17 00:00:00 2001 From: Jonas Leder <jonas@jonasled.de> Date: Tue, 26 Nov 2019 21:53:22 +0100 Subject: [PATCH] moved qr show funtion in button --- templates/apiDocs.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/templates/apiDocs.html b/templates/apiDocs.html index 1fe97e8..aeaa602 100644 --- a/templates/apiDocs.html +++ b/templates/apiDocs.html @@ -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 -- GitLab