CINXE.COM
BC Gov News
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>BC Gov News</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="twitter:card" content="summary_large_image"> <meta property="og:image" content="https://news.gov.bc.ca/Content/Images/Gov/default-og-image.jpg" /> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="/lib/bootstrap5/css/bootstrap.min.css?v=x_O6hHKraukhCTek8hyFy1F1duoeFlOVIP3GXny7Thc" media="screen" rel="stylesheet"> <link rel="stylesheet" href="/Content/site.css?v=0Zr8NOpJ5AQBMAeG6T9I8E15OJKiJx0bVq7GofUITeY" media="screen" type="text/css" /> <link rel="stylesheet" href="/Content/components.css?v=jLRhyoQqkynuVcf1C8vr4ebt9DyUJQcTr2XptVoiheM" media="screen" type="text/css" /> <link rel="stylesheet" href="/Content/custom.css?v=bqmg7ztmPc-dt9P6dGN56xg9lVq6awFS-WKKJ9dJ9Tw" media="screen" type="text/css" /> <link rel="stylesheet" href="/Content/minimenu.css?v=DVKTrHAmOpaNO8wvdU2IxgC43WBYg20PFbtGy8Bq7IM" media="screen" type="text/css" /> <link rel="stylesheet" href="/Content/transforms.css?v=h2rg66iwIQa7zzFNHrG5-DvYB3OzhQ_KEZGI5WSwmm8" media="screen" type="text/css" /> <link rel="stylesheet" href="/Content/print.css?v=mkw1nJFjdeIlMJWyY2CNTsKL2bOapR-Ee_Ak3jmCcXk" media="print" type="text/css" /> <link rel="stylesheet" href="/Content/css/all.min.css?v=CTSx_A06dm1B063156EVh15m6Y67pAjZZaQc89LLSrU" media="screen" type="text/css" /> <!-- COVID style sheet--> <link rel="stylesheet" href="/Content/covid-banner-style.css?v=DgTI4Vz92-YK8vULurLh_1Pb23Ym_xY8g2PlyhzTjDY" media="screen" type="text/css"> <link rel="stylesheet" href="/Content/accessibility-styles.css?v=j2YakVnW8VW3OZKonPxb4C9OR_pQWrDP8Inu06cKvGw" media="screen" type="text/css"> <!-- end of COVID style sheet--> <meta name="description" content="Premier David Eby " /> <!-- Latest compiled and minified JavaScript --> <script src="/Scripts/jquery-1.12.4.min.js" type="text/javascript"></script> <script src="/lib/bootstrap5/js/bootstrap.bundle.min.js" type="text/javascript"></script> <script src="/Scripts/jquery.cookie.js" type="text/javascript"></script> <script src="/Scripts/webanalytics.js" type="text/javascript"></script> </head> <body> <!--googleoff: all--> <!--banner--> <!-- <partial name="_Banner.cshtml" /> --> <!--end of banner--> <header class="container-fluid sm-g-0 header nav-border" id="main-nav"> <div class="container-xl sm-g-0" id="main-nav-contaier"> <nav class="navbar navbar-expand-md" aria-label="Main menu" id="main-nav" style="padding-right:8px;"> <a href="https://gov.bc.ca"> <img id="BCGov-logo" class="d-none d-md-block" src="/Content/Images/Gov/BCID_H_rgb_pos_LH_crop.svg" alt="Government of B.C." class="granville-bridge-on"> <img id="sm-BCGov-logo" class="d-md-none" src="/Content/Images/Gov/BC_Mark.svg" alt="Government of B.C." class="granville-bridge-on"> <img id="BCGov-logo-granville" src="/Content/Images/Gov/BCID_White_Small.png" alt="Government of B.C." class="granville-bridge-off"> </a> <a class="navbar-brand ps-3" href="/">BC Gov News</a> <!-- skip links for accessibility--> <div class="access"> <ul> <li aria-label="Skip to main content"> <a class="btn skip-link" href="#main-content-release">Skip to main content</a> </li> <li aria-label="Skip to footer"> <a class="btn skip-link" href="#footer" onclick="window.scrollTo(0,0);">Skip to footer</a> </li> </ul> </div> <!-- end of skip links for accessibility--> <button id="nav-menu-sm" class="navbar-toggler collapse-menu-icon menu-icon" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <i class="fa fa-bars"></i> </button> <div class="d-xs-block d-sm-block d-md-none"> <button id="search-md-button" class="input-group-text btn-primary-outline search-md menu-icon" data-bs-toggle="collapse" data-bs-target="#smd-search-container"> <i class="fa fa-search" aria-hidden="true"></i> </button> </div> <a href="/live" class="btn btn-primary-blue live_button live_button_hide d-none d-lg-block">Live Webcast</a> <div class="container-fluid" id="sm-nav-container"> <div class="collapse navbar-collapse" id="navbarSupportedContent" data-bs-parent="#main-nav"> <ul class="navbar-nav ms-auto mb-2 me-3 mb-lg-0 gap-2" id="sm-nav-ul"> <li class="nav-item dropdown d-none d-md-block ministry-dropdown" id="ministry-dropdown"> <a class="nav-link " href="#" id="news-dropdown" data-bs-toggle="collapse" data-bs-target="#menu" aria-expanded="false"> News <span id="icon-dropdown"><i class="fa fa-angle-down" aria-hidden="true"></i></span> </a> </li> <li class="nav-item dropdown d-md-none ministry-dropdown" id="ministry-dropdown"> <a class="nav-link " href="#" id="sm-news-dropdown" data-bs-toggle="collapse" data-bs-target="#sm-menu" aria-expanded="false"> News <span id="sm-icon-dropdown"><i class="fa fa-angle-down" aria-hidden="true"></i></span> </a> </li> <!-- ministry drop down menu for screen size xs and sm screen --> <div class="container-fluid collapse d-md-none" id="sm-menu" aria-labelledby="ministry-dropdown-menu" data-bs-parent="#navbarSupportedContent"> <div class="menu container-xl"> <div class="list-unstyled list-title">By Ministry</div> <ul> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/office-of-the-premier">Office of the Premier</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/agriculture-and-food">Agriculture and Food</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/attorney-general">Attorney General</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/children-and-family-development">Children and Family Development</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/citizens-services">Citizens' Services</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/education-and-child-care">Education and Child Care</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/emergency-management-and-climate-readiness">Emergency Management and Climate Readiness</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/energy-and-climate-solutions">Energy and Climate Solutions</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/environment-and-parks">Environment and Parks</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/finance">Finance</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/forests">Forests</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/health">Health</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/housing-and-municipal-affairs">Housing and Municipal Affairs</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/indigenous-relations-and-reconciliation">Indigenous Relations and Reconciliation</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/infrastructure">Infrastructure</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/intergovernmental-relations-secretariat">Intergovernmental Relations Secretariat</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/jobs-economic-development-and-innovation">Jobs, Economic Development and Innovation</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/labour">Labour</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/mining-and-critical-minerals">Mining and Critical Minerals</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/post-secondary-education-and-future-skills">Post-Secondary Education and Future Skills</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/public-safety-and-solicitor-general">Public Safety and Solicitor General</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/social-development-and-poverty-reduction">Social Development and Poverty Reduction</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/tourism-arts-culture-and-sport">Tourism, Arts, Culture and Sport</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/transportation-and-transit">Transportation and Transit</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/water-land-and-resource-stewardship">Water, Land and Resource Stewardship</a></li> </ul> </div> </div> <!-- end of ministry drop down menu for screen size md and larger --> <!-- hide news archive --> <!-- <li class="nav-item"> <a class="nav-link" href="https://archive.news.gov.bc.ca/" target="_blank">News Archive</a> </li> --> <!-- end of hide news archive--> <li class="nav-item"> <a class="nav-link" href="/subscribe">Subscribe</a> </li> </ul> </div> <form action="/Search" class="d-flex search d-none d-lg-block" method="get"> <div class="input-group" > <input name="q" id="mini-site-search-input" type="text" class="form-control" aria-label="search"> <span class="input-group-text btn-primary-outline search-trigger"><i class="fa fa-search" aria-hidden="true"></i></span> </div> </form> <div class="d-none d-md-block d-lg-none search-md-block"> <button id="search-md-button" class="input-group-text btn-primary-outline search-md menu-icon" data-bs-toggle="collapse" data-bs-target="#smd-search-container"> <i class="fa fa-search" aria-hidden="true"></i> </button> </div> <a href="/live" class="btn btn-primary-blue live_button live_button_hide d-none d-lg-block">Live Webcast</a> </div> </nav> </div> <!-- search input for md and smaller screen--> <div class="container-fluid collapse d-lg-none" id="smd-search-container" data-bs-parent="#main-nav"> <form action="/Search" class="search" method="get"> <div class="input-group"> <input name="q" id="site-search-input" type="text" class="form-control" aria-label="search"> <button class="input-group-text search-trigger"><i class="fa fa-search" aria-hidden="true"></i></button> </div> </form> </div> <!-- end of search input for md and smaller screen--> <!-- ministry drop down menu for screen size md and larger --> <div class="container-fluid collapse" id="menu" aria-labelledby="ministry-dropdown-menu" data-bs-parent="#main-nav"> <div class="menu container-xl"> <div class="list-unstyled list-title">By Ministry</div> <ul> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/office-of-the-premier">Office of the Premier</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/agriculture-and-food">Agriculture and Food</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/attorney-general">Attorney General</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/children-and-family-development">Children and Family Development</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/citizens-services">Citizens' Services</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/education-and-child-care">Education and Child Care</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/emergency-management-and-climate-readiness">Emergency Management and Climate Readiness</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/energy-and-climate-solutions">Energy and Climate Solutions</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/environment-and-parks">Environment and Parks</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/finance">Finance</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/forests">Forests</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/health">Health</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/housing-and-municipal-affairs">Housing and Municipal Affairs</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/indigenous-relations-and-reconciliation">Indigenous Relations and Reconciliation</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/infrastructure">Infrastructure</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/intergovernmental-relations-secretariat">Intergovernmental Relations Secretariat</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/jobs-economic-development-and-innovation">Jobs, Economic Development and Innovation</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/labour">Labour</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/mining-and-critical-minerals">Mining and Critical Minerals</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/post-secondary-education-and-future-skills">Post-Secondary Education and Future Skills</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/public-safety-and-solicitor-general">Public Safety and Solicitor General</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/social-development-and-poverty-reduction">Social Development and Poverty Reduction</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/tourism-arts-culture-and-sport">Tourism, Arts, Culture and Sport</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/transportation-and-transit">Transportation and Transit</a></li> <li class="list-unstyled" role="menuitem"><a href="https://news.gov.bc.ca/ministries/water-land-and-resource-stewardship">Water, Land and Resource Stewardship</a></li> </ul> </div> </div> <!-- end of ministry drop down menu for screen size md and larger --> </header> <div id="main-content" class="template container-xl"> <main style="display: flex;"> <div class="ministry-listing"> <div class="home-features"> <h3>Office of the Premier</h3> <div class="resource-links minister"> <a href="https://www2.gov.bc.ca/assets/gov/government/ministries-organizations/premier-cabinet-mlas/minister-large/David_Eby_large.jpg"><img src="https://www2.gov.bc.ca/assets/download/B7A5B5E3462E4B838D168E5FD27E5943" alt="Premier David Eby" title="Premier David Eby"/></a> <h3>Premier David Eby</h3> <p>Premier David Eby </p> <a href="https://news.gov.bc.ca/office-of-the-premier/biography" class="read-more">Read Bio</a> <h4>Contact</h4> <p class="minister-email">Email: <a href="mailto: Premier@gov.bc.ca">Premier@gov.bc.ca</a></p> </div> <script type="text/javascript"> </script> </div> <div class="home-body"> <div class="biography-details" id="main-content-release"> <!--googleon: all--> <h2>Premier David Eby</h2> <center class="minister-bio-picture"> <img src="https://www2.gov.bc.ca/assets/download/B7A5B5E3462E4B838D168E5FD27E5943" alt="Premier David Eby" /> </center> <p><p>David Eby is a determined problem-solver who has spent a lifetime taking on powerful interests to get things done for people.</p><p>As Premier of B.C., David is taking action on the biggest challenges facing British Columbians. He’s standing up to wealthy speculators and investors to deliver more homes middle-class people can afford. He’s working to ease the pressure of everyday costs, from reducing car insurance and childcare bills to making prescription birth control free. And he’s strengthening health care by building hospitals and hiring more family doctors.</p><p>Under David’s leadership, B.C. is an economic leader in Canada—creating tens of thousands of good-paying jobs to deliver the lowest unemployment rate and some of the fastest growing wages in the country.</p><p>Alongside John Horgan, David got the influence of big money out of B.C.’s elections and cracked down on money laundering in casinos and real estate. He took on opioid manufacturers and delivered a first-of-its-kind settlement to hold corporations accountable for the overdose crisis. He stood up to the trial lawyers and removed legal costs from ICBC process to reduce car insurance rates by an average of $500 a year for drivers. He even went after organized crime—closing down Hells Angels clubhouses and targeting the proceeds of crime to make our communities safer.</p><p>Before being elected as the MLA for Vancouver-Point Grey, David was an award-winning lawyer and legal scholar. He started his career on Vancouver’s Downtown Eastside, defending the homes of low-income people from big developers and slum lords. His work on human rights and democratic freedoms has been recognized by the United Nations Association in Canada and the B.C. Human Rights Coalition.</p><p>David was an adjunct professor of law at the University of British Columbia, president of the HIV-AIDS Legal Network, and served on the Vancouver Foundation’s Health and Social Development Committee. From 2009 to 2013, David ran the B.C. Civil Liberties Association as executive director.</p><p>David was raised in a suburban middle-class home. The son of a schoolteacher and a lawyer, he remains grounded in the values he grew up with – commitment to family, community, and helping the less fortunate. He is now a proud husband and father with three children of his own, Ezra, Iva, and baby Gwen. He loves playing with his kids, practising yoga and hanging out with his wife Cailey, a family doctor in Vancouver.</p><p>As B.C.’s 37th premier, David is working hard to build a better, stronger future for everyone. Because he believes his kids and all British Columbians deserve the same opportunities to build a good life. </p></p> <!--googleoff: all--> </div> <div class="news-control"> <a href="https://news.gov.bc.ca/office-of-the-premier" class="read-more">All News From The Premier</a> <div class="clear"></div> </div> </div> </div> <div class="clear"></div> </main> </div> <div id="landAcknowledgement" class="container-fluid"> <div class="container-xl"> <p style="font-size:14px; font-weight:500; ">The B.C. Public Service acknowledges the territories of First Nations around B.C. and is grateful to carry out our work on these lands. We acknowledge the rights, interests, priorities, and concerns of all Indigenous Peoples - First Nations, M茅tis, and Inuit - respecting and acknowledging their distinct cultures, histories, rights, laws, and governments.</p> </div> </div> <div id="footer" class="container-fluid" role="navigation"> <div class="top container-xl"> <div class="footer-bc"> <img id="BCGov-logo-footer" src="/Content/Images/Gov/BCID_H_rgb_pos_LH_crop.svg" alt="Government of B.C." class="granville-bridge-on"> <p>We can help in over 220 languages and through other accessible options. <a class="" href="https://www2.gov.bc.ca/gov/content/home/get-help-with-government-services">Call, email or text us</a>, or <a class="" href="https://www2.gov.bc.ca/gov/content/home/services-a-z">find a service centre</a>. </p> </div> <div class="footer-connect"> <h4>Connect with Us</h4> <ul class="" role="menu"> <li role="menuitem"><a id="footerNewsletters" href="/subscribe">Subscribe</a></li> <li role="menuitem"><a id="footerRSSFeeds" href="/connect">Social and RSS</a></li> </ul> </div> <div class="footer-more-info"> <h4>More Info</h4> <ul class="pull-left" role="menu"> <li role="menuitem"><a id="footerHome" href="https://gov.bc.ca">BC Gov</a></li> <li role="menuitem"><a id="footerDisclaimer" href="https://www2.gov.bc.ca/gov/admin/disclaimer.page">Disclaimer</a></li> <li role="menuitem"><a id="footerPrivacy" href="https://www2.gov.bc.ca/gov/content/home/privacy">Privacy</a></li> <li role="menuitem"><a id="footerAccessibility" href="https://www2.gov.bc.ca/gov/admin/accessibility.page">Accessibility</a></li> <li role="menuitem"><a id="footerCopyright" href="https://www2.gov.bc.ca/gov/admin/copyright.page">Copyright</a></li> <li role="menuitem"><a id="footerContact" href="/contact">Contact Us</a></li> </ul> </div> <hr /> </div> <div class="container-xl bottom"> <div class="copyright"> 漏 <!-- -->2024<!-- --> Government of British Columbia </div> </div> </div> <!-- <div id="end-cap"> <ul> <li class="connect-label">Connect</li> <li><a aria-label="connect on facebook" href="/connect#facebook"><i class="fa-brands fa-square-facebook fa-lg" aria-hidden="true"></i></a></li> <li><a aria-label="connect on x" href="/connect#x"><i class="fa-brands fa-square-x-twitter fa-lg" aria-hidden="true"></i></a></li> <li><a aria-label="connect on flickr" href="/connect#flickr"><i class="fa-brands fa-flickr fa-lg" aria-hidden="true"></i></a></li> <li><a aria-label="connect on youtube" href="/connect#youtube"><i class="fa-brands fa-youtube fa-lg" aria-hidden="true"></i></a></li> <li><a aria-label="connect on weibo" href="/connect#weibo"><i class="fa-brands fa-weibo fa-lg" aria-hidden="true"></i></a></li> </ul> <a href="/connect" class="read-more view-all-media">View all Social Media</a> </div> --> <input id="hostingEnv" type="hidden" value=Production /> <script type="text/javascript"> window.allowFade = true; $(function () { $('.back-to-top').on('click', function () { $('html, body').animate({ scrollTop: 0 }); return false; }); $(window).on('load', function () { var images = $('.ministry-listing .article .item-asset img, .story-page .primary-asset img'); images.each(function (i, image) { var width = image.naturalWidth; var height = image.naturalHeight; if (height >= width) { $(image).addClass("tall-image"); } }); }); $(".search-trigger").on('click', function (e) { e.preventDefault(); //$('form:first').submit(); $(this).parent().parent().submit(); }); var collapsibleRegions = $(".collapsible-regions"); if (collapsibleRegions.length != 0) { // Clone on the client instead of having the server to duplicate and send them $('.home-features').append(collapsibleRegions.children().clone()); collapsibleRegions.find(".resource-links > h3").on('click', function () { var headerToggler = $(this); headerToggler.parent().find('ul,div').toggle(); headerToggler.toggleClass('open'); }); } $("#smd-search-container").on('show.bs.collapse', function() { $(".d-md-block #search-md-button").find('i.fa').removeClass('fa-search').addClass('fa-times'); $(".d-md-none #search-md-button").find('i.fa').removeClass('fa-search').addClass('fa-times'); $(".d-md-block #search-md-button").addClass('active'); $(".d-md-none #search-md-button").addClass('active'); }); $("#smd-search-container").on('hidden.bs.collapse', function() { $(".d-md-block #search-md-button").find('i.fa').removeClass('fa-times').addClass('fa-search'); $(".d-md-none #search-md-button").find('i.fa').removeClass('fa-times').addClass('fa-search'); $(".d-md-none #search-md-button").removeClass('active'); $(".d-md-block #search-md-button").removeClass('active'); }); $("#navbarSupportedContent").on({ 'shown.bs.collapse': function() { $("#nav-menu-sm").find('i.fa').removeClass('fa-bars').addClass('fa-times'); $('body').css('overflow-y', 'hidden'); $('#sm-nav-container').css('z-index', '100'); $("#nav-menu-sm").addClass("active"); }, 'hidden.bs.collapse': function() { $("#nav-menu-sm").find('i.fa').removeClass('fa-times').addClass('fa-bars'); $('#sm-menu').collapse('hide'); $('#sm-nav-container').css('z-index', '1'); $("#nav-menu-sm").removeClass("active"); $('body').css('overflow-y', 'scroll'); }, }); $('#menu').on({ "show.bs.collapse": function (e) { $("#icon-dropdown").find('i.fa').removeClass('fa-angle-down').addClass('fa-angle-up'); $('body').css('overflow-y', 'hidden'); $("#ministry-dropdown").addClass("active"); }, "hide.bs.collapse": function (e) { $("#icon-dropdown").find('i.fa').removeClass('fa-angle-up').addClass('fa-angle-down'); //$("#menu").attr("aria-hidden","true"); $('body').css('overflow-y', 'scroll'); $("#ministry-dropdown").removeClass("active"); } }); $('#sm-menu').on({ "show.bs.collapse": function (e) { e.stopPropagation(); $('#sm-nav-ul').css('min-height', '1600px'); }, "shown.bs.collapse": function (e) { e.stopPropagation(); $("#sm-icon-dropdown").find('i.fa').removeClass('fa-angle-down').addClass('fa-angle-up'); //$("#sm-menu").attr("aria-hidden", "false"); $("#navbarSupportedContent").find('#sm-news-dropdown').css("background-color", "#f2f2f2"); $('#sm-nav-container').css('overflow-y', 'scroll'); $(".ministry-dropdown").addClass('active'); }, "hide.bs.collapse": function (e) { e.stopPropagation(); $("#sm-icon-dropdown").find('i.fa').removeClass('fa-angle-up').addClass('fa-angle-down'); //$("#sm-menu").attr("aria-hidden","true"); $("#navbarSupportedContent").find('#sm-news-dropdown').css("background-color", "#FFF"); $('body').css('overflow-y', 'hidden'); $(".ministry-dropdown").removeClass('active'); }, "hidden.bs.collapse": function (e) { e.stopPropagation(); $('#sm-nav-container').css('overflow-y', 'hidden'); } }); $('.menu').on('click', function (event) { event.stopPropagation(); }); $(".print-document").on('click', function (event) { event.preventDefault(); window.print(); }); setTimeout(manualPolling, 60 * 1000); setTimeout(manualGranvillePolling, 60 * 1000); }); function manualPolling() { $.ajax({ url: "/api/live/playlist" }) .done(function (result) { if (result && result.length > 0 && result[0]) { isLiveCallback(true, result); } else { isLiveCallback(false, null); } }) .fail(function (err) { // console.log("error", err); }) .always(function () { // console.log("again..."); setTimeout(manualPolling, 60 * 1000); }); } function manualGranvillePolling() { $.ajax({ url: "/api/live/granville" }) .done(function (result) { if (result) { isGranvilleLiveCallback(true); } else { isGranvilleLiveCallback(false); } }) .fail(function (err) { }) .always(function () { setTimeout(manualGranvillePolling, 60 * 1000); }); } function isLiveCallback(webcastingEnabled, links) { var live_button = $('.live_button'); if (webcastingEnabled === true) { live_button.removeClass("live_button_hide"); live_button.addClass("live_button_show"); } else { live_button.removeClass("live_button_show"); live_button.addClass("live_button_hide"); } //if (typeof secondaryIsLiveCallback !== "undefined") // secondaryIsLiveCallback(webcastingEnabled, links); }; function isGranvilleLiveCallback(isLive) { var banner = $('#granville-bridge-banner'); var header = $('#header'); var logo = $('#BCGov-logo'); var logo_granville = $('#BCGov-logo-granville'); var mini_search_logo = $('#mini-menu-container-trigger'); var granville_style_sheet = $('link[rel=stylesheet][href~="/Content/granville-bridge-theme.css"]'); const hostingEnv = document.getElementById('hostingEnv').value; if (isLive) { if (!banner.length) { $('<div id="granville-bridge-banner" class="alert granville-bridge-banner" role="alert"><div class="content"><i class="fa fa-exclamation-circle" aria-hidden="true"></i> ALERT: Her Majesty Queen Elizabeth II, Queen of Canada has passed away at the age of 98.<button class="btn-link pull-right" id="btnCloseBanner"><strong>脳</strong></button></div></div>').insertBefore(header); } logo.hide(); logo_granville.show(); if (!mini_search_logo.hasClass("granville-bridge-mini-search-menu")) { mini_search_logo.addClass("granville-bridge-mini-search-menu") } if (!granville_style_sheet.length) { if (hostingEnv == "Staging" || hostingEnv == "Production") { $('head').append('<link rel="stylesheet" type="text/css" media="screen" asp-append-version="true" href="/Content/granville-bridge-theme.css">'); } else { $('head').append('<link rel="stylesheet" type="text/css" media="screen" href="/Content/granville-bridge-theme.css">'); } } } else { if (banner.length) { banner.remove(); } logo_granville.hide(); logo.show(); if (mini_search_logo.hasClass("granville-bridge-mini-search-menu")) { mini_search_logo.removeClass("granville-bridge-mini-search-menu") } if (granville_style_sheet.length) { granville_style_sheet.remove(); } } }; $(document).ready(function () { /* This is for closing the granville banner */ if ($.cookie(document.location.host + '-alert-banner') === 'closed') { $("#site-banner").hide(); } $("#btnCloseBanner").click(function (e) { e.preventDefault(); /* The cookie will be expired in 100 days Set the path as root, so the cookie will be valid across the whole site */ $("#site-banner").hide(); $.cookie(document.location.host + '-alert-banner', 'closed', { path: '/', expires: 100 }); }); $("#btnCloseBanner").click(function (e) { e.preventDefault(); $("#site-banner").hide(); }); }); </script> <!--googleon: all--> </body> </html>