mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	As a prep-commit for updating the billing / corporate pages for demo organizations, initialize tippy.js with a default setting for portico pages to use in general.
		
			
				
	
	
		
			19 lines
		
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import $ from "jquery";
 | 
						|
import tippy from "tippy.js";
 | 
						|
 | 
						|
function initialize() {
 | 
						|
    tippy("[data-tippy-content]", {
 | 
						|
        // Same defaults as set in web app tippyjs module.
 | 
						|
        maxWidth: 300,
 | 
						|
        delay: [100, 20],
 | 
						|
        touch: ["hold", 750],
 | 
						|
        // Different default from web app tippyjs module.
 | 
						|
        animation: true,
 | 
						|
        placement: "bottom",
 | 
						|
    });
 | 
						|
}
 | 
						|
 | 
						|
$(() => {
 | 
						|
    initialize();
 | 
						|
});
 |