Browse Source

Phone View Menu Function

Phone View  Menu Function
master
yuriy0803 3 years ago committed by GitHub
parent
commit
8911d2f182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      www/app/templates/application.hbs

21
www/app/templates/application.hbs

@ -53,6 +53,27 @@
{{/active-li}}
</ul>
</div>
<script>
$('.navbar-collapse a').click(function () {
$(".navbar-collapse").collapse('hide');
$("#navBtn").attr('aria-expanded', false);
});
</script>
<script>
$(document).mouseup(function (e)
{
var container = $(".collapse");
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
{
// $(".collapse").slideUp();
// remove class
$("#navBtn").attr('aria-expanded', false);
$("#navbarSupportedContent").removeClass("show");
}
});
</script>
</div>
</div>

Loading…
Cancel
Save