summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js')
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js b/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js
new file mode 100644
index 00000000..38934344
--- /dev/null
+++ b/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js
@@ -0,0 +1,2 @@
+/* Do not modify this file directly. It is compiled from other files. */
+!function(a){a.fn.shuffleQuiz=function(){var t=this.get(),n=function(a){return Math.floor(Math.random()*a)},i=a.map(t,function(){var i=n(t.length),r=a(t[i]).clone(!0)[0];return t.splice(i,1),r});return this.each(function(t){a(this).replaceWith(a(i[t]))}),a(i)}}(jQuery),jQuery(function(a){a(".jetpack-quiz").each(function(){var t=a(this);t.find("div.jetpack-quiz-answer").shuffleQuiz(),t.find("div[data-correct]").removeAttr("data-correct").data("correct",1),t.find("div.jetpack-quiz-answer:last").addClass("last")}),a("div.jetpack-quiz").on("click","div.jetpack-quiz-answer",function(){var t,n=a(this),i=n.closest("div.jetpack-quiz");i.data("a8ctraining")&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_trainingchaos-"+i.data("username")+"="+i.data("a8ctraining")+"&rand="+Math.random(),i.data("a8ctraining",!1),i.data("trackid",!1)),t=i.data("trackid"),n.data("correct")?(n.addClass("correct"),t&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+t+"=correct&rand="+Math.random())):(n.addClass("wrong"),t&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+t+"=wrong&rand="+Math.random())),i.data("trackid",!1)})}); \ No newline at end of file