PageSourceSearch

https://www.everbright.com/sites/all/themes/everbright/js/main.js?tle83o

js everbright.com collected 2026-09-25 04:47:29 UTC 29,138 bytes, 848 lines download raw bytes

1var loadFrontBanner = getCookie("loadFrontBanner");
2function initFrontBanner() {
3    if ($(".front-page").length > 0 && loadFrontBanner == null) {
4        $(".header").addClass("transparent");
5        $("body").addClass("h100 ohidden");
6
7        setCookie2("loadFrontBanner", "1");
8    }
9    else if ($(".front-page").length > 0 && loadFrontBanner != null) {
10        $(".header").removeClass("transparent");
11        $("body").removeClass("h100 ohidden");
12    }
13}
14function initNewsListBanner() {
15    $(".latest-news .img-box").each(function () {
16        if ($(this).children().eq(0).is("img")) {
17            var imgsrc = $(this).find("img").eq(0).data("src");
18            $(this).css({
19                "background-image": "url(" + imgsrc + ")"
20            })
21        }
22    })
23}
24var clearOhidden = null;
25var joinBanner = new Swiper('.join-container', {
26    speed: 750,
27    loop: true,
28    autoplay: {
29        delay: 5000,//3秒切换一次
30    },
31    navigation: {
32        nextEl: '.swiper-button-next',
33        prevEl: '.swiper-button-prev',
34    },
35})
36$(document.body).mousewheel(function (event, delta, deltaX, deltaY) {
37    if (delta <= -1) {
38        if ($("body").hasClass("h100")) {
39            $("body").removeClass("h100");
40            $(".header").removeClass("transparent");
41            clearOhidden = setTimeout(function () {
42                $("body").removeClass("ohidden");
43            }, 500)
44        }
45        /*   if(!$(".front-banner").length) {
46         $(".header").removeClass("transparent");
47         }*/
48    }
49    else {
50        if ($(".front-page").length > 0 && !$("body").hasClass("h100") && loadFrontBanner == null) {
51            clearTimeout(clearOhidden);
52            if ($(window).scrollTop() <= 0) {
53                $("body").addClass("ohidden");
54                $("body").addClass("h100");
55                $(".header").addClass("transparent");
56            }
57        }
58    }
59});
60$(window).scroll(function () {
61    if ($("body").hasClass("front")) {
62        /*if($(this).scrollTop()>0) {
63         $(".header").removeClass("transparent");
64         }
65         else {
66         $(".header").addClass("transparent")
67         }*/
68        if ($(this).scrollTop() > 640) {
69            $(".fixed-right-bar").show();
70        }
71        else {
72            $(".fixed-right-bar").hide();
73        }
74    }
75});
76
77function hasMenu(m) {
78    return location.pathname.indexOf(m) != -1 ? true : false;
79}
80function firstPath() {
81    var pathName = location.pathname.substring(1);
82    var index = 0;
83
84    if (pathName.indexOf("everbright") != -1) {
85        index = pathName.indexOf("/", 11);
86    }
87    else {
88        index = pathName.indexOf("/");
89    }
90    if (index != -1) {
91        pathName = pathName.substring(index + 1);
92    }
93
94    var pathArray = pathName.split("/");
95
96    return pathArray[0];
97}
98function toId(id) {
99    var headerH = $(".header").outerHeight() || 0;
100    var navH = $(".sub-nav.active").outerHeight() || 0;
101    // alert(headerH+":"+navH)
102    var idH = $("#" + id).offset().top - headerH - navH;
103    $("html, body").animate({
104        scrollTop: idH
105    }, 200)
106}
107function loadNode(_href) {
108    var argumentLen = arguments.length;
109    if (argumentLen > 1) {
110        var relatedBtns = arguments[1];
111    }
112    $.ajax({
113        url: _href,
114        async: false,
115        dataType: "html",
116        beforeSend: function () {
117            $("#popRight .pop-main").html("<span class='loading'>正在加载中...</span>")
118        },
119        success: function (html) {
120            var lastIndex = _href.lastIndexOf("/") + 1;
121            var _class = _href.substring(lastIndex);
122            if (!isNaN(_class)) {
123                _class = "term-" + _class;
124            }
125
126            $("#popRight .pop-main").attr("class", "pop-main " + _class).html(html + relatedBtns);
127        }
128    });
129}
130function showRightPop() {
131    $("body").eq(0).css("overflow", "hidden");
132    $("#layer").fadeIn(300);
133    $("#popRight").addClass("active");
134}
135function closeRightPop() {
136    $("body").eq(0).css("overflow", "auto");
137    $("#layer").fadeOut(300);
138    $("#popRight").removeClass("active");
139    $("#popRight .pop-main").empty();
140}
141
142function initActiveMenus() {
143    var firstpath = firstPath();
144    $(".nav a[href$='" + firstpath + "']").addClass("active");
145    // var pathName = location.pathname;
146    // $(".sub-nav a[href='"+pathName+"']").addClass("active");
147    switch (firstpath) {
148        case "about-us":
149        case "team":
150        case "contact":
151            $(".nav a[href$='about-us']").addClass("active");
152            // $(".sub-nav a[href$='"+firstpath+"']").addClass("active");
153            // $(".second-level-nav a[href$='"+firstpath+"']").addClass("active");
154            if (hasMenu('contact/business_enquiry')) {
155                $(".content-header a[href$='contact/business_enquiry']").addClass('active');
156            }
157            if (hasMenu('/team/investment-team')) {
158                $(".fourth-level-nav ul.menu li:first").find("a").addClass("active");
159            }
160            break;
161    }
162
163}
164
165function getLocationLastPath() {
166    var pathName = location.pathname;
167
168    var index = pathName.lastIndexOf("/");
169    return index == -1 ? pathName.substring(1) : pathName.substring(index + 1);
170}
171function createYearsList() {
172    $(".news-list-title .select").each(function () {
173        var minyear = $(this).data("minyear"), tid = $(this).data("tid");
174        var c_year = (new Date()).getFullYear();
175        for (var i = minyear; i <= c_year; i++) {
176
177        }
178    })
179}
180function initNewsYears() {
181    // var lastPath = getLocationLastPath();
182    if (hasMenu('/news')) {
183        // alert(lastPath)
184        createYearsList()
185    }
186}
187
188function initFrontImg() {
189    if ($(".front-page").length > 0) {
190        var imgsrc = $.trim($(".front-img").text());
191        $(".front-page").css({
192            "background-image": "url(" + imgsrc + ")"
193        })
194    }
195    if ($(".con3-nav li").length > 0) {
196        $(".con3-nav li").eq(0).addClass("on");
197        $(".con3-pics li").eq(0).addClass("active");
198    }
199}
200function initNavActiveLine(activeClass) {
201    var navL = $(".nav").offset().left, activeL = $(activeClass).offset().left, activeW = $(activeClass).width();
202    if ($(".nav span.line").length) {
203        $(".nav span.line").css({
204            "left": activeL - navL,
205            "width": activeW
206        });
207    }
208}
209
210function showFundDisclaimer(title, disclaimer) {
211    if (!$("#disclaimer").length) {
212        $("body").append('<div class="dialog" id="disclaimer">\
213            <div class="dialog-bar">\
214            <h2>' + title + '</h2>\
215            <a href="javascript:;" class="close">&times;</a>\
216        </div>\
217        <div class="dialog-content">' + disclaimer + '</div>\
218            <div class="dialog-footer">\
219            <a href="javascript:;" class="cancel">拒绝</a>\
220            <a href="javascript:;" class="sure">同意</a>\
221            </div>\
222            </div>');
223    }
224    else {
225        $("#disclaimer .dialog-content").html(disclaimer);
226        $("#disclaimer h2").html(title);
227    }
228    showDialog('disclaimer');
229}
230
231function hideFundDisclaimer() {
232    if ($("#disclaimer").length) {
233        hideDialog('disclaimer');
234    }
235}
236function initMainMiniHeight() {
237    var headerH = $(".header").outerHeight(), footerH = $(".footer").outerHeight(), wh = $(window).height();
238    var secondNavH = $(".second-level-nav").length ? $(".second-level-nav").outerHeight() : 0;
239    $(".main-content").css({
240        "min-height": (wh - headerH - footerH - secondNavH) + "px"
241    })
242}
243
244$(function () {
245
246    if (!supportCss3('background-size')) {
247        alert("您的浏览器版本过低,为了使网站能够正常浏览,建议升级浏览器!")
248    }
249    try {
250        initMainMiniHeight();
251        initFrontImg();
252        initActiveMenus();
253        initFrontBanner();
254        initNewsListBanner();
255        initNewsYears();
256        initNavActiveLine(".nav a.active");
257    } catch (e) {
258
259    }
260    $(".mouseBox").click(function () {
261        $("body").removeClass("h100");
262        clearOhidden = setTimeout(function () {
263            $("body").removeClass("ohidden");
264            $(".header").removeClass("transparent");
265        }, 500)
266    })
267
268    try {
269        /*$('.front-banner li').each(function(i){
270         var img_view = $.trim($(this).find("img").data("src"));
271         if(img_view!="") {
272         $(this).css({
273         "background-image":"url("+img_view+")"
274         })
275         }
276
277
278         });*/
279    }
280    catch (e) {
281
282    }
283
284    try {
285        var typeNames = [], typeL = 0, startDiv = '', endDiv = '', sl = $('.front-banner li').length;
286        var frontBanner = new Swiper('.front-banner', {
287            on: {
288                slideChangeTransitionStart: function () {
289                    $(".swiper-pagination-bullet-active").parent(".pagination-item").addClass("active").siblings(".pagination-item").removeClass("active");
290                }
291            },
292            speed: 750,
293            autoplay: {
294                delay: 3000,//3秒切换一次
295            },
296watchOverflow: true,
297            pagination: {
298                el: '.front-nav',
299                clickable: true,
300                renderBullet: function (index, className) {
301                    var typename = this.slides.eq(index).find("img").data("type");
302                    console.log(typename)
303                    var _class = index == 0 ? "active" : "";
304                    typeL = typeNames.length;
305                    if (typeL == 0 || typeNames[typeL - 1] != typename) {
306                        typeNames.push(typename);
307                    }
308
309                    if (typeL == 0) {
310                        startDiv = '<div class="pagination-item active">';
311
312                    }
313                    else if (typeNames[typeL - 1] != typename) {
314                        startDiv = '<div class="type-name">' + typeNames[typeL - 1] + '</div></div><div class="pagination-item">';
315                    }
316                    else {
317                        startDiv = '';
318                    }
319                    typeL = typeNames.length;
320                    if (index == sl - 1) {
321                        endDiv = '<div class="type-name">' + typeNames[typeL - 1] + '</div></div>'
322                    }
323                    else {
324                        endDiv = '';
325                    }
326
327                    return startDiv + '<span class="' + className + '"></span>' + endDiv;
328                },
329            },
330        })
331        // scrollFrontBanner();
332        $(".front-banner").on("click", ".swiper-pagination-bullet", function (event) {
333            var l = $(this).index();
334            if ($(this).parent(".pagination-item").prevAll(".pagination-item").length) {
335                $(this).parent(".pagination-item").prevAll(".pagination-item").each(function () {
336                    l += $(this).find("span").length;
337                })
338                frontBanner.slideTo(l);
339            }
340            else {
341                frontBanner.slideTo(l);
342            }
343            // event.stopPropagation();
344        })
345
346
347        $(".front-banner").on("click", ".type-name", function (event) {
348            if ($(this).parent(".pagination-item").prevAll(".pagination-item").length) {
349                var l = 0;
350                $(this).parent(".pagination-item").prevAll(".pagination-item").each(function () {
351                    l += $(this).find("span").length;
352                })
353                frontBanner.slideTo(l);
354            }
355            else {
356                frontBanner.slideTo(0);
357            }
358            event.stopPropagation();
359        })
360
361
362        /*$('.front-banner ul').cycle({
363         //fx: 'scrollHorz',
364         speed: 1000,
365         timeout: 5000,
366         pager: '.front-banner .cycle-nav'
367         });*/
368        var hash = location.hash.substring(1);
369        if (hash != "") {
370            toId(hash);
371        }
372    }
373    catch (e) {
374
375    }
376    try {
377        $('.img-box').each(function () {
378            var img_view = $.trim($(this).data("view"));
379            if (img_view != "") {
380                $(this).css({
381                    "background-image": "url(" + img_view + ")"
382                })
383            }
384        });
385    }
386    catch (e) {
387
388    }
389    try {
390        $('.con2 li a i').each(function () {
391            var img_view = $.trim($(this).data("view"));
392            if (img_view != "") {
393                $(this).css({
394                    "background-image": "url(" + img_view + ")"
395                })
396            }
397        });
398    }
399    catch (e) {
400
401    }
402
403    try {
404        $('.con3-pics li').each(function () {
405            var img_view = $.trim($(this).find("img").data("src"));
406            if (img_view != "") {
407                $(this).css({
408                    "background-image": "url(" + img_view + ")"
409                })
410            }
411        });
412    }
413    catch (e) {
414
415    }
416
417    try {
418        $('.node-attach-img').each(function () {
419            var img_view = $.trim($(this).data("src"));
420            if (img_view != "") {
421                $(this).css({
422                    "background-image": "url(" + img_view + ")"
423                })
424            }
425        });
426    }
427    catch (e) {
428
429    }
430
431    $('.con3-nav li').hover(function () {
432        var index = $(this).index();
433        $(this).addClass('on').siblings().removeClass("on");
434        $('.con3-pics li').eq(index).addClass("active").siblings().removeClass('active');
435    });
436    $('.con4-tab a').hover(function () {
437        var index = $(this).index();
438        $(this).addClass('on').siblings().removeClass("on");
439        $(".con4 .page").eq(index).slideDown().siblings().slideUp();
440    });
441    var havFloatNav = [1, 1, 0, 1, 1];
442    $('.nav li').hover(function () {
443        if (!$(this).hasClass("has-subnav")) {
444            var _this = this;
445            $(_this).addClass('on').siblings("li").removeClass("on");
446            initNavActiveLine(".nav li.on a");
447
448            if (clearOut != null || clearOut != 'undefined') {
449                clearTimeout(clearOut);
450            }
451            $(".sub-nav").removeClass("active");
452            return false;
453        }
454    }, function () {
455        if (!$(this).hasClass("has-subnav")) {
456            var _this = this;
457            $(_this).removeClass("on");
458            if ($(".nav a.active").length) {
459                initNavActiveLine(".nav a.active");
460            }
461            else {
462                $(".nav span.line").stop(true).css("width", "0")
463            }
464        }
465        return false;
466    });
467    $('.nav li.has-subnav').each(function (i) {
468        $(this).hover(function () {
469            var _this = this;
470            $(_this).addClass('on').siblings("li").removeClass("on");
471            initNavActiveLine(".nav li.on a");
472
473            if (!$(".sub-nav").hasClass("active")) {
474                $(".sub-nav").addClass("active");
475            }
476            else {
477                clearTimeout(clearOut);
478            }
479            if ($('.sub-nav-item').length > 0) {
480                $('.sub-nav-item').eq(i).show().siblings().hide();
481            }
482
483        }, function () {
484            var _this = this;
485            clearOut = setTimeout(function () {
486                $(_this).removeClass("on");
487                if ($(".nav a.active").length) {
488                    initNavActiveLine(".nav a.active");
489                }
490                else {
491                    $(".nav span.line").stop(true).css("width", "0")
492                }
493                $('.sub-nav').removeClass('active');
494            }, 300)
495        })
496    })
497
498    /*$('.nav li').hover(function () {
499            var _this = this;
500            var index = $(_this).index();
501            $(_this).addClass('on').siblings("li").removeClass("on");
502            initNavActiveLine(".nav li.on a");
503
504            if (!$(this).hasClass("has-subnav")) {
505                if (clearOut != null || clearOut != 'undefined') {
506                    clearTimeout(clearOut);
507                }
508                $(".sub-nav").removeClass("active");
509                return false;
510            }
511            else {
512                if (!$(".sub-nav").hasClass("active")) {
513                    $(".sub-nav").addClass("active");
514                }
515                else {
516                    clearTimeout(clearOut);
517                }
518                if ($('.sub-nav-item').length > 0) {
519                    var index2 = $()
520                    if (!$(this).hasClass("has-subnav")) {
521                        index--;
522                    }
523                    $('.sub-nav-item').eq(index).show().siblings().hide();
524                }
525            }
526        },
527        function () {
528            var _this = this;
529            var index = $(_this).index();
530            if (!$(this).hasClass("has-subnav")) {
531                $(_this).removeClass("on");
532                if ($(".nav a.active").length) {
533                    initNavActiveLine(".nav a.active");
534                }
535                else {
536                    $(".nav span.line").stop(true).css("width", "0")
537                }
538                return false;
539            }
540            clearOut = setTimeout(function () {
541                $(_this).removeClass("on");
542                if ($(".nav a.active").length) {
543                    initNavActiveLine(".nav a.active");
544                }
545                else {
546                    $(".nav span.line").stop(true).css("width", "0")
547                }
548                $('.sub-nav').removeClass('active');
549            }, 300)
550
551        }
552    );*/
553
554    $('.sub-nav').hover(function () {
555        clearTimeout(clearOut);
556        $(this).addClass('active');
557    }, function () {
558        $(this).removeClass('active');
559        if ($(".nav a.active").length) {
560            initNavActiveLine(".nav a.active");
561        }
562        else {
563            $(".nav span.line").css("width", "0")
564        }
565        $('.nav li').removeClass("on");
566    });
567
568    $(".fixed-right-bar li").hover(function () {
569        var className = this.className == "" ? $(this).find("a").attr("class") : this.className;
570        $(this).parents(".fixed-right-bar").toggleClass(className + "-active");
571    });
572
573
574    //search
575    $(".search-box .form-actions .form-submit").click(function (e) {
576        var _event = e || window.event;
577        _event.preventDefault();
578        if (!$(".search-box").hasClass("show")) {
579            $(".search-box").addClass("show");
580            $(".nav").addClass("blur");
581        }
582        else {
583            var searchVal = $.trim($(".search-box .form-item .form-text").val());
584            if (searchVal == "") {
585                $(".search-box .form-item .form-text").focus().addClass("error");
586                return false;
587            }
588            else {
589                $("#search-block-form").submit();
590            }
591        }
592        _event.stopPropagation();
593        _event.cancelBubble = true;
594        _event.returnValue = false;
595        return false;
596    })
597    $(document).click(function (event) {
598        if ($(".search-box").hasClass("show")) {
599            if ($(event.target).is(".search-box") || $(event.target).is("input") || $(event.target).parents("div").hasClass("block-search")) {
600                return false
601            }
602            else {
603                $(".search-box").removeClass("show");
604                $(".search-box .form-item .form-text").val("");
605                $(".nav").removeClass("blur");
606            }
607
608        }
609        if ($(".select ul").is(":visible")) {
610            $(".select ul").slideUp(200);
611        }
612    })
613
614
615    $(".fourth-level-nav li").click(function (event) {
616        if (hasMenu('/team/investment-team')) {
617            event.preventDefault();
618            var index = $(this).index();
619            $(this).siblings("li").find("a").removeClass("active");
620            $(this).find("a").addClass("active");
621            $('.view-investment-team-name').eq(index).show().siblings(".view-investment-team-name").hide();
622        }
623    })
624
625    $(".view-investment-team-name .team-name a").click(function (event) {
626        event.preventDefault();
627        var _href = $(this).attr("href");
628        var relatedBtns = $(this).parent(".team-name").next(".r-fund").length ? $(this).parent(".team-name").next(".r-fund").html() : '';
629        if (relatedBtns != "") {
630            loadNode(_href, '<div class="related-fund">' + relatedBtns + '</div>');
631        }
632        else {
633            loadNode(_href);
634        }
635
636        showRightPop();
637        event.stopPropagation();
638    })
639
640    $(".view-investment-team-name .team-box img").click(function () {
641        var teamUrl = $(this).next(".team-name").find("a").attr("href");
642        console.log(teamUrl);
643        var relatedBtns = $(this).next(".team-name").next(".r-fund").length ? $(this).next(".team-name").next(".r-fund").html() : '';
644        if (relatedBtns != "") {
645            loadNode(teamUrl, '<div class="related-fund">' + relatedBtns + '</div>');
646        }
647        else {
648            loadNode(teamUrl);
649        }
650        showRightPop();
651    })
652
653    $("#popRight a.close").click(function () {
654        closeRightPop();
655    });
656
657    $(".content-right .content-nav a").click(function () {
658        var index = $(this).index();
659        $(this).addClass("active").siblings().removeClass("active");
660        $(".profile").eq(index).show().siblings(".profile").hide();
661    })
662
663    $(".select .selected-item").click(function (event) {
664        var e = event || window.event;
665        $(this).next("ul").slideToggle(200);
666        e.stopPropagation();
667        e.cancelBubble = true;
668        e.returnValue = false;
669        return false;
670    });
671
672    $(".f-nav li").click(function () {
673        var index = $(this).index();
674        $(this).addClass("active").siblings("li").removeClass("active");
675        if (index == 0) {
676            $(".funds-mainList table").show().next(".funds-principal").hide();
677        }
678        else {
679            $(".funds-mainList .funds-principal").show().prev("table").hide();
680        }
681    })
682
683    $(".portfolio-list li").click(function () {
684        if ($(this).hasClass("active")) {
685            $(this).parents(".portfolio-list").next(".portfolio-info").hide().html("");
686            $(this).removeClass("active");
687        }
688        else {
689            var html = $(this).find(".hidden-info").html();
690            $(this).parents(".portfolio-list").next(".portfolio-info").show().html(html);
691            $(this).addClass("active").siblings("li").removeClass("active");
692        }
693    })
694
695    /*$(".portfolio-bar .more-link a").click(function(event){
696     event.preventDefault();
697     var _href = $(this).attr("href");
698     loadNode(_href);
699     showRightPop();
700     event.stopPropagation();
701     });*/
702
703    $(".tab-menu a").click(function () {
704        var index = $(this).index();
705        $(this).addClass("active").siblings("a").removeClass("active");
706        $(".page").eq(index).show().siblings(".page").hide();
707    });
708
709    $(".page a.more-btn").click(function () {
710        $(this).parents(".page").hide().siblings(".page").show();
711        var index = $(this).parents(".page").index(".page");
712        // alert(index);
713        $(".tab-menu a").eq(!index).addClass("active").siblings("a").removeClass("active");
714    })
715
716    /*$(".honor-list a.more-btn").click(function(){
717     $(this).parents(".page").hide().siblings(".page").show();
718     $(".shining-moment a").eq(0).addClass("active").siblings("a").removeClass("active");
719     });*/
720
721    $(".honor-list .select li").click(function () {
722        var year = $(this).text();
723        $(this).addClass("selected").siblings().removeClass("selected");
724        $(this).parents(".select").find(".selected-item").text(year);
725        var val = $(this).data("value");
726        if (val == "all") {
727            $(".honor-list h3").show().next().show();
728        }
729        else {
730            $(".honor-list h3[data-year='" + year + "']").show().next().show();
731            $(".honor-list h3[data-year='" + year + "']").siblings("h3").hide().next().hide();
732        }
733    });
734
735    $("#results-press li").click(function () {
736        var year = $(this).text();
737        $(this).addClass("selected").siblings().removeClass("selected");
738        $(this).parents(".select").find(".selected-item").text(year);
739        var val = $(this).data("value");
740        if (val == "all") {
741            $("h3.select-title").show().next().show();
742        }
743        else {
744            $("h3.select-title[data-year='" + year + "']").show().next().show();
745            $("h3.select-title[data-year='" + year + "']").siblings("h3").hide().next().hide();
746        }
747    });
748
749    $(".find-funds").click(function () {
750        showDialog('fundBox');
751    });
752
753
754    //基金用戶登錄後
755    $(".fund-link a").click(function (event) {
756        var txt = $(this).text(), userId = $(this).parents("li").find("em").text();
757        var len = $(this).parents("li").children(".fund-disclaimer").length;
758
759        var cookieName = txt + "_" + userId;
760        if (getCookie(cookieName) == "1") {
761            return true;
762        }
763        else {
764            if ($(this).parent(".fund-link").next().is(".fund-disclaimer")) {
765                var fund_disclaimer1 = $(this).parent(".fund-link").next(".fund-disclaimer");
766                var fund_disclaimer_html = fund_disclaimer1.find(".fund-disclaimer-body").html();
767                var fund_disclaimer_title = fund_disclaimer1.find("h2").html();
768                event.preventDefault();
769                showFundDisclaimer(fund_disclaimer_title, fund_disclaimer_html);
770                $(this).addClass("focus");
771                if (len > 1) {
772                    $("#disclaimer a.sure").addClass("toAnotherDisclaimer");
773                }
774            }
775            else {
776                return true;
777            }
778        }
779
780    })
781
782    $(document).on("click", "#disclaimer a.close", function () {
783        hideFundDisclaimer();
784        $(".fund-link a").removeClass("focus")
785    })
786    $(document).on("click", "#disclaimer a.sure", function () {
787        var txt = $(".fund-link a.focus").text(), uid = $(".fund-link a.focus").parents("li").find("em").text();
788        if ($(this).hasClass("toAnotherDisclaimer")) {
789            var fund_disclaimer2 = $(".fund-link a.focus").parents("li").find(".fund-disclaimer").eq(1);
790            var fund_disclaimer_html = fund_disclaimer2.find(".fund-disclaimer-body").html();
791            var fund_disclaimer_title = fund_disclaimer2.find("h2").html();
792            hideFundDisclaimer();
793            setTimeout(function () {
794                showFundDisclaimer(fund_disclaimer_title, fund_disclaimer_html);
795                $("#disclaimer a.sure").removeClass("toAnotherDisclaimer");
796            }, 400);
797        }
798        else {
799            setCookie(txt + "_" + uid, "1");
800            var _href = $(".fund-link a.focus").attr("href");
801            location.href = _href;
802        }
803        // $(".fund-link a").removeClass("focus")
804    })
805    $(document).on("click", "#disclaimer a.cancel", function () {
806        hideFundDisclaimer();
807        $(".fund-link a").removeClass("focus");
808    });
809
810    $(".amt-nav li").click(function () {
811        $(this).addClass("on").siblings("li").removeClass("on");
812        var iindex = $(this).index();
813        $(".amt-content").eq(iindex).addClass("active").siblings(".amt-content").removeClass("active")
814    })
815
816    if ($(".fixed-right-bar").length > 0) {
817        var about_pdf_url = $(".about-pdf").text();
818        $(".fixed-right-bar a.download").attr("href", about_pdf_url);
819    }
820    if ($(".link-btn a.play").length > 0) {
821        var about_video_url = $(".about-video").text();
822        $(".link-btn a.play").attr("href", about_video_url);
823    }
824    if ($(".link-btn a.download").length > 0) {
825        var about_pdf_url = $(".about-pdf").text();
826        $(".link-btn a.download").attr("href", about_pdf_url);
827    }
828
829    if ($(".front-address").length > 0 && $("body").hasClass("en")) {
830        var html = $(".front-address .views-row-first .address-title").html();
831        var reHtml = html.replace('(Headquarters)', '<small>(Headquarters)</small>');
832        $(".front-address .views-row-first .address-title").html(reHtml);
833    }
834    try {
835        $(".portfolio-list li").each(function () {
836            var imgsrc = $(this).find("img").data("src");
837            $(this).css({
838                "background-image": "url(" + imgsrc + ")"
839            })
840        })
841    }
842    catch (e) {
843    }
844
845
846
847})
848

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.