Sha256: ee8fa203ede68c72a60a4df177f322076798174f4fcd825843ae132958cd014a

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

'use strict';

$(document).on("turbolinks:load", function () {
  return toggleCanvas();
});

var toggleCanvas = function toggleCanvas() {
  return $('[data-toggle=offcanvas]').click(function () {
    $(this).toggleClass('visible-xs text-center');
    $(this).find('i').toggleClass('fa-chevron-right fa-chevron-left');
    $('.row-offcanvas').toggleClass('active');
    $('#lg-menu').toggleClass('hidden-xs').toggleClass('visible-xs');
    $('#xs-menu').toggleClass('visible-xs').toggleClass('hidden-xs');
    return $('#btnShow').toggle();
  });
};

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rocketjob_mission_control-6.1.0 app/assets/javascripts/rocket_job_mission_control/base.js
rocketjob_mission_control-6.0.7 app/assets/javascripts/rocket_job_mission_control/base.js
rocketjob_mission_control-6.0.6 app/assets/javascripts/rocket_job_mission_control/base.js
rocketjob_mission_control-6.0.5 app/assets/javascripts/rocket_job_mission_control/base.js
rocketjob_mission_control-6.0.4 app/assets/javascripts/rocket_job_mission_control/base.js
rocketjob_mission_control-6.0.3 app/assets/javascripts/rocket_job_mission_control/base.js
rocketjob_mission_control-6.0.2 app/assets/javascripts/rocket_job_mission_control/base.js
rocketjob_mission_control-6.0.1 app/assets/javascripts/rocket_job_mission_control/base.js