Nachricht hinterlassen

 
Path
Lädt...
',b.removeAttribute("style")}else init_google_maps_scripts()}function gmaps_script_embedded(){for(var a="http://maps.googleapis.com/maps/api/js?v=3&libraries=places&key=AIzaSyBIprodP16-M171Pje3OQTAH4KzMCADibg&language=de",b=document.getElementsByTagName("script"),c=b.length;c--;)if(b[c].src===a)return!0;return!1}function local_storage_available(){try{return localStorage.test=2,localStorage.removeItem("test"),!0}catch(a){return!1}}function cookies_enabled(){if(!navigator.cookieEnabled)return!1;try{return document.cookie="test = 1; domain=."+location.hostname+"; path=/; max-age=31536000000",!0}catch(a){return!1}}function save_script_in_local_storage(a){try{local_storage_available&&(localStorage.setItem("regio_map_default_js",JSON.stringify(a)),localStorage.setItem("regio_map_default_js_change_date",JSON.stringify(regio_map_default_js_change)))}catch(a){}}function init_google_maps_scripts(){if(gmaps_script_embedded())check_maps_loaded();else{var a="http://maps.googleapis.com/maps/api/js?v=3&libraries=places&key=AIzaSyBIprodP16-M171Pje3OQTAH4KzMCADibg&language=de";jQuery.loadScript(a,maps_loaded_callback)}}function check_maps_loaded(){"object"==typeof google&&"object"==typeof google.maps?maps_loaded_callback():setTimeout(function(){check_maps_loaded()},200)}function load_css(a){$.ajax({url:a,cache:!1,dataType:"text",success:function(a){$("
Lädt...
';if(new_index === 0){$('#myLocalFeedContainer').prepend(container_div);}else{$('#myLocalFeedContainer').children().eq(new_index - 1).after(container_div);}news_container = $('[id^=loc_container_]');for(i=0;i
Lädt...');FOL.Loc.Localfeed.loadStream(feed_index,false);}},writeToStorage:function(name,data) {var myself = this;if(TFT_Modernizr.localstorage) {localStorage.setItem(name,data);}},writeToCookie:function(name,data,isSession) {var myself = this;if (isSession) {$.cookie(name,data,{path:'/',domain:location.hostname});}else {$.cookie(name,data,{path:'/',domain:location.hostname,expires:365});}}};FOL.Loc.Localfeed = {init:function() {var myself = this,conf = FOL.Loc.oConfig,scroll = true;if(typeof use_account_locations_cookie !== 'undefined'){use_account_locations = use_account_locations_cookie;}else{use_account_locations = $.cookie('use_account_locations');if(use_account_locations === null){use_account_locations = '';}else if(use_account_locations === 'true'){use_account_locations = true;}else{use_account_locations = false;}}TFT.Core.Console.log('FOL.Loc.Localfeed.init','','info');var ident = (conf.isLoggedIn && use_account_locations === true)? conf.cookieNameLoggedin :conf.cookieNameLoggedout;if((conf.isMew && typeof my_locations_object !== 'undefined') || (!conf.isMew && typeof my_locations_object !== 'undefined' && typeof tag_list_shown !== 'undefined' && tag_list_shown)){temp_storage = get_copy_without_reference();}else if(local_storage_availability){temp_storage = JSON.parse(FOL.Loc.LocationsData.getFromStorage(ident));}else{temp_storage = JSON.parse(FOL.Loc.LocationsData.getFromCookie(ident));}if(temp_storage !== null && temp_storage.length > 0){FOL.Loc.LocationsData.processData(temp_storage);if(!is_home){myself.prepareFeedContainers();var show_index = 0;if(local_storage_availability && localStorage.getItem("state_when_leaving") !== null){var state_object = JSON.parse(localStorage.getItem("state_when_leaving"));if((Math.round(new Date().getTime()/1000) - state_object.timestamp) -1){show_index = parseInt(state_object.shown_index);}if(typeof state_object.link_id !== 'undefined'){last_seen_teaser = state_object.link_id;st_loaded = state_object.loaded;st_more_clicked = state_object.more_clicked;st_older_clicked = state_object.older_clicked;}}}if(isMew){scroll = false;}else{if(typeof open_map !== 'undefined' && open_map){scroll = false;}}myself.loadFeed(show_index,scroll);}}else {TFT.Core.Console.log('FOL.Loc.Localfeed.init','keine locals vorhanden','info');}},initUpdate:function() {var myself = this;var conf = FOL.Loc.oConfig;if(typeof use_account_locations_cookie !== 'undefined'){use_account_locations = use_account_locations_cookie;}else{use_account_locations = $.cookie('use_account_locations');if(use_account_locations === null){use_account_locations = '';}else if(use_account_locations === 'true'){use_account_locations = true;}else{use_account_locations = false;}}if(use_account_locations === '' && (typeof use_account_locations_cookie !== 'undefined' || use_account_locations_cookie === false)){use_account_locations = false;}TFT.Core.Console.log('FOL.Loc.Localfeed.initUpdate','','info');if(!is_home){if (!conf.isMew){$('.myLocalFeedBoxSingleContainer .loader').remove();}$('.myLocalFeedBoxSingleContainer').each(function(i,v) {if($(this).html() != ""){var con_id = 'id_'+conf.feedData[i].lat.toString().replace(".","_")+'_'+conf.feedData[i].lng.toString().replace(".","_")+'_'+conf.feedData[i].radius;$('#myLocalFeedBackup').append('
'+$(this).html()+'
');}});$('.myLocalFeedBoxSingle,.myLocalFeedBoxSingleContainer').remove();if (conf.isMew){$('#localNav,nav .head_focus .bx-next,nav .head_focus .bx-prev,.loadinganimation').remove();$('body').removeClass('hasLocalNav');}else {$('#myLocalFeedContainer').html('');}}var ident = (conf.isLoggedIn && (use_account_locations === '' || use_account_locations === true))? conf.cookieNameLoggedin :conf.cookieNameLoggedout;if(typeof my_locations_object !== 'undefined'){temp_storage = get_copy_without_reference();}else if(local_storage_availability){temp_storage = JSON.parse(FOL.Loc.LocationsData.getFromStorage(ident));}else{temp_storage = JSON.parse(FOL.Loc.LocationsData.getFromCookie(ident));}if ( temp_storage !== null && temp_storage.length > 0 ) {TFT.Core.Console.log('FOL.Loc.Localfeed.initUpdate','locals vorhanden','info');FOL.Loc.LocationsData.processData(temp_storage);if(!is_home){myself.prepareFeedContainers();$.each(conf.feedData,function(i,v){var con_id = 'id_'+conf.feedData[i].lat.toString().replace(".","_")+'_'+conf.feedData[i].lng.toString().replace(".","_")+'_'+conf.feedData[i].radius;if ($('#myLocalFeedBackup #'+con_id).length > 0){TFT.Core.Console.log('FOL.Loc.Localfeed.initUpdate','Feed bereits vorhanden:' + conf.feedData[i].place,'info');$(conf.sSelectorContainer+i).html($('#myLocalFeedBackup #'+con_id).html());conf.feedData[i].feedLoaded = true;}});$('#myLocalFeedBackup div').each(function(){$(this).remove();});myself.loadFeed(feed_index,change_place);}}else {TFT.Core.Console.log('FOL.Loc.Localfeed.initUpdate','keine locals vorhanden','info');if(is_home){$('[id^=loc_container_]').remove();conf.feedData = null;}}},switch_to_account_locations:function() {var myself = this,conf = FOL.Loc.oConfig;conf.feedData = my_locations_object;$.each(conf.feedData,function(i,v){v.radius = v.radius;v.feedLoaded=false;v.itemsCount=0;v.oldCount=0;});myself.prepareHomeFeedContainers();},prepareFeedContainers:function() {var myself = this,conf = FOL.Loc.oConfig;TFT.Core.Console.log('FOL.Loc.Localfeed.prepareFeedContainers','','info');if (conf.isMew) {$('nav .head_focus').append('
');$('body').addClass('hasLocalNav');$.each(conf.feedData,function(i,v){var activeClass='';if (i==0){activeClass=' active';}$('#localNav .localNavContainer').append('
'+v.place+'
');$(conf.sSelectorFeedContainer).append(FOL.Loc.WrapHTML(i,v.place,conf.isMew));$('#loc_'+i+'_navItem').on('click',function(){if(v.feedLoaded == false) {myself.loadFeed(i,true);}else {myself.toggleFeed(i,true);}});});$(".hamburger_overlay").on("click",function(){if(!conf.m_vis){$('body').removeClass('hasLocalNav');$('#localNav').hide();}else {$('body').addClass('hasLocalNav');$('#localNav').show();}conf.m_vis = !conf.m_vis;});$(".figure_overlay").on("click",function(){if(!conf.l_vis){$('body').removeClass('hasLocalNav');$('#localNav').hide();}else {$('body').addClass('hasLocalNav');$('#localNav').show();}conf.l_vis = !conf.l_vis;});setTimeout(function() {myself.listen();},1000);}else {$.each(conf.feedData,function(i,v){$(conf.sSelectorFeedContainer).append(FOL.Loc.WrapHTML(i,v.place,conf.isMew));$('#loc_'+i).on('click',function(){if(v.feedLoaded == false) {myself.loadFeed(i,true);}else {myself.toggleFeed(i,true);}});});}},prepareHomeFeedContainers:function(){var myself = this,conf = FOL.Loc.oConfig,i,len = conf.feedData.length,container_div,my_local_feed_container = $('#myLocalFeedContainer');my_local_feed_container.empty();for(i=0;i
Lädt...
';my_local_feed_container.append(container_div);FOL.Loc.Localfeed.loadFeedForHome(i);}},listen:function(){var myself = this;var conf = FOL.Loc.oConfig;var box1 = document.getElementById('localNav');var startx = 0;var dist = 0;var diff = 0;var pos =0;conf.navwidth=0;conf.navitems = [];conf.navitems.push(0);$('.localNavItem').each(function(){conf.navwidth += $(this).outerWidth();conf.navitems.push(conf.navwidth);});var ismousedown = false;box1.addEventListener('touchmove',function(e){var touchobj = e.changedTouches[0];var dist = parseInt(touchobj.clientX) - startx;startx=parseInt(touchobj.clientX);pos = parseInt($('.localNavContainer').css('left'));if (pos+dist $( window ).width()-conf.navwidth){$('.localNavContainer').css('left',pos+(dist));}e.preventDefault();},false);$(window).resize(function(){$('.localNavContainer').css('left','0');if (!TFT_Modernizr.touch){if(($( window ).width()-conf.navwidth) >= 0){$('.bx-next,.bx-prev').hide();}else {$('.bx-next,.bx-prev').attr('style','');}}var hgt = $('#myLocalFeedContainer').width() / 2;$("img.imgMobileOverview.lazyload").css("height",hgt + "px");$("img.imgMobileOverview.lazyloaded").css("height",hgt + "px");});if (!TFT_Modernizr.touch){$('nav .head_focus').append('
');if(($( window ).width()-conf.navwidth) >= 0){$('.bx-next,.bx-prev').hide();}$('.bx-next').on('mousedown',function(){var pos = parseInt($('.localNavContainer').css('left'));myNavtimer = setInterval(function() {pos = pos-- = 0 ? 0 :pos++ ;$('.localNavContainer').css('left',pos);},5);}).on('mouseup',function(){clearInterval(myNavtimer);});}},moveNavTo:function(iItem){var myself=this,conf = FOL.Loc.oConfig;conf.current = iItem;if ( ($( window ).width() - conf.navwidth) (conf.navitems[conf.current]*(-1)) ? $( window ).width() - conf.navwidth :(conf.navitems[conf.current]*(-1));$('.localNavContainer').css('left',pos);}},loadFeed:function(i,isMove) {var myself = this,conf = FOL.Loc.oConfig;if(typeof conf.feedData[i] !== 'undefined' && typeof conf.feedData[i].place !== 'undefined'){TFT.Core.Console.log('FOL.Loc.Localfeed.loadFeed',conf.feedData[i].place+':zu zeigende anzahl news:'+conf.iShowAtInit+',isMove:'+isMove,'info');if(conf.feedData[i].itemsCount > 0 || conf.feedData[i].oldCount > 0){myself.toggleFeed(i,isMove);}else{if(!is_home && conf.isMew){$('#localNav').addClass('feed_loading');}$('.myLocalFeedBoxSingleContainer').hide();$(conf.sSelectorAnimation+i).addClass('load_anim');if (!conf.isMew) {$(conf.sSelector+i).addClass('open');if(!is_home){$('.myLocalFeedBoxSingle.open').attr('disabled','disabled');}$(conf.sSelector+i+' a.bluebutton span .svg_icon use').attr('xlink:href','#angle-up');}if(isMove){if (conf.isMew) {var new_position = $('#myLocalFeedContainer').offset();document.body.scrollTop = (new_position.top - 110);document.documentElement.scrollTop = (new_position.top - 110);}else {var new_position = $(conf.sSelector+i).offset();$( 'html,body' ).animate({scrollTop:new_position.top - conf.posTopModify},"slow");}}myself.loadStream(i,isMove);}}},loadStream:function(i,isMove){var myself = this,conf = FOL.Loc.oConfig,url = location.protocol+'//'+((document.domain.indexOf('www-dev') > -1 || document.domain.indexOf('m-dev') > -1)?'json-dev':'json')+'.focus.de/regional/lns/ajax/local-news-stream',latReq = Math.round(conf.feedData[i].lat*100,2)/100,lngReq = Math.round(conf.feedData[i].lng*100,2)/100;$.ajax({url:url,type:'get',dataType:'json',data:{latlng:latReq+','+lngReq,distance:conf.feedData[i].radius/1000 }}).done(function(data){myself.parseArticleJSON(i,data,is_home?2:conf.iShowAtInit,isMove);}).fail(function(msg){console.log(msg);myself.feedLoadedCallback(i,false);myself.noArticlesFoundCallback(i);});},loadFeedForHome:function(i){var myself = this,conf = FOL.Loc.oConfig;myself.loadStream(i,false);},mewScrollToLastClicked:function(i,index){var myself = this,conf = FOL.Loc.oConfig,p,image_found = false;pause_scroll_event_handler = true;last_seen_teaser = undefined;if($('#lns_wrapper_'+last_seen_teaser_id).find('img').length > 0){image_found = true;$('#lns_wrapper_'+last_seen_teaser_id+' img').load(function(){window.setTimeout(function(){scroll_to_position($('#lns_wrapper_'+last_seen_teaser_id).offset().top - 50,true);},800);});}else{if(typeof article_json[i].items[index - 1] !== 'undefined'){for(p = index - 1;p > 0;p--){if($(conf.sSelectorContainer+i + ' [id^=lns_wrapper_]').eq(p).find('img').length > 0){image_found = true;$(conf.sSelectorContainer+i + ' [id^=lns_wrapper_]').eq(p).find('img').load(function(){window.setTimeout(function(){scroll_to_position($('#lns_wrapper_'+last_seen_teaser_id).offset().top - 50,true);},800);});break;}}}}if(!image_found){window.setTimeout(function(){scroll_to_position($('#lns_wrapper_'+last_seen_teaser_id).offset().top - 50,true);},800);}},moveToLastClickedArticle:function(){setIntervalX(function(){var teaser = $('*[data-vr-contentbox="'+last_seen_teaser+'"]').eq(0),teaser_top;if(teaser.length){pause_scroll_event_handler = true;teaser_top = (isMew)?(teaser.offset().top - 120):teaser.offset().top;scroll_to_position(teaser_top,true);scrolled = true;}},200,30);},toggleFeed:function(i,isMove) {var myself = this,conf = FOL.Loc.oConfig,j,len,index_in_more_current_news,index_in_previous_news;TFT.Core.Console.log('FOL.Loc.Localfeed.toggleFeed','i:'+i+' isMove:'+isMove,'info');if (conf.isMew) {$('.localNavItem').removeClass('active');$('#loc_'+i+'_navItem').addClass('active');if(!is_home && local_storage_availability){save_last_shown_place_index();}if($(conf.sSelectorContainer+i).is(':visible')){if(isMove){var new_position = $('#myLocalFeedContainer').offset();scroll_to_position(new_position.top - 60);}}else{$('.myLocalFeedBoxSingleContainer').each(function(n,v) {if ( n != i ) {$(this).hide();}});$(conf.sSelectorContainer+i).slideDown( "slow",function() {});if(isMove){var new_position = $('#myLocalFeedContainer').offset();scroll_to_position(new_position.top - 60);}}}else {if ( $(conf.sSelectorContainer+i).is(':visible') ) {$(conf.sSelectorContainer+i).hide();$(conf.sSelector+i).removeClass('open');$(conf.sSelector+i+' a.bluebutton span .svg_icon use').attr('xlink:href','#angle-down');if(typeof last_seen_teaser !== 'undefined'){myself.moveToLastClickedArticle();}}else {$('.myLocalFeedBoxSingle').each(function(n,v) {if ( $(this).attr('id') != 'loc_'+i ) {$(conf.sSelectorContainer+n).hide();$(conf.sSelector+n).removeClass('open');$(conf.sSelector+n+' a.bluebutton span .svg_icon use').attr('xlink:href','#angle-down');}});if(typeof last_seen_teaser !== 'undefined'){myself.moveToLastClickedArticle();}else if(isMove){var new_position = $('#loc_'+i).offset();$( 'html,body' ).animate({scrollTop:new_position.top - 50},"slow");}$(conf.sSelector+i).addClass('open');$(conf.sSelector+i+' a.bluebutton span .svg_icon use').attr('xlink:href','#angle-up');$(conf.sSelectorContainer+i).slideDown( "slow",function() {});}}},loadArticles:function(i,isMove,start,end){var myself = this,conf = FOL.Loc.oConfig,j,deferred = [],news_container = $(conf.sSelectorContainer+i);pause_scroll_event_handler = true;for(j=start;j');}var promise = $.ajax({url:'/'+article_json[i].items[j].snippetURL,type:'get',dataType:'html',custom:j }).done(function(data){var twc_lat_lng = conf.feedData[i].lat.toFixed(2)+','+conf.feedData[i].lng.toFixed(2);data = data.replace(/(\r\n|\n|\r|\t)/gm,"").replace(/ +(?= )/g,'').replace(//g,'').replace(/xlatx,xlngx/g,twc_lat_lng);var index = this.custom;if(data.length !== 0){data = $(data);if(!is_home){if(conf.isMew){var ttmp = data.find('aside').html();data.find('aside').remove();data.removeClass('head liveticker');if (data.find('figure').html()=='') {data.find('p').addClass('line');}data.find('p').append(''+ttmp+'');}else{if(data.find('.images').html() === ' '){data.find('.images').remove();}var indexer = article_json[i].items[index].id;data.attr('id','lnsfwid'+indexer);}if(news_container.find('#lns_wrapper_'+article_json[i].items[index].id).html() === ''){news_container.find('#lns_wrapper_'+article_json[i].items[index].id).append(data);}if(!conf.isMew && news_container.find('#lns_wrapper_'+article_json[i].items[index].id + ' .block-line').length ');TFT.Ext.FOL.cloneBySep('#'+data.attr('id'),'teaserListPromo');}else if(conf.isMew && typeof last_seen_teaser_id !== 'undefined' && article_json[i].items[index].id === last_seen_teaser_id){myself.mewScrollToLastClicked(i,index);}}else{if(conf.isMew){data.removeClass('liveticker');if(data.find('.fol-twc-inline-wrapper').length > 0){data.find('aside').addClass('twc_feed');data.find('div div').eq(0).addClass('relative').append(data.find('aside'));}}else{if(data.find('.images').html() === ' ' || data.find('.images').length ');if(!conf.isMew){TFT.Ext.FOL.cloneBySep('#'+data.attr('id'),'teaserListPromo');}}}else{if(is_home && typeof article_json[i].items[index + 1] !== 'undefined'){myself.loadSingleArticle(i,index + 1);}}if(!conf.feedData[i].feedLoaded){myself.feedLoadedCallback(i,isMove);}}).fail(function(msg){console.log(msg);if(is_home){var index = this.custom;window.setTimeout(function(){if(typeof article_json[i].items[index + 1] !== 'undefined' && typeof article_json[i].items[index + 1].old === 'undefined'){if($('*[data-vr-contentbox="content'+article_json[i].items[index + 1].id+'"]').length

'+sNoDataText+'

' :''+sNoDataText+'',news_container = $(conf.sSelectorContainer+i);if((!isMew && news_container.find('.ps-itemLNS').length '+conf.feedData[i].place+'');}}},articlesLoadedCallback:function(i,start,end){var myself = this,conf = FOL.Loc.oConfig,news_container = $(conf.sSelectorContainer+i);news_container.find('[id^=progress_indicator]').remove();if(!is_home){if(start === 0 && typeof article_json[i].items[end + 1] !== 'undefined' && typeof article_json[i].items[end + 1].old === 'undefined' && !more_clicked[i]){myself.addMoreButton(i);}else if(typeof article_json[i].items[end] !== 'undefined' && typeof article_json[i].items[end + 1] !== 'undefined' && typeof article_json[i].items[end + 1].old !== 'undefined' && !older_clicked[i]){myself.addOlderButton(i);}window.setTimeout(function(){if($('#loc_container_'+i).find('.more_container').length '+conf.feedData[i].place+'');news_container.append($(''),$('
'));}},loadSingleArticle:function(i,j){var myself = this,conf = FOL.Loc.oConfig,news_container = $(conf.sSelectorContainer+i);$.ajax({url:'/'+article_json[i].items[j].snippetURL,type:'get',dataType:'html',custom:j }).done(function(data){var twc_lat_lng = conf.feedData[i].lat.toFixed(2)+','+conf.feedData[i].lng.toFixed(2);data = data.replace(/(\r\n|\n|\r|\t)/gm,"").replace(/ +(?= )/g,'').replace(//g,'').replace(/xlatx,xlngx/g,twc_lat_lng);var index = this.custom,id;if(data.length !== 0){data = $(data);id = data.find('.ps-itemLNS').attr('id');if(data.find('.images').html() === ' ' || data.find('.images').length Zu Mein Local'),$('
'));}$(data).insertBefore(news_container.find('.link_container'));$('
').insertBefore($(news_container).find('.link_container'));}}}).fail(function(msg){console.log(msg);});},parseArticleJSON:function(i,data,iShowCnt,isMove){var myself = this,conf = FOL.Loc.oConfig,data_len,j,deferreds = [],sSelectorSingleEntry = conf.sSelectorContainer+i+conf.sSelectorEntry,older_count = 0,last_seen_teaser_index,available_articles;older_clicked[i] = false;more_clicked[i] = false;if(typeof last_seen_teaser !== 'undefined'){last_seen_teaser_id = last_seen_teaser.replace(/\D/g,'');if(typeof st_more_clicked !== 'undefined'){more_clicked[i] = st_more_clicked;st_more_clicked = undefined;}if(typeof st_older_clicked !== 'undefined'){older_clicked[i] = st_older_clicked;st_older_clicked = undefined;}}if(data !== null && typeof data.items !== 'undefined' && data.items.length > 0){article_json[i] = data;data_len = article_json[i].items.length;iShowCnt = (data_len > iShowCnt)?iShowCnt:data_len;if(typeof st_loaded !== 'undefined'){iShowCnt = st_loaded;st_loaded = undefined;}article_json[i].items = sortJSON(article_json[i].items);for(j=0;j available_articles)?available_articles - shown_articles:conf.iShowMore;myself.loadArticles(i,false,shown_articles,shown_articles + range);}else if(shown_articles >= available_articles){myself.addOlderButton(i);}if($(conf.sSelectorContainer+i+' .more_container').length){$(conf.sSelectorContainer+i+' .more_container').remove();}},showOlder:function(i) {var myself = this,conf = FOL.Loc.oConfig,shown_articles = $(conf.sSelectorContainer+i).find('[id^=lns_wrapper_]').length,available_articles = conf.feedData[i].itemsCount,range;older_clicked[i] = true;if(shown_articles =conf.iShowMore)?conf.iShowMore:available_articles - shown_articles;myself.loadArticles(i,false,shown_articles,shown_articles + range);}if($(conf.sSelectorContainer+i+' .older_container').length){$(conf.sSelectorContainer+i+' .older_container').remove();}},addMoreButton:function(i) {var myself = this,conf = FOL.Loc.oConfig,sHtmlMoreButton = '';$(conf.sSelectorContainer+i + ' .older_container,' + conf.sSelectorContainer+i + ' .more_container').remove();pause_scroll_event_handler = true;$(conf.sSelectorContainer+i).append(sHtmlMoreButton);$(conf.sSelectorContainer+i+' .more_container .bluebutton').on('click',function() {FOL.Loc.Localfeed.showMore(i);});},addOlderButton:function(i){var myself = this,conf = FOL.Loc.oConfig,sHtmlOlderButton = '';$(conf.sSelectorContainer+i + ' .older_container,' + conf.sSelectorContainer+i + ' .more_container').remove();pause_scroll_event_handler = true;$(conf.sSelectorContainer+i).append(sHtmlOlderButton);$(conf.sSelectorContainer+i+' .older_container .bluebutton').on('click',function() {FOL.Loc.Localfeed.showOlder(i);});}};TFT.Ext.FOL.LocalfeedStorage = {get:function(ident) {var myself = this;var temp = null;TFT.Core.Console.log('TFT.Ext.FOL.LocalfeedStorage','get:"'+ident+'"','info');if (local_storage_availability && localStorage.getItem(ident) !== null) {TFT.Core.Console.log('TFT.Ext.FOL.LocalfeedStorage','get from local storage','info');try{temp = localStorage.getItem(ident);}catch(e){console.log(e);localStorage.clear();temp = myself.getFromCookie(ident);}}else {temp = myself.getFromCookie(ident);}return temp;},getFromCookie:function(ident){TFT.Core.Console.log('TFT.Ext.FOL.LocalfeedStorage','getFromCookie:"'+ident+'"','info');var myself = this;var temp = null;temp = $.cookie(ident);return temp;}};FOL.Loc.WrapHTML = function(i,place,isMew) {var sHtml = '';if (isMew) {sHtml += '
Lädt...
';sHtml += '
';}else {sHtml += '
';sHtml += '
';sHtml += '
';sHtml += '
'+place+'
';sHtml += '
Lädt...
';sHtml += '
';sHtml += '
';sHtml += ' ';sHtml += '';}return sHtml;};TFT.Ext.FOL.Localfeed = {initUpdate:function() {var conf = FOL.Loc.oConfig;if (conf.isFeedPage){FOL.Loc.Localfeed.initUpdate();}}};function init_local_personal_news(){if(typeof init_google_maps_places === 'undefined'){FOL.Loc.init();}}function setIntervalX(callback,delay,repetitions){var x = 0,intervalID = window.setInterval(function (){callback();if (++x === repetitions || scrolled) {window.clearInterval(intervalID);}},delay);}function scroll_to_position(offset_top,pause_scroll){pause_scroll = pause_scroll || false;if(isMew){var articles = $('article');articles.addClass('not_clickable');setTimeout(function(){articles.removeClass('not_clickable');},2000);}$('html,body').animate({scrollTop:offset_top - 50,scrollLeft:0 },800,function() {$('html,body').clearQueue();if(pause_scroll){pause_scroll_event_handler = false;}});}function find_index_by_key_value(arraytosearch,key,valuetosearch){for (var i = 0;i -1 || document.domain.indexOf('m-dev') > -1)?25000000:172800);for(k=0;k 0)?false:true,older_clicked = [],more_clicked = [],locations_feed_initialized_lpn = false,login_attempt = false,login_feedback = false,c_event = isMew?'touchend':'click',link_clicked = false,scrolled = false,last_seen_teaser,last_seen_teaser_id,st_loaded,st_more_clicked,st_older_clicked,article_json = [],pause_scroll_event_handler = true;var init_when_visible = function(){var el = $('#regio_locations'),el2 = $('#regio_locations_loader'),top_of_element,bottom_of_screen = $(window).scrollTop() + $(window).height();if(el2.length){top_of_element = (el.position().top > el2.position().top)?el.position().top:el2.position().top;}else{top_of_element = el.position().top;}if((bottom_of_screen > top_of_element)){window.removeEventListener('scroll',init_when_visible,false);if(typeof init_google_maps_places === 'undefined' && !locations_feed_initialized_lpn){locations_feed_initialized_lpn = true;FOL.Loc.init();}else{wait_for_locations_init();}}};if(!is_home){$(window).scroll(function(){var active_feed_container = $('.myLocalFeedBoxSingleContainer:visible'),window_scroll_top = $(window).scrollTop(),document_height = $(document).height(),lns_controls = $('#lns_controls'),shown_articles;if(active_feed_container.length > 0){if(!isMew){if(window_scroll_top > active_feed_container.position().top + 100 && window_scroll_top (active_feed_container.position().top - 100)){lns_controls.removeClass('hidden');}else{lns_controls.addClass('hidden');}}if(!pause_scroll_event_handler && active_feed_container.find('.more_container').length = (active_feed_container.position().top + active_feed_container.height() - 200) || window_scroll_top >= (document_height - 850)){if(typeof article_json[feed_container_index] !== 'undefined' && typeof article_json[feed_container_index].items !== 'undefined'){shown_articles = (isMew)?active_feed_container.find('article').length:active_feed_container.find('.ps-itemLNS').length;pause_scroll_event_handler = true;window.setTimeout(function(){pause_scroll_event_handler = false;},1000);if(typeof FOL.Loc !== 'undefined' && typeof FOL.Loc.oConfig !== 'undefined' && typeof FOL.Loc.oConfig.feedData[feed_container_index] !== 'undefined'){if(shown_articles (FOL.Loc.oConfig.feedData[feed_container_index].itemsCount - FOL.Loc.oConfig.feedData[feed_container_index].oldCount) && shown_articles
Fotocredits:

dpa/Christian Charisius, colourbox.com, kange_one - Fotolia, Stadt Bad Münstereife, Passt24, Feuerwehr München / Facebook, FOCUS Online, Käuferportal (2)
Alle Inhalte, insbesondere die Texte und Bilder von Agenturen, sind urheberrechtlich geschützt und dürfen nur im Rahmen der gewöhnlichen Nutzung des Angebots vervielfältigt, verbreitet oder sonst genutzt werden.
Weitere Online-Angebote sowie Partner der BurdaForward GmbH:

AMICA    CINEMA    FIT FOR FUN    Patientus    TV SPIELFILM    Playboy    BUNTE    Haus+Garten    ELLE    freundin    Mein schöner Garten    Super Illu    Guter Rat    HolidayCheck    jameda    Freizeitrevue    Lisa    Lisa Freundeskreis    Burdastyle    InStyle    Computeruniverse    Cyberport    Das Kochrezept    Mietwagen Check    TV Today    zoover    edelight    StylesYouLove   
Weitere BurdaForward Angebote:
© FOCUS Online 1996-2017