Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c77734a

Browse files
committed
Fix Flash of Unstyled Content
This also removes all remaining Flipcause integration code. The problem is the <iframe> in the footer that is part of the Flipcause integration. Removing it gets rid of the FOUC. It appears that the entire Flipcause integration is not used anymore since commit 5c3b3ef, in which the JavaScript Flipcause buttons were replaced with normal links. That commit removed the JavaScript part of the Flipcause integration, but not the styles.
1 parent 2ac048b commit c77734a

1 file changed

Lines changed: 0 additions & 101 deletions

File tree

doc/_templates/layout.html

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -258,106 +258,5 @@ <h3>{{ _('Navigation') }}</h3>
258258
</script>
259259
</body>
260260
<footer>
261-
<!--Flipcause Integration v3.0// Flipcause Integration Instructions:
262-
Install the following code block once in the website Header (after <head> tag) -->
263-
264-
<style>
265-
266-
.fc-black_overlay{
267-
display:none; position: fixed; z-index:1000001; top: 0%;left: 0%;width: 100%;height: 100%;
268-
background-color: black; filter: alpha(opacity=50); cursor:pointer; opacity:0.5;
269-
}
270-
271-
.fc-white_content {
272-
opacity:1; display:none; margin-top: -320px; margin-left: -485px; width:970px; height:640px;
273-
position:fixed; top:50%; left:50%; border: none;z-index:1000002;overflow: auto;
274-
}
275-
276-
.fc-main-box{
277-
opacity:1; display:none; margin:15px auto 0 auto; width:930px; position:relative; z-index:1000003;
278-
}
279-
280-
.fc-widget_close{
281-
opacity:1; content:url(http://i1338.photobucket.com/albums/o691/WeCause/X_zpse4a7e538.png);
282-
position:absolute; z-index=1000004; right:-16px; top:-16px; display:block; cursor:pointer;
283-
}
284-
285-
.floating_button{
286-
display: block; margin-top: 0px; margin-left: 0px; width:auto ; height: auto;
287-
position:fixed; z-index:999999; overflow: auto;
288-
}
289-
290-
@keyframes backfadesin {
291-
from { opacity:0; }
292-
to {opacity:.5;}
293-
}
294-
295-
@-moz-keyframes backfadesin {
296-
from { opacity:0; }
297-
to {opacity:.5;}
298-
}
299-
300-
@-webkit-keyframes backfadesin {
301-
from { opacity:0; }
302-
to {opacity:.5;}
303-
}
304-
305-
@-o-keyframes backfadesin {
306-
from { opacity:0; }
307-
to {opacity:.5;}
308-
}
309-
310-
311-
@-ms-keyframes backfadesin {
312-
from { opacity:0; }
313-
to {opacity:.5;}
314-
}
315-
316-
@keyframes fadesin {
317-
0%{ opacity:0; }
318-
50%{ opacity:0; }
319-
75% {opacity: 0; transform: translateY(20px);}
320-
100% {opacity: 1; transform: translateY(0);}
321-
}
322-
323-
@-moz-keyframes fadesin {
324-
0%{ opacity:0; }
325-
50%{ opacity:0; }
326-
75% {opacity: 0; -moz-transform: translateY(20px);}
327-
100% {opacity: 1; -moz-transform: translateY(0);}
328-
}
329-
330-
@-webkit-keyframes fadesin {
331-
0%{ opacity:0; }
332-
50%{ opacity:0; }
333-
75% {opacity: 0; -webkit-transform: translateY(20px);}
334-
100% {opacity: 1; -webkit-transform: translateY(0);}
335-
}
336-
337-
@-o-keyframes fadesin {
338-
0%{ opacity:0; }
339-
50%{ opacity:0; }
340-
75% {opacity: 0; -o-transform: translateY(20px);}
341-
100% {opacity: 1; -o-transform: translateY(0);}
342-
}
343-
344-
@-ms-keyframes fadesin {
345-
0%{ opacity:0; }
346-
50%{ opacity:0; }
347-
75% {opacity: 0; -ms-transform: translateY(20px);}
348-
100% {opacity: 1; -ms-transform: translateY(0);}
349-
}
350-
351-
</style>
352-
353-
<div id="fc-fade" class="fc-black_overlay" onclick="close_window()"></div>
354-
<div id="fc-light" class="fc-white_content">
355-
<div id="fc-main" class="fc-main-box">
356-
<div id="fc-close" class="fc-widget_close" onclick="close_window()">
357-
</div><iframe id="fc-myFrame" iframe height="580" width="925" style="border: 0;
358-
border-radius:5px 5px 5px 5px; box-shadow:0 0 8px rgba(0, 0, 0, 0.5);" scrolling="no" src=""></iframe></div>
359-
</div>
360-
361-
<!--END Flipcause Main Integration Code-->
362261
</footer>
363262
</html>

0 commit comments

Comments
 (0)