Drupal.behaviors.knowyourrights = { attach: function (context) { var questions = [ { number: 1, question: "The cops have a warrant to search my computer. They're demanding my encryption key. Do I have to give it to them?", answers: [ { answer: "No, there are no circumstances under which you can be forced to give up an encryption key because it violates your constitutional right to due process.", correct: false }, { answer: "No, you don't have to give the encryption key to the police as they seize the computer, but it's possible a court could make you do it later.", correct: true }, { answer: "Yes, if the police have a warrant for your computer, it includes your encryption key. If you don't tell them, you could be charged with obstructing justice.", correct: false }, { answer: "Yes, in fact you should always give your encryption key to the police, even if they don't have a warrant. It could help them in an investigation.", correct: false } ] }, { number: 2, question: "I was arrested. Can the police search my cell phone?", answers: [ { answer: "No way. You have constitutional protections against unreasonable search and seizure. The police can seize your cell phone but will need to go to court for a warrant before they can search it.", correct: true }, { answer: "Yes. The police can search anything they find on your person or in your pockets at the time of arrest. This includes electronic devices.", correct: false }, { answer: "Sometimes - the issue is still being decided in court. For now, it depends on the circumstances and the vagaries of your local court system. Some courts want the police to get a warrant before searching a cell phone, others don't.", correct: false }, { answer: "Not if you throw it into the toilet before they can take it from you.", correct: false } ] }, { number: 3, question: "What if I'm not there when the police show up? Can my roommate or partner consent to a search of my electronic device?", answers: [ { answer: "Nope. The Fourth Amendment prevents search of your devices unless *you* give consent or the police get a warrant.", correct: false }, { answer: "Yes. All the more reason to avoid getting saddled with roommates and partners.", correct: false }, { answer: "Yes, but only in Tennessee, Texas and Oregon.", correct: false }, { answer: "Yes, but only if the police think that the other person has control over the device.", correct: true } ] }, { number: 4, question: "I'm flying back to the U.S. with a Kindle. When I land in the U.S., which of the following is true?", answers: [ { answer: "Border agents can only search laptops without a warrant. Electronic readers, cell phones and other electronic devices require a warrant.", correct: false }, { answer: "Border agents can ask for your permission to look at your Kindle, but can't search it without a warrant unless you give verbal consent.", correct: false }, { answer: "Border agents can search your Kindle but must keep it within your sight and must either get a warrant or return it within 5 hours.", correct: false }, { answer: "Border agents can seize your Kindle and take it offsite for forensic analysis, and keep it for a significant amount of time - sometimes even for weeks.", correct: true } ] }, { number: 5, question: "Can the police search my work computer if I don't consent?", answers: [ { answer: "Probably, if it's a computer you share with other coworkers.", correct: false }, { answer: "Yes, if your employer consents.", correct: false }, { answer: "Yes, if you work for the government and it's a work-related, non-invasive search.", correct: false }, { answer: "All of the above.", correct: true } ] }, { number: 6, question: "I got pulled over for speeding. My cell phone is on the seat next to me. Can the police rummage through it?", answers: [ { answer: "Possibly. If the police have reason to think there's evidence of a crime in your cell phone, they might be able to search it.", correct: false }, { answer: "No. Your phone carries far more detailed and comprehensive information than the police are legally allowed to access without a warrant.", correct: true }, { answer: "Yes, the police can search your phone, but only if it's visible to them. They can go through the contacts, the voice messages, the pictures - anything on the device.", correct: false }, { answer: "Yes, but only if they formally arrest you.", correct: false } ] }, { number: 7, question: "Which of the following is NOT true when a police officer serves you with a warrant?", answers: [ { answer: "You have a right to inspect the warrant.", correct: false }, { answer: "As long as it's been signed by a judge, a warrant doesn't have to specify what will be searched or seized.", correct: true }, { answer: "The police must knock and announce themselves before entering your home to serve a warrant.", correct: false }, { answer: "The police must generally serve the warrant during daylight hours.", correct: false } ] }, { number: 8, question: "What should you say to the police when they show up to search an electronic device, even if you are not the subject of the search?", answers: [ { answer: "I do not consent to this search", correct: false }, { answer: "I want to speak to a lawyer", correct: false }, { answer: "I am choosing to remain silent", correct: false }, { answer: "All of the above", correct: true } ] } ]; var current_question; var answers; function initialize_quiz() { current_question = 0; answers = {}; jQuery.each(questions, function (key, val) { answers[val.number] = null; }); } initialize_quiz(); function display_question() { // draw the quiz question var $quiz = jQuery('
8 out of 8 - L33t!
Seriously, you\'re scarily knowledgeable about this issue. Do you already work at EFF or do you just have a lot of personal experience in this arena? Learn even more by checking out our new guide.
'); } else if(correct_answers == 7) { $left.append('7 out of 8 - Nearly L33t!
Oh, so very, very close! Looks like you only missed one question. Not half bad! Brush up on the details by checking out our new guide.
'); } else if(correct_answers == 6) { $left.append('' + correct_answers + ' out of 8 - N00b+
Oh, dear. Looks like you aren\'t the rockstar at electronic device seizure you thought you were. But don\'t worry - EFF\'s guide will teach you everything you need to know about what to do when the police come asking for your electronic devices.
'); } else if(correct_answers < 6) { $left.append('' + correct_answers + ' out of 8 - N00b
Oh, dear. Looks like you aren\'t the rockstar at electronic device seizure you thought you were. But don\'t worry - EFF\'s guide will teach you everything you need to know about what to do when the police come asking for your electronic devices.
'); } var tweet_link = 'https://twitter.com/?status=I scored ' + correct_answers + '%2F8 in the %40EFF Know Your Digital Rights Quiz. How well do you know your rights%3F https%3A%2F%2Feff.org%2Fr.66G'; $right.append(''); $right.append('Learn more about your digital rights! Check out EFF\'s whitepaper on what to do when law enforcement seeks to access your electronic devices.
'); $right.append( jQuery('What did you get wrong?
'); $quiz.append(incorrect_html); } jQuery('#quiz').html($quiz); jQuery('#quiz-pager').html(''); }) ); } jQuery('#quiz-pager').html($pager); } display_question(); } }