"); base.$elem.find(".owl-wrapper").wrap("
"); base.wrapperOuter = base.$elem.find(".owl-wrapper-outer"); base.$elem.css("display","inline-block"); }, baseClass : function(){ var base = this; var hasBaseClass = base.$elem.hasClass(base.options.baseClass); var hasThemeClass = base.$elem.hasClass(base.options.theme); base.$elem.data("owl-originalStyles", base.$elem.attr("style")) .data("owl-originalClasses", base.$elem.attr("class")); if(!hasBaseClass){ base.$elem.addClass(base.options.baseClass); } if(!hasThemeClass){ base.$elem.addClass(base.options.theme); } }, updateItems : function(){ var base = this; if(base.options.responsive === false){ return false; } if(base.options.singleItem === true){ base.options.items = base.orignalItems = 1; base.options.itemsDesktop = false; base.options.itemsDesktopSmall = false; base.options.itemsTablet = false; base.options.itemsTabletSmall = false; base.options.itemsMobile = false; return false; } var width = $(base.options.responsiveBaseWidth).width(); if(width > (base.options.itemsDesktop[0] || base.orignalItems) ){ base.options.items = base.orignalItems } if(width base.itemsAmount && base.options.itemsScaleUp === true){ base.options.items = base.itemsAmount; } }, response : function(){ var base = this, smallDelay; if(base.options.responsive !== true){ return false } var lastWindowWidth = $(window).width(); base.resizer = function(){ if($(window).width() !== lastWindowWidth){ if(base.options.autoPlay !== false){ clearInterval(base.autoPlayInterval); } clearTimeout(smallDelay); smallDelay = setTimeout(function(){ lastWindowWidth = $(window).width(); base.updateVars(); },base.options.responsiveRefreshRate); } } $(window).resize(base.resizer) }, updatePosition : function(){ var base = this; if(base.browser.support3d === true){ if(base.positionsInArray[base.currentItem] > base.maximumPixels){ base.transition3d(base.positionsInArray[base.currentItem]); } else { base.transition3d(0); base.currentItem = 0; } } else{ if(base.positionsInArray[base.currentItem] > base.maximumPixels){ base.css2slide(base.positionsInArray[base.currentItem]); } else { base.css2slide(0); base.currentItem = 0; } } if(base.options.autoPlay !== false){ base.checkAp(); } }, appendItemsSizes : function(){ var base = this; var roundPages = 0; var lastItem = base.itemsAmount - base.options.items; base.$owlItems.each(function(index){ var $this = $(this); $this .css({"width": base.itemWidth}) .data("owl-item",Number(index)); if(index % base.options.items === 0 || index === lastItem){ if(!(index > lastItem)){ roundPages +=1; } } $this.data("owl-roundPages",roundPages) }); }, appendWrapperSizes : function(){ var base = this; var width = 0; var width = base.$owlItems.length * base.itemWidth; base.$owlWrapper.css({ "width": width*2, "left": 0 }); base.appendItemsSizes(); }, calculateAll : function(){ var base = this; base.calculateWidth(); base.appendWrapperSizes(); base.loops(); base.max(); }, calculateWidth : function(){ var base = this; base.itemWidth = Math.round(base.$elem.width()/base.options.items) }, max : function(){ var base = this; var maximum = ((base.itemsAmount * base.itemWidth) - base.options.items * base.itemWidth) * -1; if(base.options.items > base.itemsAmount){ base.maximumItem = 0; maximum = 0 base.maximumPixels = 0; } else { base.maximumItem = base.itemsAmount - base.options.items; base.maximumPixels = maximum; } return maximum; }, min : function(){ return 0; }, loops : function(){ var base = this; base.positionsInArray = [0]; var elWidth = 0; for(var i = 0; i").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem); } if(base.options.pagination === true){ base.buildPagination(); } if(base.options.navigation === true){ base.buildButtons(); } }, buildButtons : function(){ var base = this; var buttonsWrapper = $("
") base.owlControls.append(buttonsWrapper); base.buttonPrev = $("
",{ "class" : "owl-prev", "html" : base.options.navigationText[0] || "" }); base.buttonNext = $("
",{ "class" : "owl-next", "html" : base.options.navigationText[1] || "" }); buttonsWrapper .append(base.buttonPrev) .append(base.buttonNext); buttonsWrapper.on("touchstart.owlControls mousedown.owlControls", "div[class^=\"owl\"]", function(event){ event.preventDefault(); }) buttonsWrapper.on("touchend.owlControls mouseup.owlControls", "div[class^=\"owl\"]", function(event){ event.preventDefault(); if($(this).hasClass("owl-next")){ base.next(); } else{ base.prev(); } }) }, buildPagination : function(){ var base = this; base.paginationWrapper = $("
"); base.owlControls.append(base.paginationWrapper); base.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function(event){ event.preventDefault(); if(Number($(this).data("owl-page")) !== base.currentItem){ base.goTo( Number($(this).data("owl-page")), true); } }); }, updatePagination : function(){ var base = this; if(base.options.pagination === false){ return false; } base.paginationWrapper.html(""); var counter = 0; var lastPage = base.itemsAmount - base.itemsAmount % base.options.items; for(var i = 0; i",{ "class" : "owl-page" }); var paginationButtonInner = $("",{ "text": base.options.paginationNumbers === true ? counter : "", "class": base.options.paginationNumbers === true ? "owl-numbers" : "" }); paginationButton.append(paginationButtonInner); paginationButton.data("owl-page",lastPage === i ? lastItem : i); paginationButton.data("owl-roundPages",counter); base.paginationWrapper.append(paginationButton); } } base.checkPagination(); }, checkPagination : function(){ var base = this; if(base.options.pagination === false){ return false; } base.paginationWrapper.find(".owl-page").each(function(i,v){ if($(this).data("owl-roundPages") === $(base.$owlItems[base.currentItem]).data("owl-roundPages") ){ base.paginationWrapper .find(".owl-page") .removeClass("active"); $(this).addClass("active"); } }); }, checkNavigation : function(){ var base = this; if(base.options.navigation === false){ return false; } if(base.options.rewindNav === false){ if(base.currentItem === 0 && base.maximumItem === 0){ base.buttonPrev.addClass("disabled"); base.buttonNext.addClass("disabled"); } else if(base.currentItem === 0 && base.maximumItem !== 0){ base.buttonPrev.addClass("disabled"); base.buttonNext.removeClass("disabled"); } else if (base.currentItem === base.maximumItem){ base.buttonPrev.removeClass("disabled"); base.buttonNext.addClass("disabled"); } else if(base.currentItem !== 0 && base.currentItem !== base.maximumItem){ base.buttonPrev.removeClass("disabled"); base.buttonNext.removeClass("disabled"); } } }, updateControls : function(){ var base = this; base.updatePagination(); base.checkNavigation(); if(base.owlControls){ if(base.options.items >= base.itemsAmount){ base.owlControls.hide(); } else { base.owlControls.show(); } } }, destroyControls : function(){ var base = this; if(base.owlControls){ base.owlControls.remove(); } }, next : function(speed){ var base = this; if(base.isTransition){ return false; } base.storePrevItem = base.currentItem; base.currentItem += base.options.scrollPerPage === true ? base.options.items : 1; if(base.currentItem > base.maximumItem + (base.options.scrollPerPage == true ? (base.options.items - 1) : 0)){ if(base.options.rewindNav === true){ base.currentItem = 0; speed = "rewind"; } else { base.currentItem = base.maximumItem; return false; } } base.goTo(base.currentItem,speed); }, prev : function(speed){ var base = this; if(base.isTransition){ return false; } base.storePrevItem = base.currentItem; if(base.options.scrollPerPage === true && base.currentItem > 0 && base.currentItem = base.maximumItem){ position = base.maximumItem; } else if( position = base.maximumItem || position === -1){ position = base.maximumItem; } else if( position 8 || base.newRelativeX 10 || base.newPosY base.maximumItem){ base.currentItem = base.maximumItem; newPosition = base.maximumItem; } else if( base.newPosX >=0 ){ newPosition = 0; base.currentItem = 0; } return newPosition; }, improveClosest : function(){ var base = this; var array = base.positionsInArray; var goal = base.newPosX; var closest = null; $.each(array, function(i,v){ if( goal - (base.itemWidth/20) > array[i+1] && goal - (base.itemWidth/20) array[i+1] && base.moveDirection() === "right"){ closest = array[i+1]; base.currentItem = i+1; } }); return base.currentItem; }, moveDirection : function(){ var base = this, direction; if(base.newRelativeX = base.currentItem; } else { follow = true; } if(follow && itemNumber = base.$userItems.length || position === -1){ base.$userItems.eq(-1).after(htmlString) } else { base.$userItems.eq(position).before(htmlString) } base.setVars(); }, removeItem : function(targetPosition){ var base = this, position; if(base.$elem.children().length === 0){return false} if(targetPosition === undefined || targetPosition === -1){ position = -1; } else { position = targetPosition; } base.unWrap(); base.$userItems.eq(position).remove(); base.setVars(); } }; $.fn.owlCarousel = function( options ){ return this.each(function() { if($(this).data("owl-init") === true){ return false; } $(this).data("owl-init", true); var carousel = Object.create( Carousel ); carousel.init( options, this ); $.data( this, "owlCarousel", carousel ); }); }; $.fn.owlCarousel.options = { items : 5, itemsDesktop : [1199,4], itemsDesktopSmall : [979,3], itemsTablet : [768,2], itemsTabletSmall : false, itemsMobile : [479,1], singleItem : false, itemsScaleUp : false, slideSpeed : 200, paginationSpeed : 800, rewindSpeed : 1000, autoPlay : false, stopOnHover : false, navigation : false, navigationText : ["prev","next"], rewindNav : true, scrollPerPage : false, pagination : true, paginationNumbers : false, responsive : true, responsiveRefreshRate : 200, responsiveBaseWidth : window, baseClass : "owl-carousel", theme : "owl-theme", lazyLoad : false, lazyFollow : true, lazyEffect : "fade", autoHeight : false, jsonPath : false, jsonSuccess : false, dragBeforeAnimFinish : true, mouseDrag : true, touchDrag : true, addClassActive : false, transitionStyle : false, beforeUpdate : false, afterUpdate : false, beforeInit : false, afterInit : false, beforeMove : false, afterMove : false, afterAction : false, startDragging : false }; })( jQuery, window, document );; car_check(); $(window).resize(function(){ car_check();}); }); function switch_toggle(){ var a = $('#switch .switch').not('.active').first().attr('data-id'); switch_to(a); } function switch_to(elt){ console.log('altlive: switch to',elt); var $s = $('#switch .switch[data-id='+elt+']'); var a = $('#switch .switch.active').attr('data-id'); if (elt == a){ return;} if (elt == 'live'){ $('#liveholder').append(ajaxwait()).show(); $('.altnaslovka, .element').hide(); $(document).trigger('fin2:ga-send',{ 'hitType':'pageview','page':'/virtual/index/swipe/live' }); } else if (elt == 'naslovka'){ $('#liveholder').hide(); $('.altnaslovka, .element').show(); $(document).trigger('fin2:ga-send',{ 'hitType':'pageview','page':'/virtual/index/swipe/news' }); } window['_refresh_off'] = (elt == 'live'); console.log('refresh',window['_refresh_off']); $('#switch .switch').removeClass('active'); $('#switch .switch[data-id='+elt+']').addClass('active'); } $(document).ready(function(){ $('body').on('enquire-match-min-960',function(){ switch_to('naslovka'); }); var count = 0; var page_mode = 'naslovka'; $('#switch').on('click','.switch',function(){ console.log($(this)); var a = $(this).attr('data-id'); switch_to(a); return false; }); $('#switch').swipe( { swipe:function(event, direction, distance, duration, fingerCount) { // if (direction == 'right'){ switch_to('live');} // else if (direction == 'left'){ switch_to('naslovka');} // don't explicitly swipe anymore -- treat any swipe as a toggle switch_toggle(); }, //Default is 75px, set to 0 for demo so any distance triggers swipe threshold:0 }); });
DWN Home.
DWN Express.
DWN
Politik
Politik Landtagswahl Brandenburg: AfD gewinnt Jugendwahl
19.09.2024

Das Ergebnis der Juniorwahlen in Brandenburg ist eindeutig: Junge Menschen wählen AfD. Die Grüne Partei stürzt (wiedermal) regelrecht ab...

DWN
Politik
Politik Macht er Cash oder wird er Präsident? Donald Trumps Haltefrist bei Truth Social endet
19.09.2024

Truth Social ist vermutlich Donald Trumps beste Investition gewesen, seit Jahrzehnten - ever, ever! Besser als seine Hotels und...

DWN
Unternehmen
Unternehmen ifo-Geschäftsklima: Konstanter Abwärtstrend auch für Selbstständige in Deutschland
19.09.2024

Die gesamtwirtschaftliche Lage ist schlecht, von Erholung nach der Sommerpause keine Spur: Auch das Geschäftsklima bei Selbstständigen...

DWN
Finanzen
Finanzen Asset Protection: So schützen Sie Ihr Vermögen vor dem Zugriff Dritter
24.08.2024

Steigendes Insolvenzrisiko, verschärfte rechtliche Rahmenbedingungen, Herausforderungen durch die Energiewende: Das Vermögen von...

DWN
Unternehmen
Unternehmen Demografie und Fachkräftemangel: Ältere länger im Job halten - eine Studie sieht Millionenpotenzial
19.09.2024

Weiterbeschäftigung statt Rente: Wer das Renteneintrittsalter erreicht hat, aber dennoch länger arbeitet, soll mehr Wertschätzung und...

DWN
Unternehmen
Unternehmen Handelsregistergebühren sollen kräftig steigen – eine weitere teure Belastung für Unternehmen!
19.09.2024

Das Bundesjustizministerium will die Gebühren für den Handelsregistereintrag um 50 Prozent erhöhen. Ein besserer Kostendeckungsgrad soll...

DWN
Weltwirtschaft
Weltwirtschaft Wettlauf um Bodenschätze: Bundesregierung legt Rohstofffonds auf
19.09.2024

Deutschland ist ein rohstoffarmes Land. Unternehmen sind deshalb auf Lieferungen aus dem Ausland angewiesen. Mit einem Rohstofffonds der...

DWN
Politik
Politik Betriebliche Altersvorsorge soll attraktiver werden
19.09.2024

Bislang verfügt nur ein Teil der Beschäftigten in Deutschland über eine betriebliche Rente. Das soll sich nach dem Willen der...

DWN
Unternehmen
Unternehmen Erste Lithium-Raffinerie: Wie Deutschland vom Ausland unabhängig und autark wird
19.09.2024

Reiner Haseloff, der Ministerpräsident von Sachsen-Anhalt, hatte diese Woche dann doch Grund zum Feiern und Lächeln. In Bitterfeld-Wolfen...

DWN
Weltwirtschaft
Weltwirtschaft Zwischen Macht und Verantwortung: Wie Gewerkschaften den deutschen Arbeitsmarkt beeinflussen
19.09.2024

Brauchen wir Gewerkschaften oder schaden sie der Volkswirtschaft? Hohe Lohnforderungen und Streikdrohungen könnten den deutschen...

DWN
Politik
Politik Ukrainekrieg: Selenskyj und Putin rüsten weiter auf. Steht die Herbstoffensive bevor?
19.09.2024

Die Aufrüstung geht weiter: Der ukrainische Präsident Wolodymyr Selenskyj hat die westlichen Partner erneut zu mehr Tempo bei den...

DWN
Politik
Politik Millionen-Strafe soll Ungarn von EU-Geldern abgezogen werden
19.09.2024

Ungarn liegt schon lange im Clinch mit Brüssel. Ein Streit um die Asylpolitik des Landes könnte Budapest nun teuer zu stehen kommen.

DWN
Politik
Politik Niederlande beantragen Ausstieg aus EU-Asylregeln
19.09.2024

Die neue rechte Regierung in Den Haag plant die strengsten Asylregeln in Europa. Und sie will aus den EU-Regeln aussteigen. Ein eher...

DWN
Immobilien
Immobilien Zweitimmobilie im Ausland: Haus oder Wohnung als Immobilieninvestment - realistisch und sinnvoll?
19.08.2024

Es klingt verlockend: Eine Immobilieninvestition in einem spektakulären Küstenort im Ausland, um dem Alltag in Deutschland jederzeit zu...

DWN
Finanzen
Finanzen Goldminenaktien im Aufwind: Jetzt mal anders in das Edelmetall investieren?
19.09.2024

Goldminenaktien haben lange Zeit praktisch nicht vom Anstieg des Goldpreises profitiert. Dank stabiler Produktionskosten, hoher...

'); $kp.css({'position':'fixed','top':100,'left':100,'z-index':10002}); var w = Math.round(($(window).width() - $kp.width()) / 2); $kp.css({'left':w}); $kp.slideDown('slow'); } function run_kos_slidenote(){ var $sn = $('.kos_signup.met_slidenote').first(); $sn.css({'position':'fixed','bottom':0,'right':0,'z-index':10001}); $sn.slideDown('slow'); } function run_kos_aftersubmit(res){ var $f = $('form input[name=id][value='+res.id+']').closest('form'); if (res.error){ alert(res.error);} else if (res.html) { var $ks = $f.closest('div.kos_signup'); var ow = $ks.outerWidth(); $ks.css('width',ow); $f.replaceWith(res.html); } } function run_kos_html(res){ if (res.html){ $('body').append(res.html); $('.kos_signup form').off('submit'); $('.kos_signup form').on('submit',function(){ var $f = $(this); var da = {}; $f.find('input[type=text], input[type=hidden], textarea, input[type=checkbox]:checked, input[type=radio]:checked').each(function(i,e){ var v = $(e).val(); var n = $(e).attr('name'); da[n] = v; }); $.ajax({ url: 'https://www.finance.si/master.php', data: da, dataType:'jsonp', crossDomain: true, jsonpCallback:'run_kos_aftersubmit' }); return false; }); run_kos_signup(); } } function run_kos_signup(){ $('.kos_signup a.close').click(function(){ $(this).parents('.kos_semitrans').remove(); $(this).closest('.kos_signup').remove(); return false; }); var $kp = $('.kos_signup.met_popup'); if ($kp.length > 0){ setTimeout(run_kos_popup,3000); } var $kp = $('.kos_signup.met_slidenote'); if ($kp.length > 0){ setTimeout(run_kos_slidenote,3000); } } if (typeof $ !== "function"){ var $ = jQuery; } $(document).ready(function(){ var doit = true; if (typeof kos_signup_id !== "undefined"){ var da = {op:'kos_signup_get_html',host:window.location.host,id:kos_signup_id}; if (typeof kos_signup_cooldown !== "undefined"){ da.cooldown = kos_signup_cooldown; } $.ajax({ url: 'https://www.finance.si/master.php', data: da, dataType:'jsonp', crossDomain: true, jsonpCallback:'run_kos_html' }); } else { run_kos_signup(); } });

Märkte und Börsen

Powered by wallstreet:online Logo

Das könnten Sie verpasst haben

DWN
Politik
Politik Landtagswahl Brandenburg: AfD gewinnt Jugendwahl
19.09.2024

Das Ergebnis der Juniorwahlen in Brandenburg ist eindeutig: Junge Menschen wählen AfD. Die Grüne Partei stürzt (wiedermal) regelrecht ab...

DWN
Politik
Politik Macht er Cash oder wird er Präsident? Donald Trumps Haltefrist bei Truth Social endet
19.09.2024

Truth Social ist vermutlich Donald Trumps beste Investition gewesen, seit Jahrzehnten - ever, ever! Besser als seine Hotels und...

DWN
Unternehmen
Unternehmen ifo-Geschäftsklima: Konstanter Abwärtstrend auch für Selbstständige in Deutschland
19.09.2024

Die gesamtwirtschaftliche Lage ist schlecht, von Erholung nach der Sommerpause keine Spur: Auch das Geschäftsklima bei Selbstständigen...

DWN
Unternehmen
Unternehmen Demografie und Fachkräftemangel: Ältere länger im Job halten - eine Studie sieht Millionenpotenzial
19.09.2024

Weiterbeschäftigung statt Rente: Wer das Renteneintrittsalter erreicht hat, aber dennoch länger arbeitet, soll mehr Wertschätzung und...

DWN
Unternehmen
Unternehmen Handelsregistergebühren sollen kräftig steigen – eine weitere teure Belastung für Unternehmen!
19.09.2024

Das Bundesjustizministerium will die Gebühren für den Handelsregistereintrag um 50 Prozent erhöhen. Ein besserer Kostendeckungsgrad soll...

DWN
Weltwirtschaft
Weltwirtschaft Wettlauf um Bodenschätze: Bundesregierung legt Rohstofffonds auf
19.09.2024

Deutschland ist ein rohstoffarmes Land. Unternehmen sind deshalb auf Lieferungen aus dem Ausland angewiesen. Mit einem Rohstofffonds der...

DWN
Politik
Politik Betriebliche Altersvorsorge soll attraktiver werden
19.09.2024

Bislang verfügt nur ein Teil der Beschäftigten in Deutschland über eine betriebliche Rente. Das soll sich nach dem Willen der...

DWN
Unternehmen
Unternehmen Erste Lithium-Raffinerie: Wie Deutschland vom Ausland unabhängig und autark wird
19.09.2024

Reiner Haseloff, der Ministerpräsident von Sachsen-Anhalt, hatte diese Woche dann doch Grund zum Feiern und Lächeln. In Bitterfeld-Wolfen...

DWN
Weltwirtschaft
Weltwirtschaft Zwischen Macht und Verantwortung: Wie Gewerkschaften den deutschen Arbeitsmarkt beeinflussen
19.09.2024

Brauchen wir Gewerkschaften oder schaden sie der Volkswirtschaft? Hohe Lohnforderungen und Streikdrohungen könnten den deutschen...

DWN
Politik
Politik Ukrainekrieg: Selenskyj und Putin rüsten weiter auf. Steht die Herbstoffensive bevor?
19.09.2024

Die Aufrüstung geht weiter: Der ukrainische Präsident Wolodymyr Selenskyj hat die westlichen Partner erneut zu mehr Tempo bei den...

DWN
Politik
Politik Millionen-Strafe soll Ungarn von EU-Geldern abgezogen werden
19.09.2024

Ungarn liegt schon lange im Clinch mit Brüssel. Ein Streit um die Asylpolitik des Landes könnte Budapest nun teuer zu stehen kommen.

DWN
Politik
Politik Niederlande beantragen Ausstieg aus EU-Asylregeln
19.09.2024

Die neue rechte Regierung in Den Haag plant die strengsten Asylregeln in Europa. Und sie will aus den EU-Regeln aussteigen. Ein eher...

DWN
Finanzen
Finanzen Goldminenaktien im Aufwind: Jetzt mal anders in das Edelmetall investieren?
19.09.2024

Goldminenaktien haben lange Zeit praktisch nicht vom Anstieg des Goldpreises profitiert. Dank stabiler Produktionskosten, hoher...

DWN
Politik
Politik Fed setzt mit US-Zinsentscheid deutliches Zeichen: Aktien-Kurse ziehen an
18.09.2024

Die US-Notenbank hat eine neue Phase in ihrer Geldpolitik eingeläutet. Fed-Chef Jerome Powell senkte den Leitzins um gleich einen halben...

DWN
Immobilien
Immobilien Ist jetzt ein attraktiver Zeitpunkt für den Immobilien-Kauf?
18.09.2024

Nach dem Zinsschock im September 2021 sind die Hypothekenzinsen dieses Jahr gefallen. Wenn man auf den online Immobilienportalen unterwegs...

DWN
Weltwirtschaft
Weltwirtschaft Krankheitsausfälle auf Rekordniveau: Die Kosten explodieren
18.09.2024

Der Krankenstand in Deutschland ist auf Rekordniveau und kostet die Arbeitgeber viele Milliarden Euro. Die Kosten für den Arbeitsausfall...

'); } // APP ready() modules /* module: core */ /* App.mod.core.min.tpl.php */ window.video_respy=function(){$('iframe[src*="youtu"],iframe[src*="vimeo"],iframe[src*="dailymotion"]').each(function(i,e){var $p=$(e).parent();if(!$p.hasClass("video-container")){$(e).wrap('
');var url=$(e).attr("src");var separator=url.indexOf("?")>0?"&":"?";$(e).attr("src",url+separator+"wmode=transparent")}})};video_respy();$.ajaxSetup({cache:false});form_ajaxy_activate();$(document).on("click",".tabholder .tabcontrols li[data-tab]",function(event){event.stopPropagation();event.preventDefault();var $me=$(this).closest("li");var url=$me.attr("data-url");if(typeof url!=undefined&&url&&url.length>0){window.location.href=url;return false}else{return tng_tabswitch(event,this,$me.attr("data-tab"))}});$(document).on("tabswitch_done",function(data){console.log("tabswitch done",data);resp_run();lazy_run()});$(document).on("click",".toggly",function(){$(this).toggle("slow",function(){resp_run();lazy_run()})});$(document).on("click","a[data-toggle]",function(e){e.preventDefault();var selector=$(this).data("toggle");$(selector).toggle("slow",function(){resp_run();lazy_run()})});/* /module: core */ /* module: slidenote */ /* App.mod.slidenote.min.tpl.php */ window.slidenote_has_run=0;window.run_slidenote=function(){console.log("run_slidenote in da house");var $sn=$(".adslot_iprom.legacy_adpos-slidenote > div, .adslot_iprom.legacy_adpos-native-slidenote > div");if($sn.length0){console.log("iprom slidenote: already ran!");return}slidenote_has_run=1;console.log("iprom slidenotes start",$sn);$sn.hide();$sn.css({position:"fixed",right:0,bottom:0,"z-index":100});$('X').prependTo($sn).css({position:"absolute",right:"0.2em",top:"0.2em","font-weight":"bold","font-size":"3em",color:"red","text-decoration":"none",height:"3em","text-shadow":"rgba(0,0,0,0.5) 0 3px 3px",cursor:"pointer"}).click(function(){$(this).closest(".adslot_iprom").remove()});$sn.slideDown("slow");console.log("iprom slidenotes end")};/* /module: slidenote */ /* module: mq */ /* App.mod.mq.min.tpl.php */ function start_mq(){enquire.register("screen and (orientation: landscape)",{match:function(){logme("in landscape");setTimeout(fixvp_h,300)},unmatch:function(){logme("out of landscape, width "+window.innerWidth);setTimeout(fixvp_w,300)}});if($("body").hasClass("alt")){var ares=[120,240,360,480,600,720,840,960];for(i in ares){var px=ares[i];enquire.register("screen and (min-width:"+px+"px)",{match:function(){console.log("match min "+px);$("body").trigger("enquire-match-min-"+px)},unmatch:function(){console.log("unmatch min "+px);$("body").trigger("enquire-match-min-"+px)}})}}if(!$("body").hasClass("alt")){enquire.register("screen and (max-width: 900px)",{match:function(){$("body").removeClass(all_mq).addClass("mq-max-900").addClass("mq-sub-900");$("#desktop-menu").hide();$("#right-column").hide();$(".dbox.comments").not("#sub-column .dbox.comments").detach().prependTo("#sub-column");logme("done max-900px match");$("body").trigger("enquire-match-max-900")},unmatch:function(){$("body").removeClass("mq-max-900").removeClass("mq-sub-900");$("#right-column").show();logme("done max-900px unmatch");$("body").trigger("enquire-unmatch-max-900")}})}enquire.register("screen and (min-width:600px)",{match:function(){logme("done min-600px match");$("body").trigger("enquire-match-min-600")},unmatch:function(){logme("done min-600px unmatch");$("body").trigger("enquire-unmatch-min-600")}});if(!$("body").hasClass("alt")){enquire.register("screen and (min-width: 901px)",{match:function(){console.log("matched 901");$("body").removeClass(all_mq).addClass("mq-min-901");$(".dbox.comments").not("#right-column .dbox.comments").detach().prependTo("#right-column");logme("done min-901px match");$("body").trigger("enquire-match-min-901")},unmatch:function(){console.log("unmatched 901");$("body").removeClass("mq-min-901");logme("done min-901px unmatch");$("body").trigger("enquire-unmatch-min-901")}})}enquire.register("screen and (max-width: 560px)",{match:function(){$("body").removeClass(all_mq).addClass("mq-max-560").addClass("mq-sub-560");logme("done max-560px match");$(".dbox.comments").not("#main-column .dbox.comments").detach().appendTo("#main-column");$(".newsboxes.traci").not("#main-column .newsboxes.traci").detach().appendTo("#main-column").find("img.pic:gt(2)").hide();$("#main-column .glavne .newsbox:gt(2)").addClass("nopad").find("img.pic").hide()},unmatch:function(){$("body").removeClass("mq-max-560").removeClass("mq-sub-560");$(".newsboxes.traci").not("#sub-column .newsboxes.traci").detach().appendTo("#sub-column").find("img.pic").show();$("#main-column .dbox.comments").detach().prependTo("#sub-column");$("#main-column .glavne .newsbox:gt(2)").removeClass("nopad").find("img.pic").show();logme("done max-560px unmatch")}});enquire.register("screen and (max-width: 480px)",{match:function(){$("body").removeClass(all_mq).addClass("mq-max-480").addClass("mq-sub-480");logme("done max-480px match")},unmatch:function(){$("body").removeClass("mq-max-480").removeClass("mq-sub-480");logme("done max-480px unmatch")}});enquire.register("screen and (max-width: 380px)",{match:function(){$("body").removeClass(all_mq).addClass("mq-max-380").addClass("mq-sub-380");logme("done max-380px match")},unmatch:function(){$("body").removeClass("mq-max-380").removeClass("mq-sub-380");logme("done max-380px unmatch")}});enquire.register("screen and (max-width: 320px)",{match:function(){$("body").removeClass(all_mq).addClass("mq-max-320");logme("done max-320px match")},unmatch:function(){$("body").removeClass("mq-max-320");logme("done max-320px unmatch")}})}start_mq();/* /module: mq */ /* module: colorbox */ /* App.mod.colorbox.tpl.php */ if (typeof $.colorbox !== 'undefined') { // colorbox localization jQuery.extend(jQuery.colorbox.settings, { current: "Aktuell", previous: "Zurück", next: "Vor", close: "Schließen", xhrError: "Fehler", imgError: "Fehler", zoomNotify: "Klicken Sie auf das Bild für eine größere Ansichtr" }); // responsive colorbox patch - https://github.com/jackmoore/colorbox/issues/158 var cbResizeTimer; var cbLives = 0; $(window).resize(function(){ if (cbResizeTimer) clearTimeout(cbResizeTimer); cbResizeTimer = setTimeout(function() { if (0 && getWidth() '); } if (!$('#mobidesk-menu').length) { $('#header').append(''); } // steer menu type by this var, not only by ed_F if (typeof menu_style_finance == 'undefined') { menu_style_finance = false; } // click to activate... release to detonate $('#header').on('click','#headerMenu', hamburger); // didn't work with AVTO and since header is not cowload anymore we can convert to... //$('#headerMenu').click(hamburger); // hide the menu on orientation/resize bcs of diff layouts $(window).on('orientationchange', function(){ $('#mobi-menu').hide();$('#mobidesk-menu').hide();$('#desktop-menu').hide(); }); $(window).on('resize', function(){ $('#mobi-menu').hide();$('#mobidesk-menu').hide();$('#desktop-menu').hide(); }); function hamburger () { // event.preventDefault(); console.log('hamburger!'); if( $("body").hasClass("ed_F") || menu_style_finance ){ $('#mobi-menu').hide(); $active = false; var ac = 'menu_sites'; if (window['menu_section_active'] !== 'undefined') { ac = window['menu_section_active']; } if( $(window).width() ul > li:has(ul)').addClass("has-sub"); if ($active) { $active.next('li.has-sub').css('display','list-item'); } $menu.find('div > ul > li').click(function() { var checkElement = $(this).next(); $menu.find('li').removeClass('active'); $(this).closest('li').addClass('active'); if((checkElement.is('li.has-sub')) && (checkElement.is(':visible'))) { $(this).closest('li').removeClass('active'); checkElement.slideUp('fast'); } if((checkElement.is('li.has-sub')) && (!checkElement.is(':visible'))) { $menu.find('.header-mobi-menu ul li.has-sub:visible').slideUp('fast'); checkElement.slideDown('fast'); } if (checkElement.is('ul')) { return false; } else { return true; } }); } // finance-style menu else{ // not finance-style menu $('#mobi-menu').toggle(); } return false; } // hamburger /* /module: hamburger */ /* module: adbox-glue */ /* App.mod.adbox-glue.min.tpl.php */ // App.mod.adbox-glue $(window).scroll(function(){if($("body").hasClass("no_adbox_glue"))return;/*if($("#right-colum-fokus").children(":visible").last().is(".adslot_adpos-box1")){return}*/$("#rightx-column").css({position:"relative","min-height":"10px"});var e=$("#right-colum-fokus");if(e.length0&&(u=o.height()),e.is("[data-top]")||e.attr("data-top",t.top-u+200);var a=e.attr("data-top"),f=e.hasClass("glued"),l=f;l=s>e.attr("data-top"),$ar=$("#article_rec, .vodoravni, #bottom, #footer").first();if($ar.length>0){var c=$ar.offset().top;cbounds.right||viewport.bottombounds.bottom)};function article_log_api(i){var depth_uid=window.uid;var depth_sid=window.sid;var depth_us=window.ustatus;var url=window.location.href;var paywall=window.paywall;currentTime=new Date;timeNow=currentTime.getTime();timeToNow=typeof timeStart!=="undefined"?timeNow-timeStart:0;$.ajax({url:"/api/article/?op=pagedepth",data:JSON.stringify({artid:window.artid,reqid:window.reqid,url:url,marker:"Article_"+i,uid:depth_uid?depth_uid:"0",sid:depth_sid?depth_sid:"0",time:timeToNow,fingerprint:finprint,ip:window.ip,host:window.hostname,logsource:window.hostname,pid:0}),contentType:"application/json; charset=UTF-8",dataType:"json",method:"POST",headers:{"cache-control":"no-cache"}})}function pagedepth_log(i){var depth_uid=window.uid;var depth_sid=window.sid;var articleid=window.artid;var depth_us=window.ustatus;var url=window.location.href;var paywall=window.paywall;if(typeof depth_markers[i]!=="undefined"&&depth_markers[i]){return}console.log("pagedepth MARK: "+i);depth_markers[i]=true;currentTime=new Date;timeNow=currentTime.getTime();console.log("time pagedepth:",timeNow);timeToNow=timeNow-timeStart;if(i=="article_rec"){var artsrc=$("#article_rec").attr("data-artsrc");var artsrc2=$("#article_rec").attr("data-artsrc2");var artgu=$("#article_rec").attr("data-artgu");console.log("pagedepth rec_log: showvis");$.ajax({url:"/noapp/eye.php?op=rec_show_vis",data:{reqid:window.reqid,url:url,artsrc:artsrc,artsrc2:artsrc2,ug:artgu,paywall:paywall,us:depth_us,uid:depth_uid,sid:depth_sid,time:timeNow,fingerprint:finprint},method:"POST",headers:{"cache-control":"no-cache"}});return}if(i=="article_virtual_mid"||i=="article_virtual_mid_normal"){var swc=$("#article").attr("data-wordcount");var mid_wc=parseInt(swc/2);var mid_min=1*timeToNow/(1e3*60);var mid_wpm=mid_wc/mid_min;var device_type="d";var pd_data=JSON.parse('{"wc":'+swc+',"mid_wc":'+mid_wc+',"min":'+mid_min+',"wpm":'+mid_wpm+',"device":"'+device_type+'"}');$.ajax({url:"/master.php?op=pagedepth",data:{reqid:window.reqid,uid:depth_uid,sid:depth_sid,marker:i,article_id:window.artid,time_start:timeStart,time_mark:timeToNow,data:pd_data},method:"POST",headers:{"cache-control":"no-cache"}})}article_log_api(i);if(typeof window.ga!=="undefined"){console.log("pagedepth GA push: Article_"+i+" - UGA");window.ga("send","event","Reading","Article_"+i,"",timeToNow)}if(typeof dataLayer!=="undefined"){dataLayer.push({event:"article pagedepth",apd_marker:"Article_"+i,user_id:depth_uid,user_status:depth_us,metered:paywall,apd_time:timeToNow,url:document.URL,path:window.location.pathname,location:window.location.href})}else{console.log("pagedepth: no dataLayer")}if(i=="article_virtual_mid"){var mid_swc=$("#article").attr("data-wordcount");console.log("pagedepth: article_virtual_mid wordcount = ",mid_swc," time = ",timeToNow);if(typeof mid_swc!="undefined"&&mid_swc&&timeToNow>0){var mid_wc=parseInt(mid_swc/2);var mid_min=1*timeToNow/(1e3*60);var mid_wpm=mid_wc/mid_min;console.log("pagedepth: ",i,": middle wc = "+mid_wc+", middle min = "+mid_min+", middle wpm = "+mid_wpm);pagedepth_log(i);if(mid_wpm0){var wc=parseInt(swc);var min=1*timeToNow/(1e3*60);var wpm=wc/min;console.log("pagedepth: wc = "+wc+", min = "+min+", wpm = "+wpm);if(typeof window.fbq!=="undefined"){window.fbq("trackCustom","Article_read",{custom_param:"normal_pace"});window.fbq("trackCustom","Article_read",{custom_param:"article_bottom"});console.log("pagedepth fbq push: Article_"+i)}if(wpm0&&!depth_markers["article_virtual_mid"]){var win=$(window);var viewport={top:win.scrollTop(),left:win.scrollLeft(),bottom:win.scrollTop()+win.height()};var bounds=$c.offset();bounds.bottom=bounds.top+$c.outerHeight();var mid=.5*(bounds.top+bounds.bottom);if(viewport.top=mid){console.log("App.pagedepth: MIDDLE HIT!");pagedepth_log("article_virtual_mid")}}})} /* /module: pagedepth */ /* module: app_promo_desktop */ /* App.mod.app_promo_desktop.tpl.php */ // app promo - desktop version // roll down the element if existing // c0w + Gustl 2014-05-14 if ($('body').hasClass('mq-min-901')) { var $apd = $('#app-promo-desktop'); if ($apd.length > 0) { $apd.slideDown('slow'); console.log('app promo desktop was here'); } }/* /module: app_promo_desktop */ /* module: artUrlKlik */ /* App.mod.artUrlKlik.tpl.php */ if (typeof ga !== 'undefined') { $('a.artUrlKlik').each(function() { $('a.artUrlKlik').on('click', function() { var a_artUrlKlik_href = $(this).attr('href'); var url = window.location.href; ga('send', 'event', 'Article Link', 'Click', a_artUrlKlik_href); }); }); } /* /module: artUrlKlik */ /* module: aPageScroll */ /* App.mod.aPageScroll.tpl.php */ // onepage a href scroller to next element - example on medicina-danes.si $('a.page-scroll').bind('click', function(event) { //alert($(this).attr('href').substring(1)) element = $($(this).attr('href')); offset = element.offset(); offsetTop = offset.top; $('html, body').stop().animate({ scrollTop: offsetTop }, 1500, 'easeInOutExpo'); event.preventDefault(); }); /* /module: aPageScroll */ /* module: refresh */ /* App.mod.refresh.tpl.php */ /* /module: refresh */ var ajax_tmp = null; cowload();resp_run();lazy_fix_run(); $('div.hovery').click(function() { var u = $(this).data('url'); if (typeof u === 'undefined' || !u){ // flikatura c0w 2023-08-04 u = $(this).find('a[href]').first().attr('href'); } if (typeof u !== 'undefined' && u){ processUrl($(this), u); } }); // $('.newsbox a').click(function(e) { e.stopPropagation(); e.preventDefault(); if ($(this).attr('class') == 'comment-count') { location.href = $(this).attr('href'); } else { try { processUrl($(this), $(this).attr('href')); } catch (err){ location.href = $(this).attr('href'); } } }); // function processUrl(e, to) { console.log('processUrl of',e,to); if (e.parent().hasClass('bblock')) { var block = e.parent().attr('id'); } else { var block = e.parentsUntil('.bblock').parent().attr('id'); } var url = new URL(to, window.location.origin); // var ps = new URLSearchParams(url.search); var params = Array.from(ps.entries()); const found = (() => { for (let [key, value] of params) { if (key === 'src') { return true; } } return false; })(); if (!found) { ps.append('src', block); // get body class for naslovka, some other news lists,... to += '?' + ps.toString(); } location.href = to; } });