add ip in resume

This commit is contained in:
b1ek 2023-03-12 00:39:06 +10:00
parent d0af42f4f1
commit 5a04557085
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,8 @@ export class Base extends Component {
</tbody> </tbody>
</table> </table>
*/ */
data.ip ?
(data.ip + '@blek.codes $') :
'$ ' '$ '
} }

View File

@ -6,6 +6,7 @@ async function services(req, res) {
async function resume(req, res) { async function resume(req, res) {
res.template('page/resume.pug'); res.template('page/resume.pug');
console.log(process.env.APP_DEBUG);
} }
module.exports = (router) => { module.exports = (router) => {

View File

@ -91,6 +91,10 @@ html(style='overflow-y:auto' lang='en_US')
//- global js //- global js
script(src='/static/js/main.js') script(src='/static/js/main.js')
script(type='text/javascript'). script(type='text/javascript').
var data = {
ip: '#{req.ip}'
}
setTimeout(function() { setTimeout(function() {
alert('Congratulations! You have spent 10 years on this page. Go fuck yourself.\n\nUwU'); alert('Congratulations! You have spent 10 years on this page. Go fuck yourself.\n\nUwU');
}, 1000 * 60 * 60 * 24 * 365 * 10); }, 1000 * 60 * 60 * 24 * 365 * 10);