Skip to content

Instantly share code, notes, and snippets.

@rpaskin
Created June 6, 2019 14:12
Show Gist options
  • Save rpaskin/4b0d895a5d70e2140c9022a3f6cd9671 to your computer and use it in GitHub Desktop.
Save rpaskin/4b0d895a5d70e2140c9022a3f6cd9671 to your computer and use it in GitHub Desktop.
Bootstrapping html file for playing around with Ethereum on Opera on Android
<!DOCTYPE html>
<html>
<head>
<title>Test Opera</title>
<script src="//cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/js-sha3/0.8.0/sha3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js" type="text/javascript" charset="utf-8" async defer></script>
<script type="text/javascript">
const web3 = new Web3(ethereum);
const storage = window.localStorage;
</script>
</head>
<body>
<form action="submit" method="get" accept-charset="utf-8" onsubmit="return false;">
<input type="file" onchange="alert(1);" id="my_document" multipe=false class="inputfile">
</form>
<script type="text/javascript">
console.log(21);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment