aboutsummaryrefslogtreecommitdiff
path: root/scripts/src/main-nav.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/main-nav.js')
-rw-r--r--scripts/src/main-nav.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/src/main-nav.js b/scripts/src/main-nav.js
index c85cb4f..0be7712 100644
--- a/scripts/src/main-nav.js
+++ b/scripts/src/main-nav.js
@@ -70,4 +70,16 @@ if (document.getElementById('account-menu')) {
//
//
//// getJSON("{%url 'notebook-api-list' %}", buildNotebookMenu);
+//
+if (typeof(document.getElementById('js-overlay-content')) != 'undefined' && document.getElementById('js-overlay-content') != null) {
+ // Select your overlay trigger
+ var trigger = document.querySelector('#overlay-trigger');
+ trigger.addEventListener('click', function(e){
+ e.preventDefault();
+ novicell.overlay.create({
+ 'selector': trigger.getAttribute('data-element'),
+ 'class': 'selector-overlay',
+ });
+ });
+}