Compare commits
No commits in common. "3ea94000f0709a0eb54125a07fa3231b000450c8" and "02c80ac9fd5c90118f7d9888996e4d9ed26b7081" have entirely different histories.
3ea94000f0
...
02c80ac9fd
3 changed files with 2 additions and 44 deletions
|
@ -16,7 +16,7 @@
|
||||||
<label for="jobDescription">Paste Job Description:</label>
|
<label for="jobDescription">Paste Job Description:</label>
|
||||||
<textarea name="jobDescription" rows="6" cols="50" required></textarea><br><br>
|
<textarea name="jobDescription" rows="6" cols="50" required></textarea><br><br>
|
||||||
|
|
||||||
<button type="submit" id="generateBtn">Generate Cover Letter</button>
|
<button type="submit" id="generateSub">Generate Cover Letter</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- Hidden To Start With -->
|
<!-- Hidden To Start With -->
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<!-- End Hidden Section -->
|
<!-- End Hidden Section -->
|
||||||
|
|
||||||
|
|
||||||
<script src="js/script.js"></script> <!-- External JS file -->
|
<script src="script.js"></script> <!-- External JS file -->
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
document.getElementById('uploadForm').addEventListener('submit', async function (event) {
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
const formData = new FormData(this);
|
|
||||||
const outputSection = document.getElementById('outputSection');
|
|
||||||
const coverLetterOutput = document.getElementById('coverLetterOutput');
|
|
||||||
const generateBtn = document.getElementById('generateBtn');
|
|
||||||
const downloadBtn = document.getElementById('downloadBtn');
|
|
||||||
|
|
||||||
|
|
||||||
generateBtn.disabled = true;
|
|
||||||
generateBtn.textContent = "Generating...";
|
|
||||||
coverLetterOutput.value = ""; //This clear any previous generated output
|
|
||||||
|
|
||||||
// Show the Output Section while the program runs
|
|
||||||
outputSection.style.display = "block";
|
|
||||||
coverLetterOutput.value = "Generating cover letter...";
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
22
server.js
22
server.js
|
@ -1,22 +0,0 @@
|
||||||
const express = require('express');
|
|
||||||
const path = require('path');
|
|
||||||
const dotenv = require('dotenv');
|
|
||||||
|
|
||||||
dotenv.config();
|
|
||||||
|
|
||||||
const app = express();
|
|
||||||
const PORT = 3000; //TODO DO NOT HARDCODE THIS
|
|
||||||
|
|
||||||
// Middleware
|
|
||||||
app.use(express.static(path.join(__dirname, 'public')));
|
|
||||||
app.use(express.json());
|
|
||||||
|
|
||||||
|
|
||||||
// Routes
|
|
||||||
// const generateRoute = require('./routes/generate');
|
|
||||||
// app.use('/generate', generateRoute);
|
|
||||||
|
|
||||||
app.listen(PORT, () => {
|
|
||||||
console.log(`Server running on http://localhost:${PORT}`);
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in a new issue