pagelets/nodejitsu/tooltip/base.js
function render(event) {
    var tooltip = document.createElement('div')
      , element = $(event.element)
      , pos = element.get('data-placement')
      , offset = this.offset(event.element)
      , placement;

    //
    // Create the tooltip with the proper content and insert.
    //
    tooltip.id = "tooltip";
    tooltip.innerHTML = element.get('data-content');
    tooltip.className = ['animated', 'tooltip', 'fadeIn', pos].concat(
      element.get('data-color')
    ).filter(Boolean).join(' ');

    document.body.appendChild(tooltip);

    //
    // Update the position of the tooltip.
    //
    placement = this.placement(pos, tooltip, event.element);
    tooltip.setAttribute('style', [
      'left:' + (offset.left + placement.left) + 'px',
      'top:' + (offset.top + placement.top) + 'px'
    ].join(';'));
  }
function render(event) {
    var tooltip = document.createElement('div')
      , element = $(event.element)
      , pos = element.get('data-placement')
      , offset = this.offset(event.element)
      , placement;

    //
    // Create the tooltip with the proper content and insert.
    //
    tooltip.id = "tooltip";
    tooltip.innerHTML = element.get('data-content');
    tooltip.className = ['animated', 'tooltip', 'fadeIn', pos].concat(
      element.get('data-color')
    ).filter(Boolean).join(' ');

    document.body.appendChild(tooltip);

    //
    // Update the position of the tooltip.
    //
    placement = this.placement(pos, tooltip, event.element);
    tooltip.setAttribute('style', [
      'left:' + (offset.left + placement.left) + 'px',
      'top:' + (offset.top + placement.top) + 'px'
    ].join(';'));
  }
function render ( event ) { var tooltip = document . createElement ( 'div' ) , element = $ ( event . element ) , pos = element . get ( 'data-placement' ) , offset = this . offset ( event . element ) , placement ; // // Create the tooltip with the proper content and insert. // tooltip . id = "tooltip" ; tooltip . innerHTML = element . get ( 'data-content' ) ; tooltip . className = [ 'animated' , 'tooltip' , 'fadeIn' , pos ] . concat ( element . get ( 'data-color' ) ) . filter ( Boolean ) . join ( ' ' ) ; document . body . appendChild ( tooltip ) ; // // Update the position of the tooltip. // placement = this . placement ( pos , tooltip , event . element ) ; tooltip . setAttribute ( 'style' , [ 'left:' + ( offset . left + placement . left ) + 'px' , 'top:' + ( offset . top + placement . top ) + 'px' ] . join ( ';' ) ) ; }
Render the tooltip.

@param {Event} event
@api private
Render the tooltip .