forked from shubho0908/Certificate-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathudemy.html
More file actions
137 lines (130 loc) · 4.79 KB
/
Copy pathudemy.html
File metadata and controls
137 lines (130 loc) · 4.79 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Udemy Certificate Generator</title>
<link rel="stylesheet" href="css/udemy.css" />
<link rel="icon" type="image/x-icon" href="img/udemy.png" />
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap"
rel="stylesheet"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap"
rel="stylesheet"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap"
rel="stylesheet"
/>
<link
href="//db.onlinewebfonts.com/c/7db56b18988b0db9d84b3bfd3d4f9b6b?family=DistrictProW01-Medium"
rel="stylesheet"
type="text/css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap"
rel="stylesheet"
/>
<link
href="//db.onlinewebfonts.com/c/ceae0b0ba6ed654c11bebaa577938012?family=Arno+Pro+Display"
rel="stylesheet"
type="text/css"
/>
</head>
<body>
<div class="container">
<form action="#" id="form">
<div class="first-name">
<label for="fname">
First Name: <br />
<input type="text" name="fname" id="fname" required/>
</label>
</div>
<div class="last-name">
<label for="lname">
Last Name: <br />
<input type="text" name="lname" id="lname" required/>
</label>
</div>
<div class="date">
<label for="date">
Date of Completion: <br />
<input
type="text"
name="date"
id="date"
placeholder="Example: Jan. 25, 2000" required
/>
</label>
</div>
<div class="length">
<label for="length">
Length of Course: <br />
<input type="number" name="length" id="length" required/>
</label>
</div>
<div class="course">
<label for="course">Course Name:</label>
<br />
<textarea name="course" id="course" rows="2" cols="28" required></textarea>
</div>
<div class="teacher">
<label for="teacher">
Instructor's Name: <br />
<input type="text" name="teacher" id="teacher" required/>
</label>
</div>
<div class="btn">
<button id="Generate" type="submit">Generate</button>
</div>
</form>
<div id="certificate">
<!-- <div class="logo">
<img id="udemy-logo" src="img/udemy-logo.png" alt="">
<div class="right-side">
<div class="c-no">Certificate no: </div>
<div class="c-url">Certificate url: ude.my/</div>
<div class="ref-no"></div>
</div>
</div>
<div class="content">
<h3>CERTIFICATE OF COMPLETION</h3>
<h1 id="course-name">JavaScript - Basics to Advanced</h1>
<h4>Instructors <b>Bhuvan Bam</b></h4>
</div>
<div class="user">
<h1 id="name">Shubhojeet Bera</h1>
<h4>Date <b>April 29, 20222</b></h4>
<h4>Length <b>4 total hours</b></h4>
</div> -->
</div>
<button id="download">Download PDF</button>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script src="js/udemy.js"></script>
<script>
// Check if the site is opened on a mobile device
function isMobileDevice() {
return (
typeof window.orientation !== "undefined" ||
navigator.userAgent.indexOf("IEMobile") !== -1
);
}
// Show alert if the site is opened on a mobile device
if (isMobileDevice()) {
alert("This site is best viewed on a desktop or laptop.");
}
</script>
</body>
</html>