-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
36 lines (29 loc) · 1.1 KB
/
Copy pathscript.js
File metadata and controls
36 lines (29 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
window.onload = function() {
// "Explore" dropdown
var exploreDropdown = document.getElementById('explore');
var exploreOptions = [
'Medical Pre-Clinical', 'Medical Clinical', 'MCAT', 'PA', 'Pharmacy', 'Nursing',
'USMLE® Step 1', 'USMLE® Step 2', 'MCAT®', 'PANCE®', 'PCAT®, NAPLEX®', 'NCLEX®'
];
exploreOptions.forEach(function(option) {
var a = document.createElement('a');
a.textContent = option;
exploreDropdown.appendChild(a);
});
// "Products" dropdown
var productsDropdown = document.getElementById('products');
var productOptions = ['Workbooks', 'Apparel'];
productOptions.forEach(function(option) {
var a = document.createElement('a');
a.textContent = option;
productsDropdown.appendChild(a);
});
$(document).ready(function() {
Webflow.require('slider').redraw();
});
// "Try for free" button
document.getElementById('try-for-free').addEventListener('click', function() {
var popup = document.getElementById('popup-menu');
popup.style.display = 'block';
});
};