Tag Archives: jquery

Should You Freak Out If You See a Kid Alone in a Parked Car?

Mother Jones

Should you automatically go to jail for leaving your kid alone in the car? That question has gained new attention since the arrest of Shanesha Taylor, an unemployed single mom who left her two young children in her vehicle during a 45-minute job interview in Scottsdale, Arizona. After her arrest, Taylor’s tearful mugshot elicited broad sympathy. Yet the temperature inside Taylor’s car that afternoon had risen above 100 degrees and her kids were crying and profusely sweating. (The prosecutor agreed to dismiss the child abuse charges against Taylor.)

While Taylor’s case may have been unusual, what parent hasn’t contemplated the pros and cons of extracting a napping baby from a car seat just to dash into a convenience store? Leaving a kid in a locked, parked vehicle in the shade is usually pretty safe. However, it’s definitely a bad idea to leave your kid unattended in a car for more than a few minutes on a hot day. Last year, at least 39 children died from heatstroke in vehicles; 21 have died so far this year. The interior of a car left in 80-degree heat with the windows rolled up can reach 120 degrees in less than an hour. Cracking the windows doesn’t always cool the car down. Small kids more easily succumb to heatstroke, which can kick in when the body’s internal temperature reaches just 104 degrees.

Whether leaving a child unattended in a car is a crime largely depends on where you live. Twenty states have laws addressing the issue. Only Louisiana, Maryland, and Nebraska outright ban the practice, though they differ on the definition of a child and a suitable guardian to stay in the car. Kids can remain in unattended vehicles for no more than 5 minutes in Texas, Utah, and Hawaii; you get 10 minutes in Illinois and 15 minutes in Florida. Laws in several other states, including California, specify that children can’t be left in a vehicle in dangerous conditions such as hot weather.

Here’s a map of all the current kids-in-cars laws:

Where is It Illegal to Leave Your Kid in the Car?

20 states have laws about leaving children alone in a car. Click any state for details.

item
No existing law
item
Illegal or unlawful under certain conditions; click state for details
Source: San Francisco State University

var super_simple_map = function(options)
var svg_string = ‘ ‘;
var map_svg = jQuery(svg_string);
var state_specific_area = jQuery(‘#’ + options.container);
state_specific_area.before(map_svg);
var remove_previously_selected = function()
var previously_selected = map_svg.find(‘.selected’);
previously_selected.each(function()
var $this = $(this);
var previous_class = $this.attr(‘class’) else
$this.attr(‘class’, previous_class.replace(‘selected’, ”));

});
}

state_specific_area.hide();
map_svg.find(‘path’).bind(‘click’, function() state_specific_area.hide(); remove_previously_selected(); );
/* FANCY FADE
if you’re feeling fancy, you can apply a fade in and out here instead
replace the two lines above with

state_specific_area.addClass(‘fade-out’)
map_svg.find(‘path’).bind(‘click’, function() state_specific_area.addClass(‘fade-out’).removeClass(‘fade-in’); remove_previously_selected(); );

and search for FANCY FADE below to make a similar change there
If you do this you’ll need to copy our fade-in fade-out css or make your own
*/

var state_specific_headline = jQuery(‘

‘);
state_specific_area.append(state_specific_headline);
var state_specific_body = jQuery(”);
state_specific_area.append(state_specific_body);

var color_map = function(states)
for (var i = 0; i < states.length; i++)
var state = statesi;
var class_to_add = ”;
if (!state’class’)
class_to_add = ‘ blank’;

else
class_to_add = ‘ clickable ‘ + state’class’;

var state_svg = map_svg.find(‘.’ + state.abbr);
var old_class = state_svg.attr(‘class’);
if (typeof old_class !== ‘string’)
//an ancient version of jquery
state_svg.get(0).setAttribute(‘class’,
state_svg.get(0).getAttribute(‘class’) + class_to_add
);
else
var new_class = old_class + class_to_add;
state_svg.attr(‘class’, new_class);

}
}
var place_state_specific_data = function(states)
for (var i = 0; i < states.length; i++)
var state = statesi;
var state_svg = map_svg.find(‘.’ + state.abbr);
state_svg.attr(‘data-state-specific-headline’, state’headline’ );
state_svg.attr(‘data-state-specific-body’, state’body’ );

//this is what happens when you click on a state
state_svg.unbind(‘click’);
state_svg.bind(‘click’, function(event)
//first update the state_specific
var headline = jQuery(event.target).attr(‘data-state-specific-headline’);
var body = jQuery(event.target).attr(‘data-state-specific-body’);
state_specific_headline.html(headline);
state_specific_body.html(body);
state_specific_area.show();
/* FANCY FADE
if you’re feeling fancy, you can apply a fade in and out here instead
replace the line above with

state_specific_area.addClass(‘fade-in’).removeClass(‘fade-out’);

and search for FANCY FADE above to make a similar change there
If you do this you’ll need to copy our fade-in fade-out css or make your own
*/

//give class selected
remove_previously_selected();
var state = jQuery(event.target);
previous_class = state.attr(‘class’);
if (typeof previous_class !== ‘string’)
state.get(0).setAttribute(‘class’,
state.get(0).getAttribute(‘class’) + ‘ selected’
);
else
new_class = previous_class + ‘ selected’;
state.attr(‘class’, new_class);

});
}
}

var tabletop_options =
key: options.key,
callback: function(data)
color_map(data);
place_state_specific_data(data);
if (options.initial_state)
map_svg.find(‘.’ + options.initial_state).click();

},
simpleSheet: true
};
if (options.proxy)
tabletop_options.proxy = options.proxy;

Tabletop.init(tabletop_options);
};

super_simple_map(
container: ‘state_specific_area’,
initial_state: ”,
//proxy: proxy here,
key: ‘0AuHOPshyxQGGdHJSRV9pclNIeFVnZ3dmU0FKdW1rOEE’,
)

States without kids-in-cars laws still may prosecute parents under child endangerment statues, which can be interpreted in wildly different ways. A New Jersey appellate court recently found a woman who’d left her 19-month-old in her car for less than 10 minutes (with the windows cracked) guilty of child abuse. “A parent invites substantial peril when leaving a child of such tender years alone in a motor vehicle that is out of the parent’s sight, no matter how briefly,” wrote a three-judge panel. The ruling, which was mocked in a Newark Star-Ledger op-ed as an embodiment of the “Busybody State,” will be reviewed by the state supreme court.

Lenore Skenazy, the author of Free-Range Kids, argues that public concern for the safety of unattended kids has escalated to the point of hysteria. She has heard dozens of stories of parents chastised by onlookers for, say, stepping away from a car full of kids to drop off a letter, return a shopping cart, or grab a cup of coffee. “The assumption is that any time a child is unsupervised, they are going to die,” Skenazy says, “and that goes 20 times for a kid in a car.”

Ideally, police would arrest parents in such situations only if their kids are clearly in serious danger. But that’s not always what happens. It’s not clear how many parents are arrested for leaving their kids unsupervised in cars, but a search for stories published in the past two years turned up dozens of cases like these:

Bastrop, Louisiana/February 2013: A teenager left an infant in a car on a “cool day” for approximately two minutes while shopping at a clothing store, according to the Bastrop Daily Enterprise. He was arrested and charged with child desertion.

Bettendorf, Iowa/June 2013: A mother left an infant in a car during an early-morning exercise class. According to the police report, the woman repeatedly stepped out of the hour-long class to check on the child. She was arrested and charged with child endangerment.

Yorktown, New York/October 2013: A father left a two-year-old boy in a car at a CVS parking lot for “several minutes,” according to the Daily Somers Voice. He was arrested and charged with endangering the welfare of a child.

Columbus, Indiana/June 2014: A father left a one-year-old and seven-year-old in a car with the windows cracked and the sunroof open for about 10 minutes while shopping at Kroger. He told an officer that he’d left the kids behind because the seven-year-old wasn’t wearing shoes. He was arrested and charged with child neglect.

Jacksonville, Florida/July 2014: A father left a seven-year-old boy in a car parked in the shade with the windows down outside a furniture store where he was a janitor. He was arrested and charged with child neglect. (Florida’s kids-in-cars law only applies to children under the age of six).

While some of these news stories might have omitted important details, a pattern clearly emerges of parents arrested for behavior that falls far short of what’s usually considered child abuse. The risk of a child succumbing to heatstroke when left in a car under normal conditions for 10 or 15 minutes is vanishingly small. “I could not find any instance of any person dying in the car in the course of a short errand,” says Skenazy, who has scrutinized kids-in-cars arrests for years. And adults who intentionally leave their kids in their vehicles for longer periods are not even the biggest problem: 80 percent of kids who die in parked cars were forgotten by their parents or entered the car without their parents’ knowledge.

Adults who park their kids in the shade and roll the windows down or leave the air conditioner running with the keys in the ignition may be accused of leaving tempting targets for kidnappers. But arresting a parent for ignoring the hypothetical risk of a child predator, as happened in Charleston, South Carolina in June, makes about as much sense as jailing her for feeding a kid solid food, letting him ride a bicycle, or allowing him to walk down a flight of stairs. In 1999, the last year for which comprehensive statistics are available, 115 of America’s 72 million children were kidnapped by strangers. (That’s all kidnappings, not just from cars.) That puts the risk of a child getting kidnapped in any given year at 0.0002 percent. A child has a much greater chance of getting struck by lightning at some point in his lifetime.

These arrests seem doubly unfair when they involve parents struggling to make ends meet with no better childcare options. Is the seven-year-old son of the janitor in Jacksonville better off now that his dad is in jail? How about the baby left in a car at 8:00 a.m., shielded from the sun, with the windows cracked and sunroof open, while her mom took a final exam for cosmetology school? Or the mother who left her two kids in the car while she donated blood plasma to get gas money? Arguably, these arrests represent the criminalization of the working poor—though more affluent parents aren’t immune to getting cuffed in the course of buying lattes or picking up the dry cleaning.

Skenazy sees many kids-in-cars laws as counterproductive. “The risk is so tiny that to start legislating on the basis of it would mean that you have to start legislating on everything,” she says. “We focus on the danger of the kid in the parked car, and nobody ever goes through the same paroxysms of fear and hand-wringing and anger when the mom or dad puts the child in the car to drive somewhere, even though that is the number one way children die. It’s in moving cars while they are being driven somewhere by the parents who love them. Why don’t we say to parents: ‘Why did you take them with you? Couldn’t you have found a babysitter and then gone to the grocery? Couldn’t you have had your groceries delivered by a neighbor?'”

“We’re not really concerned about the real ways kids die,” she adds. “We’re concerned about being mad at parents who don’t believe they have to be with their kids every single second of the day.”

So what is a reasonable onlooker supposed to do when confronted with an unattended kid inside a parked car? Consider the context, Skenazy says. Is it a grocery store parking lot where the parent will probably soon return, or an office park where everybody goes to work for the day? Is there another option short of calling the cops? “A Good Samaritan is looking out for the child. But they are also looking out for the mom,” Skenazy says. “They are not the KGB.”

More here:

Should You Freak Out If You See a Kid Alone in a Parked Car?

Posted in alo, Anchor, FF, GE, LAI, LG, ONA, PUR, Radius, Scotts, Uncategorized, Venta | Tagged , , , , , , , , , , , | Comments Off on Should You Freak Out If You See a Kid Alone in a Parked Car?

Quiz: Who’s More Metal, the Cat or the Owner?

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

Metal Cats, a new book that compiles photos of headbangers with their felines, made us wonder: Who’s more metal, cat or owner? Take the quiz below, featuring some of the book’s photos, to find out.

(function($)

function make_default_how_you_did_html(nCorrect, nQuestions)
var answersWord = nCorrect === 1 ? ‘answer’ : ‘answers’;
return ‘You got ‘ + nCorrect + ‘ ‘ +
‘correct ‘ + answersWord + ‘ out of ‘ + nQuestions + ‘ questions’;

function make_default_how_you_did_htmls(nQuestions)
var ret = [];
for (var i = 0; i <= nQuestions; i++)
ret.push(make_default_how_you_did_html(i, nQuestions));

return ret;
}

$.quiz = function(quiz_data, results_data, options)
var container_elem;
var self;
var cover;
var cheater_answer_tracking = [];
var answer_tracking = [];
var how_you_did_element;

var quiz =
defaulting_behavior_on : true,
defaulting_flag : ‘!default’,
container : ‘quiz_container’,
not_finished_html : undefined,
cheating : false,
possible_display_elements :

name : ‘backgroundimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slide) return ”;
return $(‘<div class=”‘ +
this.name +
‘” style=”background-image: url(” +
slidethis.name +
”); height: 100%; width: 100%;position:absolute;z-index: -1″>’
);
}
},

name : ‘topimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(

);
}
},

name : ‘topvideoembed’,
finder: function(container)
return container.find(‘.’ + this.name);
,
needs_aspect_ratio : true,
create_element : function(slide)
//check aspect ratio
if (!slide.topvideoembedaspectratio) return ”;
return $(” +
slidethis.name + ”
);
}
},

name : ‘title’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(‘

‘ +
slidethis.name + ”
);
}
},

name : ‘middleimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(

);
}
},

name : ‘middlevideoembed’,
needs_aspect_ratio : true,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
//check aspect ratio
if (!slide.middlevideoembedaspectratio) return ”;
return $(” +
slidethis.name + ”
);
}
},

name : ‘subhed’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(” +
slidethis.name +

);
}
},

name : ‘text’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(” +
slidethis.name +

);
}
},

name : ‘bottomimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(”
);
}
},

name : ‘bottomvideoembed’,
needs_aspect_ratio : true,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
//check aspect ratio
if (!slide.bottomvideoembedaspectratio) return ”;
return $(” +
slidethis.name + ”
);
}
}
],

init : function(quiz_data, results_data, options)
self = this;

if (options)
for ( var option in options )
selfoption = optionsoption;

}

if (typeof(quiz_data) === ‘string’)
// is a google spreadsheet.
// Will call init_data in a callback
self.load_from_google_spreadsheet(quiz_data);
else
if (!results_data)
results_data = make_default_how_you_did_htmls(quiz_data.length);

self.init_data(quiz_data, results_data);
}

return self;
},
init_data: function(quiz_data, results_data)
self.quiz_data = quiz_data;
self.results_data = results_data;

self.calculate_aspectratios(quiz_data);
self.create_cover();

for ( var i = 0; i < self.quiz_data.length; i++ )
self.append_question(i);

self.append_how_you_did_section();
self.update_how_you_did_element();
self.preload_answer_images();
},
append_how_you_did_section: function()
how_you_did_element = $(”);
cover.append(how_you_did_element);
,

load_from_google_spreadsheet: function(spreadsheet_id)
Tabletop.init(
key: spreadsheet_id,
proxy : ‘https://s3.amazonaws.com/mj-tabletop-proxy’,
callback: function(data)
var quiz_data = self.make_quiz_data_from_spreadsheet_data(data);
var results_data = self.make_results_data_from_spreadsheet_data(data, quiz_data);
self.init_data(quiz_data, results_data);

});
},
calculate_aspectratios: function(data)
for (var i = 0; i < data.length; i++)
var row = datai;
for (var k = 0; k < row.possible_answers.length; k++)
var answer = row.possible_answersk;
self.find_aspectratio_for_each_type_of_video_embed(answer);

self.find_aspectratio_for_each_type_of_video_embed(row.question);
}
},

find_aspectratio_for_each_type_of_video_embed : function(slide)
for (var i = 0; i < self.possible_display_elements.length; i++ )
var display = self.possible_display_elementsi;
if ( display.needs_aspect_ratio && slidedisplay.name )
slidedisplay.name + ‘aspectratio’ =
self.find_aspectratio(slidedisplay.name);

}
},
find_aspectratio: function(videoembed)
var height = videoembed.match(/height=”d+”/);
if (!height
height = parseInt(height0.replace(/height=”/, ”).replace(/”/, ”), 10);

var width = videoembed.match(/width=”d+”/);
if (!width || !width0)
console.log(‘Your video embed code needs a width.’);
return ”;

width = parseInt(width0.replace(/width=”/, ”).replace(/”/, ”), 10);

return (height / width)*100;
},
pull_answer_value_from_spreadsheet : function(row, value, wrong_number, correct)
correct = correct ? ‘right’ : ‘wrong’;
if (rowcorrect + wrong_number + value && rowcorrect + wrong_number + value !== self.defaulting_flag)
return (rowcorrect + wrong_number + value);

if ((self.defaulting_behavior_on && rowcorrect + wrong_number + value !== self.defaulting_flag) ||
(!self.defaulting_behavior_on && rowcorrect + wrong_number + value === self.defaulting_flag)
)
return (rowcorrect + value && rowcorrect + value !== self.defaulting_flag ?
rowcorrect + value :
(row’answer’ + value && row’answer’ + value !== self.defaulting_flag ?
row’answer’ + value :
row’question’ + value
)
);
else
return ”;

},
get_possible_answers : function(row, is_correct)
var possible_answers = [];
var right_or_wrong = (is_correct ? ‘right’ : ‘wrong’);
if (rowright_or_wrong)
possible_answers.push(self.make_possible_answer(row, ”, is_correct));

for (var i = 0; i < 10; i++ )
if (rowright_or_wrong + i)
possible_answers.push(self.make_possible_answer(row, i, is_correct));

}
return possible_answers;
},
make_possible_answer: function(row, row_number, is_correct)
var right_or_wrong = (is_correct ? ‘right’ : ‘wrong’);
var answer =
answer: rowright_or_wrong + row_number,
correct: is_correct
;
for (var i = 0; i < self.possible_display_elements.length; i++ )
var display_element = self.possible_display_elementsi.name;
answerdisplay_element = self.pull_answer_value_from_spreadsheet(
row, display_element, row_number, is_correct
);

return answer;
},
make_quiz_data_from_spreadsheet_data: function(tabletop)
var i, j, sheetName, data;
var quiz = [];

// Find a sheet that _isn’t_ named “Results”.
for (sheetName in tabletop)
if (tabletop.hasOwnProperty(sheetName) && sheetName !== ‘Results’)
break;

}

data = tabletopsheetName.elements;

for (i = 0; i < data.length; i++)
var row = datai;
var possible_wrong_answers = self.get_possible_answers(row, false);
var possible_right_answers = self.get_possible_answers(row, true);

var right_answer_placement = [];
for (j = 0; j < possible_right_answers.length; j++)
right_answer_placement.push(
Math.round(Math.random() * possible_wrong_answers.length)
);

// IMPORTANT TO SORT THIS. rather than check if a value is in, we only check the first
right_answer_placement.sort();

var possible_answers= [];
var right_answers_placed = 0;
for (j = 0; j <= possible_wrong_answers.length; j++)
while (j === right_answer_placementright_answers_placed)
//push right answer
possible_answers.push(possible_right_answersright_answers_placed);
right_answers_placed++;

if (j === possible_wrong_answers.length)
continue;

possible_answers.push(possible_wrong_answersj);
}

var question =
question :
,
possible_answers : possible_answers,
rowNumber : row.rowNumber – 1
};
for (j = 0; j < self.possible_display_elements.length; j++)
var display_value = self.possible_display_elementsj.name;
question.questiondisplay_value = row’question’ + display_value;

quiz.push(question);
}
return quiz;
},
make_results_data_from_spreadsheet_data: function(tabletop, quiz_data)
var ret = make_default_how_you_did_htmls(quiz_data.length);

var data = tabletop’Results’ ? tabletop’Results’.elements : [];
for (var i = 0; i < data.length; i++)
var index = datai.numberofrightanswers;
if (index) index = parseInt(index, 10);
if (!isNaN(index))
if (!retindex)
console.log(“Invalid number of correct answers: ” + index);
else
retindex = datai.html;

}
}

return ret;
},
append_question : function(question_index)
var question_data = self.quiz_dataquestion_index;
var question_container = $(‘<li class=”question_container row-fluid question_’ +
question_index +
‘”>’
);
question_container.append( self.build_question_element_from_row(question_data) );
question_container.append( self.build_possible_answer_elements_from_row(question_data, question_index) );
container_elem.append(question_container);
,
build_question_element_from_row: function(row)
var question_container = $(”);
for (var i = 0; i < self.possible_display_elements.length; i++)
question_container.append(
self.possible_display_elementsi.create_element(row.question)
);

return question_container;
},
build_possible_answer_elements_from_row : function(question, question_index)
var answers_container = $(”);

function bindClick(question_index, answer_index, possible_answer)
possible_answer.bind(‘click’, function()
// was it the right answer?
var was_correct = self.quiz_dataquestion_index.possible_answersanswer_index.correct;

// Add correct classes to possible answers
answers_container.find(‘.selected’).removeClass(‘selected’);
$(this).addClass(‘selected’);
$(this).removeClass(‘possible_answer’);
answers_container
.find(‘.answer_’ + answer_index)
.addClass(
was_correct ? ‘correct_answer’ : ‘wrong_answer’
);

//track how many you got right the first time
cheater_answer_trackingquestion_index = was_correct;
if ( typeof(answer_trackingquestion_index) === ‘undefined’ )
answer_trackingquestion_index = was_correct;
cover.find(‘.question_’ + question_index).addClass(
‘first_guess_’ +
(was_correct ? ‘right’ : ‘wrong’)
);

self.update_how_you_did_element();

//show new slide
self.display_answer(self.quiz_dataquestion_index, question_index, self.quiz_dataquestion_index.possible_answersanswer_index);

// track that this was selected last
self.quiz_dataquestion_index.previously_selected = self.quiz_dataquestion_index.possible_answersanswer_index;
});
}

for (var i = 0; i < question.possible_answers.length; i++)
var answer_data = question.possible_answersi;
var possible_answer = $(” +
answer_data.answer +
”);
bindClick(question_index, i, possible_answer);
answers_container.append(possible_answer);
this.note_answer_images(answer_data);

return answers_container;
},
answer_images : {},
preload_answer_images: function()
for (var url in this.answer_images)
var img=new Image();
img.src=url;

},
note_answer_images: function(answer_data)
var image_elements = ‘backgroundimage’, ‘topimage’, ‘bottomimage’;
for (var i = 0; i < image_elements.length; i++)
if (!answer_data[image_elementsi]) continue;
this.answer_images[answer_data[image_elementsi]] = true;
}
self.possible_display_elementsi.name;
},
add_display_in_correct_place: function(container, place_in_display_elements, slide)
for ( var i = place_in_display_elements; i > 0; i– )
if (self.possible_display_elementsi – 1.finder(container).length )
self.possible_display_elementsi – 1.finder(container)
.after( self.possible_display_elementsplace_in_display_elements.create_element(slide) );
return;

}
container.prepend(
self.possible_display_elementsplace_in_display_elements.create_element(slide)
);
},
display_answer : function(question, question_index, answer)
var displayed_slide = question.previously_selected ?
question.previously_selected :
question.question;
var slide = container_elem.find(‘.question_’ + question_index + ‘ .question’);
slide.addClass(‘revealed_answer’);
for (var i = 0; i < self.possible_display_elements.length; i++)
var display_value = self.possible_display_elementsi.name;
if ( answerdisplay_value !== displayed_slidedisplay_value )
if ( !answerdisplay_value )
self.possible_display_elementsi.finder(slide).remove();
else if ( !displayed_slidedisplay_value )
self.add_display_in_correct_place(slide, i, answer);
else
self.possible_display_elementsi.finder(slide).replaceWith(
self.possible_display_elementsi.create_element( answer )
);

}
}
},

create_cover : function()
cover = $(‘#’ + self.container);
container_elem = $(”);
cover.append(container_elem);
container_elem.addClass(‘quiz_container’);
container_elem.css(‘padding’, ‘0px’);
,
update_how_you_did_element: function()
var right_answers = 0;
var user_answers = self.cheating ? cheater_answer_tracking : answer_tracking;
var unfinished = false;
for (var i = 0; i < self.quiz_data.length; i++)
if (typeof(answer_trackingi) === ‘undefined’)
unfinished = true;

if (user_answersi)
right_answers++;

}
var html;
if (unfinished && typeof(this.not_finished_html) !== ‘undefined’)
html = this.not_finished_html;
else
html = this.results_dataright_answers;

how_you_did_element.html(html);
}
};
return quiz.init(quiz_data, results_data, options);
};

$.fn.quiz = function(quiz_data, results_data, options)
if (!options) options = results_data; results_data = null;
if (!options) options = ; }
options.container = this.attr(‘id’);
this.quiz = $.quiz(quiz_data, results_data, options);
return this;
};
})(jQuery);

var quiz = jQuery(‘#quiz_container’).quiz(‘0Apogs1tjp7w0dEZLUnB3QTJYVVdjUDJMUTZXU2ZzMmc’);
Photos from Metal Cats by Alexandra Crockett, published by powerHouse Books.

See original article: 

Quiz: Who’s More Metal, the Cat or the Owner?

Posted in Anchor, FF, GE, LG, ONA, Oster, Radius, Uncategorized, Venta | Tagged , , , , , , , , , , | Comments Off on Quiz: Who’s More Metal, the Cat or the Owner?

QUIZ: Match the Political Scandal to the Apology

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

(function($)

$.quiz = function(quiz_data, options)
var container_elem;
var self;
var answer_tracking = [];
var correct_answers_element;

var quiz =
defaulting_behavior_on : true,
defaulting_flag : ‘!default’,
container : ‘quiz_container’,
possible_display_elements :

name : ‘backgroundimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slide) return ”;
return jQuery(”
);
}
},

name : ‘topimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return jQuery(

);
}
},

name : ‘topvideoembed’,
finder: function(container)
return container.find(‘.’ + this.name);
,
needs_aspect_ratio : true,
create_element : function(slide)
//check aspect ratio
if (!slide.topvideoembedaspectratio) return ”;
return jQuery(”
+ slidethis.name + ”
);
}
},

name : ‘title’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return jQuery(‘


+ slidethis.name + ”
);
}
},

name : ‘middleimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return jQuery(

);
}
},

name : ‘middlevideoembed’,
needs_aspect_ratio : true,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
//check aspect ratio
if (!slide.middlevideoembedaspectratio) return ”;
return jQuery(”
+ slidethis.name + ”
);
}
},

name : ‘subhed’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return jQuery(”
+ slidethis.name
+ ”
);
}
},

name : ‘text’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return jQuery(”
+ slidethis.name
+ ”
);
}
},

name : ‘bottomimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return jQuery(”
);
}
},

name : ‘bottomvideoembed’,
needs_aspect_ratio : true,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
//check aspect ratio
if (!slide.bottomvideoembedaspectratio) return ”;
return jQuery(”
+ slidethis.name + ”
);
}
},
],

init : function(quiz_data, options)

self = this;
if (options)
for ( var option in options )
selfoption = optionsoption;

}

if (typeof(quiz_data) === ‘string’)
//is a google spreadsheet
self.make_quiz_from_google_spreadsheet(quiz_data);
return self;

self.calculate_aspectratios(quiz_data);

self.quiz_data = quiz_data;

self.create_cover();

for ( var i = 0; i < self.quiz_data.length; i++ )
self.append_question(i);

self.append_how_you_did_section();

return self;
},
append_how_you_did_section: function()
correct_answers_element = jQuery(‘0’);
var how_you_did_element = jQuery(”);
how_you_did_element.append(jQuery(‘You got ‘));
how_you_did_element.append(correct_answers_element);
how_you_did_element.append(jQuery(‘ correct answers out of ‘ + self.quiz_data.length + ‘ questions’));
cover.append(how_you_did_element);
,

make_quiz_from_google_spreadsheet: function(spreadsheet_id)
Tabletop.init(
key: spreadsheet_id,
proxy : ‘https://s3.amazonaws.com/mj-tabletop-proxy’,
callback: function(data)
var quiz_data = self.make_quiz_data_from_spreadsheet_data(data);
self.init(quiz_data, options);
,
simpleSheet: true
});
},
calculate_aspectratios: function(data)
for (var i = 0; i < data.length; i++)
var row = datai;
for (var k = 0; k < row.possible_answers.length; k++)
var answer = row.possible_answersk;
self.find_aspectratio_for_each_type_of_video_embed(answer);

self.find_aspectratio_for_each_type_of_video_embed(row.question);
}
},

find_aspectratio_for_each_type_of_video_embed : function(slide)
for (var i = 0; i < self.possible_display_elements.length; i++ )
var display = self.possible_display_elementsi;
if ( display.needs_aspect_ratio && slidedisplay.name )
slidedisplay.name + ‘aspectratio’
= self.find_aspectratio(slidedisplay.name);

}
},
find_aspectratio: function(videoembed)
var height = videoembed.match(/height=”d+”/);
if (!height ;
height = parseInt(height0.replace(/height=”/, ”).replace(/”/, ”));

var width = videoembed.match(/width=”d+”/);
if (!width || !width0)
console.log(‘Your video embed code needs a width.’);
return ”;
;
width = parseInt(width0.replace(/width=”/, ”).replace(/”/, ”));

return (height / width)*100;
},
pull_answer_value_from_spreadsheet : function(row, value, wrong_number, correct)
var correct = correct ? ‘right’ : ‘wrong’;
if (rowcorrect + wrong_number + value && rowcorrect + wrong_number + value !== self.defaulting_flag)
return (rowcorrect + wrong_number + value);

if ( (self.defaulting_behavior_on && rowcorrect + wrong_number + value !== self.defaulting_flag)
|| (!self.defaulting_behavior_on && rowcorrect + wrong_number + value === self.defaulting_flag)
)
return (rowcorrect + value && rowcorrect + value !== self.defaulting_flag
? rowcorrect + value
: (row’answer’ + value && row’answer’ + value !== self.defaulting_flag
? row’answer’ + value
: row’question’ + value
)
);
else
return ”;

},
get_possible_answers : function(row, is_correct)
var possible_answers = [];
var right_or_wrong = (is_correct ? ‘right’ : ‘wrong’);
if (rowright_or_wrong)
possible_answers.push(self.make_possible_answer(row, ”, is_correct));

for (var i = 0; i < 10; i++ )
if (rowright_or_wrong + i)
possible_answers.push(self.make_possible_answer(row, i, is_correct));

}
return possible_answers;
},
make_possible_answer: function(row, row_number, is_correct)
var right_or_wrong = (is_correct ? ‘right’ : ‘wrong’);
var answer =
answer: rowright_or_wrong + row_number,
correct: is_correct
;
for (var i = 0; i < self.possible_display_elements.length; i++ )
var display_element = self.possible_display_elementsi.name;
answerdisplay_element = self.pull_answer_value_from_spreadsheet(
row, display_element, row_number, is_correct
)

return answer;
},
make_quiz_data_from_spreadsheet_data: function(data)
var quiz = [];
for (var i = 0; i < data.length; i++)
var row = datai;
var possible_wrong_answers = self.get_possible_answers(row, false);
var possible_right_answers = self.get_possible_answers(row, true);

var right_answer_placement = [];
for (var j = 0; j < possible_right_answers.length; j++)
right_answer_placement.push(
Math.round(Math.random() * possible_wrong_answers.length)
);

// IMPORTANT TO SORT THIS. rather than check if a value is in, we only check the first
right_answer_placement.sort();

var possible_answers= [];
var right_answers_placed = 0;
for (var j = 0; j <= possible_wrong_answers.length; j++)
while (j === right_answer_placementright_answers_placed)
//push right answer
possible_answers.push(possible_right_answersright_answers_placed);
right_answers_placed++;

if (j === possible_wrong_answers.length)
continue;

possible_answers.push(possible_wrong_answersj);
}

var question =
question :
,
possible_answers : possible_answers,
rowNumber : row.rowNumber – 1
};
for (var j = 0; j < self.possible_display_elements.length; j++)
var display_value = self.possible_display_elementsj.name;
question.questiondisplay_value = row’question’ + display_value;

quiz.push(question);
}
return quiz;
},
append_question : function(question_index)
var question_data = self.quiz_dataquestion_index
var question_container = jQuery(‘<li class=”question_container row-fluid question_’
+ question_index
+ ‘”>’
);
question_container.append( self.build_question_element_from_row(question_data) );
question_container.append( self.build_possible_answer_elements_from_row(question_data, question_index) );
container_elem.append(question_container);
,
build_question_element_from_row: function(row)
var question_container = jQuery(”);
for (var i = 0; i < self.possible_display_elements.length; i++)
question_container.append(
self.possible_display_elementsi.create_element(row.question)
);

return question_container;
},
build_possible_answer_elements_from_row : function(question, question_index)
var answers_container = jQuery(”);
for (var i = 0; i < question.possible_answers.length; i++)
var answer_data = question.possible_answersi;
var possible_answer = jQuery(”
+ answer_data.answer
+ ”);
(function(question_index, answer_index, possible_answer)
possible_answer.bind(‘click’, function()
// was it the right answer?
var was_correct = self.quiz_dataquestion_index.possible_answersanswer_index.correct;

// Add correct classes to possible answers
answers_container.find(‘.selected’).removeClass(‘selected’);
$(this).addClass(‘selected’);
$(this).removeClass(‘possible_answer’);
answers_container
.find(‘.answer_’ + answer_index)
.addClass(
was_correct
? ‘correct_answer’
: ‘wrong_answer’
);

//track how many you got right the first time
if ( typeof(answer_trackingquestion_index) === ‘undefined’ )
answer_trackingquestion_index = was_correct;
self.update_correct_answers_element();
cover.find(‘.question_’ + question_index).addClass(
‘first_guess_’
+ ( was_correct
? ‘right’
: ‘wrong’
)
);

//show new slide
self.display_answer(self.quiz_dataquestion_index, question_index, self.quiz_dataquestion_index.possible_answersanswer_index);

// track that this was selected last
self.quiz_dataquestion_index.previously_selected = self.quiz_dataquestion_index.possible_answersanswer_index;
});
})(question_index, i, possible_answer);
answers_container.append(possible_answer);
}
return answers_container;
},
add_display_in_correct_place: function(container, place_in_display_elements, slide)
for ( var i = place_in_display_elements; i > 0; i– )
if (self.possible_display_elementsi – 1.finder(container).length )
self.possible_display_elementsi – 1.finder(container)
.after( self.possible_display_elementsplace_in_display_elements.create_element(slide) );
return;

}
container.prepend(
self.possible_display_elementsplace_in_display_elements.create_element(slide)
);
},
display_answer : function(question, question_index, answer)
var displayed_slide = question.previously_selected
? question.previously_selected
: question.question;
var slide = container_elem.find(‘.question_’ + question_index + ‘ .question’);
slide.addClass(‘revealed_answer’);
for (var i = 0; i < self.possible_display_elements.length; i++)
var display_value = self.possible_display_elementsi.name;
if ( answerdisplay_value != displayed_slidedisplay_value )
if ( !answerdisplay_value )
self.possible_display_elementsi.finder(slide).remove();
else if ( !displayed_slidedisplay_value )
self.add_display_in_correct_place(slide, i, answer);
else
self.possible_display_elementsi.finder(slide).before(
self.possible_display_elementsi.create_element( answer )
).remove();

}
}
},

create_cover : function()
cover = $(‘#’ + self.container);
container_elem = jQuery(”);
cover.append(container_elem);
container_elem.addClass(‘quiz_container’);
container_elem.css(‘padding’, ‘0px’);
,
update_correct_answers_element: function()
var right_answers = 0;
for (var i = 0; i < self.quiz_data.length; i++)
if (answer_trackingi)
right_answers++;

}
correct_answers_element.text(right_answers);
}
};
return quiz.init(quiz_data, options);
};

$.fn.quiz = function(quiz_data, options)
options = options ;
options.container = this.attr(‘id’);
this.quiz = $.quiz(quiz_data, options);
return this;
};
}(jQuery));

On Wednesday, at the end of a day dominated by reports that his aides had gleefully shut down a bridge as payback to a political rival, New Jersey Gov. Chris Christie took a moment to apologize. Sort of. “What I’ve seen today for the first time is unacceptable,” Christie said in a statement. “I am outraged and deeply saddened to learn that not only was I misled by a member of my staff, but this completely inappropriate and unsanctioned conduct was made without my knowledge.” The political apology (or non-apology, as the case may be), is an art form. But as with other art forms, its intricacies are often lost on the general public.

Below are excerpts from some of the more infamous apologies made by American politicians and Rob Ford. Can you match the apology to the offender?

var quiz = jQuery(‘#quiz_container’).quiz(‘0AuHOPshyxQGGdG9DVDBwdERFLVVNYVpGX1RzQVNCWkE’); //your published spreadsheet key or URL goes here

This article is from:  

QUIZ: Match the Political Scandal to the Apology

Posted in FF, GE, LG, ONA, Uncategorized, Venta | Tagged , , , , , , , , , , | Comments Off on QUIZ: Match the Political Scandal to the Apology

Charts: Why Fast-Food Workers Are Going on Strike

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

This Thursday, fast-food workers in more than 100 cities are planning a one-day strike to demand a “livable” wage of $15 an hour. They have a point: The lowest-paid Americans are struggling to keep up with the cost of living—and they have seen none of the gains experienced by the country’s top earners. While average incomes of the top 1 percent grew more than 270 percent since 1960, those of the bottom 90 percent grew 22 percent. And the real value of the minimum wage barely budged, increasing a total of 7 percent over those decades.

More of the numbers behind the strike and the renewed calls to raise the minimum wage:

Median hourly wage for fast-food workers nationwide:
$8.94/hour

Increase in real median wages for food service workers since 1999:
$0.10/hour

Last time the federal minimum wage exceeded $8.94/hour (in 2012 dollars):
1968

Change in the real value of the minimum wage since 1968:
-22%

Median age of fast-food workers:
29

Median age of female fast-food workers:
32

Percentage of fast-food workers who are women:
65%

Percentage of fast-food workers older than 20 who have kids:
36%

Income of someone earning $8.94/hour:
$18,595/year

Federal poverty line for a family of three:
$17,916/year

Income of someone earning $15/hour:
$31,200/year

Income needed for a “secure yet modest” living for a family with two adults and one child…
In the New York City area: $77,378/year
In rural Mississippi: $47,154/year

Growth in average real income of the top 1 percent since 1960:
271%

What the current minimum wage would be if it had grown at the same rate as top incomes:
More than $25

How would you and your family fare on a typical fast-food paycheck? How much does it really take to make ends meet in your city or state? Use this calculator to get a better sense of what fast-food workers are up against.

How many people are in your household? One Adult No Children
One Adult One Child
One Adult Two Children
One Adult Three Children
Two Adults No Children
Two Adults One Child
Two Adults Two Children
Two Adults Three ChildrenWhich state do you live in? Which area do you live in? (Area data not available for households without children.)How much do you make in a year? $

In order to make $___ a year, the typical fast-food worker has to work __ hours a week.

A household like yours in ___, ___ needs to earn $__ annually to make a secure yet modest living. A fast-food worker working full time would have to earn $__ an hour to make that much.

The average fast-food employee works less than 25 hours a week. To make a living wage in ___, ___ at current median wages, s/he would have to work __ hours a week.

In __ hours, McDonald’s serves __ customers and makes $__. That’s about __ Big Macs.

var median_fast_food_worker_wage = 8.94; // Source: National Employment Law Project, July 2013; http://nelp.3cdn.net/84a67b124db45841d4_o0m6bq42h.pdf
var work_weeks_per_year = 52;
var months_per_year = 12;
var average_fast_food_worker_hours_per_week = 24.4;
var average_weeks_in_a_month = 4.348;
var hours_worked_at_full_time = 40;

var days_in_2012 = 366; //leap year
var McDonalds_customers_per_day_in_2012 = 69000000; // Source: McDonalds 2012 Annual Report
var hours_in_day = 24;
var mcD_systemwide_restaurants = 34480;
var mcD_served_per_hour = McDonalds_customers_per_day_in_2012 / hours_in_day;

var mcD_earnings_in_2012 = 27567000000; // Source: McDonalds 2012 Annual Report http://www.aboutmcdonalds.com/content/dam/AboutMcDonalds/Investors/Investor%202013/2012%20Annual%20Report%20Final.pdf
var mcD_earned_per_hour = Math.round(mcD_earnings_in_2012 / days_in_2012 / hours_in_day);

var cost_of_big_mac = 4;

var first_state = ‘AK’;
var first_locale = ‘Anchorage, AK HUD Metro FMR Area’;
var state_abbr =
‘AL’ : ‘Alabama’,
‘AK’ : ‘Alaska’,
‘AS’ : ‘America Samoa’,
‘AZ’ : ‘Arizona’,
‘AR’ : ‘Arkansas’,
‘CA’ : ‘California’,
‘CO’ : ‘Colorado’,
‘CT’ : ‘Connecticut’,
‘DE’ : ‘Delaware’,
‘DC’ : ‘District of Columbia’,
‘FM’ : ‘Micronesia1’,
‘FL’ : ‘Florida’,
‘GA’ : ‘Georgia’,
‘GU’ : ‘Guam’,
‘HI’ : ‘Hawaii’,
‘ID’ : ‘Idaho’,
‘IL’ : ‘Illinois’,
‘IN’ : ‘Indiana’,
‘IA’ : ‘Iowa’,
‘KS’ : ‘Kansas’,
‘KY’ : ‘Kentucky’,
‘LA’ : ‘Louisiana’,
‘ME’ : ‘Maine’,
‘MH’ : ‘Islands1’,
‘MD’ : ‘Maryland’,
‘MA’ : ‘Massachusetts’,
‘MI’ : ‘Michigan’,
‘MN’ : ‘Minnesota’,
‘MS’ : ‘Mississippi’,
‘MO’ : ‘Missouri’,
‘MT’ : ‘Montana’,
‘NE’ : ‘Nebraska’,
‘NV’ : ‘Nevada’,
‘NH’ : ‘New Hampshire’,
‘NJ’ : ‘New Jersey’,
‘NM’ : ‘New Mexico’,
‘NY’ : ‘New York’,
‘NC’ : ‘North Carolina’,
‘ND’ : ‘North Dakota’,
‘OH’ : ‘Ohio’,
‘OK’ : ‘Oklahoma’,
‘OR’ : ‘Oregon’,
‘PW’ : ‘Palau’,
‘PA’ : ‘Pennsylvania’,
‘PR’ : ‘Puerto Rico’,
‘RI’ : ‘Rhode Island’,
‘SC’ : ‘South Carolina’,
‘SD’ : ‘South Dakota’,
‘TN’ : ‘Tennessee’,
‘TX’ : ‘Texas’,
‘UT’ : ‘Utah’,
‘VT’ : ‘Vermont’,
‘VI’ : ‘Virgin Island’,
‘VA’ : ‘Virginia’,
‘WA’ : ‘Washington’,
‘WV’ : ‘West Virginia’,
‘WI’ : ‘Wisconsin’,
‘WY’ : ‘Wyoming’

var selected_state = jQuery(“#selected_state”);
var selected_locale = jQuery(“#selected_locale”);
var selected_household = jQuery(“#selected_household”);

for (var state in bfjo)
var option = jQuery(” + state_abbrstate + ”);
selected_state.append(option);

var fill_locale_selector = function(state_object)

selected_locale.html(“”);

for (var locale in state_object)
var option = jQuery(” + locale.replace(/,.*$/, ”) + ”);
selected_locale.append(option);

}

fill_locale_selector(bfjofirst_state)

selected_state.bind(“change”,
function()
var state = $(“#selected_state option:selected”).val();
var state_object = bfjostate;

fill_locale_selector(state_object);

)

/*
var fill_household_selector = function(locale_object)
var selected_household = jQuery(“#selected_household”);

selected_household.html(“”);

for (var household in locale_object)
var option = jQuery(” + household + ”);
selected_household.append(option);

}

fill_household_selector(bfjofirst_statefirst_locale)
*/

selected_locale.bind(“change”,
function()
var state = $(“#selected_state option:selected”).val();
var locale = $(“#selected_locale option:selected”).val();
var locale_object = bfjostatelocale;

//fill_household_selector(locale_object);

)

enable_disable_locale = function()
var household = $(“#selected_household option:selected”).val();
if (household === ‘1P0C’ else
selected_locale.attr(‘disabled’, ”);

}
selected_household.bind(“change”,
function()
enable_disable_locale();

);
enable_disable_locale();

jQuery(“#calculate_this”).bind(“submit”,
function()

var state = $(“#selected_state option:selected”).val();
var locale = $(“#selected_locale option:selected”).val();
var household = $(“#selected_household option:selected”).val();
var salary = parseInt($(“#input_salary”).val());

var annual_living_wage = bfjostatelocalehousehold;
console.log(state);
console.log(locale);
console.log(household);
console.log(annual_living_wage);
var hourly_for_living = annual_living_wage / months_per_year
/ average_weeks_in_a_month / hours_worked_at_full_time;

var hours_to_live_per_month = annual_living_wage / months_per_year / median_fast_food_worker_wage;
var weeks_to_live_per_month = hours_to_live_per_month / hours_worked_at_full_time;

var salary_monthly = salary / months_per_year;
var hours_to_salary_monthly = salary_monthly / median_fast_food_worker_wage;
var weeks_to_salary_monthly = hours_to_salary_monthly / hours_worked_at_full_time;

var hours_living_a_week = hours_to_live_per_month / average_weeks_in_a_month;
var hours_salary_a_week = hours_to_salary_monthly / average_weeks_in_a_month;

var commify = function(number)
while (/(d+)(d3)/.test(number.toString()))
number = number.toString().replace(/(d+)(d3)/, ‘$1’+’,’+’$2′);
}
return number;
}

var salary_string = commify(salary);
var yearly_living_wage_string = commify(annual_living_wage);
/*
while (/(d+)(d3)/.test(salary_string.toString()))
salary_string = salary_string.toString().replace(/(d+)(d3)/, ‘$1’+’,’+’$2′);

while (/(d+)(d3)/.test(yearly_living_wage_string.toString()))
yearly_living_wage_string = yearly_living_wage_string.toString().replace(/(d+)(d3)/, ‘$1’+’,’+’$2′);

*/

jQuery(“#calculated”).show();
jQuery(“#fast_food_calculator_hours”).text(Math.round(hours_to_live_per_month));
jQuery(“#fast_food_calculator_state”).text(state_abbrstate);
jQuery(“#fast_food_calculator_state2”).text(state_abbrstate);
if (household === “1P0C” || household === “2P0C”)
jQuery(“#fast_food_calculator_locale”).text(”);
jQuery(“#fast_food_calculator_locale2″).text(”);
else
jQuery(“#fast_food_calculator_locale”).text(locale.replace(/,.*$/, ”) + ‘,’);
jQuery(“#fast_food_calculator_locale2″).text(locale.replace(/,.*$/, ”) + ‘,’);

jQuery(“#salary”).text(salary_string);
jQuery(“#fast_food_calculator_time”).text(Math.round(hours_to_salary_monthly));

jQuery(“#living_hours_per_week”).text(Math.round(hours_living_a_week));
jQuery(“#living_hours_per_week2”).text(Math.round(hours_living_a_week));

jQuery(“#salary_hours_per_week”).text(Math.round(hours_salary_a_week));
jQuery(“#fast_food_calculator_living_wage_annual”).text(yearly_living_wage_string);

jQuery(“#mc_d_customers_served”).text(
commify(
Math.round(
Math.round(hours_living_a_week) * mcD_served_per_hour
)
)
);
jQuery(“#mc_d_money_earned”).text(
commify(Math.round(Math.round(hours_living_a_week) * mcD_earned_per_hour))
);

jQuery(“#big_mac_count”).text(
commify(
Math.round(
Math.round(hours_living_a_week)
* mcD_earned_per_hour
/ cost_of_big_mac
)
)
);

console.log(hourly_for_living);
var hourly_for_living_clean = Math.round(hourly_for_living * 100)
.toString().replace(/(d+)(d2)/, ‘$1’+’.’+’$2′);
jQuery(“#living_wage_hourly”).text(hourly_for_living_clean);

return false;

}

)

View this article:

Charts: Why Fast-Food Workers Are Going on Strike

Posted in Anchor, FF, GE, LG, ONA, Uncategorized, Venta | Tagged , , , , , , , , , , , | Comments Off on Charts: Why Fast-Food Workers Are Going on Strike