Minor standardization

pull/235/head
ElementalAlchemist 4 years ago committed by Mike Lang
parent ae0e6d0385
commit be025e263f

@ -1,21 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en-US"> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Thrimbletrimmer Goes Forth</title> <title>Thrimbletrimmer Goes Forth</title>
<meta name="description" content="">
<meta name="google-signin-client_id" content="345276493482-r84m2giavk10glnmqna0lbq8e1hdaus0.apps.googleusercontent.com"> <meta name="google-signin-client_id" content="345276493482-r84m2giavk10glnmqna0lbq8e1hdaus0.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js?onload=onGLoad" async defer></script> <script src="https://apis.google.com/js/platform.js?onload=onGLoad" async defer></script>
</head> <script type="text/javascript">
<body>
<!-- https://developers.google.com/identity/sign-in/web/sign-in -->
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<a href="#" onclick="signOut();">Sign out</a>
<script>
var user; var user;
function onSignIn(googleUser) { function onSignIn(googleUser) {
user = googleUser; user = googleUser;
@ -34,14 +24,32 @@
}); });
} }
</script> </script>
<style type="text/css">
#google-sign-in {
margin-bottom: 10px;
}
#output-zone {
border-bottom: 1px solid #000;
padding-bottom: 2px;
}
</style>
</head>
<body>
<div id="google-sign-in">
<!-- https://developers.google.com/identity/sign-in/web/sign-in -->
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<a href="#" onclick="signOut();">Sign out</a>
</div>
<div> <div>
<br/> <input id="server" value="" placeholder="Server name" />
<input id="server" value="" /> <input id="rowId" value="04860aa4-d6a5-11e9-9d36-2a2ae2dbcce4" placeholder="Row ID" />
<input id="rowId" value="04860aa4-d6a5-11e9-9d36-2a2ae2dbcce4" />
<input type="button" onclick="getRow()" value="Get Row"/> <input type="button" onclick="getRow()" value="Get Row"/>
<a href="/thrimshim">All Rows</a> <a href="/thrimshim">All Rows</a>
<br/> <div id="output-zone">
<textarea id="rowdump"></textarea> <h3>Row Output</h3>
<div id="rowdump"></div>
</div>
</div> </div>
<div> <div>
<br/> <br/>
@ -54,7 +62,7 @@
function getRow() { function getRow() {
fetch(document.getElementById("server").value+"/thrimshim/"+document.getElementById("rowId").value).then(function (response) { fetch(document.getElementById("server").value+"/thrimshim/"+document.getElementById("rowId").value).then(function (response) {
response.text().then(function(data) { response.text().then(function(data) {
document.getElementById("rowdump").value=data; document.getElementById("rowdump").innerText = data;
}); });
}); });
} }

Loading…
Cancel
Save