';
document.querySelector('#copytext').value = textContent;
modal.showModal();
});
// Modal close functionality
const modal = document.querySelector('.republish-modal');
const closeBtn = document.querySelector('.republish-modal-close');
// Close button click
closeBtn.addEventListener('click', function() {
modal.close();
});
// Close on backdrop click
modal.addEventListener('click', function(e) {
if (e.target === modal) {
modal.close();
}
});
// Close on ESC key (this is usually built-in, but adding for safety)
modal.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
modal.close();
}
});
// Copy text button functionality
document.querySelector('.copy-text-button').addEventListener('click', async function() {
const textarea = document.querySelector('#copytext');
const text = textarea.value;
try {
// Try modern Clipboard API first
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(text);
this.textContent = 'Copied!';
} else {
// Fallback for older browsers
textarea.select();
document.execCommand('copy');
this.textContent = 'Copied!';
}
// Reset button text after 2 seconds
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
} catch (err) {
console.error('Failed to copy text: ', err);
// Fallback to selection if copying fails
textarea.select();
this.textContent = 'Text selected';
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
}
});
});
About our "Smoke and Numbers" Project
For a place with so much nature and such a green ethic, British Columbia has struggled to identify with any of the big next-generation sources of renewable energy.
Most of the province’s electricity comes from large hydro dams. That power is renewable. But efforts to expand production are fiercely contested. What about solar? Why not wind power?
Long summer days are offset by short and cloudy winter ones. So solar energy is an affair of the heart more than the pocketbook: one installation on a North Vancouver home will take an estimated two-and-a-half centuries to pay for itself.
Some of the world’s strongest winds are clocked off the northern tip of Vancouver Island. But getting power from Hecate Strait to southern markets is an overwhelming engineering challenge.
Then there’s biomass: plants that can be burned and replaced with new ones that suck back up the carbon that was released in the flames. British Columbia’s unofficial provincial motto could be “Trees’R’ Us.” Might the province’s forests turn it into a veritable Saudi Arabia of renewable biofuel? That day may be coming: shipments of B.C. fuelwood pellets are worth nearly $200 million a year to the provincial economy.
But with fire comes smoke — and inevitably, greenhouse gases. A growing chorus of biomass skeptics questions how green and climate-friendly wood fuel truly is.
InvestigateWest’s partner on “Smoke and Numbers” is The Tyee, a Vancouver, B.C., news site that provided support for the series. Additional support was provided by the Fund for Investigative Journalism.
In This Series:
Part One: Are Climate Claims for Burning Renewable Trees a Smokescreen?
Part Two: Biomass Fuel: Worse for Climate than Coal?
Part Three: Sketchy Claims Inflate B.C.'s Wood Energy Exports
Timeline: 15 Key Dates in the History of Biomass Energy
Brent Sauder: ‘It's not research, it's a mission'
Explore the Documents behind the Story