示例#1
0
        private static string AddHTMLHeader()
        {
            string outText = "<html><head>";

            outText += TheBaseAssets.MyServiceHostInfo.GetMeta("");
            if (TheThingRegistry.IsEngineStarted("NMIService.TheNMIHtml5RT", false))
            {
                outText += "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/cdeStyles.min.css\" />";
                outText += "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/MyStyles.min.css\" />";
                outText += "<script src=\"cdeSorttable.js\"></script>";
                outText += "<script src=\"excellentexport.js\"></script>";
                outText += "<script>window.jdenticon_config = { replaceMode: \"observe\" }; </script>";
                outText += "<script src=\"jdenticon-2.2.0.min.js\"></script>";
            }
            else
            {
                outText += "<style>";
                outText += "table.cdeHilite {font-family: 'robotothin','Segoe UI',Arial,sans-serif;margin: 1em;border-collapse: collapse;font-weight: normal;text-decoration: none;}";
                outText += ".cdeLogEntry {padding: .1em;border-bottom-style: solid;border-bottom-width: 1px;}";
                outText += ".cdeClip {overflow: hidden;text-overflow: ellipsis;}";
                outText += ".cdeClip:hover { overflow: visible;text-overflow: initial;}";
                outText += "</style>";
            }
            outText += "<title>" + TheBaseAssets.MyServiceHostInfo.GetPrimaryStationURL(false) + " - System Log</title>";
            outText += "</head><body class=\"cdeLogBody\">\r";
            return(outText);
        }