bwdefine("whiteboard",["config","whiteboardcommon","BWMATH","bw/widget","jquery","bw/tr"],function(e,t,n,o,i,a){"use strict";return i(function(){function s(){i("#infobutton").hasClass("bw-selected")?(i("#info").html(""),i("#infobutton").removeClass("bw-selected")):(i("#info").html(n.prepare(e.text)),n.process(i("#info").find(".bwmathquill")),i("#infobutton").addClass("bw-selected"))}function l(){console.log("resize"),o.centerTitle(!0),u.resize()}if(o.makeWidget({layout:"title_toolbar_layout",title:e.question&&""!=e.question?e.question:e.pagename&&""!=e.pagename?n.prepare(e.pagename):a("Whiteboard"),"no-user-select":!0}),n.process(i("#top-container").find(".bwmathquill")),"yes"==e.showname){var r=document.getElementById("page_name");r.innerHTML=e.pagename}else i("#pagename-container").hide();var u=t.whiteboardCommonInit("top","top","top");""!=e.text&&(i("#infobutton").click(s),i("#infobutton").show(),s()),window.onresize=l,l()}),null}),bwdefine.finalize();