-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdf.html
97 lines (97 loc) · 4.6 KB
/
pdf.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
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Download Archive</title>
<link rel="stylesheet" href="./pdf.css">
</head>
<body>
<div id="container">
<h1 class="head">Questions</h1>
<div class="questions_container">
<div class="question">
<div>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.</div>
<div class="button">
<span>6 Likes</span>
<span> 4 Reply</span>
</div>
</div>
<div class="question">
<div>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.</div>
<div class="button">
<span>10 Likes</span>
<span> 3 Reply</span>
</div>
</div>
<div class="question">
<div>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.</div>
<div class="button">
<span>1 Likes</span>
<span> 1 Reply</span>
</div>
</div>
<div class="question">
<div>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.</div>
<div class="button">
<span>12 Likes</span>
<span> 0 Reply</span>
</div>
</div>
<div class="question">
<div>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.</div>
<div class="button">
<span>46 Likes</span>
<span> 74 Reply</span>
</div>
</div>
<div class="question">
<div>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.</div>
<div class="button">
<span>13 Likes</span>
<span> 4 Reply</span>
</div>
</div>
</div>
<div class="detail_section">
<h1 class="head">Questions Details</h1>
<div class="question_detail">
<div>
Q1. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.
</div>
<div class="button">
<span>6 Likes</span>
<span> 4 Reply</span>
</div>
<hr>
<div>
<div class="comments">Comment 1, Hey this is from User 1.</div>
<div class="comments">Comment 2, Hey this is from User 2.</div>
<div class="comments">Comment 3, Hey this is from User 3.</div>
<div class="comments">Comment 4, Hey this is from User 4.</div>
</div>
</div>
<div class="question_detail">
<div>
Q2. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour.
</div>
<div class="button">
<span>10 Likes</span>
<span> 3 Reply</span>
</div>
<hr>
<div>
<div class="comments">Comment 1, Hey this is from User 1.</div>
<div class="comments">Comment 2, Hey this is from User 2.</div>
<div class="comments">Comment 3, Hey this is from User 3.</div>
</div>
</div>
</div>
</div>
<button onclick="download()" class="download">Download</button>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js" integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/" crossorigin="anonymous"></script>
<script src="./lib/html2canvas.js"></script>
<script src="./pdf.js"></script>
</html>