Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strike>The code isn't actually <em>that</em> bad.</strike> In this case, <code>toggle</code> is used as the event, and not the effect (see <a href="http://api.jquery.com/toggle-event/" rel="nofollow">http://api.jquery.com/toggle-event/</a>). The two functions that are passed to it specify what to do on even and odd clicks of the <code>$('#notif-icons &gt; li &gt; a, #top-menu &gt; li &gt; a')</code> elements. </p> <p><strike>The JavaScript code looks like it will do what it's supposed to do;</strike> check to see that your HTML is correct. Make sure that <code>$('#notif-icons &gt; li &gt; a, #top-menu &gt; li &gt; a')</code> matches the correct elements, and that there is a <code>.popup-notif</code> element placed after <em>every</em> <code>'#notif-icons &gt; li &gt; a, #top-menu &gt; li &gt; a'</code>. If you don't put it every time, the popups may mysteriously disappear when you click on menu items (the fix for this is left as an exercise to the reader).</p> <p>Also, make sure that the JavaScript is being loaded <em>after</em> the relevant HTML is loaded; either put it at the bottom of your file, or wrap it in <code>$(document).ready(function(){[code goes here]})</code>.</p> <p>Unfortunately, you didn't provide enough detail in your question for me to provide a more specific answer; JavaScript needs context (i.e. give us the relevant HTML too).</p> <p>I don't know what your personal level of skill is with JavaScript; but a quick tip: outsourced work generally results in working, but not great, code. It's a good idea to have a solid grasp of whatever technologies they're using so you can understand and use the work that they did, and not rely on them completely.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload