Creating UIs from plain HTML
UIs from plain HTML, require firstly that the HTML file is stored in the www
folder and secondly, that the file is named as index.html
. Naturally, creating a whole interface in HTML without any of Shiny's UI functionality requires considerable experience in web programming. For this reason, in this section, we are going to reproduce Example 1 only, but with an HTML file instead of an UI.R
file.
In order to do this, create a copy of Example 1
folder as follows:
Copy the following code and paste it in a text editor. You are strongly recommended to use text editors that support syntax highlighting. Probably, the best option is Notepad++, which is accessible from https://notepad-plus-plus.org/. Save the file as
index.html
in thewww
folder that will be created in step 2.Inside the
new
folder, create thewww
folder:<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="application...