#p2p-liveblog{width:100%}.clear:after{content:””;display:table;clear:both}img{max-width:100%}figure{margin:0}#p2p-liveblog i,#p2p-liveblog em{font-weight:inherit;font-style:italic}#p2p-liveblog b,#p2p-liveblog strong{font-weight:bold;font-style:inherit}.liveblog-dateline{line-height:13px;margin:0 0 22px;font:10px Arial,sans-serif;text-transform:uppercase;letter-spacing:.5px;color:#666;display:block;clear:left}.trb_article_articleHeader ul.trb_article_relatedTopics,.trb_article_articleHeader div.trb_article_breadcrumbs{display:none}.lb-advert-container{display:none}.lb-advert-container.rendered{display:block;border-top:1px solid #ccc;margin-top:35px;padding-top:45px;padding-bottom:10px;text-align:center}.lb-advert-container .lb-advert{margin:0 auto}#p2p-liveblog[data-ad-type=”snt”] .lb-advert-container[data-lb-ad-device=”mobile”] .lb-advert{max-width:300px}#p2p-liveblog[data-ad-type=”snt”] .lb-advert-container[data-lb-ad-device=”desktop”] .lb-advert{max-width:650px}#p2p-liveblog[data-ad-type=”google”] .lb-advert-container .lb-advert{max-width:970px}.lb-advert-container .lb-advert:after{content:’ADVERTISEMENT’;font:10px Arial,sans-serif;line-height:11px;color:#999;min-height:11px;padding-top:8px;display:block;text-align:left;text-transform:uppercase}header.trb_article_articleHeader ul.trb_article_relatedTopics{display:none}#p2p-liveblog .trb_article_articleHeader_head{width:100%}#p2p-liveblog h1.trb_article_title_text a{color:#000000}#p2p-liveblog h1.trb_article_title_text a:hover{color:#666666}#liveblog-description h2{font-size:27px;line-height:30px}#liveblog-description p:first-child,#liveblog-description ul:first-child,#liveblog-description ol:first-child{margin-top:0}#liveblog-description p:last-child,#liveblog-description ul:last-child,#liveblog-description ol:last-child{margin-bottom:0}#liveblog-description{margin-bottom:15px}#liveblog-description{font-family:Arial,sans-serif}#liveblog-description li,#liveblog-description p{font-family:Arial,sans-serif}#liveblog-description #liveblog-description-photo{float:right;max-width:23%;margin-left:2%;margin-bottom:10px}#liveblog-description #liveblog-description-photo img{max-height:200px}#p2p-liveblog ul,#p2p-liveblog ol{margin:0 0 1em 0;padding:0;width:100%;font-size:15px;line-height:24px}#p2p-liveblog ul li:before,#p2p-liveblog ol li:before{display:none;content:none}#p2p-liveblog ol>li,#p2p-liveblog ul>li{margin:0 0 5px 35px;padding:0;display:list-item;list-style-position:outside}#p2p-liveblog ol>li{list-style-type:decimal}#p2p-liveblog ul>li{list-style-type:disc}#p2p-liveblog ul p,#p2p-liveblog ol p{margin:0}#p2p-liveblog ol>li:last-child,#p2p-liveblog ul>li:last-child{margin-bottom:0}#p2p-liveblog ul#tag-list{margin:0}#p2p-liveblog ul#tag-list li{list-style:none;margin:0;float:left}#p2p-liveblog ul#tag-list li input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:0;background:none;font-size:14px;padding:4px 6px;outline:0;margin:3px;cursor:pointer;color:#4591b8;line-height:1.4em;border:1px solid #4591b8;border-radius:5px}#p2p-liveblog ul#tag-list li input.active{border-color:#4591B8;background-color:#4591B8;color:white}#p2p-liveblog ul#tag-list li input:hover:not(.active){background-color:#76AFCD;border-color:#76AFCD;color:#ffffff}#p2p-liveblog select#tag-select{font-family:Arial,sans-serif;font-size:17px;line-height:20px;height:40px;padding:8px 4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin:0 15px;width:calc(100% – 30px);box-sizing:border-box}.lb-card .lb-card-tags{margin-bottom:13px;font-family:Arial,sans-serif;font-size:12px}.lb-card .lb-card-tags span.lb-card-tag{padding:2px 2px;color:#4591b8;margin-right:3px;display:inline-block;line-height:1.4em;border-bottom:2px solid #4591b8}div#p2p-liveblog[data-tags-enabled=”False”] #card-tags{display:none}#p2p-liveblog[data-tags-enabled=’True’] .lb-card .lb-card-tags span.lb-card-tag:hover{color:#99B1BE;border-bottom-color:#99B1BE;cursor:pointer}.lb-card-share-menu{font-family:trb_Icons;font-size:22px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.lb-card-share-menu:after,.lb-card-share-menu:before{content:””;display:table;clear:both}.lb-card-share-menu a{display:inline-block;float:right;padding:8px 8px 0 8px;color:#999;font-size:20px}.lb-card-share-menu a:hover{color:black;font-family:trb_Icons}.lb-card-share-menu a.lb-card-share-url:after{content:”l”;font-family:trb_Icons}.lb-card-share-menu a.lb-card-share-tweet:after{content:”t”;font-family:trb_Icons}.lb-card-share-menu a.lb-card-share-facebook:after{content:”f”;font-family:trb_Icons}body.position-relative{position:relative}#liveblog-modal-container{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:900000000000000000000;color:white;display:none}#liveblog-modal{display:none;top:50%;left:50%;width:420px;min-height:18em;margin-top:-110px;margin-left:-210px;border:1px solid #999;background-color:#E6E6E6;position:fixed;padding:20px;box-sizing:border-box;text-align:center;border-radius:5px;box-shadow:0 3px 3px rgba(0,0,0,0.5);background:white}#liveblog-modal h2{color:#333;font-size:24px;margin:0;margin-top:20px;text-align:center}#liveblog-modal .modal-url-input{width:100%;box-sizing:border-box;padding:6px;font-size:12px;text-align:center;border:1px solid #ccc;box-shadow:0 2px 2px 0 #ccc;margin-top:30px;margin-bottom:20px;border-radius:4px;cursor:pointer}#liveblog-modal .modal-url-input:hover{color:#4697d0}#liveblog-modal #modal-copy-btn{padding:10px;display:inline-block;background-color:#4697d0;text-transform:uppercase;cursor:pointer;border:1px solid #ccc;box-shadow:0 2px 2px 0 #ccc;color:#eee}#liveblog-modal #modal-copy-btn:hover{background-color:#306992}#liveblog-modal p{font-family:Arial,sans-serif;color:#333;font-size:14px;line-height:18px}#liveblog-modal-close{font-family:trb_Icons;display:block;position:absolute;right:-10px;top:-10px;padding:10px}#liveblog-modal-close:after{font-family:trb_Icons;content:”\\e4″;position:absolute;right:-10px;top:-10px;padding:10px;border-radius:50%;box-shadow:0 2px 2px 0 #999;background-color:#FF5443;font-size:14px;color:#eee;cursor:pointer}#liveblog-modal-close:hover:after{color:#eee;background-color:#D44537}h2.lb-card-headline{font-family:’LAHeadline’;color:#000;margin-top:5px;margin-bottom:9px;font-size:26px;line-height:30px}h2.lb-card-headline a{color:#000}h2.lb-card-headline a:hover{color:#666}.lb-card-body .lb-widget{margin:15px 0}.lb-card-body .lb-widget:first-child{margin-top:0}.lb-card-body .lb-widget:last-child{margin-bottom:0}.lb-widget-image figure a.image-link{display:block}.lb-widget-image a img:hover{opacity:.8;-moz-backface-visibility:hidden}.lb-widget-image figure img{width:100%;display:block}.lb-widget-image figure.lb-image-size-large{width:100%}.lb-widget-image figure.lb-image-size-medium{float:right;width:calc(50% – 10px);padding-left:10px}.lb-widget-image figure.lb-image-size-small{float:right;width:calc(33% – 10px);padding-left:10px;padding-bottom:10px}.lb-widget-image figcaption{font-family:Arial,sans-serif;font-size:11px;line-height:16px;color:#999;margin:5px 0 0 0}.lb-widget.lb-widget-quote{margin-top:25px}.lb-widget-quote .lb-quote{max-width:560px}.lb-widget-quote .lb-quote p{font-family:’Belizio’,Georgia,serif;font-size:22px;line-height:28px;width:100%;color:#000000;margin-bottom:0;margin-top:0}.lb-widget-quote .lb-quote:before{font-family:’Belizio’,Georgia,serif;content:”\\201C”;line-height:26px;font-size:43px;display:block;margin-top:6px}.lb-widget-quote .lb-quote:after{font-family:’Belizio’,Georgia,serif;content:”\\201D”;line-height:40px;font-size:43px;display:block;margin-top:20px;margin-bottom:0px}.lb-widget-quote .lb-quote-credit{font-family:’Belizio’,Georgia,serif;font-size:15px;margin:0}.lb-widget-quote .lb-quote-credit:before{content:”\\2014 “}.lb-widget-quote em,.lb-widget-quote i{font-style:italic}.lb-widget-text p{width:100%}.lb-widget-text p:first-child{margin-top:0}.lb-widget-text p:last-child{margin-bottom:0}.lb-responsive-embed{width:100%;position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.lb-responsive-embed iframe,.lb-responsive-embed object,.lb-responsive-embed video,.lb-responsive-embed span,.lb-responsive-embed embed{position:absolute;top:0;left:0;width:100%;height:100%}.lb-widget-instagram{max-width:460px}.lb-widget-readmore p{margin-top:0;width:100%;margin-bottom:0}.lb-widget-readmore a{font-family:Georgia,serif;font-size:14px;line-height:16px;font-weight:bold;text-transform:uppercase}.lb-widget-readmore a:after{content:’ >’;display:inline-block;font-family:Georgia,serif;font-size:14px;line-height:16px;font-weight:bold;text-transform:uppercase;margin-left:5px}.lb-widget-facebook{max-width:505px;overflow:hidden}.lb-widget-facebook .lb-embed-facebook.fb_iframe_widget{display:block!important;padding:0px}.lb-widget-facebook .lb-embed-facebook.fb_iframe_widget>span{display:block!important;margin:0 auto}.lb-embed-tweet twitterwidget{margin-top:0!important;margin-bottom:0!important;margin-left:auto;margin-right:auto}#bottom-button,#top-button{text-transform:uppercase;background:#fcfcfc;font:bold 10px/14px Arial,sans-serif;text-align:center;padding:20px;border:solid #ddd 1px;cursor:pointer}#bottom-button:hover,#top-button:hover{text-decoration:underline}#liveblog-update-flag{color:white;right:10%;z-index:90;top:0px;position:fixed;text-transform:uppercase;background:#ff5443;font:bold 10px/14px Arial,sans-serif;text-align:center;padding:15px 20px;line-height:10px;cursor:pointer}@media (max-width:970px){#p2p-liveblog[data-ad-type=”google”] .lb-advert-container .lb-advert{max-width:728px}}@media (max-width:728px){#p2p-liveblog[data-ad-type=”google”] .lb-advert-container .lb-advert{max-width:320px}}@media (max-width:699px) and (min-width:0px){#liveblog-description #liveblog-description-photo{display:none}#liveblog-update-flag{text-align:left;right:0;width:100%;top:40px;padding:15px;left:0;background:#ccc;color:black;border-top:1px solid #ff5443;border-bottom:1px solid #ff5443}#liveblog-modal{width:66%;left:17%;margin:0;top:75px}#p2p-liveblog[data-lb-ad-type=”google”] .lb-advert-container .lb-advert{max-width:320px}}@media (max-width:480px){.lb-widget-image figure.lb-image-size-medium{float:none;width:100%;padding-left:0}.lb-widget-image figure.lb-image-size-small{width:calc(50% – 10px)}}@media screen and (max-width:320px){.trb_mainContent .trb_article_page_body{width:100%}}.lb-hide-mobile{display:inherit}.lb-hide-desktop{display:none}article.lb-card{border-top:1px solid #ccc;margin-top:35px;padding-top:35px;max-width:100%;padding:35px 40px 0 40px;box-sizing:border-box}article.lb-card:first-child{margin-top:15px}.lb-card .lb-card-contents{max-width:800px;margin:0 auto}#lb-topper{max-width:800px;width:100%;margin:0 auto}header.lb-card-header{min-height:10px;color:#333;font-family:Arial,sans-serif;text-transform:none;position:relative;box-sizing:border-box;padding:0 20px;margin-bottom:13px;width:100%}header .lb-card-timestamp,header .lb-card-dateline{font-size:11px;line-height:11px;text-transform:uppercase;display:block;margin-bottom:8px}header .lb-card-timestamp{font-weight:bold}header h2.lb-card-headline{font-size:30px;line-height:34px;margin-top:0;margin-bottom:7px}header .lb-header-table,header .lb-header-table tbody,header .lb-header-table tbody tr,header .lb-header-table tbody tr td{padding:0;margin:0;border-collapse:collapse}header .lb-header-table{width:100%}header .lb-card-bylines address{font-size:13px;line-height:13px;font-weight:normal;font-style:normal;display:inline;width:100%}header .lb-card-bylines address a{color:#FF5443;font-weight:normal}header .lb-card-bylines address a:hover{color:#F47E70}header[data-has-byline-photo=”True”] .lb-card-bylines address{display:block;margin:0;line-height:10px}header[data-has-byline-photo=”True”] .lb-card-bylines address:after{content:””;display:table;clear:both}header[data-has-byline-photo=”True”] .lb-card-bylines address img{border-radius:3px;width:100%;clear:both;display:block;margin-bottom:10px;box-sizing:border-box;width:50px;float:left;margin-right:10px;margin-bottom:0}header[data-has-byline-photo=”True”] address span{padding:20px 0;display:block}header .lb-card-share-menu{width:80px}header .lb-card-share-menu a{float:left;margin-top:0;padding:0 4px}header .lb-card-share-menu a:first-child{padding-left:0}header .lb-card-share-menu a:last-child{padding-right:0}header .lb-card-share-menu a.card-share-facebook{padding-left:0}#bottom-button-container{margin-top:15px}.lb-card-body .lb-widget{margin:15px auto;max-width:600px;width:100%;box-sizing:border-box}.lb-card-body .lb-widget-image,.lb-card-body .lb-widget-video{padding:0 20px;max-width:100%}@media (max-width:860px){.trb_article{padding-left:0!important;padding-right:0!important}.trb_article_articleHeader,.trb_mainContent_copyright,.trb_cm{padding-left:20px!important;padding-right:20px!important}.lb-widget,.lb-widget.lb-widget-image figcaption,#liveblog-description,#top-button-container,#bottom-button-container,#lb-topper-meta{padding-left:20px;padding-right:20px}.lb-widget.lb-widget-image,.lb-widget.lb-widget-video{padding-left:0;padding-right:0}.lb-widget.lb-widget-image figure.lb-size-small{padding-left:10px;padding-right:20px}.lb-widget.lb-widget-image figure.lb-size-small figcaption{padding-left:0;padding-right:0}.lb-hide-mobile{display:none}.lb-hide-desktop{display:inherit}article.lb-card{padding:30px 0 0 0}.lb-card-contents{width:100%;float:none}header.lb-card-header{padding-right:20px;padding-left:20px;padding-bottom:0}}
#detail-lb-card:after{display:none}#latest-updates-separator.hidden{display:none}#latest-updates-separator{text-align:center;margin-top:60px;margin-bottom:60px}#latest-updates-separator hr{border-top:1px solid #DDD;border-bottom:0;margin-bottom:40px}#latest-updates-separator svg{width:24px;height:24px}#latest-updates-separator h4{font-family:Arial;font-size:16px;color:#C40000;line-height:18px;margin-bottom:2px}
<article
id="lb-card-”
class=”lb-card clear lb-tag-”
style=”display:none;”
data-card-id=””
data-relative-web-url=””
data-order=””>
Share this update
0) { %>
<option value="-tag-reset" selected>All updates
<option value="” selected>
https://cdns.gigya.com/js/socialize.js?apiKey=2_COh26GgfZDptreu0iQ9aknzT_Ig861qYxOHZVxizrZMTn81vygTB-ptN33wgCtrj
http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
http://d1qqc1e9kvmdh8.cloudfront.net/js/underscore-1.5.2-min.js
https://sadmin.brightcove.com/js/BrightcoveExperiences.js
http://platform.instagram.com/en_US/embeds.js
//launch.newsinc.com/js/embed.js
//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5
https://www.googletagservices.com/tag/js/gpt.js
(function(window,document){var PERMISSION_GRANTED=’granted’,PERMISSION_DENIED=’denied’,PERMISSION_UNKNOWN=’unknown’;var a=[],iv,i=0;function addEvent(el,name,func){if(name.match(” “)){var a=name.split(‘ ‘);for(var i=0;i<a.length;i++){addEvent(el,a[i],func);}}
if(el.addEventListener){el.removeEventListener(name,func,false);el.addEventListener(name,func,false);}
else{el.detachEvent('on'+name,func);el.attachEvent('on'+name,func);}}
function check_permission(){if(("external"in window)&&("msIsSiteMode"in window.external)){return window.external.msIsSiteMode()?PERMISSION_GRANTED:PERMISSION_UNKNOWN;}
else if("webkitNotifications"in window){return window.webkitNotifications.checkPermission()===0?PERMISSION_GRANTED:PERMISSION_DENIED;}
else if("mozNotification"in window.navigator){return PERMISSION_GRANTED;}
else{return PERMISSION_UNKNOWN;}}
function update_permission(){window.Notification.permission=check_permission();return window.Notification.permission;}
if(!Object(window.Notification).permission){window.Notification=function(message,options){if(!(this instanceof window.Notification)){return new window.Notification(message,options);}
var n,self=this;options=options||{};this.body=options.body||'';this.icon=options.icon||'';this.lang=options.lang||'';this.tag=options.tag||'';this.close=function(){if(Object(n).close){n.close();}
self.onclose();};this.onclick=function(){};this.onclose=function(){};if(("external"in window)&&("msIsSiteMode"in window.external)){if(window.external.msIsSiteMode()){window.external.msSiteModeActivate();if(this.icon){window.external.msSiteModeSetIconOverlay(this.icon,message);}}}
else if("webkitNotifications"in window){if(window.webkitNotifications.checkPermission()===0){n=window.webkitNotifications.createNotification(this.icon,message,this.body);n.show();n.onclick=function(){self.onclick();window.focus();setTimeout(function(){n.cancel();},1000);};}}
else if("mozNotification"in window.navigator){var m=window.navigator.mozNotification.createNotification(message,this.body,this.icon);m.show();}};window.Notification.requestPermission=function(cb){cb=cb||function(){};if(("external"in window)&&("msIsSiteMode"in window.external)){try{if(!window.external.msIsSiteMode()){window.external.msAddSiteMode();cb(PERMISSION_UNKNOWN);}}
catch(e){}
cb(update_permission());}
else if("webkitNotifications"in window){window.webkitNotifications.requestPermission(function(){cb(update_permission());});}
else{cb(update_permission());}};update_permission();}})(window,document);(function(){"use strict";var setup=function liveblog(){var _this=this;var n=null;this.initialize=function(){this.hash_object=this.hash_querystring_to_object(window.location.hash);this.container=$('#p2p-liveblog');this.card_list_container=$('#liveblog-container');if(typeof location.origin==='undefined')
location.origin=location.protocol+'//'+location.host;this.market_base_url=location.origin;this.market_twitter_handle=$.trim($("meta[name='twitter:site']").attr("content")).replace('@','');this.liveblog_slug=this.container.attr("data-liveblog-slug");this.relative_web_url=this.container.attr("data-relative-web-url");this.liveblog_url=this.market_base_url+this.relative_web_url;this.jsonp_url=this.container.data('jsonpurl');this.is_update_countdown_active=false;this.counter_length=11;this.counter=null;this.unloaded_new_card_count=0;this.unloaded_older_card_count=0;this.top_visible_card_order=null;this.bottom_visible_card_order=null;this.page_size=10;_this.notifications={};this.detail_anchor_card_id=parseInt(window.location.hash.substring(1));this.view_type=isNaN(this.detail_anchor_card_id)?"list":"detail_anchor";this.is_list_view=this.view_type==="list";this.is_detail_anchor_view=this.view_type==="detail_anchor";this.is_detail_htmlstory_view=$("#detail-lb-card").length?true:false;this.tags_enabled=this.container.attr("data-tags-enabled");if(this.tags_enabled=="False"){this.tags_enabled=false;}else{this.tags_enabled=true;}
if(!this.is_detail_htmlstory_view&&_.has(this.hash_object,'lb-tag')&&_this.tags_enabled){this.active_tag=this.hash_object['lb-tag'];this.list_needs_to_be_fitered=true;}
this.card_template=$("#lb-card-template").html();this.top_button_template=$("#top-button-template").html();this.bottom_button_template=$("#bottom-button-template").html();this.modal_template=$('#liveblog-modal').html();this.card_tags_template=$('#card-tags-template').html();this.init_twitter();this.initalize_cards();this.ad_type=this.container.attr("data-ad-type");this.render_ads();$(window).on("resize.lb_ads",_.debounce(function(){_this.render_ads();},500));this.json_last_modified=null;if(this.is_detail_htmlstory_view){_this.detail_htmlstory_card_id=$("#detail-lb-card").data("card-id");_this.create_detail_htmlstory_view();}else{_this.detail_htmlstory_card_id=null;var callback=this.is_list_view?this.create_list_json_callback:this.create_detail_anchor_json_callback;this.update_json_body(callback);}
if(this.is_list_view){if(Notification.permission!=='granted'&&!_this.is_detail_htmlstory_view){Notification.requestPermission();}}
$(window).bind('beforeunload',function(){$.each(_this.notifications,function(i,obj){obj.close();});});};this.start_update_countdown=function(){_this.is_update_countdown_active=true;_this.counter=_this.counter_length;_this.initalize_cards();setInterval(_this.countdown,1000);};this.countdown=function(){_this.counter–;if(_this.counter=this.card_list_container.offset().top){return false;}else{return true;}};this.update_json_head=function(callback){$.ajax({url:this.jsonp_url,type:”HEAD”,complete:function(xhr){if(_this.json_last_modified!=xhr.getResponseHeader(“Last-Modified”)){_this.update_json_body(callback);}
_this.json_last_modified=xhr.getResponseHeader(“Last-Modified”);}});};this.update_json_body=function(callback){$.ajax({url:this.jsonp_url,dataType:”jsonp”,jsonpCallback:’callback’,success:function(d){_this.json=d;_this.render_tag_list();if(_this.list_needs_to_be_fitered){_this.filter_cards();_this.list_needs_to_be_fitered=false;}
if(typeof callback!=”undefined”){callback(_this.json);};}});};this.create_detail_htmlstory_view=function(){var breathing_space=15,detail_card_top_offset=$(“#detail-lb-card”).offset().top,nav_height=_.reduce($(“header.trb_nh > *”),function(height,el){return height+$(el).height();},0),tags_height=$(“#p2p-liveblog #card-tags”).height(),scroll_to_location=detail_card_top_offset-tags_height-nav_height-breathing_space;$(“html, body”).scrollTop(scroll_to_location);$(window).bind(“load”,function(){$(“header.trb_nh”).removeAttr(“data-state”);});_this.update_json_body(_this.update_detail_htmlstory_view);this.start_update_countdown();};this.update_detail_htmlstory_view=function(){var add_list=_.first(_this.get_filtered_json(),10);add_list.reverse();$.each(add_list,function(i,obj){var html=_.template(_this.card_template,{card:obj,slugify:_this.slugify});_this.card_list_container.prepend(html);$(“#lb-card-“+obj.id).slideDown();});_this.initalize_cards();_this.add_bottom_button();_this.update_latest_update_separator();};this.create_list_json_callback=function(){_this.start_update_countdown();_this.add_bottom_button();};this.update_list_json_callback=function(){for(var i=_this.json.length;i–;){var obj=_this.json[i];var ele=$(“#lb-card-“+obj.id);if(ele.length==1){ele.attr(‘data-order’,obj.order);}};_this.top_visible_card_order=parseInt($(‘.lb-card:first’).data(“order”));_this.bottom_visible_card_order=parseInt($(‘.lb-card:last’).data(“order”));var add_list=[];$.each(_this.get_filtered_json(),function(i,obj){var ele=$(“#lb-card-“+obj.id);if(ele.length){return false;}else{add_list.push(obj);}});add_list.reverse();$.each(add_list,function(i,obj){var html=_.template(_this.card_template,{card:obj,slugify:_this.slugify});_this.card_list_container.prepend(html);$(“#lb-card-“+obj.id).slideDown();if(_this.is_list_view&&!this.is_detail_htmlstory_view){if(obj.headline==””){var update_body=”New update on live blog”;}else{var update_body=obj.headline;}
_this.notifications[obj.id]=new Notification(“Update”,{body:update_body,icon:”http://www.trbas.com/jive/prod/common/images/lanews-apple-touch-icon.1q2w3_9ffdb679907f116af126c65ff1edb27a.png”});setTimeout(function(){_this.notifications[obj.id].close();},5000);}});if(add_list.length>0&&!_this.is_above_the_fold()){_this.show_update_flag(add_list.length);}else if(!add_list.length){_this.hide_update_flag();}
_this.initalize_cards();_this.update_latest_update_separator();};this.create_detail_anchor_json_callback=function(){_this.detail_anchor_card=_.find(_this.json,function(obj){return obj.id==_this.detail_anchor_card_id;});if(typeof _this.detail_anchor_card==”undefined”){_this.create_list_json_callback();return false;}
$(‘.lb-card’).fadeOut().remove();var html=_.template(_this.card_template,{card:_this.detail_anchor_card,slugify:_this.slugify});_this.card_list_container.prepend(html);var card_container=$(“#lb-card-“+_this.detail_anchor_card.id);card_container.slideDown();_this.top_visible_card_order=_this.detail_anchor_card.order;_this.bottom_visible_card_order=_this.detail_anchor_card.order;_this.add_top_button();_this.add_bottom_button();$(‘html, body’).animate({scrollTop:card_container.offset().top-130});_this.initalize_cards();};this.show_update_flag=function(card_count){$(‘
‘).prependTo($(“body”));var update_flag=$(“#liveblog-update-flag”);update_flag.css(“z-index”,”100000″);update_flag.animate({‘top’:0},400);if(card_count===1){var text=”LOAD “+card_count+” NEW UPDATE”;}else{var text=”LOAD “+card_count+” NEW UPDATES”;}
update_flag.text(text);update_flag.add(n).on(“click”,function(){_this.hide_update_flag();window.focus();$(‘html, body’).animate({scrollTop:_this.card_list_container.offset().top-150},800);});};this.hide_update_flag=function(){var update_flag=$(“#liveblog-update-flag”);if(n!=null){n.close();}
n=null;update_flag.animate({‘top’:-40},400).queue(function(){$(this).remove();});};this.add_top_button=function(){$(“#top-button-container”).remove();_this.top_visible_card_order=parseInt($(‘.lb-card:first’).data(“order”));_this.bottom_visible_card_order=parseInt($(‘.lb-card:last’).data(“order”));var newer_invisible_cards=_.filter(_this.json,function(obj){return obj.order0){var html=_.template(_this.top_button_template,{card_count:newer_invisible_cards});_this.card_list_container.before(html);}else{if(_this.is_detail_anchor_view){_this.view_type=”list”;_this.is_list_view=true;_this.is_detail_anchor_view=false;_this.start_update_countdown();}}
$(“#top-button”).on(“click”,_this.click_top_button);};this.click_top_button=function(e){var button=$(this);if(button.hasClass(“inactive”)){return false;}
button.addClass(“inactive”).css({‘cursor’:’default’}).text(‘Loading…’);var next_page=[];for(var i=_this.json.length;i–;){var obj=_this.json[i];if(obj.order=(_this.top_visible_card_order-_this.page_size)){next_page.push(obj);}};$.each(next_page,function(index,element){var html=_.template(_this.card_template,{card:element,slugify:_this.slugify});_this.card_list_container.prepend(html);$(“#lb-card-“+element.id).slideDown();});_this.add_top_button();_this.initalize_cards();};this.add_bottom_button=function(){$(“#bottom-button-container”).remove();_this.top_visible_card_order=parseInt($(‘.lb-card:first’).data(“order”));_this.bottom_visible_card_order=parseInt($(‘.lb-card:last’).data(“order”));var older_invisible_cards=_.filter(_this.get_filtered_json(),function(obj){return obj.order>_this.bottom_visible_card_order;}).length;if(older_invisible_cards>0){var html=_.template(_this.bottom_button_template,{card_count:older_invisible_cards});_this.card_list_container.after(html);}else{$(‘.lb-card:last’).children(‘.story-spacer’).animate({‘opacity’:0});}
$(“#bottom-button”).on(“click”,_this.click_bottom_button);};this.click_bottom_button=function(e){var button=$(this);if(button.hasClass(“inactive”)){return false;}
button.addClass(“inactive”).css({‘cursor’:’default’}).text(‘Loading…’);var previous_page=_.filter(_this.get_filtered_json(),function(obj){return obj.order>_this.bottom_visible_card_order;});previous_page=_.first(previous_page,_this.page_size);$.each(previous_page,function(index,element){var html=_.template(_this.card_template,{card:element,slugify:_this.slugify});_this.card_list_container.append(html);$(“#lb-card-“+element.id).slideDown();});_this.add_bottom_button();_this.initalize_cards();};this.update_latest_update_separator=function(){if(!_this.is_detail_htmlstory_view)return false;if($(“#liveblog-container .lb-card”).length>0){$(“#latest-updates-separator”).removeClass(“hidden”);}else{$(“#latest-updates-separator”).addClass(“hidden”);}};this.get_filtered_json=function(){var json=_this.json;if(_this.is_detail_htmlstory_view){json=_.filter(json,function(obj){if(obj.id==_this.detail_htmlstory_card_id){return false;}
return true;});}
if(_this.active_tag==undefined||!_this.tags_enabled){return json;}
return _.filter(json,function(obj){return _.some(obj.tags,function(tag){return _this.slugify(tag)==_this.slugify(_this.active_tag);});});};this.get_tag_list=function(){var tag_lists=_.map(_this.json,function(obj){return obj.tags;});var tags=_.uniq([].concat.apply([],tag_lists));return tags.sort();};this.render_tag_list=function(){if(!_this.tags_enabled)return;if(_this.get_tag_list()){var active_tag_exists=_.some(_this.get_tag_list(),function(tag){return _this.slugify(tag)==_this.active_tag;});if(!active_tag_exists){_this.active_tag=undefined;}}
var html=_.template(_this.card_tags_template,{“tags”:_this.get_tag_list(),”active_tag”:_this.active_tag,”slugify”:_this.slugify});$(“#card-tags”).html(html);$(“#card-tags .tag input”).off(“click”).on(“click”,function(){if($(this).hasClass(“active”))return;$(“#card-tags input”).removeClass(“active”);$(this).addClass(“active”);_this.active_tag=_this.slugify($(this).val());_this.filter_cards();});$(“#card-tags #tag-reset input”).off(“click”).on(“click”,function(){if($(this).hasClass(“active”))return;_this.active_tag=undefined;_this.filter_cards();});$(“#card-tags #tag-select”).off(“change”).on(“change”,function(){var tag=$(this).val();if(tag==”-tag-reset”){_this.active_tag=undefined;}else{_this.active_tag=$(this).val();}
_this.filter_cards();});};this.filter_cards=function(){if(this.is_detail_htmlstory_view){$(“#lb-detail-card-view”).remove();this.detail_htmlstory_card_id=null;this.is_detail_htmlstory_view=false;this.view_type=”list”;}
var target_cards=_.first(_this.get_filtered_json(),_this.page_size);_this.card_list_container.empty();$.each(target_cards,function(index,element){var html=_.template(_this.card_template,{card:element,slugify:_this.slugify});_this.card_list_container.append(html);$(“#lb-card-“+element.id).show();});$(“#card-tags #tag-select”).blur();_this.add_bottom_button();_this.initalize_cards();_this.render_tag_list();if(_this.active_tag!=undefined){_this.hash_object[‘lb-tag’]=_this.active_tag;}else{delete _this.hash_object[‘lb-tag’];}
history.replaceState(null,null,_this.get_liveblog_url());$(“header.trb_nh”).removeAttr(“data-state”);var nav_height=_.reduce($(“header.trb_nh > *”),function(height,el){return height+$(el).height();},0),breathing_space=15,tag_el_offset=$(“#p2p-liveblog #card-tags”).offset().top,scroll_to_location=tag_el_offset-nav_height-breathing_space;$(“html, body”).scrollTop(scroll_to_location);};this.get_liveblog_url=function(){if(_.size(_this.hash_object)>0){return _this.liveblog_url+”#”+_this.object_to_hash_querystring(_this.hash_object)}
return _this.liveblog_url;};this.initalize_cards=function(){this.create_card_event_listeners();this.render_tweets();this.render_instagrams();this.render_fb_posts();brightcove.createExperiences();this.make_urls_change_when_scroll_over_cards();};this.render_fb_posts=function(){$(‘.lb-embed-facebook.unrendered’).each(function(i,e){$(this).removeClass(‘unrendered’);$(this).html(”);$(this).removeAttr(‘fb-xfbml-state’);$(this).removeAttr(‘fb-iframe-plugin-query’);$(this).attr(‘data-width’,$(this).parent().width()-10);FB.XFBML.parse();});var window_width=$(window).width();$(window).off(“resize.lb_fb”);$(window).on(“resize.lb_fb”,_.debounce(function(){if($(‘div.fb-post’).length!=0){if($(window).width()!=window_width){window_width=$(window).width();$(‘div.fb-post’).each(function(){$(this).html(”);$(this).removeAttr(‘fb-xfbml-state’);$(this).removeAttr(‘fb-iframe-plugin-query’);$(this).attr(‘data-width’,$(this).parent().width()-10);});FB.XFBML.parse();}}},500));};this.init_twitter=function(){if(typeof window.twttr===”undefined”){window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src=”http://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,”script”,”twitter-wjs”));}};this.render_tweets=function(){if(!_.isFunction(window.twttr.ready)){console.warn(“rendering tweets failed because window.twttr.ready was not a function.”);return;}
window.twttr.ready(function(twttr){$(‘.lb-embed-tweet[data-tweet-id]’).each(function(){var tweet=$(this);var data_tweet_id_attr=tweet.attr(‘data-tweet-id’);var options={conversation:”none”,cards:”hidden”};if(tweet.data(‘show-thread’)==”on”){options[“conversation”]=”all”;}
if(tweet.data(‘large-photo’)==”on”){options[“cards”]=”visible”;}
var tweet_id_search=data_tweet_id_attr.match(/\\d+|.+?\\:\\/\\/.+?status\\/(\\b[0-9]*)/);if(tweet_id_search!=null&&tweet_id_search!=undefined&&tweet_id_search.length>0){if(tweet_id_search[1]!=undefined){var tweet_id=tweet_id_search[1];}else{var tweet_id=tweet_id_search[0];}
tweet.removeAttr(‘data-tweet-id’);tweet.attr(‘data-old-tweet-id’,tweet_id);window.twttr.widgets.createTweet(tweet_id,this,options);}else{tweet.hide();}});});};this.render_instagrams=function(){$(‘.lb-embed-instagram[data-instagram-url]’).each(function(){var instagram_container=$(this);var instagram_url=$(instagram_container).data(‘instagram-url’);if(instagram_url.indexOf(‘instagram.com’)!==0){$.getJSON(“http://api.instagram.com/oembed?url=”+instagram_url+”&omitscript=true&callback=?”,function(data){$(instagram_container).html(data.html);$(instagram_container).removeAttr(‘data-instagram-url’);instgrm.Embeds.process();});}});};this.render_ads=function(){if(this.ad_type==’google’){this.render_google_ads();}else if(this.ad_type==’snt’){this.render_snt_ads();}};this.google_ad_slots=[];this.render_google_ads=function(){var googletag=window.googletag||{cmd:[]};if(this.google_ad_slots.length>0){googletag.destroySlots(this.google_ad_slots);}
var position_offset=1;var ad_slot_name=’/4011/trb.latimes/liveblog’;var trb=window.trb||trb||{};if(trb&&trb.data&&trb.data.page&&trb.data.page.ads&&trb.data.page.ads.slot){ad_slot_name=trb.data.page.ads.slot;}
if(_.has(this.hash_object,’adzone’)){var ad_slot_prefix=’/4011/trb.latimes’;if(trb&&trb.data&&trb.data.ads&&trb.data.ads.slotPrefix){ad_slot_prefix=trb.data.ads.slotPrefix;}
ad_slot_name=ad_slot_prefix+’/’+this.hash_object[‘adzone’];}
var container_width=_this.container.width();var ad_unit=[320,50];var screen_size=’s’;if(container_width>970){ad_unit=[[970,250],[970,90],[728,90]];screen_size=’l’;}else if(container_width>728){ad_unit=[728,90];screen_size=’l’;}
$(‘.lb-advert-container’).each(function(i){var el=this;$(el).empty();var id=’lb-google-ad-‘+i;var $advert=$(‘
if($(el).hasClass("rendered")){return;}
var snt_url=$(el).attr("data-snt-url"),$advert=$("
$(window).on(“scroll”,_.debounce(function(){var cutoff=$(window).scrollTop()+140,card_locations=_this.get_card_locations(),visible_card=_.find(card_locations,function(data,card_id){return data[“top_offset”]<cutoff&&cutoff<(data["top_offset"]+data["outer_height"]);});if(visible_card!=null){if(window.location.href!=visible_card["url"]){history.replaceState({},null,visible_card["url"]);}}else{var target_url=_this.get_liveblog_url();if(window.location.href!=target_url){history.replaceState({},null,target_url);}}}));};this.get_card_locations=function(){var liveblog_offset=$("#p2p-liveblog").offset().top+$("#p2p-liveblog").outerHeight(true);if(_this.cached_liveblog_offset==liveblog_offset&&_this.card_locations!=null){return _this.card_locations;}
_this.cached_liveblog_offset=liveblog_offset;_this.card_locations=_.object(_.map($(".lb-card"),function(ele){return[$(ele).attr("data-card-id"),{"top_offset":$(ele).offset().top,"outer_height":$(ele).outerHeight(true),"url":_this.market_base_url+$(ele).attr("data-relative-web-url")}];}));return _this.card_locations;};this.slugify=function(str){var $slug='';var trimmed=$.trim(str);$slug=trimmed.replace(/[^a-z0-9-]/gi,'-').replace(/-+/g,'-').replace(/^-|-$/g,'');return $slug.toLowerCase();};var rQueryString=/[?#]?([^\\[=&]+)(\\[\\])?(?:(=)([^&]*))?/g;this.hash_querystring_to_object=function(queryString,object){var params=typeof object=='object'?object:{},value;if(queryString&&typeof queryString=='string')queryString.replace(rQueryString,function(a,b,c,d,e){value=e===undefined||e===''?(d==='='?'':true):e;if(c){(params[b]&¶ms[b].push||(params[b]=[])).push(value);}else{params[b]=value;}});return params;};this.object_to_hash_querystring=function(object){var returnstring='';if(object&&typeof object=='object'){for(var prop in object){if(object.hasOwnProperty(prop)){if(object[prop]===true){returnstring+='&'+prop;}else{returnstring+='&'+prop+'='+object[prop];}}}
returnstring=returnstring.substring(1);}
return returnstring;};};window.liveblog=new setup();})(window);
Nov. 16, 2017, 8:02 a.m.
UC regents to grill Napolitano on why she approved a plan to interfere in a state audit into her office’s operations
|
Teresa Watanabe |
|
Latest updates
$(document).ready(function() {
liveblog.initialize();
});




