JSFiddle - React, Tailwind, and code Playground

by hive_coding

HTML

<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@hiveio/hive-js/dist/hive.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>

Username: <input id="username"><button id="btnShowAccount">Show Account information</button>

<h2>Ausgabe/Output:</h2>
<div id="log"></div>

<script>

$("#btnShowAccount").click(function(){

	let username= $("#username").val();
	
	hive.api.getAccounts([username], function(err, result) {

				$("#log").html(JSON.stringify(result));
			  console.log(err, result);
	});
	
});


</script>

</body>
</html>