1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-27 09:58:20 +01:00
antd-web-apps/info/views/default/layout.ls
2018-09-11 10:35:02 +02:00

61 lines
1.8 KiB
Plaintext

<html>
<head>
<script type="text/javascript" src="<?=HTTP_ROOT?>/rst/gscripts/showdown.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/style.css" />
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/rst/font-awesome.css" />
<?lua
if not toc then
?>
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/rst/ubuntu-regular.css" />
<?lua
end
?>
<title>Porfolio</title>
</head>
<body>
<?lua
local classname = "layout"
if not toc then
classname = "layoutprint"
if user then user:set("preview", true) end
end
?>
<div class="<?=classname?>">
<div class = "cv-content">
<?lua
if user then
user:render()
end
if __main__ then
__main__:render()
end
?>
<div class = "container">
<h1 style="margin:0;"></h1>
<p style="text-align:right; padding:0; margin:0;color:#878887;">Powered by antd server, (C) 2017-2018 Xuan Sang LE</p>
</div>
</div>
<?lua
if toc then
toc:set("data", __main__:get("toc"))
toc:render()
end
?>
</div>
<script>
window.onload = function()
{
var els = document.getElementsByClassName("entry-description");
var converter = new showdown.Converter();
for(var i in els)
{
var text = els[i].innerHTML;
var html = converter.makeHtml(text);
els[i].innerHTML = html;
}
}
</script>
</body>
</html>