$(function(){ // general options for editing the tooltip // see more : http://iamceege.github.io/tooltipster/#options var options = { animation : 'fade', arrow : true, speed : 100, delay : 100, onlyOne : true, theme : 'tooltipster-default' },
// delay execution by placing the function into another queue // helps with applying to other JS created elements such as the editor queue = true, titles,
الكود:
$(function(){
// general options for editing the tooltip
// see more : http://iamceege.github.io/tooltipster/#options
var options = {
animation : 'fade',
arrow : true,
speed : 100,
delay : 100,
onlyOne : true,
theme : 'tooltipster-default'
},
// delay execution by placing the function into another queue
// helps with applying to other JS created elements such as the editor
queue = true,
titles,
parse = function() {
titles = $('[title]');
titles.tooltipster && titles.not('[title=""], .mentiontag, .tooltipstered').tooltipster(options);
};
queue ? $(parse) : parse();
});
اكواد الجافا سكريبت ضع هذا الكود