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

Version Path
rbbt-rest-1.4.10 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.9 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.8 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.7 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.6 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.5 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.4 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.3 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.2 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.1 share/views/public/js/rbbt/reveal.js
rbbt-rest-1.4.0 share/views/public/js/rbbt/reveal.js