Difference between revisions of "Template:CSS UCL5"

Line 26: Line 26:
 
</script>
 
</script>
 
-->
 
-->
 +
<script>
 +
$(document).mouseup(function (e)
 +
{
 +
    var container = $("mobile-list");
  
 +
    if (!container.is(e.target) // if the target of the click isn't the container...
 +
        && container.has(e.target).length === 0) // ... nor a descendant of the container
 +
    {
 +
        container.hide();
 +
    }
 +
});
 +
</script>
 
<style type="text/css">
 
<style type="text/css">
  

Revision as of 15:37, 27 July 2015

-->