Created
December 17, 2017 14:26
-
-
Save phr34k/e83eab3a95239c2c73e6d9d955538da6 to your computer and use it in GitHub Desktop.
test.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>basic example</title> | |
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> | |
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<script type="module" src="sssa-min.js"></script> | |
</head> | |
<body> | |
<p>Render in canvas</p> | |
<div class="container"> | |
<div class="row" style="padding:10px;"> | |
<textarea style="width:100%; max-width: 100%; min-width: 100%;" id="hello">test</textarea> | |
<button id="encode">test</button> | |
</div> | |
</div> | |
<script> | |
var encode= function() { | |
var shares = sssa.create(2, 3, value); | |
alert(shares); | |
} | |
$("#hello").keyup(function(){ | |
encode(); | |
}); | |
$("#encode").click(function(){ | |
encode(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment