Sha256: 4a8938d88f11c8f96e9803b0e8d814e3bd03026e0d5fb3ea3887a96cb3dd0a3c
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
//= require 'bootstrap-sprockets' //= require 'bootstrap-bookingsync-sprockets' //= require 'chosen' $ -> $(".chosen").chosen() responsiveButtons = '<div class="example-responsive-nav"> <div class="btn-group" role="group" aria-label="screensize"> <button type="button" class="btn btn-secondary" data-value="bs-example-iframe-container-mobile">Mobile</button> <button type="button" class="btn btn-secondary" data-value="bs-example-iframe-container-tablet">Tablet</button> <button type="button" class="btn btn-secondary" data-value="bs-example-iframe-container-desktop">Desktop</button> </div> </div>' for example in $(".example-responsive") $(example).find(".sheet-header").append(responsiveButtons) $(document).on 'click', '.example-responsive-nav button', (event) -> button = $(this) example = button.parents('.example').find('.bs-example') example.removeClass('bs-example-iframe-container-mobile bs-example-iframe-container-tablet bs-example-iframe-container-desktop') example.addClass(button.data('value'))
Version data entries
5 entries across 5 versions & 1 rubygems