Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-tooltip-1.0.js

Код файла
Версия от 18.08.2026, 07:00:16 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
1/**2 * Плагин с подсказками предназначен для добавление подсказок при наведении(нажатии) на указанные элементы3 * Данный скрипт подлкючается в блоках T198 и в интерфейсе режима редактирования Zero Block4 */5 6/*7 8Tooltipster 3.3.0 | 2014-11-089A rockin' custom tooltip jQuery plugin10 11Developed by Caleb Jacob under the MIT license http://opensource.org/licenses/MIT12 
История файла и сравнение версий
  • 18.08.2026, 07:00:16 · 56c3b845
13
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
15*/
16
17
18
19/* Github: https://github.com/calebjacob/tooltipster */
20
21(function () {
22 var pluginName = 'tooltipster';
23 var defaults = {
24 animation: 'fade',
25 arrow: true,
26 arrowColor: '',
27 autoClose: true,
28 content: null,
29 contentAsHTML: false,
30 contentCloning: true,
31 debug: true,
32 delay: 200,
33 minWidth: 0,
34 maxWidth: null,
35 functionInit: function (origin, content) {},
36 functionBefore: function (origin, continueTooltip) {
37 continueTooltip();
38 },
39 functionReady: function (origin, tooltip) {},
40 functionAfter: function (origin) {},
41 hideOnClick: false,
42 icon: '(?)',
43 iconCloning: true,
44 iconDesktop: false,
45 iconTouch: false,
46 iconTheme: 'tooltipster-icon',
47 interactive: false,
48 interactiveTolerance: 350,
49 multiple: false,
50 offsetX: 0,
51 offsetY: 0,
52 onlyOne: false,
53 position: 'top',
54 positionTracker: false,
55 positionTrackerCallback: function (origin) {
56 // the default tracker callback will close the tooltip when the trigger is
57 // 'hover' (see https://github.com/iamceege/tooltipster/pull/253)
58 if (this.option('trigger') === 'hover' && this.option('autoClose')) {
59 this.hide();
60 }
61 },
62 restoration: 'current',
63 speed: 350,
64 timer: 0,
65 theme: 'tooltipster-default',
66 touchDevices: true,
67 trigger: 'hover',
68 updateAnimation: true,
69 };
70
71 function Plugin(element, options) {
72 // list of instance variables
73 this.bodyOverflowX;
74 // stack of custom callbacks provided as parameters to API methods
75 this.callbacks = {
76 hide: [],
77 show: [],
78 };
79 this.checkInterval = null;
80 // this will be the user content shown in the tooltip. A capital "C" is used because there is also a method called content()
81 this.Content;
82 // this is the original element which is being applied the tooltipster plugin
83 this.element = element;
84 // this will be the element which triggers the appearance of the tooltip on hover/click/custom events.
85 // it will be the same as this.element if icons are not used (see in the options), otherwise it will correspond to the created icon
86 this.elementProxy;
87 this.elementProxyPosition;
88 this.enabled = true;
89 this.options = t_extend({}, defaults, options);
90 this.mouseIsOverProxy = false;
91 // a unique namespace per instance, for easy selective unbinding
92 this.namespace = 'tooltipster-' + Math.round(Math.random() * 100000);
93 // Status (capital S) can be either : appearing, shown, disappearing, hidden
94 this.Status = 'hidden';
95 this.timerHide = null;
96 this.timerShow = null;
97 // this will be the tooltip element (jQuery wrapped HTML element)
98 this.tooltip;
99 // for backward compatibility
100 this.options.iconTheme = this.options.iconTheme.replace('.', '');
Следующие 100 строк