#campaignNav { background-image:url('http://www.latimes.com/media/graphic/2012-01/67514121.jpg') ; background-repeat:no-repeat; height: 26px; width: 980px; color: #ffffff; font-family: arial,sans-serif; font-size: 14px; font-decoration: none; margin-top: 20px; margin-bottom: 26px; }
#campaignNav a:link, #campaignNav a:visited { text-decoration: none; color: #ffffff; }
#campaignNav a:hover { text-decoration: underline; }
#electionHeader { width: 980px; border-bottom: 1px dotted #000000; height: 32px; margin-bottom: 24px; margin-top: 16px }
#electionHeader a{ font-family: arial; font-size: 14px; }
#electionHeader div { float: left;}
#electionHeader ul { margin: 0px; float: right; }
#electionHeader ul li { float: left; padding-right: 10px; position: relative; top: 9px; }
#electionHeader ul li span { float: left; padding-right: 2px;}
#electionHeader ul li img { float:right; *float: none; padding-right: 12px; width: 12px; height: 15px;}
Polls had shown Californians willing to reconsider the strict sentencing law as more public money was consumed by the state prisons system.
More soon.Comments are filtered for language and registration is required. The Times makes no guarantee of comments' factual accuracy. Readers may report inappropriate comments by clicking the Report Abuse link next to a comment. Here are the full legal terms you agree to by using this comment form.
';
shareDiv.innerHTML = templateHTML;
/* append the new div to the end of the document, which is hidden already with CSS */
document.body.appendChild(shareDiv);
/* Store the div in both a regular JavaScript variable and as a jQuery object so we can reference them faster later */
var shareTip = document.getElementById('shareTip'),
$shareTip = $('#shareTip');
/* This extends our settings object with any user-defined settings passed to the function and returns the jQuery object shareTip
was called on */
return this.each(function() {
if (options) {
$.extend(settings, options);
}
/* This is a hack to make sure the shareTip always fades back to 100% opacity */
var checkOpacity = function (){
if ( $shareTip.css('opacity') !== 1 ){
$shareTip.css({'opacity': 1});
}
};
/* Function that replaces the HTML in the shareTip with the template we defined at the top */
/* It will wipe/reset the links on the social media buttons each time the function is called */
var removeLinks = function (){
shareTip.innerHTML = templateHTML;
};
/* This is the function that makes the links for the Tweet / Share functionality */
var makeURLS = function (link, message){
/* Here we construct the Tweet URL using an array, with values passed to the function */
var tweetConstruct = [
'http://twitter.com/share?url=', link, '&text=', message, '&via=', settings.twitter_account
],
/* Then join the array into one chunk of HTML */
tweetURL = tweetConstruct.join(''),
/* Same story for Facebook */
fbConstruct = [
'http://www.facebook.com/sharer.php?u=', link, '&src=sp'
],
fbURL = fbConstruct.join(''),
newHTML = [
''
],
shareHTML = newHTML.join('');
/* Load in our new HTML */
shareTip.innerHTML = shareHTML;
};
/* Since the shareTip will automatically fade out when the user mouses out of an element */
/* we have to specifically tell the shareTip we want it to stay put when the user mouses over it */
/* This effectively gives the user a 500 ms (or whatever) window to mouse */
/* from the element to the shareTip to prevent it from popping out */
$shareTip.hover(function(){
$shareTip.stop(true, true);
$shareTip.show();
checkOpacity();
}, function(){
$(this).fadeOut(settings.speed);
});
/* This function handles the hover action */
$(this).hover(function(){
/* remove the old links, so someone doesn't accidentally click on them */
removeLinks();
/* If there's already an animation running on the shareTip, stop it */
$shareTip.stop(true, true);
var eso = $(this),
message,
/* Store the width and height of the shareTip and the offset of the element for our calculations */
height = eso.height(),
width = eso.width(),
offset = eso.offset(),
link;
link = eso.children('a').attr('href');
message = escape( eso.find('img').attr('alt') ) || eso.attr(settings.message_attr);
if (link.search('http://') === -1){
link = 'http://www.latimes.com' + link;
}
link = encodeURIComponent(link);
/* If it's at the top of the page, the shareTip will pop under the element */
if (offset.top
Proposition 36, to ease three strikes law, passes, AP reports
This article
Proposition 36, to ease three strikes law, passes, AP reports
can be opened in url
http://pursuenews.blogspot.com/2012/11/proposition-36-to-ease-three-strikes.html
Proposition 36, to ease three strikes law, passes, AP reports