English Puns


1) { userPct = 1; } } $j(‘#userPct’).html(_.round(100 * userPct)); $j(‘#avgPct’).html(_.round(100*averageScore)); if (quizBadge && !quizBadge.condition_earned && quizBadge.logged_in && !stopwatch) { updateBadge(userPct); } if (showSnark) { var snark = getSnark(userPct); var attachSnarkModalListener = false; if (snark !== ») { if (false) { attachSnarkModalListener = true; snark += «
(Hide)»; } else { snark += «
(Hide)»; } } $j(‘#snark’).html(snark); if(attachSnarkModalListener){ $j(‘#hide-snark-open-confirmation-modal’).on(‘click’, function () { ga(‘send’,’event’,’Hide Snark — Logged in’); var modalArgs = { onYes: function(remodal){ $j.ajax({ type: «GET», url: «/ajax/user_settings.php», data: {s: 0}, success: function(response) { if (response.success) { $j(‘#snark’).hide(); remodal.close(); } else { if (response.responseJSON.message) { remodal.$modal.find(‘#confirmation-error’).html(response.responseJSON.message); remodal.$modal.find(‘#confirmation-error’).show(); } else { remodal.$modal.find(‘#confirmation-error’).html(‘There was an error saving your preferences. Please contact feedback if you continue to see this issue.’); remodal.$modal.find(‘#confirmation-error’).show(); } } }, error: function(response) { if (response.responseJSON.message) { remodal.$modal.find(‘#confirmation-error’).html(response.responseJSON.message); remodal.$modal.find(‘#confirmation-error’).show(); } else { remodal.$modal.find(‘#confirmation-error’).html(‘There was an error saving your preferences. Please contact feedback if you continue to see this issue.’); remodal.$modal.find(‘#confirmation-error’).show(); } } }); }, msg: ‘Are you sure you want to hide post-quiz messages?’ }; SporcleLib.Modal.openConfirmationModal(modalArgs); }); } } else { $j(‘#snark’).hide(); } // Update get reckoning with playlist info playlistReckoning(userPct, false && !stopwatch); $j(‘#reckonBox’).show(); $j(‘#alsoTry’).show(); if (mweb) { /* mobile games only */ $j(‘#reckoning-numright’).html(numRight); $j(‘#reckoning-time’).html(displayTime(timerSecs)); if (stopwatch) { $j(‘#reckoning-time-title’).text(«Stopwatch»); $j(‘#reckoning-time, #reckoning-score’).addClass(‘timePast’); } } $j(‘#gameBarBox’).addClass(‘post’); $j(‘#playGameBox’).empty().hide(); $j(‘#postGameBox’).show(); } function toggleshow() { showans = !showans; } function updateBadge(userPct) { var earned = false; if (quizBadge && userPct > 0) { if (quizBadge.criteria && quizBadge.criteria.length) { var requiredCount = quizBadge.criteria.length; var earnedCount = 0; //Loop through possible badge criteria to see if we earned them quizBadge.criteria.forEach(function (criterion) { var comparison = parseInt(criterion.compare); if(criterion.name === ‘percent’){ if ((comparison === 0 && userPct === parseFloat(criterion.value)) || //’0′ means percent needs to equal (comparison === 1 && userPct > parseFloat(criterion.value)) || //’1′ means percent needs to be greater than (comparison === -1 && userPct criterion.value && comparison === 1) || (d.getMonth() + 1 criterion.value && comparison === 1) || (d.getDate() criterion.value && comparison === 1) || (d.getDay() < criterion.value && comparison === -1) ){ earnedCount++; } } }); earned = earnedCount == requiredCount; } else { earned = true; } } if (earned) { quizBadge.condition_earned = true; var spliceIndex = null; _(quizBadge.remaining_conditions).each(function(condition, index) { if (quizBadge.condition_id == condition.condition_id) { spliceIndex = index; } }); if (spliceIndex !== null) { quizBadge.remaining_conditions.splice(spliceIndex, 1); quizBadge.condition_earned_date = (new Date()).toLocaleDateString(undefined, { year: 'numeric', month: 'long', day: 'numeric' });; } if (quizBadge.remaining_conditions.length == 0 ) { quizBadge.badge_earned = true; var currDate = new Date(); quizBadge.earned_date = window.SporcleLib.GetMonthString(currDate.getMonth()) + ' ' + currDate.getDate() + ', ' + currDate.getFullYear(); } badgeTooltip.deactivate(); var template = _.template($j('#quiz-badge-template').html()); $j('#quiz-badge').replaceWith($j(template(quizBadge))); if (!quizBadge.badge_earned) { var conditionsTemp = _.template($j('#badge-conditions-template').html()); var tooltipHtml = $j(conditionsTemp(quizBadge)); badgeTooltip = new Opentip($j('#quiz-badge-art'), tooltipHtml.html(), { stem: 'bottom left', stemLength: 20, stemBase: 30, fixed: true, target: $j('#quiz-badge-art'), targetJoint: 'top right', tipJoint: 'bottom left', hideTriggers: ['tip', 'target'], hideOn: 'mouseout', hideDelay: 0.2, group: 'badges', background: 'white', borderColor: '#dddddd', borderWidth: 5, shadowOffset: [10,10], shadowBlur: 5, showEffect: 'slide', showEffectDuration: 0.1, removeElementsOnHide: true, hideEffectDuration: 0.1 } ); } } } function showHintTooltip(x, y, hint) { $hint = $j('#hintTooltip'); if ($hint.length == 0) { $hint = $j( '' + ']]>‘ + » + » ) .appendTo($j(‘body’)); } if (hint) { var $afterContainer = $hint.find(‘.afterContainer’); var $after = $hint.find(‘.after’); // Set to max width before resize $afterContainer.css({ width: ‘120px’ }); $hint.show(); // Set tooltip text to hint $after.html(hint); // Get width of tooltip with text var width = Math.ceil($after[0].offsetWidth) + 1; var leftShift = 0; if (mweb) { // Make sure the tooltip doesn’t go off either side of the screen var leftBound = 51; var rightBound = $j(‘body’).width() — 71; var buf = 11; // Shift based on width of text var shiftLimit = Math.max(width/2 — 20, 0); if (x rightBound) { // Too close to right edge of screen leftShift = shiftLimit; x = Math.min(x, $j(‘body’).width() — buf); } } // Set the position of the hint $hint.css({ left: x + ‘px’, top: y + ‘px’, }); // Set outer container size and position $afterContainer.css({ width: width + ‘px’, left: ‘-‘ + ((width / 2) + leftShift) + ‘px’ }); } else { $hint.hide(); } } function getRandomColor() { var r = Math.round(Math.random() * 255); var g = Math.round(Math.random() * 255); var b = Math.round(Math.random() * 255); return ‘rgb(‘ + r + ‘,’ + g + ‘,’ + b + ‘)’; } function hintTooltipIsDisplayed() { return $j(‘#hintTooltip’).is(‘:visible’); } function getCurrentHintText() { return $j(‘#hintTooltip .afterContainer .after’).text(); } function runStartCode(stopwatch) { if (typeof stopwatch !== ‘undefined’) { if (stopwatch) { window.selectTimerSetting(‘stopwatch’); } else { window.selectTimerSetting(‘timer’); } } if (typeof gamePageIsLoaded != «undefined» && gamePageIsLoaded) { startGame(360); pickSlot(); callSPHooks(‘postStart’); } } function callSPHooks(name) { if (typeof _spHooks != ‘undefined’) { var hlen = _spHooks[name].length; for (var i = 0; i

How can you tell that this question is not about to have a baby?

What would you find in Charles Dickens’ kitchen?

What happened when Past, Present, and Future walked into a bar?

Why are apostrophes terrible to date?

What was Walt Whitman’s favorite breakfast cereal?

How did Charlotte Brontë make it easier for everyone to breathe?

Which dinosaur knows a lot of synonyms?

What’s the difference between a cat and a comma?

Why is John Milton terrible to invite to game nights?

Why do words, phrases and punctuation keep ending up in court?

What happened when the verb asked the noun to conjugate?

What makes “Civil Disobedience” such a great essay?

How does Voltaire like his apples?

What do writers eat for breakfast?

What was Socrates’ favorite thing to mold?

Why did Shakespeare only write in pen?

Why was Odysseus in such a rush to get home?

Why did the copyeditor vomit when she saw a typo?

Which author is often mistaken for an artificially built water source?

What do you call a treehouse that kids can only play in when their parents are around?

Why do writers constantly feel cold?

What’s the best way to get an English major in the mood?

OR

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *