2018-08-23 15:22:59 +02:00
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
2018-09-05 16:56:04 +02:00
|
|
|
<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" />
|
2018-09-11 10:35:02 +02:00
|
|
|
<?lua
|
|
|
|
if not toc then
|
|
|
|
?>
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/rst/ubuntu-regular.css" />
|
|
|
|
<?lua
|
|
|
|
end
|
|
|
|
?>
|
2018-08-23 15:22:59 +02:00
|
|
|
<title>Porfolio</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2018-09-11 10:35:02 +02:00
|
|
|
<?lua
|
|
|
|
local classname = "layout"
|
|
|
|
if not toc then
|
|
|
|
classname = "layoutprint"
|
|
|
|
if user then user:set("preview", true) end
|
|
|
|
end
|
|
|
|
?>
|
|
|
|
<div class="<?=classname?>">
|
2018-08-23 15:22:59 +02:00
|
|
|
<div class = "cv-content">
|
|
|
|
<?lua
|
2018-09-05 16:56:04 +02:00
|
|
|
if user then
|
|
|
|
user:render()
|
2018-08-23 15:22:59 +02:00
|
|
|
end
|
2018-09-05 16:56:04 +02:00
|
|
|
if __main__ then
|
|
|
|
__main__:render()
|
2018-08-23 15:22:59 +02:00
|
|
|
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
|
2018-09-05 16:56:04 +02:00
|
|
|
if toc then
|
|
|
|
toc:set("data", __main__:get("toc"))
|
|
|
|
toc:render()
|
2018-08-23 15:22:59 +02:00
|
|
|
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>
|