<div class="sidebar-offcanvas visible-xs visible-sm">
      <div class="offcanvas-inner panel panel-offcanvas">
          <div class="offcanvas-heading panel-heading">
              <button type="button" class="button" data-toggle="offcanvas"> <span class="fa fa-times"></span></button>
          </div>
          <div class="offcanvas-body panel-body">
                <div id="offcanvasmenu"></div> 
          </div>
       </div> 
 </div>
<script type="text/javascript">
  $("#offcanvasmenu").html($("#bs-megamenu").html());
</script>
