Skip to content

Commit

Permalink
add refused-to-display tips in link-preview-overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Huxpro committed May 1, 2016
1 parent 3d49b1d commit e2a8634
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,16 @@ html:-moz-full-screen-ancestor {
visibility: visible;
}

.reveal .overlay.overlay-preview.loaded .viewport-inner {
position: absolute;
z-index: -1;
left: 0;
top: 60px;
width: 100%;
text-align: center;
letter-spacing: normal;
}

.reveal .overlay.overlay-preview.loaded .spinner {
opacity: 0;
visibility: hidden;
Expand Down
3 changes: 3 additions & 0 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,9 @@
'<div class="spinner"></div>',
'<div class="viewport">',
'<iframe src="'+ url +'"></iframe>',
'<small class="viewport-inner">',
'This link is refused to display in a frame due to its policy',
'</small>',
'</div>'
].join('');

Expand Down

0 comments on commit e2a8634

Please sign in to comment.