-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.html
85 lines (68 loc) · 3.05 KB
/
resume.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tushar Gupta Resume</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"/>
<link rel="shortcut icon" href="imgs/Tushar Gupta -round.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<script src="https://unpkg.com/typed.js@2.1.0/dist/typed.umd.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" /></head>
<body>
<div id="pre-loader"></div>
<div id="header">
<header>
<a href="#"><img src="imgs/Tushar Gupta -round.png" alt="icon"></a>
<nav>
<input type="checkbox" id="check">
<label for="check">
<i class="fa-solid fa-ellipsis" style="color: #0042aa;" id="btn"></i>
<i class="fa-solid fa-xmark" id="cancel"></i>
</label>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="MyProject.html">My Project</a></li>
<li><a href="resume.html">Resume</a></li>
<li><a href="about.html">About</a></li>
<a href="https://github.com/imtushaarr" target="_blank"><button class="btn-git"><i class="fa-brands fa-github"></i>GitHub</button></a>
</ul>
</nav>
</header>
</div>
<div id="resume">
<div class="resu-heading">
<h1>My Resume</h1>
</div>
<div class="resu-img">
<img src="imgs/21BCS6751_TusharGupta_page-0001.jpg" alt="resume">
</div>
<div class="resu-dwnld">
<button onclick="downloadFile()"><i class="fa-solid fa-chevron-down"></i> Download</button>
</div>
</div>
<script src="app.js"></script>
<script>
var loader = document.getElementById("pre-loader");
window.addEventListener("load", function(){
loader.style.display = "none";
});
function downloadFile() {
// Replace 'path/to/your/file.pdf' with the actual path to your file
var fileUrl = 'imgs/21BCS6751_TusharGupta_page-0001.jpg';
// Create a temporary link element
var link = document.createElement('a');
// Set the href attribute with the file URL
link.href = fileUrl;
// Specify the file name for the download
link.download = 'TusharGupta_Resume.pdf';
// Append the link to the document
document.body.appendChild(link);
// Trigger a click on the link to start the download
link.click();
// Remove the link from the document
document.body.removeChild(link);
}
</script>
</body>
</html>