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 |
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
#'@title html2tagList | |
#'@description convert raw html to htmltools tagList | |
#'@param x character vector of html | |
#'@examples | |
#' | |
#'x<-'<h1>Title</h1> | |
#' <h2>Header text</h2> | |
#' <p>Text here</p> | |
#' <h1>Title</h1> | |
#' <h2>Header text</h2> |
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 |
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 |
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 |
This file has been truncated, but you can view the full file.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="data:application/x-javascript;base64,KGZ1bmN0aW9uKCkgewogIC8vIElmIHdpbmRvdy5IVE1MV2lkZ2V0cyBpcyBhbHJlYWR5IGRlZmluZWQsIHRoZW4gdXNlIGl0OyBvdGhlcndpc2UgY3JlYXRlIGEKICAvLyBuZXcgb2JqZWN0LiBUaGlzIGFsbG93cyBwcmVjZWRpbmcgY29kZSB0byBzZXQgb3B0aW9ucyB0aGF0IGFmZmVjdCB0aGUKICAvLyBpbml0aWFsaXphdGlvbiBwcm9jZXNzICh0aG91Z2ggbm9uZSBjdXJyZW50bHkgZXhpc3QpLgogIHdpbmRvdy5IVE1MV2lkZ2V0cyA9IHdpbmRvdy5IVE1MV2lkZ2V0cyB8fCB7fTsKCiAgLy8gU2VlIGlmIHdlJ3JlIHJ1bm5pbmcgaW4gYSB2aWV3ZXIgcGFuZS4gSWYgbm90LCB3ZSdyZSBpbiBhIHdlYiBicm93c2VyLgogIHZhciB2aWV3ZXJNb2RlID0gd2luZG93LkhUTUxXaWRnZXRzLnZpZXdlck1vZGUgPQogICAgICAvXGJ2aWV3ZXJfcGFuZT0xXGIvLnRlc3Qod2luZG93LmxvY2F0aW9uKTsKCiAgLy8gU2VlIGlmIHdlJ3JlIHJ1bm5pbmcgaW4gU2hpbnkgbW9kZS4gSWYgbm90LCBpdCdzIGEgc3RhdGljIGRvY3VtZW50LgogIC8vIE5vdGUgdGhhdCBzdGF0aWMgd2lkZ2V0cyBjYW4gYXBwZWFyIGluIGJvdGggU2hpbnkgYW5kIHN0YXRpYyBtb2RlcywgYnV0CiAgLy8gb2J2aW91c2x5LCBTaGlueSB3aWRnZXRzIGNhbiBvbmx5IGFwcGVhciBpbiBTaGlueSBhcHBzL2RvY3VtZW50cy4KICB2YXIgc2hpbnlNb2R |
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
<div id="htmlwidget-9f0eb65ab1d8850629a1" style="width:960px;height:500px;" class="jsTree html-widget"></div> | |
<script type="application/json" data-for="htmlwidget-9f0eb65ab1d8850629a1">{"x":{"data":[{"text":"root","children":[{"text":".","children":[{"text":".git","children":[{"text":"branches","icon":"fa fa-file-o","state":[]},{"text":"hooks","icon":"fa fa-file-o","state":[]},{"text":"info","icon":"fa fa-file-o","state":[]},{"text":"logs","children":[{"text":"refs","children":[{"text":"heads","icon":"fa fa-file-o","state":[]},{"text":"remotes","children":[{"text":null,"icon":"fa fa-file-o","state":[]},{"text":"origin","icon":"fa fa-file-o","state":[]}]}]}]},{"text":"objects","children":[{"text":null,"icon":"fa fa-file-o","state":[]},{"text":"01","icon":"fa fa-file-o","state":[]},{"text":"04","icon":"fa fa-file-o","state":[]},{"text":"05","icon":"fa fa-file-o","state":[]},{"text":"06","icon":"fa fa-file-o","state":[]},{"text":"09","icon":"fa fa-file-o","state":[]},{"text":"0c","icon":"fa fa-file-o","state":[] |
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
library(htmltools) | |
browsable( | |
tagList( | |
tags$pre(id="myPreview"), | |
tags$script( | |
' | |
var uri="https://raw.githubusercontent.com/yonicd/jsTree/master/README.md?raw=true"; | |
loadXMLDoc(uri); | |
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
library(htmltools) | |
browsable( | |
tagList( | |
tags$pre(id="myPreview"), | |
tags$script(" | |
var log = document.querySelector('#myPreview'); | |
['log','debug','info','warn','error'].forEach(function (verb) { | |
console[verb] = (function (method, verb, log) { | |
return function () { | |
method.apply(console, arguments); |
OlderNewer