#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}.lb-advert-container[data-lb-ad-type=”snt”][data-lb-ad-device=”mobile”] .lb-advert{max-width:300px}.lb-advert-container[data-lb-ad-type=”snt”][data-lb-ad-device=”desktop”] .lb-advert{max-width:650px}.lb-advert-container[data-lb-ad-type=”google”] .lb-advert{max-width:728px}.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-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: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}.lb-advert-container[data-lb-ad-type=”google”] .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} Load newer update 1) { %>s () Load older update 1) { %>s ()
Share this update
Close this window.
0) { %>
All updates var gptadslots = []; var googletag = googletag || {cmd:[]}; var LIVEBLOG_GOOGLE_AD_UNITS = [ { id: ‘div-gpt-ad-40152-1’, pos: ‘1’ }, { id: ‘div-gpt-ad-40152-3’, pos: ‘2’ }, { id: ‘div-gpt-ad-40152-5’, pos: ‘3’ }, { id: ‘div-gpt-ad-40152-7’, pos: ‘4’ }, { id: ‘div-gpt-ad-40152-9’, pos: ‘5’ }, { id: ‘div-gpt-ad-40152-11’, pos: ‘6’ } ]; googletag.cmd.push(function() { _.each(LIVEBLOG_GOOGLE_AD_UNITS, function(unit) { var slot = googletag.defineSlot(‘/4011/trb.latimes/liveblog’, [[728,90],[320,50]], unit.id); slot.setTargeting(‘pos’, [unit.pos]); slot.addService(googletag.pubads()); gptadslots.push(slot); }); googletag.pubads().setTargeting(‘ptype’, [‘s’]); googletag.enableServices(); }); (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;i0&&!_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});_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){$(‘New updates’).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});_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});_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});_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){history.replaceState(null,null,_this.liveblog_url+”#”+_this.active_tag);}else{history.replaceState(null,null,_this.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.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(){var render_snt_ad=function(el){var breakpoint=660,container_width=_this.container.width(),user_is_mobile=container_width
Our editors found this article on this site using Google and regenerated it for our readers.