At this site, on a mobile device, there should be a button in the left upper corner to show the menu. But it will not show.
The javascript file that’s necessary for this, is uploaded and accessible.
JavaScript
x
41
41
1
positions:{panels:{top:[M, x], right:[M, P], bottom:[Q, x], left:[M, x]}, overlays:{"top-left":{top:0, left:0}, "top-right":{top:0, right:0}, top:{top:0, left:_}, "top-center":{top:0, left:_}, "bottom-left":{bottom:0, left:0}, "bottom-right":{bottom:0, right:0}, bottom:{bottom:0, left:_},
2
"bottom-center":{bottom:0, left:_}, left:{top:_, left:0},
3
"middle-left":{top:_, left:0}, right:{top:_, right:0},
4
"middle-right":{top:_, right:0}}},
5
presets:{
6
standard:{
7
panels:{navPanel:{breakpoints:"mobile", position:x, style:xt, size:"80%", html:'<div data-action="navList" data-args="nav"></div>'}},
8
overlays:{
9
titleBar:{
10
breakpoints:"mobile",
11
position:Dt, width:Y, height:44,
12
html:'<span class="toggle" data-action="togglePanel" data-args="navPanel"></span><span class="title" data-action="copyHTML" data-args="logo"></span>'
13
}
14
}
15
}
16
},
17
defaults:{config:{panel:{breakpoints:"",
18
position:L,
19
style:L,
20
size:"80%",
21
html:"",
22
resetScroll:St,
23
resetForms:St,
24
swipeToClose:St},
25
overlay:{breakpoints:"",
26
position:L,
27
width:0,
28
height:0,
29
html:""}}},
30
recalcW:function(e){var t = parseInt(e); return typeof e == vt && e.charAt(e[K] - 1) == "%" && (t = Math.floor(jQuery(window)[c]() * (t / 100))), t},
31
recalcH:function(e){var t = parseInt(e); return typeof e == vt && e.charAt(e[K] - 1) == "%" && (t = Math.floor(jQuery(window)[T]() * (t / 100))), t},
32
getHalf:function(e){var t = parseInt(e); return typeof e == vt && e.charAt(e[K] - 1) == "%"?Math.floor(t / 2) + "%":Math.floor(t / 2) + "px"},
33
parseSuspend:function(e){var t = e.get(0); t[p] && t[p]()},
34
parseResume:function(e){var t = e.get(0); t[o] && t[o]()},
35
parseInit:function(r){var i, s, u = r.get(0),
36
a = r[it]("data-action"), f = r[it]("data-args"),
37
l, d; a && f && (f = f.split(","));
38
switch (a){case"togglePanel":case"panelToggle":r[h](H, gt)[h]("cursor", Rt),
39
i = function(r){r[w](), r[g](); if (rn[e][t])
40
return rn[e][t][n](), Z;
41
var i = jQuery(this), s = rn[e].panels[f[0]];
JavaScript
1
44
44
1
#nav
2
{
3
display: none;
4
}
5
6
#navPanel
7
{
8
background: #101214;
9
font-weight: 400;
10
text-transform: uppercase;
11
color: #888;
12
letter-spacing: 2px;
13
font-size: 1em;
14
}
15
16
#navPanel .link
17
{
18
display: block;
19
color: #ddd;
20
text-decoration: none;
21
height: 44px;
22
line-height: 44px;
23
border: 0;
24
border-top: solid 1px #202122;
25
padding: 0 1em 0 1em;
26
}
27
28
#navPanel .link:first-child
29
{
30
border-top: 0;
31
}
32
33
#navPanel .link.depth-0
34
{
35
font-weight: 600;
36
color: #fff;
37
}
38
39
#navPanel .indent-1 { display: inline-block; width: 1em; }
40
#navPanel .indent-2 { display: inline-block; width: 2em; }
41
#navPanel .indent-3 { display: inline-block; width: 3em; }
42
#navPanel .indent-4 { display: inline-block; width: 4em; }
43
#navPanel .indent-5 { display: inline-block; width: 5em; }
44
#navPanel .depth-0 { color: #fff; }
JavaScript
1
41
41
1
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
2
<div id="header-wrapper">
3
<div id="header">
4
<div id="logo">
5
<p>Pannenkoekenhuisje</p>
6
<h1>Suskewiet</h1>
7
<p>Westerlo</p>
8
</div>
9
</div>
10
11
<?php
12
$menuItems = array("Welkom", "Openingsuren", "Informatie", "Gallerij"); //, "Contact"
13
$menuItemsNotVissibleMob = array("Gallerij");
14
?>
15
16
<div class="container">
17
<nav id="nav">
18
<ul>
19
<?php
20
foreach ($menuItems as $menuItem) {
21
if (strtolower($menuItem) == $page) {
22
echo '<li class="current_page_item"';
23
} else {
24
echo '<li';
25
}
26
27
if (in_array($menuItem, $menuItemsNotVissibleMob)) {
28
echo ' id="mobileHidden"';
29
}
30
31
echo '><a href="index.php?page=' . strtolower($menuItem) . '">' . $menuItem . '</a></li>';
32
}
33
?>
34
</ul>
35
36
<div id="navInfo">
37
<?php include("footer.php"); ?>
38
</div>
39
</nav>
40
</div>
41
</div>
I probably forgot something, but can’t find what…
Advertisement
Answer
It looks like you forget to load jQuery, what is necessary for skel-panels.min.js
that you use.
Include this script under your skel-panels
script:
JavaScript
1
2
1
https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
2