Skip to content

Commit bd36bf4

Browse files
committed
expanding term doc box, needs more styling
1 parent d3abf17 commit bd36bf4

3 files changed

Lines changed: 22 additions & 5 deletions

File tree

ui.R

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -803,11 +803,12 @@ url = {http://statnetproject.org}
803803
uiOutput("listofterms")
804804
),
805805
div(id="termdocbox",
806-
verbatimTextOutput("termdoc")),
807-
fluidRow(align="center",
808-
div(id="termexpand",
809-
icon(name="angle-double-down", class="fa-2x"))
810-
)
806+
verbatimTextOutput("termdoc"),
807+
fluidRow(align="center",
808+
div(id="termexpand",
809+
icon(name="angle-double-down", class="fa-2x"))
810+
))
811+
811812
),
812813
tabPanel("Control Options",
813814
fluidRow(
@@ -852,6 +853,7 @@ url = {http://statnetproject.org}
852853
))
853854
)
854855
),
856+
br(),br(),
855857
fluidRow(
856858
column(2,
857859
p('Current ergm formula:')),

www/alert.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ $(document).ready(function(){
9090
$(".chromewarningbox").toggle(500);
9191
});
9292

93+
$("#termexpand").click(function(){
94+
if($("#termdocbox").height()<100){
95+
$("#termdocbox").css({
96+
"max-height":"250px"
97+
});
98+
} else {
99+
$("#termdocbox").css({
100+
"max-height":"75px"
101+
});
102+
}
103+
104+
});
105+
93106
$("#mcmchelper").click(function(){
94107
$("#mcmchelpbox").toggle(500);
95108
});

www/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,14 @@ div .mcmcopt {
223223
border:none;
224224
}
225225
#termdocbox {
226+
position:absolute;
226227
max-height:75px;
227228
border: 1px solid #CECED8;
228229
border-radius: 5px;
229230
overflow:scroll;
230231
}
231232
#termexpand {
233+
position:absolute;
232234
width:50px;
233235
height:22px;
234236
margin-bottom:2px;

0 commit comments

Comments
 (0)