Comments 1 - 17 of 17 Search these comments
Can we still drive our old cars?
Onvacation says
Can we still drive our old cars?
I'd bet that they will put a $10K or more registration tax on used gas cars.
Reminds me of back in the day when you had to "import" VW TDIs (circa 2004) from out of state as they didn't meet emissions standards. The only caveat (back then) was that to qualify as used, they needed to have at least 7,500 miles on them.
All new cars sold in the state by 2035 be free of greenhouse gas emissions including carbon dioxide.
In that legislation it required 35% of new vehicles in California to be emission free by 2026.
There's slightly more than 2 million cars sold annually in California.
They can legislate, but reality has a way of intruding. Manufacturers ain't gonna be able to make 'em, but with the new federal subsidies they can try.
Power grid may not hold up though. Didn't the State of California ask electric car owners to hold off charging their cars at one point this year so far?
I dunno though. So far in the 1st half of 2022, 15% of the vehicles sold in California were electric. They might hit the 2026 goal afterall.
Thanks @Misc
That is a bug, but I'm not yet sure how to fix it.
// this func should be the quote link click handler
function quoteLinkHandler(e) {
function getQuoteLinkFromSelection() {
// If there's a selection, in order to determine the correct author/post id/etc we need to determine which comment div the selection is an ancestor of.
// We start by finding the parent element of the selection.
const selection = window.getSelection();
if (!selection || !selection.anchorNode || !selection.anchorNode.parentElement) {
return;
}
// Now we can find the parent comment div.
const commentContainer = selection.anchorNode.parentElement.closest('.comment');
if (!commentContainer) {
return;
}
// Now find the quote link.
return commentContainer.querySelector('.quote_link');
}
// If we can determine the quote link from a selection, we do it, because they may select text in one
// post, but click the quote link in a different post.
// Otherwise, if there's no valid selection, we use the data from the link they clicked.
const quoteLink = getQuoteLinkFromSelection() || (e && e.type === 'click' ? e.target : null);
if (!quoteLink) {
return;
}
let comment_id = quoteLink.getAttribute('data-comment_id');
let comment_post_id = quoteLink.getAttribute('data-comment_post_id');
let offset = quoteLink.getAttribute('data-offset');
let user_name = quoteLink.getAttribute('data-user_name');
addquote(comment_post_id, offset, comment_id, user_name);
}
function addquote(post_id, offset, comment_id, author) {
var textarea = document.forms['commentform'].elements['ta'];
var theSelection = '';
if (comment_id > 0) var comment_link = '<a href="/post/' + post_id + '&offset=' + offset + '#comment-' + comment_id + '">' + author + ' says</a>';
else var comment_link = '<a href="/post/' + post_id + '">' + author + ' says</a>';
theSelection = getHTMLOfSelection(); // user manually selected something
if (!theSelection) theSelection = document.getElementById('comment-' + comment_id + '-text').innerHTML; // else take the whole comment
// either we are on mobile (no selection possible) or the user did not select any text; whole comment, or post when comment_id === 0
if (theSelection.length > 1024) theSelection = theSelection.substring(0, 1000) + '...'; // might mangle tags
textarea.value = textarea.value + comment_link + '<br><blockquote>' + theSelection + '</blockquote>';
textarea.focus();
return;
}
function getHTMLOfSelection() {
if (!window.getSelection) return '';
var selection = window.getSelection();
if (selection.rangeCount <= 0) return ''
var range = selection.getRangeAt(0);
var clonedSelection = range.cloneContents();
var div = document.createElement('div');
div.appendChild(clonedSelection);
return div.innerHTML;
}
All new cars sold in the state by 2035 be free of greenhouse gas emissions including carbon dioxide.