-Unsupported JavaScript- 原住民族樂舞與藝術學士學位學程
原住民族樂舞與藝術學士學位學程
原住民族樂舞與藝術學士學位學程
piwik_sendmail
$(document).ready(function(){ /* get client ip */ $.get('https://jsonip.com', function (res) { ClientIP = res.ip; isPasuya = ( ClientIP.indexOf('134.208.27.130') != -1 ); var Login_name; if ( isPasuya ) { Login_name = "Pasuya"; } var isLogin = isPasuya; if ( isLogin ) { /* Send email*/ var subject = "[Pikwik-Sendmail] " + Login_name + " login cis.ndhu.edu.tw"; var email = "kalehuzs@gms.ndhu.edu.tw"; var body = "The ip " + ClientIP + " is login now ..."; var varData = 'subject=' + subject + '&email=' + email + '&body=' + body;; console.log(varData); $.ajax({ type: "POST", url:'https://www.mabung.nctu.me/sendmail.php', data: varData, success: function() { console.log("It was a success"); } }); } }); });