Sha256: b42332eb631a81a8f3d15da3616bda6812475281371f7408c15b6fe9c389fd04

Contents?: true

Size: 763 Bytes

Versions: 7

Compression:

Stored size: 763 Bytes

Contents

//= require jquery
//= require jquery_ujs
//= require ./bootstrap
//= stub kuroko2/instance_linker
//= require_tree
//= require moment
//= require bootstrap-sortable
//= require select2
//= require vis

jQuery(function ($) {

  $("[data-toggle='offcanvas']").click(function (e) {
    e.preventDefault();

    //If window is small enough, enable sidebar push menu
    if ($(window).width() <= 992) {
      $('.row-offcanvas').toggleClass('active');
      $('.left-side').removeClass("collapse-left");
      $(".right-side").removeClass("strech");
      $('.row-offcanvas').toggleClass("relative");
    } else {
      //Else, enable content streching
      $('.left-side').toggleClass("collapse-left");
      $(".right-side").toggleClass("strech");
    }
  });
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kuroko2-0.3.2 app/assets/javascripts/kuroko2/application.js
kuroko2-0.3.1 app/assets/javascripts/kuroko2/application.js
kuroko2-0.3.0 app/assets/javascripts/kuroko2/application.js
kuroko2-0.2.3 app/assets/javascripts/kuroko2/application.js
kuroko2-0.2.2 app/assets/javascripts/kuroko2/application.js
kuroko2-0.2.1 app/assets/javascripts/kuroko2/application.js
kuroko2-0.2.0 app/assets/javascripts/kuroko2/application.js