HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: /var/www/adila/wp-content/themes/tombuild/assets/js/cursor.js
!function($,b,c,d){"use strict";var a=function(a,b){this.elm=a,this.$elm=$(a),this.opts=b,this.config=this.$elm.data("config")};a.prototype={defaults:{efx:{}},init:function(){this.args=$.extend({},this.defaults,this.opts,this.config),this.build(),this.event()},build:function(){var a=this;a.$elm.find(".inner"),$(c).on("mousemove",function(b){gsap.to(a.$elm,.3,{x:b.clientX,y:b.clientY,ease:"ease.out"})})},event:function(){var a=this,b=a.args.efx,c=a.$elm.find(".text");a.$elm.find(".inner"),b.length&&$(b).each(function(e,b){let d=b.target,f=b.text,g=b.classes;$(d).addClass("has-custom-cursor"),$(d).on("mouseenter",function(){c.html(f),a.$elm.addClass(g+" active")}),$(d).on("mouseleave",function(){a.$elm.removeClass(g+" active"),c.html("")})})}},a.defaults=a.prototype.defaults,$.fn.masterCursor=function(b){return this.each(function(){new a(this,b).init()})}}(jQuery,window,document)