mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
new layout: remove top bar, show app info by readme
This commit is contained in:
@@ -64,3 +64,8 @@
|
||||
margin-right: 20px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#showcase-sxs-code {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
@@ -133,12 +133,17 @@
|
||||
document.getElementById("showcase-app-container").removeAttribute("style");
|
||||
$(document.body).animate({ scrollTop: $(newHostElement).offset().top });
|
||||
}
|
||||
// if there's a readme, toggle it between full width and alongside
|
||||
// if there's a readme, move it either alongside the code or beneath
|
||||
// the app
|
||||
var readme = document.getElementById("readme-md");
|
||||
if (readme !== null) {
|
||||
readme.className = above ?
|
||||
"span10 offset1" :
|
||||
"span3";
|
||||
readme.parentElement.removeChild(readme);
|
||||
if (above) {
|
||||
currentHostElement.appendChild(readme);
|
||||
$(currentHostElement).fadeIn();
|
||||
}
|
||||
else
|
||||
document.getElementById("showcase-app-metadata").appendChild(readme);
|
||||
}
|
||||
|
||||
// change the text on the toggle button to reflect the new state
|
||||
|
||||
Reference in New Issue
Block a user