From ae354d2eb9ee510371eefb142258ca59eea961bd Mon Sep 17 00:00:00 2001
From: Basil Reji <84758142+basil-reji@users.noreply.github.com>
Date: Sat, 29 Apr 2023 18:37:45 +0530
Subject: [PATCH] updation
---
helper/functionHelper.js | 22 ---------------------
helper/hbsHelper.js | 14 --------------
helper/userHelper.js | 39 --------------------------------------
routes/index.js | 9 +++++++++
views/index.hbs | 8 ++++----
views/pages/onlinetest.hbs | 28 +++++++++++++--------------
views/partials/hero.hbs | 8 ++++----
views/updates.hbs | 36 +++++++++++++++++++++++++++++++----
8 files changed, 63 insertions(+), 101 deletions(-)
delete mode 100644 helper/functionHelper.js
delete mode 100644 helper/hbsHelper.js
delete mode 100644 helper/userHelper.js
diff --git a/helper/functionHelper.js b/helper/functionHelper.js
deleted file mode 100644
index 70e7e8c..0000000
--- a/helper/functionHelper.js
+++ /dev/null
@@ -1,22 +0,0 @@
-module.exports = {
- createUUID: () => {
- var dt = new Date().getTime();
- var uuid = "xxxxyyxxyyxxyyyy".replace(/[xy]/g, function (c) {
- var r = (dt + Math.random() * 16) % 16 | 0;
- dt = Math.floor(dt / 16);
- return (c == "x" ? r : (r & 0x3) | 0x8).toString(16);
- });
- return uuid;
- },
- changeDateType: (date) => {
- const yyyy = date.getFullYear();
- let mm = date.getMonth() + 1; // Months start at 0!
- let dd = date.getDate();
-
- if (dd < 10) dd = "0" + dd;
- if (mm < 10) mm = "0" + mm;
-
- const today = `${dd}/${mm}/${yyyy}`;
- return today;
- }
-};
diff --git a/helper/hbsHelper.js b/helper/hbsHelper.js
deleted file mode 100644
index 8eca948..0000000
--- a/helper/hbsHelper.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = {
- add: (val1, val2) => {
- return parseInt(val1) + parseInt(val2);
- },
- difference: (val1, val2) => {
- return parseInt(val1) - parseInt(val2);
- },
- multiply: (val1, val2) => {
- return parseInt(val1) * parseInt(val2);
- },
- divide: (val1, val2) => {
- return parseInt(val1) / parseInt(val2);
- },
-};
diff --git a/helper/userHelper.js b/helper/userHelper.js
deleted file mode 100644
index f6e5f5b..0000000
--- a/helper/userHelper.js
+++ /dev/null
@@ -1,39 +0,0 @@
-const db = require('../config/database');
-const bcrypt = require('bcrypt');
-
-module.exports = {
- do_signup: (user) => {
- return new Promise(async (resolve, reject) => {
- user.password = await bcrypt.hash(user.password, 10);
- db.get()
- .collection(process.env.DB_COLLECTION_USER)
- .insertOne(user)
- .then((response) => {
- resolve(response)
- }).catch((error) => {
- reject(error)
- })
- })
- },
-
- check_user_exist: (email) => {
- return new Promise(async (resolve, reject) => {
- db.get()
- .collection(process.env.DB_COLLECTION_USER)
- .findOne(
- {
- email: email
- }
- )
- .then((response) => {
- if (response) {
- resolve(true)
- } else {
- resolve(false)
- }
- }).catch((error) => {
- reject(error)
- })
- })
- }
-}
\ No newline at end of file
diff --git a/routes/index.js b/routes/index.js
index 56da521..c8f0bcc 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -94,4 +94,13 @@ router.get('/online-test', function (req, res, next) {
});
});
+router.get('/onlinetest', function (req, res, next) {
+ res.render('pages/onlinetest',
+ {
+ title: `Online Test | ${title}`,
+ page_head: 'Online Test',
+ page_nav_name: 'online-test'
+ });
+});
+
module.exports = router;
diff --git a/views/index.hbs b/views/index.hbs
index 3ea49c2..266b79a 100644
--- a/views/index.hbs
+++ b/views/index.hbs
@@ -302,7 +302,7 @@
Round 2 - Offline Interviews
On being shortlisted after round 1, candidates are to attend a second round comprising of
interviews presided either directlty by the employer or a jury panel consisting of
- company representatives. This will be held in an offline mode at Trivandrum, Kochi and Calicut
+ company representatives. This will be held in an offline mode at Trivandrum and Kochi
@@ -540,9 +540,9 @@
- 08/05/2023, 10/05/2023 & 12/05/2023 -
- Offline Interviews at Trivandrum,
- Kochi and Calicut
+ {{!-- 08/05/2023, 10/05/2023 & 12/05/2023 -
--}}
+ Offline Interviews at Trivandrum and
+ Kochi
diff --git a/views/pages/onlinetest.hbs b/views/pages/onlinetest.hbs
index f002a3f..dfaaf37 100644
--- a/views/pages/onlinetest.hbs
+++ b/views/pages/onlinetest.hbs
@@ -24,32 +24,32 @@
- {{!--
-
+
+
-
Online Test Date
+
Online Test Details
- The Online test will be conducted on 09/07/2022 from 8.00PM - 9.00PM.
+ The Online test will be conducted on 27/04/2023 from 8.00PM - 9.00PM.
-
- Analytical (09/07/2022 8.00PM):
+ Analytical (27/04/2023 8.00PM):
www.hackerearth.com/ieee-jobfair-analytical
+ href="https://www.hackerearth.com/launchpadkerala-analytical-2023">www.hackerearth.com/launchpadkerala-analytical-2023
-
- Programming (09/07/2022 8.30PM):
+ Programming (27/04/2023 8.30PM):
www.hackerearth.com/ieee-jobfair-programming
+ href="https://www.hackerearth.com/launchpadkerala-programming-2023">www.hackerearth.com/launchpadkerala-programming-2023
-
--}}
+
@@ -71,11 +71,11 @@
account must be your Unique Launchpad Kerala ID.
There will be two seperate links
for two
- sections of the mock test. One will be analytical the second one will
+ sections of the online test. One will be analytical the second one will
be programming
- First link will be active from
+ Link for the analytical test will be active from
8.00 PM to
- 9:00 PM followed by the second link from 8:30 PM to 9.00 PM
+ 9:00 PM followed by the link for the programming test from 8:30 PM to 9.00 PM
The duration of the test is set such that
everyone will get sufficient time to complete it.
There will not be another chance for the
@@ -85,8 +85,8 @@
analytical. Those candidates applying for functional jobs in
particular (KPO amd BPO) need not necessarily attempt the programming section of the
test.
- The link for the mock test will be provided
- here as well as in the updates section of the Launchpad Kerala website 12-24 hours
+ The link for the online test will be provided
+ here as well as in the updates section of the Launchpad Kerala website
before the test
starts.
diff --git a/views/partials/hero.hbs b/views/partials/hero.hbs
index cfdbe91..5fc36a4 100644
--- a/views/partials/hero.hbs
+++ b/views/partials/hero.hbs
@@ -37,18 +37,18 @@
Mock Test - 25.04.23
--}}
-
+ {{!--
- {{!--
+
--}}
+
--}}
+
diff --git a/views/updates.hbs b/views/updates.hbs
index e239b81..580a58c 100644
--- a/views/updates.hbs
+++ b/views/updates.hbs
@@ -1,6 +1,33 @@
+ {{!--
+
+
+
+
+
Online Test Details
+
+ The Online test will be conducted on 27/04/2023 from 8.00PM - 9.00PM.
+
+
+
+
+
+
+
--}}
+
@@ -15,15 +42,16 @@
attention and give it their best shot!
-
+ {{!--
For further details and detailed instructions, please visit the link provided below:
-
-
--}}