1if(console.log("1926 start"),$(document).ready(function(){const t=$(".topHomeSlider");if(t[0]){let i=function(l=o){t.addClass("trsp anim"),setTimeout(()=>{t.removeClass("sl"+o),o!==l&&(o=l-1),o=o>=n?1:o+1,t.addClass("sl"+o).removeClass("trsp anim").attr("data-position",o)},2050),fundMetSlide($(".cardBox .itms"))};var b=i;const n=t[0].dataset.endPosition*1;let p=t[0].dataset.duration*1e3,o=t[0].dataset.position*1,e=setInterval(()=>{i()},p);t.on("mouseout",()=>{clearInterval(e),e=setInterval(()=>{i()},p)}),t.on("mouseover",()=>{clearInterval(e)}),$(".progBox div").click(function(){let l=$(this).attr("data-target")-1;l=l>=n?1:l+1,i(l)})}}),$(document).ready(function(){$(window).width()>=768?$(".randBoxBann")[0]&&randSlider($(".randBoxBann")):$(".randBoxBann .slider").owlCarousel({margin:30,rtl,autoWidth:!0,dots:!1,loop:!0,autoplay:!0,autoplayTimeout:4e3,nav:!0}),$window.width()<=1030.9&&$(".company-news").on("click",()=>{window.location="/swiss/english/about/ournews/"})}),$(".cardBox")[0]){let t=$(".cardBox .wr")[2].getBoundingClientRect().left-$(".cardBox .wr")[1].getBoundingClientRect().left;$(".cardBox .itms").css({"--lft":t+"px"})}(function(){if(window.randSliderInitialized)return;window.randSliderInitialized=!0;function t(n){const o=n.find(".itm"),e=o.length;let i=0;if(e<12){console.warn("Not enough items to perform the desired operation. Ensure there are sufficient items in the slider.");return}o.each((a,s)=>{s.setAttribute("data-counter",a+1)});function l(a,s){let r;do r=Math.floor(Math.random()*a)+1;while(r===s);return r}function c(){const a=l(6,i),s=Math.floor(Math.random()*(e-6))+6+1,r=n.find(`[data-counter="${a}"]`),f=n.find(`[data-counter="${s}"]`);r.length&&f.length?(r.addClass("op").css({transition:"opacity 0.4s ease",opacity:0}),f.addClass("op").css({transition:"opacity 0.4s ease",opacity:1}),setTimeout(()=>{f.addClass("first").attr("data-counter",a),r.not(".first").attr("data-counter",s)},600),setTimeout(()=>{o.removeClass("op first"),i=a},1e3)):console.warn("Element not found for the given data-counter during change operation. OldEl length:",r.length,"NewEl length:",f.length)}let u=setInterval(c,4e3);n.on("mouseover",()=>{clearInterval(u)}),n.on("mouseout",()=>{u=setInterval(c,4e3)});let m=0;n.find(".reload").on("click",()=>{if(e<=6){console.warn("Not enough items to perform the reload operation. Ensure there are sufficient items in the slider.");return}let a=Array.from({length:e},(s,r)=>r+1);a=a.sort(()=>Math.random()-.5),o.each((s,r)=>{$(r).css({transition:"opacity 0.4s ease",opacity:0}),setTimeout(()=>{r.setAttribute("data-counter",a[s]),$(r).css({opacity:1})},400)}),m=a[0],setTimeout(()=>{o.removeClass("op first")},1400)})}function b(n){const p=n.find(".wr"),o=p.length;p.each((e,i)=>{const l=parseInt(i.getAttribute("data-counter"));i.setAttribute("data-counter",l<=1?o:l-1)}),n.addClass("anim"),setTimeout(()=>{n.removeClass("anim")},2e3)}window.randSlider=t,window.fundMetSlide=b})(),(function(t){t(function(){const n=t(".main-slider").owlCarousel({rtl,items:1,loop:!0,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,animateOut:"fadeOut",animateIn:"fadeIn",lazyLoad:!0});p();function p(){n.trigger("stop.owl.autoplay"),setTimeout(function(){n.trigger("play.owl.autoplay")},9e3)}n.on("changed.owl.carousel",function(o){o.page.index===0&&p()}),t(".platform-block .owl-carousel").owlCarousel({items:1,loop:!0,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,animateOut:"fadeOut",animateIn:"fadeIn",lazyLoad:!0,dots:!1,nav:!1}),t(".custom-scroll")[0]&&(new SimpleBar(t(".custom-scroll")[0]),t(".rSide .simplebar-content-wrapper").scroll(function(){console.log("scroll"),t(".rSide .simplebar-content-wrapper")[0].scrollTop>50?t(".news-block").addClass("scroll"):t(".news-block").removeClass("scroll")}))}),$window.on("load",function(){let n;if(t(".home-page").length){let o=function(e){const i=e.find(".owl-next"),l=e.find(".owl-prev");i.on("click",function(){t(this).parents(".owl-carousel-group").find(".owl-carousel").trigger("next.owl.carousel")}),l.on("click",function(){t(this).parents(".owl-carousel-group").find(".owl-carousel").trigger("prev.owl.carousel")})};var p=o;t.ajax({type:"POST",url:"https://www.dukascopy.com/tv/api/ti",dataType:"json",data:{action:"get",lang:globalLang,limit:12},complete:function(){},success:function(e){let i={"EUR/USD":111,"USD/JPY":114,"GBP/USD":113,Gold:185,"DUK+":220}
1,l=t("#trading-ideas"),c=l.find(".nav-tabs"),u=c.children(),m=l.find(".tab-content"),a=m.children(),s,r,f=!0;t.each(i,function(v,h){if(e[h]){s=f?u.clone().addClass("active"):u.clone(),s.children().attr("href","#tab-"+h).html(v),c.append(s),r=f?a.clone().attr("id","tab-"+h).addClass("active"):a.clone().attr("id","tab-"+h),r.find(".trading-ideas-slider").html("");let y=r.find(".trading-ideas-slider");t.each(e[h],function(g,d){item=`<div class="text"> 2 <div class="title-block"><span class="time">${d.date}</span> 3 <h3><a href="${d.url}" class="title">${d.title}</a></h3> 4 </div> 5 <p><a href="${d.url}" class="descr text-cut">${d.text}</a></p> 6 </div>`,y.append(item)}),m.append(r),f=!1}}),u.remove(),a.remove(),t(".trading-ideas-slider").owlCarousel({margin:30,items:2,responsive:{0:{items:1,autoWidth:!0,loop:!0},768:{items:2,loop:!0}},rtl,dots:!1,onInitialized:b}),o(t(".trading-ideas"))},error:function(e){console.log("tradingidea api error",e)}}),t.ajax({type:"POST",url:"https://www.dukascopy.com/tv/api/marketresearch",dataType:"json",data:{action:"get",lang:globalLang},success:function(e){let i=t("#mr-product-slider"),l=t(".mr-products"),c=i.children(),u;e.length?(t.each(e,function(m,a){let s=c.data("src");u=c.clone().attr({href:a.url,style:`background-image: url(${s+a.abbr}.jpg);`}).addClass("mr-"+a.abbr),u.find("h3").html(a.category),i.append(u)}),c.remove()):l.addClass("hidden")},error:function(e){console.log("marketresearch api error",e)}}),t.ajax({type:"GET",url:"/api/yt-tutor-list/",dataType:"json",data:{lang:globalLang},success:function(e){if(!e.success||!e.items)return;let i=t("#dc-tv"),l=i.find(".nav-tabs"),c=i.find(".tab-content"),u=c.children().first(),m=u.clone().addClass("active"),a,s;l.hide(),c.empty();let r=m.find(".thumb-slider"),f=r.children().first(),v=m.find(".text-slider"),h=v.children().first();r.empty(),v.empty(),t.each(e.items,function(g,d){a=f.clone(),s=h.clone(),a.children().attr({"data-src":d.thumb});let T=d.published_at;try{const w=new Date(d.published_at);if(!isNaN(w.getTime())){const C=String(w.getDate()).padStart(2,"0"),x=String(w.getMonth()+1).padStart(2,"0"),S=w.getFullYear();T=`${C}.${x}.${S}`}}catch(w){console.error("Date parse error",w)}s.find(".date").text(T),s.find(".title").text(d.title),s.find(".title").parent().attr("href",d.url),a.attr("href",d.url),r.append(a),v.append(s)}),c.append(m),i.find(".open-video").on("click",function(g){g.preventDefault(),window.open(t(this).attr("href"),"videoPlay","width=700,height=750,scrollbars=yes,resizable=yes")});let y={0:{items:8,autoWidth:!0}};y[cssBreakPoints.sm]={items:2},y[cssBreakPoints.md]={items:4},t(".dc-tv-slider").owlCarousel({margin:30,rtl,responsive:y,onInitialized:b,lazyLoad:!0,loop:!0,dots:!1}),o(t(".dc-tv")),t(".dc-tv .tab-pane").each(function(){let g=t(this);g.find(".dc-tv-slider").on("dragged.owl.carousel",function(d){g.find(".dc-tv-slider").trigger("to.owl.carousel",[d.item.index,300,!0])})})},error:function(e){console.log("video api error",e)}})}});function b(n){n.item.count<=n.page.size&&(t(n.target).parents(".navigation-check").addClass("nothing-to-drag"),setTimeout(function(){t(n.target).trigger("refresh.owl.carousel")},1e3))}})(jQuery); 7 8//# sourceMappingURL=1926-scripts.min.js.map
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.