public TeachEvaluate() { HtmlDocument = new Bootstrap { Children = { "<p class=\"mt-3\">本功能可以帮助你完成评教。蓝色代表可以评价,黄色代表需要手动登录网页评价,绿色代表评价完成。</p>".ToRawHtml(), "<table class=\"table\" id=\"evalItemList\">" + "<tr><th>教师</th><th>学院</th>" + Core.OnPlatform("", "", "<th>教学任务</th>") + "</tr></table>".ToRawHtml() }, JavaScript = { $"var list = []; var i = 0, len = 0; " + $"var uwp = {(Core.RuntimePlatform == "UWP" ? "true" : "false")};", HotfixAttribute.ReadContent(this) ?? "invokeCSharpAction('msg;模块热更新出现问题,请重启应用尝试。')" } }; Menu.Add(new InfoEntranceMenu("开始", new Command(() => Evaluate("solve()")), "\uE8B0")); }
public SelectCourse() { HtmlDocument = new Bootstrap { Children = { "<p class=\"mt-3\">目前选课:<span id=\"splanName\">未知</span></p>" + "<table class=\"table table-responsive\">" + "<thead><tr><th style=\"min-width:4em\">状态</th><th style=\"min-width:14em\">课程</th>" + "<th style=\"min-width:5em\">类型</th></tr></thead><tbody id=\"courList\">" + "</tbody></table>" + "<table class=\"table table-responsive\">" + "<thead><tr><th style=\"min-width:5em\">教师</th><th style=\"min-width:4em\">操作</th>" + "<th style=\"min-width:15em\">时间</th></tr></thead><tbody id=\"schList\">" + "</tbody></table>".ToRawHtml() }, JavaScript = { HotfixAttribute.ReadContent(this) ?? "invokeCSharpAction('msg;模块热更新出现问题,请重启应用尝试。')" } }; }
/// <summary> /// 读取热更新的脚本内容。 /// </summary> public virtual string GetContent() { return(HotfixAttribute.ReadContent(this) ?? "invokeCSharpAction('msg;模块热更新出现问题,请重启应用尝试。')"); }