function determinePlacement(stick_to, tooltip){
    const left        = stick_to.classList.contains('js-left')
    const right       = stick_to.classList.contains('js-right')
    const above       = stick_to.classList.contains('js-above')
    const below       = stick_to.classList.contains('js-below')
    const align_left  = stick_to.classList.contains('js-alignleft')
    const align_right = stick_to.classList.contains('js-alignright')

    if(left){
        tooltip.left(8)
    }

    else if(right){
        tooltip.right(8)
    }

    else if(above){
        tooltip.above(8)
    }

    else if(below){
        tooltip.below(8)
    }

    else if(align_left){
        tooltip.alignLeft().above(8)
    }

    else if(align_right){
        tooltip.alignRight().below(8)
    }

    else{
        tooltip.autoPlace(50, 10)
    }
}
/**
 * Determine the placement function to use for the tooltip
 *
 * @param {HTMLElement} stick_to
 * @param {Tooltip} tooltip
 */
Determine the placement function to use for the tooltip
@param {HTMLElement} stick_to
@param {Tooltip} tooltip
Determine the placement function to use for the tooltip @param { HTMLElement } stick_to @param { Tooltip } tooltip
function determinePlacement(stick_to, tooltip){
    const left        = stick_to.classList.contains('js-left')
    const right       = stick_to.classList.contains('js-right')
    const above       = stick_to.classList.contains('js-above')
    const below       = stick_to.classList.contains('js-below')
    const align_left  = stick_to.classList.contains('js-alignleft')
    const align_right = stick_to.classList.contains('js-alignright')
    if(left){
        tooltip.left(8)
    }
    else if(right){
        tooltip.right(8)
    }
    else if(above){
        tooltip.above(8)
    }
    else if(below){
        tooltip.below(8)
    }
    else if(align_left){
        tooltip.alignLeft().above(8)
    }
    else if(align_right){
        tooltip.alignRight().below(8)
    }
    else{
        tooltip.autoPlace(50, 10)
    }
}
function determinePlacement ( stick_to , tooltip ) { const left = stick_to . classList . contains ( 'js-left' ) const right = stick_to . classList . contains ( 'js-right' ) const above = stick_to . classList . contains ( 'js-above' ) const below = stick_to . classList . contains ( 'js-below' ) const align_left = stick_to . classList . contains ( 'js-alignleft' ) const align_right = stick_to . classList . contains ( 'js-alignright' ) if ( left ) { tooltip . left ( 8 ) } else if ( right ) { tooltip . right ( 8 ) } else if ( above ) { tooltip . above ( 8 ) } else if ( below ) { tooltip . below ( 8 ) } else if ( align_left ) { tooltip . alignLeft ( ) . above ( 8 ) } else if ( align_right ) { tooltip . alignRight ( ) . below ( 8 ) } else { tooltip . autoPlace ( 50 , 10 ) } }
Determine the placement function to use for the tooltip
 @param {HTMLElement} stick_to
 @param {Tooltip} tooltip
Determine the placement function to use for the tooltip @param { HTMLElement } stick_to @param { Tooltip } tooltip