Sha256: 22e368ccdf4dc643d65f6163a07a732206f03d10cf7fec6e65f4e6362dc28508
Contents?: true
Size: 622 Bytes
Versions: 11
Compression:
Stored size: 622 Bytes
Contents
$.widget("rbbt.reveal", { options: { modal: $('body > #modal') }, _create: function() { var tool = this; var modal = this.options.modal tool.element.click(function(){ var link = $(this); var source_id = link.attr('attr-reveal_id'); var title = link.attr('attr-reveal_title'); var content = $('#' + source_id); var height = window.innerHeight - $('#top_menu').outerHeight(true) - 50 ; var width = window.innerWidth - 100; modal.css('height',height) modal.css('width', width) modal.modal('show', content.html(), title, source_id); return false }) }, })
Version data entries
11 entries across 11 versions & 1 rubygems