🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 morphext.js

📁 Path: /home/stakrfrcol/agency/wp-content/themes/xhyre/js/morphext.js
📊 Size: 1.72 KB
🔒 Perm: 0644
📝 MIME: text/plain
/*!
 * Morphext - Text Rotating Plugin for jQuery
 * https://github.com/MrSaints/Morphext
 *
 * Built on jQuery Boilerplate
 * http://jqueryboilerplate.com/
 *
 * Copyright 2014 Ian Lai and other contributors
 * Released under the MIT license
 * http://ian.mit-license.org/
 */
/*eslint-env browser */
/*global jQuery:false */
/*eslint-disable no-underscore-dangle */
(function ($) {
	"use strict";
	var pluginName = "Morphext",
		defaults = {
			animation: "bounceIn",
			separator: ",",
			speed: 2000,
			complete: $.noop
		};
	function Plugin (element, options) {
		this.element = $(element);
		this.settings = $.extend({}, defaults, options);
		this._defaults = defaults;
		this._init();
	}
	Plugin.prototype = {
		_init: function () {
			var $that = this;
			this.phrases = [];
			this.element.addClass("morphext");
			$.each(this.element.text().split(this.settings.separator), function (key, value) {
				$that.phrases.push($.trim(value));
			});
			this.index = -1;
			this.animate();
			this.start();
		},
		animate: function () {
			this.index = ++this.index % this.phrases.length;
			this.element[0].innerHTML = "<span class=\"animated " + this.settings.animation + "\">" + this.phrases[this.index] + "</span>";
			if ($.isFunction(this.settings.complete)) {
				this.settings.complete.call(this);
			}
		},
		start: function () {
			var $that = this;
			this._interval = setInterval(function () {
				$that.animate();
			}, this.settings.speed);
		},
		stop: function () {
			this._interval = clearInterval(this._interval);
		}
	};
	$.fn[pluginName] = function (options) {
		return this.each(function() {
			if (!$.data(this, "plugin_" + pluginName)) {
				$.data(this, "plugin_" + pluginName, new Plugin(this, options));
			}
		});
	};
})(jQuery);
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨