diff --git a/templates/apiDocs.html b/templates/apiDocs.html index 1fe97e8b45197fd9399677d184c9df4fc3c08eb4..aeaa602a66fe619c975f69a5a26883379c647d66 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