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
// Execute function body when the HTML document is ready | |
$(document).ready(function() { | |
// javascript code to send data to shiny server | |
document.getElementById("mydiv").onclick = function() { | |
var number = Math.random(); | |
Shiny.onInputChange("mydata", number); | |
}; | |
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
license: mit | |
height: 600 |