-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
28 lines (24 loc) · 1001 Bytes
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
library(shiny)
shinyUI(fluidPage(
shinyjs::useShinyjs(),
shiny::includeCSS('www/style.css'),
theme = shinythemes::shinytheme('sandstone'),
titlePanel("D&D swarm simulator"),
shinyjs::hidden(div(id = 'main_content',
fluidRow(
column(4,
actionButton('addSwarm',label = 'Add swarm'),
actionButton('removeSwarm', label = 'Remove swarm')),
column(8,
br(),
div(consoleUI('console'),
class="affix"
))),
actionButton('meh','Donate',
icon = icon('gift'),
onclick =
"window.open('https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NBC57LQVGMAJG', '_blank')",
style = 'float:right;padding:6px 10px;font-size:80%'),
bsTooltip('meh',title = readLines('http://oganm.com/donation.txt'),placement = 'top')
))
))