var Activity_manuscript_type = Activity.extend({ // following override is for MathJax support - need to re-render math after submit due to query's HTML being re-written to DOM. submit_question: function (question_index) { this._super(question_index); // re-call mathjax conversion here MathJax.Hub.Queue(["Typeset", MathJax.Hub]); }, ARGA_initialization_alert: function () { // ... unless a md value says to override that if (player.md.show_standard_arga_initialization == "true") { this._super(); } else { // we just have to call ARGA_initialization_final player.activity.ARGA_initialization_final(); } } }); var Player_manuscript_type = Player.extend({ check_activity_availability: function () { //check URL. If on websterfw.com, then show content (do nothing), if not, then determine if content should show or if coming soon message should show safe_log("checking availability"); if (document.URL.indexOf('digfir-published.macmillanusa') == -1) { var isViewable = $("[key=activity_is_viewable]").html(); if (isViewable != null) { isViewable = $.trim(isViewable); isViewable = isViewable.toLowerCase(); if (isViewable == "false") { this.show_coming_soon_message(); } } } }, show_coming_soon_message: function () { var html = "