diff --git a/plugins/embed/gui-resources/scripts/js/build/themes/zeit-solo.js b/plugins/embed/gui-resources/scripts/js/build/themes/zeit-solo.js index ed4e92a32..53a2b2818 100644 --- a/plugins/embed/gui-resources/scripts/js/build/themes/zeit-solo.js +++ b/plugins/embed/gui-resources/scripts/js/build/themes/zeit-solo.js @@ -1,2 +1,2 @@ liveblog.define("plugins",{}),liveblog.define("plugins/pagination",["plugins","lib/utils"],function(e,a){return e.pagination=function(){a.dispatcher.once("initialize.posts-view",function(e){e.collection.clearPaginationParams(),liveblog.limit&&(e.collection.syncParams.pagination.limit=parseInt(liveblog.limit,10)),e.flags.loadingNextPage=!1,e.updateNextPageOffset=function(){this.collection.syncParams.pagination.offset=this.collection.length},e.topPage=function(){return delete this.collection.syncParams.pagination["order.end"],this.collection.syncParams.pagination.offset=0,this.collection.fetchPage({reset:!0})},e.nextPage=function(){if(!this.flags.loadingNextPage&&this.hasNextPage()){a.dispatcher.trigger("loading.posts-view",this),this.flags.loadingNextPage=!0,this.updateNextPageOffset();var e=this;return this.collection.fetchPage().done(function(){e.flags.loadingNextPage=!1,a.dispatcher.trigger("loaded.posts-view",e)})}},e.hasNextPage=function(){return this.collection.length96?e-87:e>64?e-29:e-48}function i(e){var i,t=0,n=e.split("."),r=n[0],o=n[1]||"",c=1,s=0,l=1;for(45===e.charCodeAt(0)&&(t=1,l=-1),t;ti;i++)e[i]=Math.round((e[i-1]||0)+6e4*e[i]);e[a-1]=1/0}function r(e,a){var i,t=[];for(i=0;i').helper("i18n",a,{},{msgid:"Load more posts ..."}).write("")}function s(e,a){return a=a.shiftBlocks(u),e.write('')}function l(e,a){return a=a.shiftBlocks(u),e.write('data-gimme="posts.nextPage"')}e.register("themeBase/plugins/after-button-pagination",a); -var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return a}(),{render:function(a,i){return e.render("themeBase/plugins/after-button-pagination",a,i)}}}),liveblog.define("tmpl!themeBase/plugins/before-button-pagination",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(u),e.partial(i,a,null)}function i(e,a){return a=a.shiftBlocks(u),e.reference(a.get(["baseItem"],!1),a,"h")}function t(e,a){return a=a.shiftBlocks(u),e.write("load-next")}function n(e,a){return a=a.shiftBlocks(u),e.block(a.getBlock("loadNext"),a,{block:r},null).block(a.getBlock("loadingNext"),a,{block:o},null)}function r(e,a){return a=a.shiftBlocks(u),e}function o(e,a){return a=a.shiftBlocks(u),e}function c(e,a){return a=a.shiftBlocks(u),e.write('').helper("i18n",a,{},{msgid:"Load top posts"}).write("")}function s(e,a){return a=a.shiftBlocks(u),e.write('')}function l(e,a){return a=a.shiftBlocks(u),e.write('data-gimme="posts.beforePage"')}e.register("themeBase/plugins/before-button-pagination",a);var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return a}(),{render:function(a,i){return e.render("themeBase/plugins/before-button-pagination",a,i)}}}),liveblog.define("plugins/button-pagination",["backbone","plugins","plugins/pagination","dust","lib/utils","lib/helpers/display-toggle","tmpl!themeBase/item/base","tmpl!themeBase/plugins/after-button-pagination","tmpl!themeBase/plugins/before-button-pagination"],function(e,a,i,t,n,r){return delete a.pagination,a["button-pagination"]=function(a){i(a),n.dispatcher.on("initialize.blog-view",function(e){e.clientEvents({'click [data-gimme="posts.to-top"]':"toTop"}),e.toTop=function(){var e=this.$el.offset();window.scrollTo(e.left,e.top)}}),n.dispatcher.once("add-all.posts-view",function(a){var i={};i.baseItem=t.themed("themeBase/item/base"),0===a.$('[data-gimme="posts.beforePage"]').length&&t.renderThemed("themeBase/plugins/before-button-pagination",i,function(i,t){var n=e.$(t);r(n,!1),a.$el.prepend(n)}),0===a.$('[data-gimme="posts.nextPage"]').length&&t.renderThemed("themeBase/plugins/after-button-pagination",i,function(i,t){var n=e.$(t);r(n,!1),a.$el.append(n)})}),n.dispatcher.once("add-all.posts-view",function(e){e.checkNextPage(),e.checkTopPage()}),n.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="posts.nextPage"]':"buttonNextPage",'click [data-gimme="posts.beforePage"]':"buttonTopPage"}),e.checkTopPage=function(){r(this.$('[data-gimme="posts.beforePage"]'),this.hasTopPage())},e.checkNextPage=function(){r(this.$('[data-gimme="posts.nextPage"]'),this.hasNextPage()),n.dispatcher.trigger("pagination-next-updated.posts-view",this)},e.buttonNextPage=function(){e.flags.buttonNextPage=!0;var a=e.$('[data-gimme="posts.nextPage"]');a.addClass("loading"),e.nextPage().done(function(){e.flags.buttonNextPage=!1,a.removeClass("loading"),e.checkNextPage()})},e.buttonTopPage=function(){var a=e.$('[data-gimme="posts.beforePage"]');a.addClass("loading"),e.flags.topPage=!1,e.topPage().done(function(){a.removeClass("loading"),r(a,!1),e.checkNextPage()})}})},a["button-pagination"]}),function(){var e=[].indexOf||function(e){for(var a=0,i=this.length;i>a;a++)if(a in this&&this[a]===e)return a;return-1},a=[].slice;!function(e,a){return"function"==typeof liveblog.define&&liveblog.define.amd?liveblog.define("waypoints",["jquery"],function(i){return a(i,e)}):a(e.jQuery,e)}(window,function(i,t){var n,r,o,c,s,l,u,A,f,p,m,d,h,g,b,T;return n=i(t),A=e.call(t,"ontouchstart")>=0,c={horizontal:{},vertical:{}},s=1,u={},l="waypoints-context-id",m="resize.waypoints",d="scroll.waypoints",h=1,g="waypoints-waypoint-ids",b="waypoint",T="waypoints",r=function(){function e(e){var a=this;this.$element=e,this.element=e[0],this.didResize=!1,this.didScroll=!1,this.id="context"+s++,this.oldScroll={x:e.scrollLeft(),y:e.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[l]=this.id,u[this.id]=this,e.bind(d,function(){var e;return a.didScroll||A?void 0:(a.didScroll=!0,e=function(){return a.doScroll(),a.didScroll=!1},t.setTimeout(e,i[T].settings.scrollThrottle))}),e.bind(m,function(){var e;return a.didResize?void 0:(a.didResize=!0,e=function(){return i[T]("refresh"),a.didResize=!1},t.setTimeout(e,i[T].settings.resizeThrottle))})}return e.prototype.doScroll=function(){var e,a=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!A||e.vertical.oldScroll&&e.vertical.newScroll||i[T]("refresh"),i.each(e,function(e,t){var n,r,o;return o=[],r=t.newScroll>t.oldScroll,n=r?t.forward:t.backward,i.each(a.waypoints[e],function(e,a){var i,n;return t.oldScroll<(i=a.offset)&&i<=t.newScroll?o.push(a):t.newScroll<(n=a.offset)&&n<=t.oldScroll?o.push(a):void 0}),o.sort(function(e,a){return e.offset-a.offset}),r||o.reverse(),i.each(o,function(e,a){return a.options.continuous||e===o.length-1?a.trigger([n]):void 0})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,a,t,n=this;return t=i.isWindow(this.element),a=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:t?0:a.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:a.top,contextScroll:t?0:this.oldScroll.y,contextDimension:t?i[T]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},i.each(e,function(e,a){return i.each(n.waypoints[e],function(e,t){var n,r,o,c,s;return n=t.options.offset,o=t.offset,r=i.isWindow(t.element)?0:t.$element.offset()[a.offsetProp],i.isFunction(n)?n=n.apply(t.element):"string"==typeof n&&(n=parseFloat(n),t.options.offset.indexOf("%")>-1&&(n=Math.ceil(a.contextDimension*n/100))),t.offset=r-a.contextOffset+a.contextScroll-n,t.options.onlyOnScroll&&null!=o||!t.enabled?void 0:null!==o&&o<(c=a.oldScroll)&&c<=t.offset?t.trigger([a.backward]):null!==o&&o>(s=a.oldScroll)&&s>=t.offset?t.trigger([a.forward]):null===o&&a.oldScroll>=t.offset?t.trigger([a.forward]):void 0})})},e.prototype.checkEmpty=function(){return i.isEmptyObject(this.waypoints.horizontal)&&i.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([m,d].join(" ")),delete u[this.id]):void 0},e}(),o=function(){function e(e,a,t){var n,r;"bottom-in-view"===t.offset&&(t.offset=function(){var e;return e=i[T]("viewportHeight"),i.isWindow(a.element)||(e=a.$element.height()),e-i(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=t.horizontal?"horizontal":"vertical",this.callback=t.handler,this.context=a,this.enabled=t.enabled,this.id="waypoints"+h++,this.offset=null,this.options=t,a.waypoints[this.axis][this.id]=this,c[this.axis][this.id]=this,n=null!=(r=this.element[g])?r:[],n.push(this.id),this.element[g]=n}return e.prototype.trigger=function(e){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},e.prototype.destroy=function(){return delete c[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},e.getWaypointsByElement=function(e){var a,t;return(t=e[g])?(a=i.extend({},c.horizontal,c.vertical),i.map(t,function(e){return a[e]})):[]},e}(),p={init:function(e,a){var t;return a=i.extend({},i.fn[b].defaults,a),null==(t=a.handler)&&(a.handler=e),this.each(function(){var e,t,n,c;return e=i(this),n=null!=(c=a.context)?c:i.fn[b].defaults.context,i.isWindow(n)||(n=e.closest(n)),n=i(n),t=u[n[0][l]],t||(t=new r(n)),new o(e,t,a)}),i[T]("refresh"),this},disable:function(){return p._invoke.call(this,"disable")},enable:function(){return p._invoke.call(this,"enable")},destroy:function(){return p._invoke.call(this,"destroy")},prev:function(e,a){return p._traverse.call(this,e,a,function(e,a,i){return a>0?e.push(i[a-1]):void 0})},next:function(e,a){return p._traverse.call(this,e,a,function(e,a,i){return ae.oldScroll.y})},left:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,a){return a.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,a){return a.offset>e.oldScroll.x})},enable:function(){return f._invoke("enable")},disable:function(){return f._invoke("disable")},destroy:function(){return f._invoke("destroy")},extendFn:function(e,a){return p[e]=a},_invoke:function(e){var a;return a=i.extend({},c.vertical,c.horizontal),i.each(a,function(a,i){return i[e](),!0})},_filter:function(e,a,t){var n,r;return(n=u[i(e)[0][l]])?(r=[],i.each(n.waypoints[a],function(e,a){return t(n,a)?r.push(a):void 0}),r.sort(function(e,a){return e.offset-a.offset}),i.map(r,function(e){return e.element})):[]}},i[T]=function(){var e,i;return i=arguments[0],e=2<=arguments.length?a.call(arguments,1):[],f[i]?f[i].apply(null,e):f.aggregate.call(null,i)},i[T].settings={resizeThrottle:100,scrollThrottle:30},n.on("load.waypoints",function(){return i[T]("refresh")})})}.call(this),liveblog.require.config({paths:{twitterWidgets:"//platform.twitter.com/widgets"},shim:{twitterWidgets:{exports:"twttr"}}}),liveblog.define("plugins/twitter-widgets",["underscore","backbone","plugins","dust","lib/utils"],function(e,a,i,t,n){return i["twitter-widgets"]=function(){if(n.isClient){n.dispatcher.on("before-render.post-view",function(e){"source/twitter"===e.model.get("item")&&(e.parentView()._twitterPosts||(e.parentView()._twitterPosts=[]),e.parentView()._twitterPosts.push(e))}),n.dispatcher.on("add-all.posts-view",function(e){a(e)});var a=function(a){a._twitterPosts&&liveblog.require(["twitterWidgets","waypoints"],function(i){i.ready(function(){e.each(a._twitterPosts,function(e){e.$el.waypoint(function(){var a=e.model.get("Meta").id_str;i.widgets.createTweet(a,e.$el.find(".post-content-full").get(0),function(){e.$el.find(".post-core-content").remove()},{cards:"all"})},{triggerOnce:!0,offset:"120%",context:a.el})}),a._twitterPosts=[]})},function(){})}}},i["twitter-widgets"]}),liveblog.define("lib/helpers/escape-RegExp",[],function(){var e=function(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")};return e}),liveblog.define("plugins/post-hash",["plugins","lib/utils","lib/helpers/escape-RegExp"],function(e,a,i){e["post-hash"]=function(){var e,t=liveblog.hashname?liveblog.hashname:"liveblog.item.id",n=liveblog.hashmark?liveblog.hashmark:"?";e=a.isClient?window.location.href:liveblog.locationHref||"/",a.dispatcher.on("initialize.post-view",function(a){a.permalink=function(r){var o=r&&r.hashMark?r.hashMark:n,c=!1,s=t+"="+parseFloat(a.model.get("Order")),l=liveblog.hashaddition?liveblog.hashaddition:"";if(-1===e.indexOf(o))c=e+o+s+l;else if(-1!==e.indexOf(t+"=")){var u=new RegExp(i(t)+"=[^&#]*");c=e.replace(u,s)}else c=e+"&"+s+l;return c}}),a.dispatcher.on("initialize.posts-view",function(a){var i=e.indexOf(t+"=");-1!==i&&(a.collection.syncParams.pagination["order.end"]=parseFloat(e.substr(i+t.length+1)),a.flags.hasTopPage=!0,a.flags.autoRender=!1)})}}),liveblog.define("lib/helpers/fixed-encodeURIComponent",[],function(){return function(e){return encodeURIComponent(e).replace(/'/g,"%27").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/~/g,"%7E")}}),liveblog.define("lib/helpers/visibility-toggle",[],function(){var e=function(e,a){var i="";return i=void 0!==a?a?"visible":"hidden":"visible"===e.css("visibility")?"hidden":"visible",e.css("visibility",i),"visible"===i?!0:!1};return e}),liveblog.define("theme/scripts/js/config/social-share-plugin",{urls:{pin:"//pinterest.com/pin/create/button/?url=%s&media=%s&description=%s",twt:"//twitter.com/intent/tweet?via=zeitonline&url=%s&text=%s",lin:"//www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&summary=%s",ggl:"//plus.google.com/share?url=%s&t=",email:"mailto:?to=&subject=%s&body=%s",fb:"//www.facebook.com/sharer.php?u=%s",fbImageComp:"&p[images][%s]=%s",whatsapp:"whatsapp://send?text=%s%%20-%%20Live-Blog%%20auf%%20ZEIT%%20ONLINE%%3A%%20%s"},shareWindowSize:{pin:{h:400,w:700},twt:{h:400,w:570},lin:{h:400,w:570},ggl:{h:400,w:570},email:{h:1024,w:768},fb:{h:400,w:570},whatsapp:{h:400,w:570}}}),liveblog.define("tmpl!themeBase/plugins/social-share-anchor",["dust"],function(e){return function(){function a(e,a){return e.write('').helper("i18n",a,{},{msgid:"Share"}).write("")}return e.register("themeBase/plugins/social-share-anchor",a),a}(),{render:function(a,i){return e.render("themeBase/plugins/social-share-anchor",a,i)}}}),liveblog.define("tmpl!themeBase/plugins/social-share",["dust"],function(e){return function(){function a(e,a){return e.write('')}function i(e,a){return e.write('')}return e.register("themeBase/plugins/social-share",a),a}(),{render:function(a,i){return e.render("themeBase/plugins/social-share",a,i)}}}),liveblog.define("theme/scripts/js/plugins/social-share",["backbone","underscore","plugins","lib/utils","dust","lib/gettext","lib/helpers/fixed-encodeURIComponent","lib/helpers/visibility-toggle","theme/scripts/js/config/social-share-plugin","tmpl!themeBase/plugins/social-share-anchor","tmpl!themeBase/plugins/social-share"],function(e,a,i,t,n,r,o,c,s){t.isClient&&(i["social-share"]=function(){t.dispatcher.on("after-render.post-view",function(e){var a={};e.permalink&&"function"==typeof e.permalink&&(a={permalink:e.permalink()}),n.renderThemed("themeBase/plugins/social-share-anchor",a,function(a,i){e.$('[data-gimme="post.social-share-placeholder"]').html(i)})}),t.dispatcher.on("initialize.post-view",function(e){e.clientEvents({'click [data-gimme="post.social"]':"share"}),e.share=function(e){e.preventDefault(),e.stopPropagation();var a,t=this,r=t.$(e.target),o=r.data("initialized");o||(a=i(t),t.socialShareUrls=l(a),n.renderThemed("themeBase/plugins/social-share",u(a),function(e,a){t.$('[data-gimme="post.social-share-placeholder"]').append(a)}),A(t),r.data("initialized",1));var s=t.$('[data-gimme="post.share-social"]'),f=t.$('[data-gimme^="post.share"]');"hidden"===s.css("visibility")&&c(f,!1),c(s)},e.openShareWindow=function(e){e.preventDefault();var a=this.$(e.target).data("gimme"),i=s.shareWindowSize[a].h,t=s.shareWindowSize[a].w,n=this.socialShareUrls[a],r="resizable, height="+i+", width="+t,o=window.open(n,"",r);return o.focus(),!1}});var i=function(a){var i=a.parentView().parentView().model,t=o(i.get("Title")),n=o(a.$(".result-content .result-text:last").text()),c="",l="";a.permalink&&"function"==typeof a.permalink&&(l=a.permalink(),c=o(l));var u=a.$(".result-content img:first").attr("src");u||(u=e.$("img:first").attr("src"));var A="";a.$(".result-content img").each(function(a){A+=r.sprintf(s.fbURLImageComp,[a,e.$(this).attr("src")])});var f=a.model.get("Content");f=f.replace(/<(b|strong|em|i|a)\b[^>]*>(.*?)<\/\1>/gi,"$2"),f=f.replace(/<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/gi,""),f=o(f);var p={pin:[c,u,t],twt:[c,""],lin:[c,t,n],ggl:[c],email:[r.gettext("Check out this Live Blog"),c],fb:[c],permalink:l,whatsapp:[f,c]};return p},l=function(e){var i={};return a.each(e,function(a,t){i[t]=r.sprintf(s.urls[t],e[t])}),i},u=function(e){var a={};return a.whatsappurl=r.sprintf(s.urls.whatsapp,e.whatsapp),a.emailurl=r.sprintf(s.urls.email,e.email),a.permalink=e.permalink,a},A=function(e){var i={};a.each(e.socialShareUrls,function(e,a){i['click [data-gimme="'+a+'"]']="openShareWindow"}),e.clientEvents(i),e.delegateEvents()}})}),liveblog.define("plugins/status",["backbone","plugins","lib/utils","lib/gettext","moment"],function(e,a,i,t,n){return i.isClient?(a.status=function(){i.dispatcher.on("initialize.blog-view",function(e){i.dispatcher.on("after-poller.blog-model conditional-render.blog-view",function(){var a=t.sprintf('',n().milliseconds(),n().format(t.pgettext("moment","status-time")));e.$('[data-gimme="blog.status"]').html(t.sprintf(t.gettext("updated at %s"),a))}),i.dispatcher.on("before-poller.blog-model",function(){e.$('[data-gimme="blog.status"]').html(t.gettext("updating..."))})})},a.status):void 0}),liveblog.define("plugins/wrappup-toggle",["backbone","underscore","plugins","lib/utils","dust"],function(e,a,i,t){var n={hide:"slideUp",show:"slideDown"};t.isClient&&t.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="post.wrapup"]':"wrapupToggle"}),e.wrapupToggle=function(a){var i=e.$(a.target).closest('[data-gimme="post.wrapup"]'),t=i.attr("data-wrapup-open");i.hasClass(t)?(i.removeClass(t),i.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.hide]()):(i.addClass(t),i.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.show]())}})}),liveblog.define("plugins/predefined-types",["plugins","dust","lib/utils"],function(e,a,i){return e["predefined-types"]=function(){i.dispatcher.on("before-render.post-view",function(e){if("posttype/normal"===e.model.get("item")){var i,t=e.model.get("Meta");t["post-predefined-type"]&&(i=t["post-predefined-type"].text.toLowerCase(),a.cache["theme/item/predefined/"+i]&&e.setTemplate("theme/item/predefined/"+i))}})},e["predefined-types"]}),liveblog.define("tmpl!theme/container",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(l),e.partial("themeBase/container",a,null)}function i(e,a){return a=a.shiftBlocks(l),e}function t(e,a){return a=a.shiftBlocks(l),e}function n(e,a){return a=a.shiftBlocks(l),e.write('
').block(a.getBlock("contentTop"),a,{block:r},null).write("
")}function r(e,a){return a=a.shiftBlocks(l),e.block(a.getBlock("status"),a,{block:o},null).block(a.getBlock("statusNewPost"),a,{block:c},null)}function o(e,a){return a=a.shiftBlocks(l),e}function c(e,a){return a=a.shiftBlocks(l),e}function s(e,a){return a=a.shiftBlocks(l),e}e.register("theme/container",a);var l={headerContainer:i,footerContainer:t,contentTopContainer:n,contentBottomContainer:s};return a}(),{render:function(a,i){return e.render("theme/container",a,i)}}}),liveblog.define("tmpl!theme/item/base",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(f),e.partial("themeBase/item/base",a,null)}function i(e,a){return a=a.shiftBlocks(f),e.write('
').block(a.getBlock("header"),a,{block:t},null).write("
")}function t(e,a){return a=a.shiftBlocks(f),e}function n(e,a){return a=a.shiftBlocks(f),e.write('
").block(a.getBlock("shareContainer"),a,{block:o},null)}function r(e,a){return a=a.shiftBlocks(f),e}function o(e,a){return a=a.shiftBlocks(f),e}function c(e,a){return a=a.shiftBlocks(f),e}function s(e,a){return a=a.shiftBlocks(f),e}function l(e,a){return a=a.shiftBlocks(f),e}function u(e,a){return a=a.shiftBlocks(f),e.block(a.getBlock("socialShare"),a,{block:A},null)}function A(e,a){return a=a.shiftBlocks(f),e}e.register("theme/item/base",a);var f={headerContainer:i,footerContainer:n,contentSideContainer:c,header:s,footer:l,share:u};return a}(),{render:function(a,i){return e.render("theme/item/base",a,i)}}}),liveblog.define("tmpl!theme/plugins/social-share",["dust"],function(e){return function(){function a(e,a){return e.write('')}function i(e,a){return e.write('')}function t(e,a){return e.write('')}function n(e,a){return e.write('')}return e.register("theme/plugins/social-share",a),a}(),{render:function(a,i){return e.render("theme/plugins/social-share",a,i)}}}),liveblog.define("tmpl!theme/item/predefined/scorecard",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(t),e.partial("themeBase/item/posttype/base",a,null)}function i(e,a){return a=a.shiftBlocks(t),e.write("scorecard")}e.register("theme/item/predefined/scorecard",a);var t={itemClass:i};return a}(),{render:function(a,i){return e.render("theme/item/predefined/scorecard",a,i)}}}),liveblog.define("themeFile",["plugins/button-pagination","plugins/twitter-widgets","plugins/post-hash","theme/scripts/js/plugins/social-share","plugins/status","plugins/wrappup-toggle","plugins/predefined-types","css!theme/liveblog","tmpl!theme/container","tmpl!theme/item/base","tmpl!theme/plugins/social-share","tmpl!theme/item/predefined/scorecard"],function(){return liveblog.hashmark="?",liveblog.hashaddition="#livedesk-root",{plugins:["button-pagination","twitter-widgets","social-share","status","wrappup-toggle"]}}); \ No newline at end of file +var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return a}(),{render:function(a,i){return e.render("themeBase/plugins/after-button-pagination",a,i)}}}),liveblog.define("tmpl!themeBase/plugins/before-button-pagination",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(u),e.partial(i,a,null)}function i(e,a){return a=a.shiftBlocks(u),e.reference(a.get(["baseItem"],!1),a,"h")}function t(e,a){return a=a.shiftBlocks(u),e.write("load-next")}function n(e,a){return a=a.shiftBlocks(u),e.block(a.getBlock("loadNext"),a,{block:r},null).block(a.getBlock("loadingNext"),a,{block:o},null)}function r(e,a){return a=a.shiftBlocks(u),e}function o(e,a){return a=a.shiftBlocks(u),e}function c(e,a){return a=a.shiftBlocks(u),e.write('').helper("i18n",a,{},{msgid:"Load top posts"}).write("")}function s(e,a){return a=a.shiftBlocks(u),e.write('')}function l(e,a){return a=a.shiftBlocks(u),e.write('data-gimme="posts.beforePage"')}e.register("themeBase/plugins/before-button-pagination",a);var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return a}(),{render:function(a,i){return e.render("themeBase/plugins/before-button-pagination",a,i)}}}),liveblog.define("plugins/button-pagination",["backbone","plugins","plugins/pagination","dust","lib/utils","lib/helpers/display-toggle","tmpl!themeBase/item/base","tmpl!themeBase/plugins/after-button-pagination","tmpl!themeBase/plugins/before-button-pagination"],function(e,a,i,t,n,r){return delete a.pagination,a["button-pagination"]=function(a){i(a),n.dispatcher.on("initialize.blog-view",function(e){e.clientEvents({'click [data-gimme="posts.to-top"]':"toTop"}),e.toTop=function(){var e=this.$el.offset();window.scrollTo(e.left,e.top)}}),n.dispatcher.once("add-all.posts-view",function(a){var i={};i.baseItem=t.themed("themeBase/item/base"),0===a.$('[data-gimme="posts.beforePage"]').length&&t.renderThemed("themeBase/plugins/before-button-pagination",i,function(i,t){var n=e.$(t);r(n,!1),a.$el.prepend(n)}),0===a.$('[data-gimme="posts.nextPage"]').length&&t.renderThemed("themeBase/plugins/after-button-pagination",i,function(i,t){var n=e.$(t);r(n,!1),a.$el.append(n)})}),n.dispatcher.once("add-all.posts-view",function(e){e.checkNextPage(),e.checkTopPage()}),n.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="posts.nextPage"]':"buttonNextPage",'click [data-gimme="posts.beforePage"]':"buttonTopPage"}),e.checkTopPage=function(){r(this.$('[data-gimme="posts.beforePage"]'),this.hasTopPage())},e.checkNextPage=function(){r(this.$('[data-gimme="posts.nextPage"]'),this.hasNextPage()),n.dispatcher.trigger("pagination-next-updated.posts-view",this)},e.buttonNextPage=function(){e.flags.buttonNextPage=!0;var a=e.$('[data-gimme="posts.nextPage"]');a.addClass("loading"),e.nextPage().done(function(){e.flags.buttonNextPage=!1,a.removeClass("loading"),e.checkNextPage()})},e.buttonTopPage=function(){var a=e.$('[data-gimme="posts.beforePage"]');a.addClass("loading"),e.flags.topPage=!1,e.topPage().done(function(){a.removeClass("loading"),r(a,!1),e.checkNextPage()})}})},a["button-pagination"]}),function(){var e=[].indexOf||function(e){for(var a=0,i=this.length;i>a;a++)if(a in this&&this[a]===e)return a;return-1},a=[].slice;!function(e,a){return"function"==typeof liveblog.define&&liveblog.define.amd?liveblog.define("waypoints",["jquery"],function(i){return a(i,e)}):a(e.jQuery,e)}(window,function(i,t){var n,r,o,c,s,l,u,A,f,p,m,d,h,g,b,T;return n=i(t),A=e.call(t,"ontouchstart")>=0,c={horizontal:{},vertical:{}},s=1,u={},l="waypoints-context-id",m="resize.waypoints",d="scroll.waypoints",h=1,g="waypoints-waypoint-ids",b="waypoint",T="waypoints",r=function(){function e(e){var a=this;this.$element=e,this.element=e[0],this.didResize=!1,this.didScroll=!1,this.id="context"+s++,this.oldScroll={x:e.scrollLeft(),y:e.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[l]=this.id,u[this.id]=this,e.bind(d,function(){var e;return a.didScroll||A?void 0:(a.didScroll=!0,e=function(){return a.doScroll(),a.didScroll=!1},t.setTimeout(e,i[T].settings.scrollThrottle))}),e.bind(m,function(){var e;return a.didResize?void 0:(a.didResize=!0,e=function(){return i[T]("refresh"),a.didResize=!1},t.setTimeout(e,i[T].settings.resizeThrottle))})}return e.prototype.doScroll=function(){var e,a=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!A||e.vertical.oldScroll&&e.vertical.newScroll||i[T]("refresh"),i.each(e,function(e,t){var n,r,o;return o=[],r=t.newScroll>t.oldScroll,n=r?t.forward:t.backward,i.each(a.waypoints[e],function(e,a){var i,n;return t.oldScroll<(i=a.offset)&&i<=t.newScroll?o.push(a):t.newScroll<(n=a.offset)&&n<=t.oldScroll?o.push(a):void 0}),o.sort(function(e,a){return e.offset-a.offset}),r||o.reverse(),i.each(o,function(e,a){return a.options.continuous||e===o.length-1?a.trigger([n]):void 0})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,a,t,n=this;return t=i.isWindow(this.element),a=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:t?0:a.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:a.top,contextScroll:t?0:this.oldScroll.y,contextDimension:t?i[T]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},i.each(e,function(e,a){return i.each(n.waypoints[e],function(e,t){var n,r,o,c,s;return n=t.options.offset,o=t.offset,r=i.isWindow(t.element)?0:t.$element.offset()[a.offsetProp],i.isFunction(n)?n=n.apply(t.element):"string"==typeof n&&(n=parseFloat(n),t.options.offset.indexOf("%")>-1&&(n=Math.ceil(a.contextDimension*n/100))),t.offset=r-a.contextOffset+a.contextScroll-n,t.options.onlyOnScroll&&null!=o||!t.enabled?void 0:null!==o&&o<(c=a.oldScroll)&&c<=t.offset?t.trigger([a.backward]):null!==o&&o>(s=a.oldScroll)&&s>=t.offset?t.trigger([a.forward]):null===o&&a.oldScroll>=t.offset?t.trigger([a.forward]):void 0})})},e.prototype.checkEmpty=function(){return i.isEmptyObject(this.waypoints.horizontal)&&i.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([m,d].join(" ")),delete u[this.id]):void 0},e}(),o=function(){function e(e,a,t){var n,r;"bottom-in-view"===t.offset&&(t.offset=function(){var e;return e=i[T]("viewportHeight"),i.isWindow(a.element)||(e=a.$element.height()),e-i(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=t.horizontal?"horizontal":"vertical",this.callback=t.handler,this.context=a,this.enabled=t.enabled,this.id="waypoints"+h++,this.offset=null,this.options=t,a.waypoints[this.axis][this.id]=this,c[this.axis][this.id]=this,n=null!=(r=this.element[g])?r:[],n.push(this.id),this.element[g]=n}return e.prototype.trigger=function(e){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},e.prototype.destroy=function(){return delete c[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},e.getWaypointsByElement=function(e){var a,t;return(t=e[g])?(a=i.extend({},c.horizontal,c.vertical),i.map(t,function(e){return a[e]})):[]},e}(),p={init:function(e,a){var t;return a=i.extend({},i.fn[b].defaults,a),null==(t=a.handler)&&(a.handler=e),this.each(function(){var e,t,n,c;return e=i(this),n=null!=(c=a.context)?c:i.fn[b].defaults.context,i.isWindow(n)||(n=e.closest(n)),n=i(n),t=u[n[0][l]],t||(t=new r(n)),new o(e,t,a)}),i[T]("refresh"),this},disable:function(){return p._invoke.call(this,"disable")},enable:function(){return p._invoke.call(this,"enable")},destroy:function(){return p._invoke.call(this,"destroy")},prev:function(e,a){return p._traverse.call(this,e,a,function(e,a,i){return a>0?e.push(i[a-1]):void 0})},next:function(e,a){return p._traverse.call(this,e,a,function(e,a,i){return ae.oldScroll.y})},left:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,a){return a.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,a){return a.offset>e.oldScroll.x})},enable:function(){return f._invoke("enable")},disable:function(){return f._invoke("disable")},destroy:function(){return f._invoke("destroy")},extendFn:function(e,a){return p[e]=a},_invoke:function(e){var a;return a=i.extend({},c.vertical,c.horizontal),i.each(a,function(a,i){return i[e](),!0})},_filter:function(e,a,t){var n,r;return(n=u[i(e)[0][l]])?(r=[],i.each(n.waypoints[a],function(e,a){return t(n,a)?r.push(a):void 0}),r.sort(function(e,a){return e.offset-a.offset}),i.map(r,function(e){return e.element})):[]}},i[T]=function(){var e,i;return i=arguments[0],e=2<=arguments.length?a.call(arguments,1):[],f[i]?f[i].apply(null,e):f.aggregate.call(null,i)},i[T].settings={resizeThrottle:100,scrollThrottle:30},n.on("load.waypoints",function(){return i[T]("refresh")})})}.call(this),liveblog.require.config({paths:{twitterWidgets:"//platform.twitter.com/widgets"},shim:{twitterWidgets:{exports:"twttr"}}}),liveblog.define("plugins/twitter-widgets",["underscore","backbone","plugins","dust","lib/utils"],function(e,a,i,t,n){return i["twitter-widgets"]=function(){if(n.isClient){n.dispatcher.on("before-render.post-view",function(e){"source/twitter"===e.model.get("item")&&(e.parentView()._twitterPosts||(e.parentView()._twitterPosts=[]),e.parentView()._twitterPosts.push(e))}),n.dispatcher.on("add-all.posts-view",function(e){a(e)});var a=function(a){a._twitterPosts&&liveblog.require(["twitterWidgets","waypoints"],function(i){i.ready(function(){e.each(a._twitterPosts,function(e){e.$el.waypoint(function(){var a=e.model.get("Meta").id_str;i.widgets.createTweet(a,e.$el.find(".post-content-full").get(0),function(){e.$el.find(".post-core-content").remove()},{cards:"all"})},{triggerOnce:!0,offset:"120%",context:a.el})}),a._twitterPosts=[]})},function(){})}}},i["twitter-widgets"]}),liveblog.define("lib/helpers/escape-RegExp",[],function(){var e=function(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")};return e}),liveblog.define("plugins/post-hash",["plugins","lib/utils","lib/helpers/escape-RegExp"],function(e,a,i){e["post-hash"]=function(){var e,t=liveblog.hashname?liveblog.hashname:"liveblog.item.id",n=liveblog.hashmark?liveblog.hashmark:"?";e=a.isClient?window.location.href:liveblog.locationHref||"/",a.dispatcher.on("initialize.post-view",function(a){a.permalink=function(r){var o=r&&r.hashMark?r.hashMark:n,c=!1,s=t+"="+parseFloat(a.model.get("Order")),l=liveblog.hashaddition?liveblog.hashaddition:"";if(-1===e.indexOf(o))c=e+o+s+l;else if(-1!==e.indexOf(t+"=")){var u=new RegExp(i(t)+"=[^&#]*");c=e.replace(u,s)}else c=e+"&"+s+l;return c}}),a.dispatcher.on("initialize.posts-view",function(a){var i=e.indexOf(t+"=");-1!==i&&(a.collection.syncParams.pagination["order.end"]=parseFloat(e.substr(i+t.length+1)),a.flags.hasTopPage=!0,a.flags.autoRender=!1)})}}),liveblog.define("lib/helpers/fixed-encodeURIComponent",[],function(){return function(e){return encodeURIComponent(e).replace(/'/g,"%27").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/~/g,"%7E")}}),liveblog.define("lib/helpers/visibility-toggle",[],function(){var e=function(e,a){var i="";return i=void 0!==a?a?"visible":"hidden":"visible"===e.css("visibility")?"hidden":"visible",e.css("visibility",i),"visible"===i?!0:!1};return e}),liveblog.define("theme/scripts/js/config/social-share-plugin",{urls:{pin:"//pinterest.com/pin/create/button/?url=%s&media=%s&description=%s",twt:"//twitter.com/intent/tweet?via=zeitonline&url=%s&text=%s",lin:"//www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&summary=%s",ggl:"//plus.google.com/share?url=%s&t=",email:"mailto:?to=&subject=%s&body=%s",fb:"//www.facebook.com/sharer.php?u=%s",fbImageComp:"&p[images][%s]=%s",whatsapp:"whatsapp://send?text=%s%%20-%%20Live-Blog%%20auf%%20ZEIT%%20ONLINE%%3A%%20%s"},shareWindowSize:{pin:{h:400,w:700},twt:{h:400,w:570},lin:{h:400,w:570},ggl:{h:400,w:570},email:{h:1024,w:768},fb:{h:400,w:570},whatsapp:{h:400,w:570}}}),liveblog.define("tmpl!themeBase/plugins/social-share-anchor",["dust"],function(e){return function(){function a(e,a){return e.write('').helper("i18n",a,{},{msgid:"Share"}).write("")}return e.register("themeBase/plugins/social-share-anchor",a),a}(),{render:function(a,i){return e.render("themeBase/plugins/social-share-anchor",a,i)}}}),liveblog.define("tmpl!themeBase/plugins/social-share",["dust"],function(e){return function(){function a(e,a){return e.write('')}function i(e,a){return e.write('')}return e.register("themeBase/plugins/social-share",a),a}(),{render:function(a,i){return e.render("themeBase/plugins/social-share",a,i)}}}),liveblog.define("theme/scripts/js/plugins/social-share",["backbone","underscore","plugins","lib/utils","dust","lib/gettext","lib/helpers/fixed-encodeURIComponent","lib/helpers/visibility-toggle","theme/scripts/js/config/social-share-plugin","tmpl!themeBase/plugins/social-share-anchor","tmpl!themeBase/plugins/social-share"],function(e,a,i,t,n,r,o,c,s){t.isClient&&(i["social-share"]=function(){t.dispatcher.on("after-render.post-view",function(e){var a={};e.permalink&&"function"==typeof e.permalink&&(a={permalink:e.permalink()}),n.renderThemed("themeBase/plugins/social-share-anchor",a,function(a,i){e.$('[data-gimme="post.social-share-placeholder"]').html(i)})}),t.dispatcher.on("initialize.post-view",function(e){e.clientEvents({'click [data-gimme="post.social"]':"share"}),e.share=function(e){e.preventDefault(),e.stopPropagation();var a,t=this,r=t.$(e.target),o=r.data("initialized");o||(a=i(t),t.socialShareUrls=l(a),n.renderThemed("themeBase/plugins/social-share",u(a),function(e,a){t.$('[data-gimme="post.social-share-placeholder"]').append(a)}),A(t),r.data("initialized",1));var s=t.$('[data-gimme="post.share-social"]'),f=t.$('[data-gimme^="post.share"]');"hidden"===s.css("visibility")&&c(f,!1),c(s)},e.openShareWindow=function(e){e.preventDefault();var a=this.$(e.target).data("gimme"),i=s.shareWindowSize[a].h,t=s.shareWindowSize[a].w,n=this.socialShareUrls[a],r="resizable, height="+i+", width="+t,o=window.open(n,"",r);return o.focus(),!1}});var i=function(a){var i=a.parentView().parentView().model,t=o(i.get("Title")),n=o(a.$(".result-content .result-text:last").text()),c="",l="";a.permalink&&"function"==typeof a.permalink&&(l=a.permalink(),c=o(l));var u=a.$(".result-content img:first").attr("src");u||(u=e.$("img:first").attr("src"));var A="";a.$(".result-content img").each(function(a){A+=r.sprintf(s.fbURLImageComp,[a,e.$(this).attr("src")])});var f=a.model.get("Content");f=f.replace(/<(b|strong|em|i|a)\b[^>]*>(.*?)<\/\1>/gi,"$2"),f=f.replace(/<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/gi,""),f=f.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,""),f=o(f);var p={pin:[c,u,t],twt:[c,""],lin:[c,t,n],ggl:[c],email:[r.gettext("Check out this Live Blog"),c],fb:[c],permalink:l,whatsapp:[f,c]};return p},l=function(e){var i={};return a.each(e,function(a,t){i[t]=r.sprintf(s.urls[t],e[t])}),i},u=function(e){var a={};return a.whatsappurl=r.sprintf(s.urls.whatsapp,e.whatsapp),a.emailurl=r.sprintf(s.urls.email,e.email),a.permalink=e.permalink,a},A=function(e){var i={};a.each(e.socialShareUrls,function(e,a){i['click [data-gimme="'+a+'"]']="openShareWindow"}),e.clientEvents(i),e.delegateEvents()}})}),liveblog.define("plugins/status",["backbone","plugins","lib/utils","lib/gettext","moment"],function(e,a,i,t,n){return i.isClient?(a.status=function(){i.dispatcher.on("initialize.blog-view",function(e){i.dispatcher.on("after-poller.blog-model conditional-render.blog-view",function(){var a=t.sprintf('',n().milliseconds(),n().format(t.pgettext("moment","status-time")));e.$('[data-gimme="blog.status"]').html(t.sprintf(t.gettext("updated at %s"),a))}),i.dispatcher.on("before-poller.blog-model",function(){e.$('[data-gimme="blog.status"]').html(t.gettext("updating..."))})})},a.status):void 0}),liveblog.define("plugins/wrappup-toggle",["backbone","underscore","plugins","lib/utils","dust"],function(e,a,i,t){var n={hide:"slideUp",show:"slideDown"};t.isClient&&t.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="post.wrapup"]':"wrapupToggle"}),e.wrapupToggle=function(a){var i=e.$(a.target).closest('[data-gimme="post.wrapup"]'),t=i.attr("data-wrapup-open");i.hasClass(t)?(i.removeClass(t),i.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.hide]()):(i.addClass(t),i.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.show]())}})}),liveblog.define("plugins/predefined-types",["plugins","dust","lib/utils"],function(e,a,i){return e["predefined-types"]=function(){i.dispatcher.on("before-render.post-view",function(e){if("posttype/normal"===e.model.get("item")){var i,t=e.model.get("Meta");t["post-predefined-type"]&&(i=t["post-predefined-type"].text.toLowerCase(),a.cache["theme/item/predefined/"+i]&&e.setTemplate("theme/item/predefined/"+i))}})},e["predefined-types"]}),liveblog.define("tmpl!theme/container",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(l),e.partial("themeBase/container",a,null)}function i(e,a){return a=a.shiftBlocks(l),e}function t(e,a){return a=a.shiftBlocks(l),e}function n(e,a){return a=a.shiftBlocks(l),e.write('
').block(a.getBlock("contentTop"),a,{block:r},null).write("
")}function r(e,a){return a=a.shiftBlocks(l),e.block(a.getBlock("status"),a,{block:o},null).block(a.getBlock("statusNewPost"),a,{block:c},null)}function o(e,a){return a=a.shiftBlocks(l),e}function c(e,a){return a=a.shiftBlocks(l),e}function s(e,a){return a=a.shiftBlocks(l),e}e.register("theme/container",a);var l={headerContainer:i,footerContainer:t,contentTopContainer:n,contentBottomContainer:s};return a}(),{render:function(a,i){return e.render("theme/container",a,i)}}}),liveblog.define("tmpl!theme/item/base",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(f),e.partial("themeBase/item/base",a,null)}function i(e,a){return a=a.shiftBlocks(f),e.write('
').block(a.getBlock("header"),a,{block:t},null).write("
")}function t(e,a){return a=a.shiftBlocks(f),e}function n(e,a){return a=a.shiftBlocks(f),e.write('
").block(a.getBlock("shareContainer"),a,{block:o},null)}function r(e,a){return a=a.shiftBlocks(f),e}function o(e,a){return a=a.shiftBlocks(f),e}function c(e,a){return a=a.shiftBlocks(f),e}function s(e,a){return a=a.shiftBlocks(f),e}function l(e,a){return a=a.shiftBlocks(f),e}function u(e,a){return a=a.shiftBlocks(f),e.block(a.getBlock("socialShare"),a,{block:A},null)}function A(e,a){return a=a.shiftBlocks(f),e}e.register("theme/item/base",a);var f={headerContainer:i,footerContainer:n,contentSideContainer:c,header:s,footer:l,share:u};return a}(),{render:function(a,i){return e.render("theme/item/base",a,i)}}}),liveblog.define("tmpl!theme/plugins/social-share",["dust"],function(e){return function(){function a(e,a){return e.write('')}function i(e,a){return e.write('')}function t(e,a){return e.write('')}function n(e,a){return e.write('')}return e.register("theme/plugins/social-share",a),a}(),{render:function(a,i){return e.render("theme/plugins/social-share",a,i)}}}),liveblog.define("tmpl!theme/item/predefined/scorecard",["dust"],function(e){return function(){function a(e,a){return a=a.shiftBlocks(t),e.partial("themeBase/item/posttype/base",a,null)}function i(e,a){return a=a.shiftBlocks(t),e.write("scorecard")}e.register("theme/item/predefined/scorecard",a);var t={itemClass:i};return a}(),{render:function(a,i){return e.render("theme/item/predefined/scorecard",a,i)}}}),liveblog.define("themeFile",["plugins/button-pagination","plugins/twitter-widgets","plugins/post-hash","theme/scripts/js/plugins/social-share","plugins/status","plugins/wrappup-toggle","plugins/predefined-types","css!theme/liveblog","tmpl!theme/container","tmpl!theme/item/base","tmpl!theme/plugins/social-share","tmpl!theme/item/predefined/scorecard"],function(){return liveblog.hashmark="?",liveblog.hashaddition="#livedesk-root",{plugins:["button-pagination","twitter-widgets","social-share","status","wrappup-toggle"]}}); \ No newline at end of file diff --git a/plugins/embed/gui-resources/scripts/js/build/themes/zeit.js b/plugins/embed/gui-resources/scripts/js/build/themes/zeit.js index 19ac51e6a..516069e03 100644 --- a/plugins/embed/gui-resources/scripts/js/build/themes/zeit.js +++ b/plugins/embed/gui-resources/scripts/js/build/themes/zeit.js @@ -1,2 +1,2 @@ liveblog.define("plugins",{}),liveblog.define("plugins/pagination",["plugins","lib/utils"],function(e,i){return e.pagination=function(){i.dispatcher.once("initialize.posts-view",function(e){e.collection.clearPaginationParams(),liveblog.limit&&(e.collection.syncParams.pagination.limit=parseInt(liveblog.limit,10)),e.flags.loadingNextPage=!1,e.updateNextPageOffset=function(){this.collection.syncParams.pagination.offset=this.collection.length},e.topPage=function(){return delete this.collection.syncParams.pagination["order.end"],this.collection.syncParams.pagination.offset=0,this.collection.fetchPage({reset:!0})},e.nextPage=function(){if(!this.flags.loadingNextPage&&this.hasNextPage()){i.dispatcher.trigger("loading.posts-view",this),this.flags.loadingNextPage=!0,this.updateNextPageOffset();var e=this;return this.collection.fetchPage().done(function(){e.flags.loadingNextPage=!1,i.dispatcher.trigger("loaded.posts-view",e)})}},e.hasNextPage=function(){return this.collection.length96?e-87:e>64?e-29:e-48}function a(e){var a,t=0,n=e.split("."),r=n[0],o=n[1]||"",c=1,s=0,l=1;for(45===e.charCodeAt(0)&&(t=1,l=-1),t;ta;a++)e[a]=Math.round((e[a-1]||0)+6e4*e[a]);e[i-1]=1/0}function r(e,i){var a,t=[];for(a=0;a').helper("i18n",i,{},{msgid:"Load more posts ..."}).write("")}function s(e,i){return i=i.shiftBlocks(u),e.write('')}function l(e,i){return i=i.shiftBlocks(u),e.write('data-gimme="posts.nextPage"')}e.register("themeBase/plugins/after-button-pagination",i); -var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return i}(),{render:function(i,a){return e.render("themeBase/plugins/after-button-pagination",i,a)}}}),liveblog.define("tmpl!themeBase/plugins/before-button-pagination",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(u),e.partial(a,i,null)}function a(e,i){return i=i.shiftBlocks(u),e.reference(i.get(["baseItem"],!1),i,"h")}function t(e,i){return i=i.shiftBlocks(u),e.write("load-next")}function n(e,i){return i=i.shiftBlocks(u),e.block(i.getBlock("loadNext"),i,{block:r},null).block(i.getBlock("loadingNext"),i,{block:o},null)}function r(e,i){return i=i.shiftBlocks(u),e}function o(e,i){return i=i.shiftBlocks(u),e}function c(e,i){return i=i.shiftBlocks(u),e.write('').helper("i18n",i,{},{msgid:"Load top posts"}).write("")}function s(e,i){return i=i.shiftBlocks(u),e.write('')}function l(e,i){return i=i.shiftBlocks(u),e.write('data-gimme="posts.beforePage"')}e.register("themeBase/plugins/before-button-pagination",i);var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return i}(),{render:function(i,a){return e.render("themeBase/plugins/before-button-pagination",i,a)}}}),liveblog.define("plugins/button-pagination",["backbone","plugins","plugins/pagination","dust","lib/utils","lib/helpers/display-toggle","tmpl!themeBase/item/base","tmpl!themeBase/plugins/after-button-pagination","tmpl!themeBase/plugins/before-button-pagination"],function(e,i,a,t,n,r){return delete i.pagination,i["button-pagination"]=function(i){a(i),n.dispatcher.on("initialize.blog-view",function(e){e.clientEvents({'click [data-gimme="posts.to-top"]':"toTop"}),e.toTop=function(){var e=this.$el.offset();window.scrollTo(e.left,e.top)}}),n.dispatcher.once("add-all.posts-view",function(i){var a={};a.baseItem=t.themed("themeBase/item/base"),0===i.$('[data-gimme="posts.beforePage"]').length&&t.renderThemed("themeBase/plugins/before-button-pagination",a,function(a,t){var n=e.$(t);r(n,!1),i.$el.prepend(n)}),0===i.$('[data-gimme="posts.nextPage"]').length&&t.renderThemed("themeBase/plugins/after-button-pagination",a,function(a,t){var n=e.$(t);r(n,!1),i.$el.append(n)})}),n.dispatcher.once("add-all.posts-view",function(e){e.checkNextPage(),e.checkTopPage()}),n.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="posts.nextPage"]':"buttonNextPage",'click [data-gimme="posts.beforePage"]':"buttonTopPage"}),e.checkTopPage=function(){r(this.$('[data-gimme="posts.beforePage"]'),this.hasTopPage())},e.checkNextPage=function(){r(this.$('[data-gimme="posts.nextPage"]'),this.hasNextPage()),n.dispatcher.trigger("pagination-next-updated.posts-view",this)},e.buttonNextPage=function(){e.flags.buttonNextPage=!0;var i=e.$('[data-gimme="posts.nextPage"]');i.addClass("loading"),e.nextPage().done(function(){e.flags.buttonNextPage=!1,i.removeClass("loading"),e.checkNextPage()})},e.buttonTopPage=function(){var i=e.$('[data-gimme="posts.beforePage"]');i.addClass("loading"),e.flags.topPage=!1,e.topPage().done(function(){i.removeClass("loading"),r(i,!1),e.checkNextPage()})}})},i["button-pagination"]}),function(){var e=[].indexOf||function(e){for(var i=0,a=this.length;a>i;i++)if(i in this&&this[i]===e)return i;return-1},i=[].slice;!function(e,i){return"function"==typeof liveblog.define&&liveblog.define.amd?liveblog.define("waypoints",["jquery"],function(a){return i(a,e)}):i(e.jQuery,e)}(window,function(a,t){var n,r,o,c,s,l,u,A,f,p,m,d,h,g,b,T;return n=a(t),A=e.call(t,"ontouchstart")>=0,c={horizontal:{},vertical:{}},s=1,u={},l="waypoints-context-id",m="resize.waypoints",d="scroll.waypoints",h=1,g="waypoints-waypoint-ids",b="waypoint",T="waypoints",r=function(){function e(e){var i=this;this.$element=e,this.element=e[0],this.didResize=!1,this.didScroll=!1,this.id="context"+s++,this.oldScroll={x:e.scrollLeft(),y:e.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[l]=this.id,u[this.id]=this,e.bind(d,function(){var e;return i.didScroll||A?void 0:(i.didScroll=!0,e=function(){return i.doScroll(),i.didScroll=!1},t.setTimeout(e,a[T].settings.scrollThrottle))}),e.bind(m,function(){var e;return i.didResize?void 0:(i.didResize=!0,e=function(){return a[T]("refresh"),i.didResize=!1},t.setTimeout(e,a[T].settings.resizeThrottle))})}return e.prototype.doScroll=function(){var e,i=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!A||e.vertical.oldScroll&&e.vertical.newScroll||a[T]("refresh"),a.each(e,function(e,t){var n,r,o;return o=[],r=t.newScroll>t.oldScroll,n=r?t.forward:t.backward,a.each(i.waypoints[e],function(e,i){var a,n;return t.oldScroll<(a=i.offset)&&a<=t.newScroll?o.push(i):t.newScroll<(n=i.offset)&&n<=t.oldScroll?o.push(i):void 0}),o.sort(function(e,i){return e.offset-i.offset}),r||o.reverse(),a.each(o,function(e,i){return i.options.continuous||e===o.length-1?i.trigger([n]):void 0})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,i,t,n=this;return t=a.isWindow(this.element),i=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:t?0:i.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:i.top,contextScroll:t?0:this.oldScroll.y,contextDimension:t?a[T]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},a.each(e,function(e,i){return a.each(n.waypoints[e],function(e,t){var n,r,o,c,s;return n=t.options.offset,o=t.offset,r=a.isWindow(t.element)?0:t.$element.offset()[i.offsetProp],a.isFunction(n)?n=n.apply(t.element):"string"==typeof n&&(n=parseFloat(n),t.options.offset.indexOf("%")>-1&&(n=Math.ceil(i.contextDimension*n/100))),t.offset=r-i.contextOffset+i.contextScroll-n,t.options.onlyOnScroll&&null!=o||!t.enabled?void 0:null!==o&&o<(c=i.oldScroll)&&c<=t.offset?t.trigger([i.backward]):null!==o&&o>(s=i.oldScroll)&&s>=t.offset?t.trigger([i.forward]):null===o&&i.oldScroll>=t.offset?t.trigger([i.forward]):void 0})})},e.prototype.checkEmpty=function(){return a.isEmptyObject(this.waypoints.horizontal)&&a.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([m,d].join(" ")),delete u[this.id]):void 0},e}(),o=function(){function e(e,i,t){var n,r;"bottom-in-view"===t.offset&&(t.offset=function(){var e;return e=a[T]("viewportHeight"),a.isWindow(i.element)||(e=i.$element.height()),e-a(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=t.horizontal?"horizontal":"vertical",this.callback=t.handler,this.context=i,this.enabled=t.enabled,this.id="waypoints"+h++,this.offset=null,this.options=t,i.waypoints[this.axis][this.id]=this,c[this.axis][this.id]=this,n=null!=(r=this.element[g])?r:[],n.push(this.id),this.element[g]=n}return e.prototype.trigger=function(e){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},e.prototype.destroy=function(){return delete c[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},e.getWaypointsByElement=function(e){var i,t;return(t=e[g])?(i=a.extend({},c.horizontal,c.vertical),a.map(t,function(e){return i[e]})):[]},e}(),p={init:function(e,i){var t;return i=a.extend({},a.fn[b].defaults,i),null==(t=i.handler)&&(i.handler=e),this.each(function(){var e,t,n,c;return e=a(this),n=null!=(c=i.context)?c:a.fn[b].defaults.context,a.isWindow(n)||(n=e.closest(n)),n=a(n),t=u[n[0][l]],t||(t=new r(n)),new o(e,t,i)}),a[T]("refresh"),this},disable:function(){return p._invoke.call(this,"disable")},enable:function(){return p._invoke.call(this,"enable")},destroy:function(){return p._invoke.call(this,"destroy")},prev:function(e,i){return p._traverse.call(this,e,i,function(e,i,a){return i>0?e.push(a[i-1]):void 0})},next:function(e,i){return p._traverse.call(this,e,i,function(e,i,a){return ie.oldScroll.y})},left:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,i){return i.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,i){return i.offset>e.oldScroll.x})},enable:function(){return f._invoke("enable")},disable:function(){return f._invoke("disable")},destroy:function(){return f._invoke("destroy")},extendFn:function(e,i){return p[e]=i},_invoke:function(e){var i;return i=a.extend({},c.vertical,c.horizontal),a.each(i,function(i,a){return a[e](),!0})},_filter:function(e,i,t){var n,r;return(n=u[a(e)[0][l]])?(r=[],a.each(n.waypoints[i],function(e,i){return t(n,i)?r.push(i):void 0}),r.sort(function(e,i){return e.offset-i.offset}),a.map(r,function(e){return e.element})):[]}},a[T]=function(){var e,a;return a=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],f[a]?f[a].apply(null,e):f.aggregate.call(null,a)},a[T].settings={resizeThrottle:100,scrollThrottle:30},n.on("load.waypoints",function(){return a[T]("refresh")})})}.call(this),liveblog.require.config({paths:{twitterWidgets:"//platform.twitter.com/widgets"},shim:{twitterWidgets:{exports:"twttr"}}}),liveblog.define("plugins/twitter-widgets",["underscore","backbone","plugins","dust","lib/utils"],function(e,i,a,t,n){return a["twitter-widgets"]=function(){if(n.isClient){n.dispatcher.on("before-render.post-view",function(e){"source/twitter"===e.model.get("item")&&(e.parentView()._twitterPosts||(e.parentView()._twitterPosts=[]),e.parentView()._twitterPosts.push(e))}),n.dispatcher.on("add-all.posts-view",function(e){i(e)});var i=function(i){i._twitterPosts&&liveblog.require(["twitterWidgets","waypoints"],function(a){a.ready(function(){e.each(i._twitterPosts,function(e){e.$el.waypoint(function(){var i=e.model.get("Meta").id_str;a.widgets.createTweet(i,e.$el.find(".post-content-full").get(0),function(){e.$el.find(".post-core-content").remove()},{cards:"all"})},{triggerOnce:!0,offset:"120%",context:i.el})}),i._twitterPosts=[]})},function(){})}}},a["twitter-widgets"]}),liveblog.define("lib/helpers/escape-RegExp",[],function(){var e=function(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")};return e}),liveblog.define("plugins/post-hash",["plugins","lib/utils","lib/helpers/escape-RegExp"],function(e,i,a){e["post-hash"]=function(){var e,t=liveblog.hashname?liveblog.hashname:"liveblog.item.id",n=liveblog.hashmark?liveblog.hashmark:"?";e=i.isClient?window.location.href:liveblog.locationHref||"/",i.dispatcher.on("initialize.post-view",function(i){i.permalink=function(r){var o=r&&r.hashMark?r.hashMark:n,c=!1,s=t+"="+parseFloat(i.model.get("Order")),l=liveblog.hashaddition?liveblog.hashaddition:"";if(-1===e.indexOf(o))c=e+o+s+l;else if(-1!==e.indexOf(t+"=")){var u=new RegExp(a(t)+"=[^&#]*");c=e.replace(u,s)}else c=e+"&"+s+l;return c}}),i.dispatcher.on("initialize.posts-view",function(i){var a=e.indexOf(t+"=");-1!==a&&(i.collection.syncParams.pagination["order.end"]=parseFloat(e.substr(a+t.length+1)),i.flags.hasTopPage=!0,i.flags.autoRender=!1)})}}),liveblog.define("lib/helpers/fixed-encodeURIComponent",[],function(){return function(e){return encodeURIComponent(e).replace(/'/g,"%27").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/~/g,"%7E")}}),liveblog.define("lib/helpers/visibility-toggle",[],function(){var e=function(e,i){var a="";return a=void 0!==i?i?"visible":"hidden":"visible"===e.css("visibility")?"hidden":"visible",e.css("visibility",a),"visible"===a?!0:!1};return e}),liveblog.define("theme/scripts/js/config/social-share-plugin",{urls:{pin:"//pinterest.com/pin/create/button/?url=%s&media=%s&description=%s",twt:"//twitter.com/intent/tweet?via=zeitonline&url=%s&text=%s",lin:"//www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&summary=%s",ggl:"//plus.google.com/share?url=%s&t=",email:"mailto:?to=&subject=%s&body=%s",fb:"//www.facebook.com/sharer.php?u=%s",fbImageComp:"&p[images][%s]=%s",whatsapp:"whatsapp://send?text=%s%%20-%%20Live-Blog%%20auf%%20ZEIT%%20ONLINE%%3A%%20%s"},shareWindowSize:{pin:{h:400,w:700},twt:{h:400,w:570},lin:{h:400,w:570},ggl:{h:400,w:570},email:{h:1024,w:768},fb:{h:400,w:570},whatsapp:{h:400,w:570}}}),liveblog.define("tmpl!themeBase/plugins/social-share-anchor",["dust"],function(e){return function(){function i(e,i){return e.write('').helper("i18n",i,{},{msgid:"Share"}).write("")}return e.register("themeBase/plugins/social-share-anchor",i),i}(),{render:function(i,a){return e.render("themeBase/plugins/social-share-anchor",i,a)}}}),liveblog.define("tmpl!themeBase/plugins/social-share",["dust"],function(e){return function(){function i(e,i){return e.write('')}function a(e,i){return e.write('')}return e.register("themeBase/plugins/social-share",i),i}(),{render:function(i,a){return e.render("themeBase/plugins/social-share",i,a)}}}),liveblog.define("theme/scripts/js/plugins/social-share",["backbone","underscore","plugins","lib/utils","dust","lib/gettext","lib/helpers/fixed-encodeURIComponent","lib/helpers/visibility-toggle","theme/scripts/js/config/social-share-plugin","tmpl!themeBase/plugins/social-share-anchor","tmpl!themeBase/plugins/social-share"],function(e,i,a,t,n,r,o,c,s){t.isClient&&(a["social-share"]=function(){t.dispatcher.on("after-render.post-view",function(e){var i={};e.permalink&&"function"==typeof e.permalink&&(i={permalink:e.permalink()}),n.renderThemed("themeBase/plugins/social-share-anchor",i,function(i,a){e.$('[data-gimme="post.social-share-placeholder"]').html(a)})}),t.dispatcher.on("initialize.post-view",function(e){e.clientEvents({'click [data-gimme="post.social"]':"share"}),e.share=function(e){e.preventDefault(),e.stopPropagation();var i,t=this,r=t.$(e.target),o=r.data("initialized");o||(i=a(t),t.socialShareUrls=l(i),n.renderThemed("themeBase/plugins/social-share",u(i),function(e,i){t.$('[data-gimme="post.social-share-placeholder"]').append(i)}),A(t),r.data("initialized",1));var s=t.$('[data-gimme="post.share-social"]'),f=t.$('[data-gimme^="post.share"]');"hidden"===s.css("visibility")&&c(f,!1),c(s)},e.openShareWindow=function(e){e.preventDefault();var i=this.$(e.target).data("gimme"),a=s.shareWindowSize[i].h,t=s.shareWindowSize[i].w,n=this.socialShareUrls[i],r="resizable, height="+a+", width="+t,o=window.open(n,"",r);return o.focus(),!1}});var a=function(i){var a=i.parentView().parentView().model,t=o(a.get("Title")),n=o(i.$(".result-content .result-text:last").text()),c="",l="";i.permalink&&"function"==typeof i.permalink&&(l=i.permalink(),c=o(l));var u=i.$(".result-content img:first").attr("src");u||(u=e.$("img:first").attr("src"));var A="";i.$(".result-content img").each(function(i){A+=r.sprintf(s.fbURLImageComp,[i,e.$(this).attr("src")])});var f=i.model.get("Content");f=f.replace(/<(b|strong|em|i|a)\b[^>]*>(.*?)<\/\1>/gi,"$2"),f=f.replace(/<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/gi,""),f=o(f);var p={pin:[c,u,t],twt:[c,""],lin:[c,t,n],ggl:[c],email:[r.gettext("Check out this Live Blog"),c],fb:[c],permalink:l,whatsapp:[f,c]};return p},l=function(e){var a={};return i.each(e,function(i,t){a[t]=r.sprintf(s.urls[t],e[t])}),a},u=function(e){var i={};return i.whatsappurl=r.sprintf(s.urls.whatsapp,e.whatsapp),i.emailurl=r.sprintf(s.urls.email,e.email),i.permalink=e.permalink,i},A=function(e){var a={};i.each(e.socialShareUrls,function(e,i){a['click [data-gimme="'+i+'"]']="openShareWindow"}),e.clientEvents(a),e.delegateEvents()}})}),liveblog.define("plugins/status",["backbone","plugins","lib/utils","lib/gettext","moment"],function(e,i,a,t,n){return a.isClient?(i.status=function(){a.dispatcher.on("initialize.blog-view",function(e){a.dispatcher.on("after-poller.blog-model conditional-render.blog-view",function(){var i=t.sprintf('',n().milliseconds(),n().format(t.pgettext("moment","status-time")));e.$('[data-gimme="blog.status"]').html(t.sprintf(t.gettext("updated at %s"),i))}),a.dispatcher.on("before-poller.blog-model",function(){e.$('[data-gimme="blog.status"]').html(t.gettext("updating..."))})})},i.status):void 0}),liveblog.define("plugins/wrappup-toggle",["backbone","underscore","plugins","lib/utils","dust"],function(e,i,a,t){var n={hide:"slideUp",show:"slideDown"};t.isClient&&t.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="post.wrapup"]':"wrapupToggle"}),e.wrapupToggle=function(i){var a=e.$(i.target).closest('[data-gimme="post.wrapup"]'),t=a.attr("data-wrapup-open");a.hasClass(t)?(a.removeClass(t),a.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.hide]()):(a.addClass(t),a.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.show]())}})}),liveblog.define("plugins/predefined-types",["plugins","dust","lib/utils"],function(e,i,a){return e["predefined-types"]=function(){a.dispatcher.on("before-render.post-view",function(e){if("posttype/normal"===e.model.get("item")){var a,t=e.model.get("Meta");t["post-predefined-type"]&&(a=t["post-predefined-type"].text.toLowerCase(),i.cache["theme/item/predefined/"+a]&&e.setTemplate("theme/item/predefined/"+a))}})},e["predefined-types"]}),liveblog.define("tmpl!theme/container",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(l),e.partial("themeBase/container",i,null)}function a(e,i){return i=i.shiftBlocks(l),e}function t(e,i){return i=i.shiftBlocks(l),e}function n(e,i){return i=i.shiftBlocks(l),e.write('
').block(i.getBlock("contentTop"),i,{block:r},null).write("
")}function r(e,i){return i=i.shiftBlocks(l),e.block(i.getBlock("status"),i,{block:o},null).block(i.getBlock("statusNewPost"),i,{block:c},null)}function o(e,i){return i=i.shiftBlocks(l),e}function c(e,i){return i=i.shiftBlocks(l),e}function s(e,i){return i=i.shiftBlocks(l),e}e.register("theme/container",i);var l={headerContainer:a,footerContainer:t,contentTopContainer:n,contentBottomContainer:s};return i}(),{render:function(i,a){return e.render("theme/container",i,a)}}}),liveblog.define("tmpl!theme/item/base",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(M),e.partial("themeBase/item/base",i,null)}function a(e,i){return i=i.shiftBlocks(M),e.write('
').block(i.getBlock("header"),i,{block:t},null).write("
")}function t(e,i){return i=i.shiftBlocks(M),e}function n(e,i){return i=i.shiftBlocks(M),e.write('
").block(i.getBlock("shareContainer"),i,{block:o},null)}function r(e,i){return i=i.shiftBlocks(M),e}function o(e,i){return i=i.shiftBlocks(M),e}function c(e,i){return i=i.shiftBlocks(M),e}function s(e,i){return i=i.shiftBlocks(M),e.write('
').block(i.getBlock("verificationLabel"),i,{block:l},null).block(i.getBlock("splitedTimeContainer"),i,{block:u},null).block(i.getBlock("splitedDateContainer"),i,{block:A},null).write('
').block(i.getBlock("userInfo"),i,{block:f},null).write("
")}function l(e,i){return i=i.shiftBlocks(M),e}function u(e,i){return i=i.shiftBlocks(M),e}function A(e,i){return i=i.shiftBlocks(M),e}function f(e,i){return i=i.shiftBlocks(M),e.block(i.getBlock("userNameContainer"),i,{block:p},null).block(i.getBlock("userAvatar"),i,{block:m},null)}function p(e,i){return i=i.shiftBlocks(M),e}function m(e,i){return i=i.shiftBlocks(M),e}function d(e,i){return i=i.shiftBlocks(M),e}function h(e,i){return i=i.shiftBlocks(M),e.block(i.getBlock("socialShare"),i,{block:g},null)}function g(e,i){return i=i.shiftBlocks(M),e}function b(e,i){return i=i.shiftBlocks(M),e.write('")}function T(e,i){return i=i.shiftBlocks(M),e.write('').reference(i.get(["PublishedOn"],!1),i,"h",["splitted-post-time"]).write("")}e.register("theme/item/base",i);var M={headerContainer:a,footerContainer:n,contentSideContainer:c,header:s,footer:d,share:h,splitedDateContainer:b,splitedTimeContainer:T};return i}(),{render:function(i,a){return e.render("theme/item/base",i,a)}}}),liveblog.define("tmpl!theme/plugins/social-share",["dust"],function(e){return function(){function i(e,i){return e.write('')}function a(e,i){return e.write('')}function t(e,i){return e.write('')}function n(e,i){return e.write('')}return e.register("theme/plugins/social-share",i),i}(),{render:function(i,a){return e.render("theme/plugins/social-share",i,a)}}}),liveblog.define("tmpl!theme/item/predefined/scorecard",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(n),e.partial("themeBase/item/posttype/base",i,null)}function a(e,i){return i=i.shiftBlocks(n),e.write("scorecard")}function t(e,i){return i=i.shiftBlocks(n),e}e.register("theme/item/predefined/scorecard",i);var n={itemClass:a,userInfo:t};return i}(),{render:function(i,a){return e.render("theme/item/predefined/scorecard",i,a)}}}),liveblog.define("themeFile",["plugins/button-pagination","plugins/twitter-widgets","plugins/post-hash","theme/scripts/js/plugins/social-share","plugins/status","plugins/wrappup-toggle","plugins/predefined-types","css!theme/liveblog","tmpl!theme/container","tmpl!theme/item/base","tmpl!theme/plugins/social-share","tmpl!theme/item/predefined/scorecard"],function(){return liveblog.hashmark="?",liveblog.hashaddition="#livedesk-root",{plugins:["button-pagination","twitter-widgets","social-share","status","wrappup-toggle"]}}); \ No newline at end of file +var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return i}(),{render:function(i,a){return e.render("themeBase/plugins/after-button-pagination",i,a)}}}),liveblog.define("tmpl!themeBase/plugins/before-button-pagination",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(u),e.partial(a,i,null)}function a(e,i){return i=i.shiftBlocks(u),e.reference(i.get(["baseItem"],!1),i,"h")}function t(e,i){return i=i.shiftBlocks(u),e.write("load-next")}function n(e,i){return i=i.shiftBlocks(u),e.block(i.getBlock("loadNext"),i,{block:r},null).block(i.getBlock("loadingNext"),i,{block:o},null)}function r(e,i){return i=i.shiftBlocks(u),e}function o(e,i){return i=i.shiftBlocks(u),e}function c(e,i){return i=i.shiftBlocks(u),e.write('').helper("i18n",i,{},{msgid:"Load top posts"}).write("")}function s(e,i){return i=i.shiftBlocks(u),e.write('')}function l(e,i){return i=i.shiftBlocks(u),e.write('data-gimme="posts.beforePage"')}e.register("themeBase/plugins/before-button-pagination",i);var u={itemClass:t,main:n,loadNext:c,loadingNext:s,additionalAttributes:l};return i}(),{render:function(i,a){return e.render("themeBase/plugins/before-button-pagination",i,a)}}}),liveblog.define("plugins/button-pagination",["backbone","plugins","plugins/pagination","dust","lib/utils","lib/helpers/display-toggle","tmpl!themeBase/item/base","tmpl!themeBase/plugins/after-button-pagination","tmpl!themeBase/plugins/before-button-pagination"],function(e,i,a,t,n,r){return delete i.pagination,i["button-pagination"]=function(i){a(i),n.dispatcher.on("initialize.blog-view",function(e){e.clientEvents({'click [data-gimme="posts.to-top"]':"toTop"}),e.toTop=function(){var e=this.$el.offset();window.scrollTo(e.left,e.top)}}),n.dispatcher.once("add-all.posts-view",function(i){var a={};a.baseItem=t.themed("themeBase/item/base"),0===i.$('[data-gimme="posts.beforePage"]').length&&t.renderThemed("themeBase/plugins/before-button-pagination",a,function(a,t){var n=e.$(t);r(n,!1),i.$el.prepend(n)}),0===i.$('[data-gimme="posts.nextPage"]').length&&t.renderThemed("themeBase/plugins/after-button-pagination",a,function(a,t){var n=e.$(t);r(n,!1),i.$el.append(n)})}),n.dispatcher.once("add-all.posts-view",function(e){e.checkNextPage(),e.checkTopPage()}),n.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="posts.nextPage"]':"buttonNextPage",'click [data-gimme="posts.beforePage"]':"buttonTopPage"}),e.checkTopPage=function(){r(this.$('[data-gimme="posts.beforePage"]'),this.hasTopPage())},e.checkNextPage=function(){r(this.$('[data-gimme="posts.nextPage"]'),this.hasNextPage()),n.dispatcher.trigger("pagination-next-updated.posts-view",this)},e.buttonNextPage=function(){e.flags.buttonNextPage=!0;var i=e.$('[data-gimme="posts.nextPage"]');i.addClass("loading"),e.nextPage().done(function(){e.flags.buttonNextPage=!1,i.removeClass("loading"),e.checkNextPage()})},e.buttonTopPage=function(){var i=e.$('[data-gimme="posts.beforePage"]');i.addClass("loading"),e.flags.topPage=!1,e.topPage().done(function(){i.removeClass("loading"),r(i,!1),e.checkNextPage()})}})},i["button-pagination"]}),function(){var e=[].indexOf||function(e){for(var i=0,a=this.length;a>i;i++)if(i in this&&this[i]===e)return i;return-1},i=[].slice;!function(e,i){return"function"==typeof liveblog.define&&liveblog.define.amd?liveblog.define("waypoints",["jquery"],function(a){return i(a,e)}):i(e.jQuery,e)}(window,function(a,t){var n,r,o,c,s,l,u,A,f,p,m,d,h,g,b,T;return n=a(t),A=e.call(t,"ontouchstart")>=0,c={horizontal:{},vertical:{}},s=1,u={},l="waypoints-context-id",m="resize.waypoints",d="scroll.waypoints",h=1,g="waypoints-waypoint-ids",b="waypoint",T="waypoints",r=function(){function e(e){var i=this;this.$element=e,this.element=e[0],this.didResize=!1,this.didScroll=!1,this.id="context"+s++,this.oldScroll={x:e.scrollLeft(),y:e.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[l]=this.id,u[this.id]=this,e.bind(d,function(){var e;return i.didScroll||A?void 0:(i.didScroll=!0,e=function(){return i.doScroll(),i.didScroll=!1},t.setTimeout(e,a[T].settings.scrollThrottle))}),e.bind(m,function(){var e;return i.didResize?void 0:(i.didResize=!0,e=function(){return a[T]("refresh"),i.didResize=!1},t.setTimeout(e,a[T].settings.resizeThrottle))})}return e.prototype.doScroll=function(){var e,i=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!A||e.vertical.oldScroll&&e.vertical.newScroll||a[T]("refresh"),a.each(e,function(e,t){var n,r,o;return o=[],r=t.newScroll>t.oldScroll,n=r?t.forward:t.backward,a.each(i.waypoints[e],function(e,i){var a,n;return t.oldScroll<(a=i.offset)&&a<=t.newScroll?o.push(i):t.newScroll<(n=i.offset)&&n<=t.oldScroll?o.push(i):void 0}),o.sort(function(e,i){return e.offset-i.offset}),r||o.reverse(),a.each(o,function(e,i){return i.options.continuous||e===o.length-1?i.trigger([n]):void 0})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,i,t,n=this;return t=a.isWindow(this.element),i=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:t?0:i.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:i.top,contextScroll:t?0:this.oldScroll.y,contextDimension:t?a[T]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},a.each(e,function(e,i){return a.each(n.waypoints[e],function(e,t){var n,r,o,c,s;return n=t.options.offset,o=t.offset,r=a.isWindow(t.element)?0:t.$element.offset()[i.offsetProp],a.isFunction(n)?n=n.apply(t.element):"string"==typeof n&&(n=parseFloat(n),t.options.offset.indexOf("%")>-1&&(n=Math.ceil(i.contextDimension*n/100))),t.offset=r-i.contextOffset+i.contextScroll-n,t.options.onlyOnScroll&&null!=o||!t.enabled?void 0:null!==o&&o<(c=i.oldScroll)&&c<=t.offset?t.trigger([i.backward]):null!==o&&o>(s=i.oldScroll)&&s>=t.offset?t.trigger([i.forward]):null===o&&i.oldScroll>=t.offset?t.trigger([i.forward]):void 0})})},e.prototype.checkEmpty=function(){return a.isEmptyObject(this.waypoints.horizontal)&&a.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([m,d].join(" ")),delete u[this.id]):void 0},e}(),o=function(){function e(e,i,t){var n,r;"bottom-in-view"===t.offset&&(t.offset=function(){var e;return e=a[T]("viewportHeight"),a.isWindow(i.element)||(e=i.$element.height()),e-a(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=t.horizontal?"horizontal":"vertical",this.callback=t.handler,this.context=i,this.enabled=t.enabled,this.id="waypoints"+h++,this.offset=null,this.options=t,i.waypoints[this.axis][this.id]=this,c[this.axis][this.id]=this,n=null!=(r=this.element[g])?r:[],n.push(this.id),this.element[g]=n}return e.prototype.trigger=function(e){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},e.prototype.destroy=function(){return delete c[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},e.getWaypointsByElement=function(e){var i,t;return(t=e[g])?(i=a.extend({},c.horizontal,c.vertical),a.map(t,function(e){return i[e]})):[]},e}(),p={init:function(e,i){var t;return i=a.extend({},a.fn[b].defaults,i),null==(t=i.handler)&&(i.handler=e),this.each(function(){var e,t,n,c;return e=a(this),n=null!=(c=i.context)?c:a.fn[b].defaults.context,a.isWindow(n)||(n=e.closest(n)),n=a(n),t=u[n[0][l]],t||(t=new r(n)),new o(e,t,i)}),a[T]("refresh"),this},disable:function(){return p._invoke.call(this,"disable")},enable:function(){return p._invoke.call(this,"enable")},destroy:function(){return p._invoke.call(this,"destroy")},prev:function(e,i){return p._traverse.call(this,e,i,function(e,i,a){return i>0?e.push(a[i-1]):void 0})},next:function(e,i){return p._traverse.call(this,e,i,function(e,i,a){return ie.oldScroll.y})},left:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,i){return i.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=t),f._filter(e,"horizontal",function(e,i){return i.offset>e.oldScroll.x})},enable:function(){return f._invoke("enable")},disable:function(){return f._invoke("disable")},destroy:function(){return f._invoke("destroy")},extendFn:function(e,i){return p[e]=i},_invoke:function(e){var i;return i=a.extend({},c.vertical,c.horizontal),a.each(i,function(i,a){return a[e](),!0})},_filter:function(e,i,t){var n,r;return(n=u[a(e)[0][l]])?(r=[],a.each(n.waypoints[i],function(e,i){return t(n,i)?r.push(i):void 0}),r.sort(function(e,i){return e.offset-i.offset}),a.map(r,function(e){return e.element})):[]}},a[T]=function(){var e,a;return a=arguments[0],e=2<=arguments.length?i.call(arguments,1):[],f[a]?f[a].apply(null,e):f.aggregate.call(null,a)},a[T].settings={resizeThrottle:100,scrollThrottle:30},n.on("load.waypoints",function(){return a[T]("refresh")})})}.call(this),liveblog.require.config({paths:{twitterWidgets:"//platform.twitter.com/widgets"},shim:{twitterWidgets:{exports:"twttr"}}}),liveblog.define("plugins/twitter-widgets",["underscore","backbone","plugins","dust","lib/utils"],function(e,i,a,t,n){return a["twitter-widgets"]=function(){if(n.isClient){n.dispatcher.on("before-render.post-view",function(e){"source/twitter"===e.model.get("item")&&(e.parentView()._twitterPosts||(e.parentView()._twitterPosts=[]),e.parentView()._twitterPosts.push(e))}),n.dispatcher.on("add-all.posts-view",function(e){i(e)});var i=function(i){i._twitterPosts&&liveblog.require(["twitterWidgets","waypoints"],function(a){a.ready(function(){e.each(i._twitterPosts,function(e){e.$el.waypoint(function(){var i=e.model.get("Meta").id_str;a.widgets.createTweet(i,e.$el.find(".post-content-full").get(0),function(){e.$el.find(".post-core-content").remove()},{cards:"all"})},{triggerOnce:!0,offset:"120%",context:i.el})}),i._twitterPosts=[]})},function(){})}}},a["twitter-widgets"]}),liveblog.define("lib/helpers/escape-RegExp",[],function(){var e=function(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")};return e}),liveblog.define("plugins/post-hash",["plugins","lib/utils","lib/helpers/escape-RegExp"],function(e,i,a){e["post-hash"]=function(){var e,t=liveblog.hashname?liveblog.hashname:"liveblog.item.id",n=liveblog.hashmark?liveblog.hashmark:"?";e=i.isClient?window.location.href:liveblog.locationHref||"/",i.dispatcher.on("initialize.post-view",function(i){i.permalink=function(r){var o=r&&r.hashMark?r.hashMark:n,c=!1,s=t+"="+parseFloat(i.model.get("Order")),l=liveblog.hashaddition?liveblog.hashaddition:"";if(-1===e.indexOf(o))c=e+o+s+l;else if(-1!==e.indexOf(t+"=")){var u=new RegExp(a(t)+"=[^&#]*");c=e.replace(u,s)}else c=e+"&"+s+l;return c}}),i.dispatcher.on("initialize.posts-view",function(i){var a=e.indexOf(t+"=");-1!==a&&(i.collection.syncParams.pagination["order.end"]=parseFloat(e.substr(a+t.length+1)),i.flags.hasTopPage=!0,i.flags.autoRender=!1)})}}),liveblog.define("lib/helpers/fixed-encodeURIComponent",[],function(){return function(e){return encodeURIComponent(e).replace(/'/g,"%27").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/~/g,"%7E")}}),liveblog.define("lib/helpers/visibility-toggle",[],function(){var e=function(e,i){var a="";return a=void 0!==i?i?"visible":"hidden":"visible"===e.css("visibility")?"hidden":"visible",e.css("visibility",a),"visible"===a?!0:!1};return e}),liveblog.define("theme/scripts/js/config/social-share-plugin",{urls:{pin:"//pinterest.com/pin/create/button/?url=%s&media=%s&description=%s",twt:"//twitter.com/intent/tweet?via=zeitonline&url=%s&text=%s",lin:"//www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&summary=%s",ggl:"//plus.google.com/share?url=%s&t=",email:"mailto:?to=&subject=%s&body=%s",fb:"//www.facebook.com/sharer.php?u=%s",fbImageComp:"&p[images][%s]=%s",whatsapp:"whatsapp://send?text=%s%%20-%%20Live-Blog%%20auf%%20ZEIT%%20ONLINE%%3A%%20%s"},shareWindowSize:{pin:{h:400,w:700},twt:{h:400,w:570},lin:{h:400,w:570},ggl:{h:400,w:570},email:{h:1024,w:768},fb:{h:400,w:570},whatsapp:{h:400,w:570}}}),liveblog.define("tmpl!themeBase/plugins/social-share-anchor",["dust"],function(e){return function(){function i(e,i){return e.write('').helper("i18n",i,{},{msgid:"Share"}).write("")}return e.register("themeBase/plugins/social-share-anchor",i),i}(),{render:function(i,a){return e.render("themeBase/plugins/social-share-anchor",i,a)}}}),liveblog.define("tmpl!themeBase/plugins/social-share",["dust"],function(e){return function(){function i(e,i){return e.write('')}function a(e,i){return e.write('')}return e.register("themeBase/plugins/social-share",i),i}(),{render:function(i,a){return e.render("themeBase/plugins/social-share",i,a)}}}),liveblog.define("theme/scripts/js/plugins/social-share",["backbone","underscore","plugins","lib/utils","dust","lib/gettext","lib/helpers/fixed-encodeURIComponent","lib/helpers/visibility-toggle","theme/scripts/js/config/social-share-plugin","tmpl!themeBase/plugins/social-share-anchor","tmpl!themeBase/plugins/social-share"],function(e,i,a,t,n,r,o,c,s){t.isClient&&(a["social-share"]=function(){t.dispatcher.on("after-render.post-view",function(e){var i={};e.permalink&&"function"==typeof e.permalink&&(i={permalink:e.permalink()}),n.renderThemed("themeBase/plugins/social-share-anchor",i,function(i,a){e.$('[data-gimme="post.social-share-placeholder"]').html(a)})}),t.dispatcher.on("initialize.post-view",function(e){e.clientEvents({'click [data-gimme="post.social"]':"share"}),e.share=function(e){e.preventDefault(),e.stopPropagation();var i,t=this,r=t.$(e.target),o=r.data("initialized");o||(i=a(t),t.socialShareUrls=l(i),n.renderThemed("themeBase/plugins/social-share",u(i),function(e,i){t.$('[data-gimme="post.social-share-placeholder"]').append(i)}),A(t),r.data("initialized",1));var s=t.$('[data-gimme="post.share-social"]'),f=t.$('[data-gimme^="post.share"]');"hidden"===s.css("visibility")&&c(f,!1),c(s)},e.openShareWindow=function(e){e.preventDefault();var i=this.$(e.target).data("gimme"),a=s.shareWindowSize[i].h,t=s.shareWindowSize[i].w,n=this.socialShareUrls[i],r="resizable, height="+a+", width="+t,o=window.open(n,"",r);return o.focus(),!1}});var a=function(i){var a=i.parentView().parentView().model,t=o(a.get("Title")),n=o(i.$(".result-content .result-text:last").text()),c="",l="";i.permalink&&"function"==typeof i.permalink&&(l=i.permalink(),c=o(l));var u=i.$(".result-content img:first").attr("src");u||(u=e.$("img:first").attr("src"));var A="";i.$(".result-content img").each(function(i){A+=r.sprintf(s.fbURLImageComp,[i,e.$(this).attr("src")])});var f=i.model.get("Content");f=f.replace(/<(b|strong|em|i|a)\b[^>]*>(.*?)<\/\1>/gi,"$2"),f=f.replace(/<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/gi,""),f=f.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,""),f=o(f);var p={pin:[c,u,t],twt:[c,""],lin:[c,t,n],ggl:[c],email:[r.gettext("Check out this Live Blog"),c],fb:[c],permalink:l,whatsapp:[f,c]};return p},l=function(e){var a={};return i.each(e,function(i,t){a[t]=r.sprintf(s.urls[t],e[t])}),a},u=function(e){var i={};return i.whatsappurl=r.sprintf(s.urls.whatsapp,e.whatsapp),i.emailurl=r.sprintf(s.urls.email,e.email),i.permalink=e.permalink,i},A=function(e){var a={};i.each(e.socialShareUrls,function(e,i){a['click [data-gimme="'+i+'"]']="openShareWindow"}),e.clientEvents(a),e.delegateEvents()}})}),liveblog.define("plugins/status",["backbone","plugins","lib/utils","lib/gettext","moment"],function(e,i,a,t,n){return a.isClient?(i.status=function(){a.dispatcher.on("initialize.blog-view",function(e){a.dispatcher.on("after-poller.blog-model conditional-render.blog-view",function(){var i=t.sprintf('',n().milliseconds(),n().format(t.pgettext("moment","status-time")));e.$('[data-gimme="blog.status"]').html(t.sprintf(t.gettext("updated at %s"),i))}),a.dispatcher.on("before-poller.blog-model",function(){e.$('[data-gimme="blog.status"]').html(t.gettext("updating..."))})})},i.status):void 0}),liveblog.define("plugins/wrappup-toggle",["backbone","underscore","plugins","lib/utils","dust"],function(e,i,a,t){var n={hide:"slideUp",show:"slideDown"};t.isClient&&t.dispatcher.once("initialize.posts-view",function(e){e.clientEvents({'click [data-gimme="post.wrapup"]':"wrapupToggle"}),e.wrapupToggle=function(i){var a=e.$(i.target).closest('[data-gimme="post.wrapup"]'),t=a.attr("data-wrapup-open");a.hasClass(t)?(a.removeClass(t),a.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.hide]()):(a.addClass(t),a.nextUntil('[data-gimme="post.wrapup"],[data-gimme="posts.nextPage"]')[n.show]())}})}),liveblog.define("plugins/predefined-types",["plugins","dust","lib/utils"],function(e,i,a){return e["predefined-types"]=function(){a.dispatcher.on("before-render.post-view",function(e){if("posttype/normal"===e.model.get("item")){var a,t=e.model.get("Meta");t["post-predefined-type"]&&(a=t["post-predefined-type"].text.toLowerCase(),i.cache["theme/item/predefined/"+a]&&e.setTemplate("theme/item/predefined/"+a))}})},e["predefined-types"]}),liveblog.define("tmpl!theme/container",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(l),e.partial("themeBase/container",i,null)}function a(e,i){return i=i.shiftBlocks(l),e}function t(e,i){return i=i.shiftBlocks(l),e}function n(e,i){return i=i.shiftBlocks(l),e.write('
').block(i.getBlock("contentTop"),i,{block:r},null).write("
")}function r(e,i){return i=i.shiftBlocks(l),e.block(i.getBlock("status"),i,{block:o},null).block(i.getBlock("statusNewPost"),i,{block:c},null)}function o(e,i){return i=i.shiftBlocks(l),e}function c(e,i){return i=i.shiftBlocks(l),e}function s(e,i){return i=i.shiftBlocks(l),e}e.register("theme/container",i);var l={headerContainer:a,footerContainer:t,contentTopContainer:n,contentBottomContainer:s};return i}(),{render:function(i,a){return e.render("theme/container",i,a)}}}),liveblog.define("tmpl!theme/item/base",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(M),e.partial("themeBase/item/base",i,null)}function a(e,i){return i=i.shiftBlocks(M),e.write('
').block(i.getBlock("header"),i,{block:t},null).write("
")}function t(e,i){return i=i.shiftBlocks(M),e}function n(e,i){return i=i.shiftBlocks(M),e.write('
").block(i.getBlock("shareContainer"),i,{block:o},null)}function r(e,i){return i=i.shiftBlocks(M),e}function o(e,i){return i=i.shiftBlocks(M),e}function c(e,i){return i=i.shiftBlocks(M),e}function s(e,i){return i=i.shiftBlocks(M),e.write('
').block(i.getBlock("verificationLabel"),i,{block:l},null).block(i.getBlock("splitedTimeContainer"),i,{block:u},null).block(i.getBlock("splitedDateContainer"),i,{block:A},null).write('
').block(i.getBlock("userInfo"),i,{block:f},null).write("
")}function l(e,i){return i=i.shiftBlocks(M),e}function u(e,i){return i=i.shiftBlocks(M),e}function A(e,i){return i=i.shiftBlocks(M),e}function f(e,i){return i=i.shiftBlocks(M),e.block(i.getBlock("userNameContainer"),i,{block:p},null).block(i.getBlock("userAvatar"),i,{block:m},null)}function p(e,i){return i=i.shiftBlocks(M),e}function m(e,i){return i=i.shiftBlocks(M),e}function d(e,i){return i=i.shiftBlocks(M),e}function h(e,i){return i=i.shiftBlocks(M),e.block(i.getBlock("socialShare"),i,{block:g},null)}function g(e,i){return i=i.shiftBlocks(M),e}function b(e,i){return i=i.shiftBlocks(M),e.write('")}function T(e,i){return i=i.shiftBlocks(M),e.write('').reference(i.get(["PublishedOn"],!1),i,"h",["splitted-post-time"]).write("")}e.register("theme/item/base",i);var M={headerContainer:a,footerContainer:n,contentSideContainer:c,header:s,footer:d,share:h,splitedDateContainer:b,splitedTimeContainer:T};return i}(),{render:function(i,a){return e.render("theme/item/base",i,a)}}}),liveblog.define("tmpl!theme/plugins/social-share",["dust"],function(e){return function(){function i(e,i){return e.write('')}function a(e,i){return e.write('')}function t(e,i){return e.write('')}function n(e,i){return e.write('')}return e.register("theme/plugins/social-share",i),i}(),{render:function(i,a){return e.render("theme/plugins/social-share",i,a)}}}),liveblog.define("tmpl!theme/item/predefined/scorecard",["dust"],function(e){return function(){function i(e,i){return i=i.shiftBlocks(n),e.partial("themeBase/item/posttype/base",i,null)}function a(e,i){return i=i.shiftBlocks(n),e.write("scorecard")}function t(e,i){return i=i.shiftBlocks(n),e}e.register("theme/item/predefined/scorecard",i);var n={itemClass:a,userInfo:t};return i}(),{render:function(i,a){return e.render("theme/item/predefined/scorecard",i,a)}}}),liveblog.define("themeFile",["plugins/button-pagination","plugins/twitter-widgets","plugins/post-hash","theme/scripts/js/plugins/social-share","plugins/status","plugins/wrappup-toggle","plugins/predefined-types","css!theme/liveblog","tmpl!theme/container","tmpl!theme/item/base","tmpl!theme/plugins/social-share","tmpl!theme/item/predefined/scorecard"],function(){return liveblog.hashmark="?",liveblog.hashaddition="#livedesk-root",{plugins:["button-pagination","twitter-widgets","social-share","status","wrappup-toggle"]}}); \ No newline at end of file diff --git a/plugins/embed/gui-themes/themes/zeit-solo/scripts/js/plugins/social-share.js b/plugins/embed/gui-themes/themes/zeit-solo/scripts/js/plugins/social-share.js index c2c32b08d..46fa298a6 100644 --- a/plugins/embed/gui-themes/themes/zeit-solo/scripts/js/plugins/social-share.js +++ b/plugins/embed/gui-themes/themes/zeit-solo/scripts/js/plugins/social-share.js @@ -124,6 +124,8 @@ define([ content = content.replace(/<(b|strong|em|i|a)\b[^>]*>(.*?)<\/\1>/ig, '$2'); // all other tags should be removed including the text they're wrapped around. content = content.replace(/<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/ig, ''); + // clear also single tags + content = content.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/ig, ''); // encode it properly. content = fixedEncodeURIComp(content); diff --git a/plugins/embed/gui-themes/themes/zeit/scripts/js/plugins/social-share.js b/plugins/embed/gui-themes/themes/zeit/scripts/js/plugins/social-share.js index c2c32b08d..db7d3a2a5 100644 --- a/plugins/embed/gui-themes/themes/zeit/scripts/js/plugins/social-share.js +++ b/plugins/embed/gui-themes/themes/zeit/scripts/js/plugins/social-share.js @@ -122,8 +122,10 @@ define([ // on zeit request: // , , , and tags should be removed while leaving the text they're wrapped around. content = content.replace(/<(b|strong|em|i|a)\b[^>]*>(.*?)<\/\1>/ig, '$2'); - // all other tags should be removed including the text they're wrapped around. + // all other tags should be removed including the text they're wrapped around. content = content.replace(/<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/ig, ''); + // clear also single tags + content = content.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/ig, ''); // encode it properly. content = fixedEncodeURIComp(content);