Skip to content
Snippets Groups Projects
Commit af3588dd authored by Mark Lentczner's avatar Mark Lentczner
Browse files

better synopsis handling logic - no flashing

parent cbee7ec8
No related branches found
No related tags found
No related merge requests found
......@@ -296,6 +296,11 @@ div#style-menu-holder {
}
#synopsis {
display: none;
}
.no-frame #synopsis {
display: block;
position: fixed;
right: 0;
height: 80%;
......
......@@ -212,15 +212,17 @@ function addMenuItem(html) {
}
function adjustForFrames() {
var bodyCls;
if (parent.location.href == window.location.href) {
// not in frames, so add Frames button
addMenuItem("<a href='#' onclick='reframe();return true;'>Frames</a>");
bodyCls = "no-frame";
}
else {
// in frames, remove synopsis
var syn = document.getElementById("synopsis");
if (syn) { syn.parentNode.removeChild(syn); }
bodyCls = "in-frame";
}
addClass(document.body, bodyCls);
}
function reframe() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment