diff options
author | 黄玄 | 2016-05-02 01:42:11 +0800 |
---|---|---|
committer | 黄玄 | 2016-05-02 01:42:11 +0800 |
commit | e2a863405782709e8cd30227f8b1157acc30fa19 (patch) | |
tree | 2efd31355fd4d8711b0753d13698628d72e1b4ca | |
parent | 3d49b1dea362d3d05ae154d36927121d922207ad (diff) |
add refused-to-display tips in link-preview-overlay
-rw-r--r-- | css/reveal.scss | 10 | ||||
-rw-r--r-- | js/reveal.js | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/css/reveal.scss b/css/reveal.scss index f8d6904..c360fe6 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -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; diff --git a/js/reveal.js b/js/reveal.js index 10c609e..e772516 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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(''); |