MY Node js is working correctly (phenomit.com This is my design website its in HTML)
My errors are:
Uncaught TypeError: Cannot read properties of undefined (reading 'each')at waypoints.min.js:7:9157
at waypoints.min.js:7:9567jquery.counterup.min.js:8 Uncaught ReferenceError: jQuery is not defined
at jquery.counterup.min.js:8:910jquery.magnific-popup.min.js:4 Uncaught TypeError: a is not a function
at jquery.magnific-popup.min.js:4:374 at jquery.magnific-popup.min.js:4:73
at jquery.magnific-popup.min.js:4:147custom.js:4 Uncaught ReferenceError: jQuery is not defined at custom.js:4:24
I have shared the code in my git
https://github.com/GoD-ATHEN/Phentom
const express = require('express');
const app = express();
const mysql = require('mysql');
const router = express.Router();
const path = require('path');
const ifl = path.join(__dirname, '/views/assets/')
app.set('view engine', 'ejs');
app.use('/assets',express.static(ifl));
//CONNECTION CONFIGURATION
var con = mysql.createConnection({
host: "localhost",
user: "root",
password: "",
database: "phentom"
});
app.get("/contact", (req, res)=>{
res.render("contact");
});
app.get('/askquestion', (req, res) =>{
con.query(`INSERT INTO contactq (name, email, subject, massage) VALUES ('${req.query.name}', '${req.query.email}', '${req.query.subject}', '${req.query.message}')`, function (err, result, fields) {
if (err) throw err;
res.redirect('https://phenomit.com/');
});
});
app.listen(3000);
