Sha256: 50e6c5bb5517b4a4bc9dd3a2e46a260d293f64213f02a7157dd3875e7e4c3159
Contents?: true
Size: 1.5 KB
Versions: 12
Compression:
Stored size: 1.5 KB
Contents
$(document).on 'turbolinks:load', -> toggleMenu = -> $slice = $('#sidebar-footer .brand') $slice.toggleClass 'hidden' $('.sidebar-toggle').click -> toggleMenu() searchButton = -> $('.search-button').click -> # if $(window).width() < 992 if $(this).hasClass ('submit') $('#search form').submit() $('#search') .removeClass 'hidding-search' .addClass 'display-search' if $(window).width() < 992 $('.navbar-custom-menu').addClass 'translate' $('.hide-search').addClass 'appear' $('.search-bar').focus() $(this).addClass 'submit' # else # $('#search form').submit() $('.hide-search').click -> $('#search') .removeClass 'display-search' .addClass 'hidding-search' $('.navbar-custom-menu').removeClass 'translate' $('.hide-search').removeClass 'appear' $('.search-button').removeClass 'submit' $('.datepicker').datepicker({ dateFormat: 'yy-mm-dd', # formato obligatorio para Keppler showOtherMonths: true, selectOtherMonths: true, changeMonth: true, changeYear: true # Ver documentación en https://jqueryui.com/datepicker }) $('.close-index-show').click -> $('.index-show').css 'right', -$('.index-show').outerWidth() $('#open-historial').click -> $('.control-sidebar').toggleClass 'control-sidebar-open' searchButton() return $(document).ready -> $('.spinner').css 'display', 'block' $(window).load -> $('.spinner').fadeOut 500
Version data entries
12 entries across 11 versions & 1 rubygems