Returns the html head for a new html page. :param pageTitle: Title of the page :type pageTitle: str :return: Page head for a html page :rtype: str
(pageTitle)
| 79 | return |
| 80 | |
| 81 | def _HTMLhead(pageTitle): |
| 82 | """ |
| 83 | Returns the html head for a new html page. |
| 84 | |
| 85 | :param pageTitle: Title of the page |
| 86 | :type pageTitle: str |
| 87 | |
| 88 | :return: Page head for a html page |
| 89 | :rtype: str |
| 90 | """ |
| 91 | html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n' |
| 92 | html += '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n' |
| 93 | html += '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n' |
| 94 | html += '<head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>\n' |
| 95 | html += '<meta name="Language" content="English"/>\n' |
| 96 | html += '<title>"' + pageTitle + '"</title><link rel="stylesheet" href="css/slicap.css">\n' |
| 97 | html += '<script>MathJax = {tex:{tags: \'ams\', inlineMath:[[\'$\',\'$\'],]}, svg:{fontCache:\'global\'}};</script>\n' |
| 98 | html += '<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>\n' |
| 99 | html += '</head><body><div id="top"><h1>' + pageTitle + '</h1></div>\n' |
| 100 | return html |
| 101 | |
| 102 | def _HTMLfoot(indexFile): |
| 103 | """ |
no outgoing calls
no test coverage detected