cirandas.net

ref: master

plugins/event/public/event.js


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
(function(){
  function change_title_size(){
    jQuery(".event-plugin_event-block .event .title").each(function(num, el){
      var title = jQuery(el);
      console.log(title.height(), title.css("line-height"));
      if (title.height() > parseInt(title.css("line-height")) * 2) {
        title.addClass("toobig")
      }
    });
  }


  jQuery(document).ready(function(){
    change_title_size();
  });
})();