Added Bluemaps Integration tests
This commit is contained in:
parent
9715d2f1dc
commit
70178b5148
2 changed files with 11 additions and 0 deletions
8
assets/bluemap-scrollbehaviour.js
Normal file
8
assets/bluemap-scrollbehaviour.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Mouseover event to remove scrolling from parent window's document.
|
||||
document.body.addEventListener('mouseover', function() {
|
||||
parent.window.document.html.style.overflow = 'hidden';
|
||||
});
|
||||
// Mouseover event to restore scrolling on parent window's document.
|
||||
document.body.addEventListener('mouseleave', function() {
|
||||
parent.window.document.html.style.overflow = '';
|
||||
});
|
3
layouts/shortcodes/bluemap.html
Normal file
3
layouts/shortcodes/bluemap.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
<iframe class="bluemap" src="{{ index .Params 0 }}" title="{{- index .Params 1 | markdownify -}}"></iframe>
|
||||
</div>
|
Loading…
Add table
Reference in a new issue