Pinnacle Of The Box Workplace (2011)

0
12

“)$objective.css(‘historical past-picture’ : `url(‘$reckoningQuestObjective.clue_image’)`,).click(() => window.onClickObjective(reckoningQuestObjective.quest_number, reckoningQuestObjective.objective_number, reckoningQuestObjective.objective_id, $objective););if (!window.mweb) $goal.appendTo($j(‘#snark’)); else $objective.appendTo($j(‘#reckoning .stats-wrapper’)); else if (showSnark) var snark = getSnark(userPct);var attachSnarkModalListener = fake;if (snark !== ”) snark = “”+snark+””;if (fake) attachSnarkModalListener = true;snark += “”; else snark += “”; else $j(‘#snark’).hide();$j(‘#snark’).html(snark);if(attachSnarkModalListener)$j(‘#disguise-snark-open-affirmation-modal’).on(‘click’, feature () ga(‘ship’,’occasion’, ‘Game Page’, ‘Hide Snark’, window.gameurl_short);var modalArgs = onYes: function(remodal)$j.ajax(type: “GET”,url: “/ajax/user_settings.php”,information: s: 0,fulfillment: function(response) if (response.fulfillment) $j(‘#snark’).cover();remodal.near(); else if (response.responseJSON.message) remodal.$modal.find(‘#affirmation-blunders’).html(reaction.responseJSON.message);remodal.$modal.discover(‘#affirmation-mistakes’).show(); else remodal.$modal.discover(‘#affirmation-mistakes’).html(‘There became an error saving your options. Please touch comments if you maintain to peer this problem.’);remodal.$modal.locate(‘#affirmation-blunders’).display();,blunders: characteristic(response) if (reaction.responseJSON.message) remodal.$modal.find(‘#affirmation-mistakes’).html(reaction.responseJSON.message);remodal.$modal.discover(‘#affirmation-errors’).show(); else remodal.$modal.locate(‘#affirmation-blunders’).html(‘There become an error saving your choices. Please touch feedback in case you maintain to look this trouble.’);remodal.$modal.discover(‘#confirmation-error’).display(););,msg: ‘Are you sure you want to hide post-quiz messages?’;SporcleLib.Modal.openConfirmationModal(modalArgs);); else $j(‘#snark’).conceal();// Update get reckoning with playlist infovar playlistData;if (mweb) playlistData = typeof window.playlist === ‘item’ && window.playlist.hasOwnProperty(‘games’) ? window.playlist : null; else playlistData = window.Sporcle.gameData.playlist ? window.Sporcle.gameData.playlist.vm.statistics : null;if (playlistData) playlistReckoning(playlistData, userPct, fake && !stopwatch);$j(‘#playGameBar’).addClass(‘reckoning’);$j(‘#reckonBox’).show();if (mweb) /* mobile games only */$j(‘#reckoning-numright’).html(numRight);$j(‘#reckoning-time’).html(displayTime(timerSecs));if (stopwatch) $j(‘#reckoning-time-identify’).textual content(“Stopwatch”);$j(‘#reckoning-time, #reckoning-score’).addClass(‘timePast’);$j(‘#playGameBox’).empty().cover();$j(‘#postGameBox’).show();feature toggleshow() showans = !showans;function roundPercentScore(pctScore) return _.spherical(100 * pctScore);feature updateBadge(userPct) var earned = false;if (quizBadge && userPct > 0) if (quizBadge.criteria && quizBadge.standards.length) var requiredCount = quizBadge.criteria.length;var earnedCount = 0;//Loop through feasible badge standards to look if we earned themquizBadge.criteria.forEach(feature (criterion) var contrast = parseInt(criterion.compare);if(criterion.call === ‘percent’)if ((comparison === zero && userPct === parseFloat(criterion.fee //’zero’ means percentage desires to identical(evaluation === 1 && userPct > parseFloat(criterion.pricemeans percent needs to be extra than(assessment === -1 && userPctcriterion.fee && evaluationprice && comparisonvalue && evaluation === 1) contrast === 1) body’));if (hint) var $afterContainer = $trace.find(‘.afterContainer’);var $after = $trace.locate(‘.after’);// Set to max width before resize$afterContainer.css(width: ‘120px’);$trace.display();// Set tooltip text to hint$after.html(hint);// Get width of tooltip with textvar width = Math.ceil($after[0].offsetWidth) + 1;var leftShift = zero;if (mweb) // Make sure the tooltip doesn’t go off both side of the screenvar leftBound = fifty one;var rightBound = $j(‘body’).width() – seventy one;var buf = eleven;// Shift primarily based on width of textvar shiftLimit = Math.max(width/2 – 20, zero);if (xrightBound) // Too near proper edge of screenleftShift = shiftLimit;x = Math.min(x, $j(‘body’).width() – buf);// Set the location of the hint$hint.css(left: x + ‘px’,pinnacle: y + ‘px’,);// Set outer container length and function$afterContainer.css(width: width + ‘px’,left: ‘-‘ + ((width / 2) + leftShift) + ‘px’); else $hint.disguise();characteristic 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 + ‘)’;characteristic hintTooltipIsDisplayed() go back $j(‘#hintTooltip’).is(‘:seen’);characteristic getCurrentHintText() go back $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(three hundred);callSPHooks(‘postStart’);feature callSPHooks(name) if (typeof _spHooks != ‘undefined’) var hlen = _spHooks[name].duration;for (var i = 0; i

LEAVE A REPLY

Please enter your comment!
Please enter your name here