PageSourceSearch

https://www.qinsilk.com/js/index.js?v=2.0.1

js qinsilk.com collected 2026-10-02 05:41:23 UTC 4,343 bytes, 108 lines download raw bytes

1/**
2 * Created by liuyong on 2015-04-09.
3 */
4
5$(function(){
6    $("#page1-download-button").popover({
7        trigger:'click',
8        placement: 'bottom',
9        html:true,
10        content: "<div class='div-inline' style='background: #456384;width:260px;'><a href='https://itunes.apple.com/cn/app/qin-si-jin-xiao-cun/id913781293?mt=8' target='_blank'><div class='download-apple'></div></a><a href='http://a.app.qq.com/o/simple.jsp?pkgname=com.qinsilk.app' target='_blank'><div class='download-android'></div></div></a>"
11    });
12
13    $("#aFloatTools_Show").click(function(){
14        $('#divFloatToolsView').animate({width:'show',opacity:'show'},100,function(){$('#divFloatToolsView').show();});
15        $('#aFloatTools_Show').hide();
16        $('#aFloatTools_Hide').show();
17    });
18    $("#aFloatTools_Hide").click(function(){
19        $('#divFloatToolsView').animate({width:'hide', opacity:'hide'},100,function(){$('#divFloatToolsView').hide();});
20        $('#aFloatTools_Show').show();
21        $('#aFloatTools_Hide').hide();
22    });
23
24    $("#downloadTools_Show").click(function(){
25        $('#downloadToolsView').animate({width:'show',height:'show',opacity:'show'},100,function(){$('#downloadToolsView').show();});
26        $('#downloadTools_Show').hide();
27    });
28
29    $("#downloadToolsView").click(function(){
30        $('#downloadToolsView').animate({width:'hide', opacity:'hide'},100,function(){$('#downloadToolsView').hide();});
31        $('#downloadTools_Show').show();
32    });
33    var $main = $('.main')
34    $main.onepage_scroll && $main.onepage_scroll({
35        sectionContainer: '.page',
36        beforeMove: function(index){
37            var divPage = "#page"+index+"-div";
38            $(divPage).css("display", "block");
39            switch(index){
40                case 1:
41                    var $animatingElems = $("#page1-div").find("[data-animation ^= 'animated']");
42                    doAnimations($animatingElems);
43                    break;
44                case 2:
45                    var $animatingElems = $("#page2-div").find("[data-animation ^= 'animated']");
46                    doAnimations($animatingElems);
47                    break;
48                case 3:
49                    var $animatingElems = $("#page3-div").find("[data-animation ^= 'animated']");
50                    doAnimations($animatingElems);
51                    break;
52                case 4:
53                    var $animatingElems = $("#page4-div").find("[data-animation ^= 'animated']");
54                    doAnimations($animatingElems);
55                    break;
56                case 5:
57                    var $animatingElems = $("#page5-div").find("[data-animation ^= 'animated']");
58                    doAnimations($animatingElems);
59                    break;
60                case 6:
61                    var $animatingElems = $("#page6-div").find("[data-animation ^= 'animated']");
62                    doAnimations($animatingElems);
63                    break;
64                case 7:
65                    var $animatingElems = $("#page7-div").find("[data-animation ^= 'animated']");
66                    doAnimations($animatingElems);
67                    break;
68                case 8:
69                    break;
70            }
71        }
72    });
73    //Variables on page load
74    var $myCarousel = $('#carousel-example-generic'),
75        $firstAnimatingElems = $myCarousel.find('.item:first').find("[data-animation ^= 'animated']");
76
77    //Initialize carousel
78    $myCarousel.carousel({
79        interval: 3 * 1000
80    });
81
82    //Animate captions in first slide on page load
83    doAnimations($firstAnimatingElems);
84
85    //Pause carousel
86    $myCarousel.carousel('pause');
87
88
89    //Other slides to be animated on carousel slide event
90    $myCarousel.on('slide.bs.carousel', function (e) {
91        var $animatingElems = $(e.relatedTarget).find("[data-animation ^= 'animated']");
92        doAnimations($animatingElems);
93    });
94});
95
96//Function to animate slider captions
97function doAnimations( elems ) {
98    //Cache the animationend event in a variable
99    var animEndEv = 'webkitAnimationEnd animationend';
100
101    elems.each(function () {
102        var $this = $(this),
103            $animationType = $this.data('animation');
104        $this.addClass($animationType).one(animEndEv, function () {
105            $this.removeClass($animationType);
106        });
107    });
108}

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.