1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-26 01:18:21 +01:00
This commit is contained in:
Xuan Sang LE 2018-03-15 22:47:54 +01:00
parent 79c9cbe047
commit d7123c894f
6 changed files with 7 additions and 7 deletions

View File

@ -76,7 +76,7 @@
<ul>
<li><i class = "fa fa-home"></i><a href="./">Home</a></li>
<li ><i class = "fa fa-address-card"></i><a href="https://info.lxsang.me" >Porfolio</a></li>
<li><i class = "fa fa-paper-plane"></i><a href="#" onclick="mailtoMe('rst/sendto.html')" >Contact</a></li>
<li><i class = "fa fa-paper-plane"></i><a href="#" onclick="mailtoMe('rst')" >Contact</a></li>
<?lua
if not HEADER.mobile then
?>

View File

@ -1,6 +1,6 @@
BUILDDIR = ../build/grs
copyfiles = font-awesome.css fonts images showdown.min.js main.js ubuntu-regular.css mainsite.css sendto.html hermit-light.css hljs
copyfiles = font-awesome.css fonts images sendmail.lua showdown.min.js main.js ubuntu-regular.css mainsite.css sendto.html hermit-light.css hljs
main:
- mkdir $(BUILDDIR)

View File

@ -3,11 +3,11 @@ String.prototype.__ = function()
{
return this
}
function mailtoMe( sch)
function mailtoMe(prefix)
{
if(scheme) return;
// get scheme
$.get(sch)
$.get(prefix+"/sendto.html")
.done(function(d) {
scheme = $.parseHTML(d)
var obs = riot.observable()
@ -35,7 +35,7 @@ function mailtoMe( sch)
$.ajax({
type: 'POST',
url: "info/sendmail.lua",
url: prefix + "/sendmail.lua",
contentType: 'application/json',
data: JSON.stringify(data),
dataType: 'json',

View File

@ -35,7 +35,7 @@
<ul>
<li ><i class = "fa fa-address-card"></i><a href="https://info.lxsang.me" >Porfolio</a></li>
<li><i class = "fa fa-newspaper-o"></i><a href="https://blog.lxsang.me" >Blog</a></li>
<li><i class = "fa fa-paper-plane"></i><a href="#" onclick="mailtoMe('grs/sendto.html')" >Contact</a></li>
<li><i class = "fa fa-paper-plane"></i><a href="#" onclick="mailtoMe('grs')" >Contact</a></li>
<li > <i class = "fa fa-globe"></i><a href = "https://os.lxsang.me" target="_blank">Web OS</a></li>
</ul>
</div>

View File

@ -1,6 +1,6 @@
BUILDDIR = ../build/info
copyfiles = index.ls style.css sendmail.lua
copyfiles = index.ls style.css
main:
- mkdir $(BUILDDIR)