PageSourceSearch

https://www.whatsonweibo.com/wp-content/plugins/theia-post-slider/js/tps-transition-simple.js?ver=2.0.0

js whatsonweibo.com collected 2026-10-02 02:25:05 UTC 1,593 bytes, 52 lines download raw bytes

1/*
2 * Copyright 2012-2018, Theia Post Slider, WeCodePixels, http://wecodepixels.com
3 */
4var tps = tps || {};
5tps.transitions = tps.transitions || {};
6tps.transitions.simple = function (me, previousIndex, index) {
7    var $ = jQuery;
8
9    // Init
10    var width = me.slideContainer.innerWidth();
11
12    // Start all animations at once, at the end of this function. Otherwise we can get rare race conditions.
13    var animationsQueue = [];
14
15    // Remove previous slide
16    var previousSlide = previousIndex !== null ? $(me.slides[previousIndex].content) : null;
17    if (previousSlide) {
18        me.slideContainer.css('height', previousSlide.innerHeight());
19        previousSlide.detach();
20    }
21
22    // Set the current slide
23    var slide = $(me.slides[index].content);
24
25    if (previousSlide == null) {
26        // Don't animate the first shown slide
27        me.slideContainer.append(slide);
28    }
29    else {
30        me.slideContainer.append(slide);
31
32        // Call event handlers
33        me.onNewSlide();
34
35        // Animate the height
36        animationsQueue.push(function () {
37            me.slideContainer.animate({
38                'height': slide.innerHeight()
39            }, me.options.transitionSpeed, function (me, previousIndex) {
40                return function () {
41                    $(this)
42                        .css('position', '')
43                        .css('width', '');
44                    me.slideContainer.css('height', '');
45                    me.decrementSemaphore();
46                }
47            }(me, previousIndex));
48        });
49    }
50
51    return animationsQueue;
52};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.