(function ($, Drupal, drupalSettings, tippy) { 'use strict'; Drupal.behaviors.tooltipbehavior = { terms: [], initTippy: function() { // Tippy attributes and style tippy('.taxonomy-tooltip-tip', { delay: 100, arrow: true, arrowType: 'round', size: 'large', duration: 500, animation: 'scale' }); }, attach: function (context, settings) { var $tooltipElements = $('abbr[title]'); var seen = {}; // Reg form term highlighting with Tippy $.getJSON( "/terms.json", function( terms ) { Drupal.behaviors.tooltipbehavior.terms = terms; // loop through each