Difference between revisions of "Team:NCHU Taichung/js/main.js"

(Created page with "$('.ui.dropdown').dropdown();")
 
Line 1: Line 1:
$('.ui.dropdown').dropdown();
+
$(document).ready(function () {
 +
  $('#openSidebar').on("click", function (e) {
 +
    e.preventDefault();
 +
    $('#sidemenu').toggle();
 +
  });
 +
  $('.ui.dropdown').dropdown()
 +
});

Revision as of 15:12, 4 October 2018

$(document).ready(function () {

 $('#openSidebar').on("click", function (e) {
   e.preventDefault();
   $('#sidemenu').toggle();
 });
 $('.ui.dropdown').dropdown()

});