19 HtmlFile::~HtmlFile() {}
21 HtmlFile::HtmlFile(TString path, Bool_t mainFile) : fPath(path), fBody(
""), fSaved(kFALSE), fMainFile(mainFile) {
24 Int_t last = fPath.Last(
'/');
26 fDir = fPath(0, last);
36 void HtmlFile::Save() {
45 file <<
" <meta charset=\"UTF-8\"> \n";
48 file <<
"<link rel=\"stylesheet\" href=\"" << fRelativePath <<
"table.css\" type=\"text/css\"/>\n";
50 file <<
"<script src=\"http://jsroot.gsi.de/latest/scripts/JSRoot.core.js\" "
51 "type=\"text/javascript\"></script>\n";
53 if (Hal::Std::GetJsRootVer() == 5) {
54 file <<
"<script src=\"" << fRelativePath
55 <<
"hal_js/scripts/JSRootCore.js\" "
56 "type=\"text/javascript\"></script>\n";
58 file <<
"<script src=\"" << fRelativePath
59 <<
"hal_js/scripts/JSRoot.core.js\" "
60 "type=\"text/javascript\"></script>\n";
63 file <<
"<script src=\"" << fRelativePath <<
"hal_js.js\" type=\"text/javascript\"></script>\n";
69 file <<
"</body></html>" << std::endl;
static TString GetRelativePath(TString path)
static void CopyCss(TString dir, TString css_name="table.css")
static void SetMainDir(TString name)
static void FixAddress(TString &address)
static void CopyJs(TString dir)
static HtmlCore * Instance()
HtmlFile(TString filename="", Bool_t mainFile=kFALSE)