A minimal HTML interface
Now that we have dipped our toes into HTML, let's build a (nearly) minimal example of an interface entirely in HTML. To use your own HTML in a Shiny application, create the server.R
file as you normally would. Then, instead of a ui.R
file, create a folder named www
and place a file named index.html
inside this folder. This is where you will define your interface.
index.html
Let's look at each chunk of index.html
in turn:
<!-----------------------------> <!--Minimal example- HTML UI --> <!-----------------------------> <html> <head> <title>HTML minimal example</title> <script src="shared/jquery.js" type="text/javascript"></script> <script src="shared/shiny.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="shared/shiny.css"/> <style type = "text/css"> body { background-color: #ecf1ef; } #navigation { position...