-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
55 lines (45 loc) · 3.66 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
library(shiny)
library(shinyjs)
library(shinythemes)
library(protr)
library(markdown)
shinyUI(fluidPage(title="TargetAntiAngio", theme=shinytheme("united"),
useShinyjs(),
navbarPage(strong("TargetAntiAngio"), collapsible = TRUE,
titleContent <- HTML("<b>TargetAntiAngio</b>: A sequence-based tool for the prediction and analysis of anti-angiogenic peptides"),
tabPanel("Submit Job", titlePanel(titleContent),
sidebarLayout(
sidebarPanel(
tags$label(h3('Paste input sequence'),style="float: none; width: 100%;"),
actionLink("addlink", "Insert example data"),
tags$textarea(id="Sequence", rows=5, cols=100, style="float: none; width:100%;", ""),
#actionLink("addlink", "Insert example data"),
#tags$label("or",style="float: none; width: 100%;"),
hr(),
h3('Upload CSV file'),
downloadLink("downloadExample", label = "Download example input file"),
fileInput('file1', label = '', accept=c('text/FASTA','FASTA','.fasta','.txt')),
hr(),
#####
#fileInput('file1', label = h3('Upload CSV file'),accept=c('text/FASTA','FASTA','.fasta','.txt')),
#downloadLink("downloadExample", label = "Download example input file"),
#HTML("<br><br>"),
#####
actionButton("submitbutton", "Submit", class = "btn btn-primary"),
HTML("<a class='btn btn-default' href='/paap'>Clear</a>")
), #wellPanel
mainPanel(
tags$label("Status/Output",style="float: none; width: 100%;"),
verbatimTextOutput('contents'),
downloadButton('downloadData', 'Download CSV')
)
) #sidebarLayout
), #tabPanel Submit Job
#tabPanel("About", titlePanel("About"), div(includeMarkdown("about.md"), align="justify")),
#tabPanel("Citing Us", titlePanel("Citing Us"), includeMarkdown("cite.md")),
#tabPanel("Contact", titlePanel("Contact"), includeMarkdown("contact.md")),
copyright <- div(HTML("<br><table border=0 cellpadding=10 cellspacing=10 width='100%' height='50'><tr><td bgcolor='#f2f2f2' align='center'>Copyright © 2019 <a href='http://codes.bio'>codes.bio</a>. All rights reserved.</td></tr></table>")),
cat(as.character(copyright))
) #navbarPage
) #fluidPage
) #shinyUI