forked from Nisarg6502/swot-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
292 lines (276 loc) · 14.7 KB
/
index.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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
<script type="text/javascript" src="https://html2canvas.hertzen.com/dist/html2canvas.js"></script>
<script src="https://use.fontawesome.com/releases/v5.15.4/js/all.js" data-auto-replace-svg="nest"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/mdb.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/style.css">
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<title>Index</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div id="carouselExampleSlidesOnly" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="./Images/swot-compressor.png" class="d-block w-100" alt="...">
</div>
</div>
</div>
<br>
<h1 class="container-fluid text-center" style="font-size: xx-large;">SWOT ANALYSIS</h1>
<div class="container">
<div class="container d-flex justify-content-center" id="info">SWOT (strengths, weaknesses, opportunities, and
threats) analysis is a method
for
identifying and analyzing internal
strengths and weaknesses and external opportunities and threats that shape current and future operations and
help
develop strategic goals and much more.</div>
<br>
<hr>
<br>
<center>
<input class="btn container btn-secondary " onclick="getPDF()" type="button" value="Click to generate PDF">
</center>
<br>
<br>
<div class="container canvas_div_pdf">
<div class="container row text-center">
<div class="container col bg-primary text-light"><span style="font-size: 5rem;">S</span></div>
<div class="container col bg-warning text-light"><span style="font-size: 5rem;">W</span></div>
<div class="container col bg-success text-light"><span style="font-size: 5rem;">O</span></div>
<div class="container col bg-danger text-light"><span style="font-size: 5rem;">T</span></div>
</div>
<div class="container row text-center">
<div class="container col bg-primary text-light"><span style="font-size: 2rem;">STRENGTHS</span></div>
<div class="container col bg-warning text-light"><span style="font-size: 2rem;">WEAKNESS</span></div>
<div class="container col bg-success text-light"><span style="font-size: 2rem;">OPPORTUNITIES</span>
</div>
<div class="container col bg-danger text-light"><span style="font-size: 2rem;">THREATS</span></div>
</div>
<div class="container row text-center ">
<div class="container col bg-primary text-light"><span style="font-size: 2rem;">
<form>
<div class="form-group">
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<textarea class="form-control-lg mb-4 text-light" autocomplete="off"
style="resize:none; overflow:hidden;background-color: dodgerblue;"
id="exampleFormControlTextarea1" rows="12"></textarea>
</div>
</form>
</span></div>
<div class="container col bg-warning text-light"><span style="font-size: 2rem;">
<form>
<div class="form-group">
<textarea class="form-control-lg text-light" autocomplete="off"
style="resize:none; overflow:hidden; background-color: rgb(236, 197, 99);"
id="exampleFormControlTextarea1" rows="12"></textarea>
</div>
</form>
</span></div>
<div class="container col bg-success text-light"><span style="font-size: 2rem;">
<form>
<div class="form-group">
<textarea class="form-control-lg text-light " autocomplete="off"
style="resize:none; overflow:hidden; background-color: rgb(66, 155, 78);"
id="exampleFormControlTextarea1" rows="12"></textarea>
</div>
</form>
</span></div>
<div class="container col bg-danger text-light"><span style="font-size: 2rem;">
<form>
<div class="form-group">
<textarea class="form-control-lg text-light" autocomplete="off"
style="resize:none; overflow:hidden; background-color:rgb(194, 96, 79);"
id="exampleFormControlTextarea1" rows="12"></textarea>
</div>
</form>
</span></div>
</div>
</div>
<br>
<center>
<input class="btn container-sm btn-secondary " onclick="getPDF()" type="button"
value="Click to generate PDF">
</center>
<br>
<br>
</div>
<hr>
<!-- Footer -->
<footer style="background-color: gray;" class="page-footer font-small mdb-color lighten-3 pt-4">
<!-- Footer Links -->
<div class="container text-center text-light text-md-left">
<!-- Grid row -->
<div class="row">
<!-- Grid column -->
<div class="col-md-4 col-lg-3 mr-auto my-md-4 my-0 mt-4 mb-1">
<!-- Content -->
<h5 class="font-weight-bold text-uppercase mb-4">Footer Content</h5>
<p>This page was created with the purpose to help people or entities with SWOT Analysis</p>
</div>
<!-- Grid column -->
<hr class="clearfix w-100 d-md-none">
<!-- Grid column -->
<div class="col-md-2 col-lg-2 mx-auto my-md-4 my-0 mt-4 mb-1">
<!-- Links -->
<h5 class="font-weight-bold text-uppercase mb-4">PROJECTS</h5>
<ul class="list-unstyled">
<li>
<p>
<a href="https://nisarg6502.github.io/tech_ninjas_frontend_hackathon21/">HACKATHON
WEBSITE</a>
</p>
</li>
<li>
<p>
<a href="https://scratch.mit.edu/projects/558715448">SCRATCH PROJECT</a>
</p>
</li>
<li>
<p>
<a href="https://nisarg6502.github.io/alarm-clock/">ALARM CLOCK</a>
</p>
</li>
</ul>
</div>
<!-- Grid column -->
<hr class="clearfix w-100 d-md-none">
<!-- Grid column -->
<div class="col-md-4 col-lg-3 mx-auto my-md-4 my-0 mt-4 mb-1">
<!-- Contact details -->
<h5 class="font-weight-bold text-uppercase mb-4">Address</h5>
<ul class="list-unstyled">
<li>
<p>
<i class="fas fa-home mr-3"></i> Pune, MH, India – 411037
</p>
</li>
<li>
<p>
<i class="fas fa-envelope mr-3"></i> <a
href="mailto:[email protected]">[email protected]</a>
</p>
</li>
<li>
<p>
<i class="fas fa-phone mr-3"></i> <a href="tel:+919421556115">+ 91 94215 56116</a>
</p>
</li>
</ul>
</div>
<!-- Grid column -->
<hr class="clearfix w-100 d-md-none">
<!-- Grid column -->
<div class="col-md-2 col-lg-2 text-center mx-auto my-4">
<!-- Social buttons -->
<h5 class="font-weight-bold text-uppercase mb-4">Follow Us</h5>
<!-- Instagram -->
<a type="button" class="btn-floating btn-fb">
<i class="fab fa-instagram"></i>
</a>
<!-- Twitter -->
<a type="button" class="btn-floating btn-tw">
<i class="fab fa-twitter"></i>
</a>
<!-- G-->
<a type="button" class="btn-floating btn-gplus">
<i class="fab fa-google-plus-g"></i>
</a>
<!-- Dribbble -->
<a type="button" class="btn-floating btn-dribbble">
<i class="fab fa-dribbble"></i>
</a>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
<!-- Footer Links -->
</footer>
<!-- Footer -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-W8fXfP3gkOKtndU4JGtKDvXbO53Wy8SZCQHczT5FMiiqmQfUpWbYdTil/SxwZgAN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-skAcpIdS7UcVUC05LJ9Dxay8AXcDYfBJqt1CJ85S/CFujBsIzCIv+l9liuYLaMQ/"
crossorigin="anonymous"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/popper.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/mdb.min.js"></script>
<script>$(document).ready(function () { $('textarea').on('input', function () { this.style.height = 'auto'; this.style.height = (this.scrollHeight) + 'px'; }); });</script>
<script>
//Create PDf from HTML...
function getPDF() {
var HTML_Width = $(".canvas_div_pdf").width();
var HTML_Height = $(".canvas_div_pdf").height();
var top_left_margin = 15;
var PDF_Width = HTML_Width + (top_left_margin * 2);
var PDF_Height = (PDF_Width * 1.5) + (top_left_margin * 2);
var canvas_image_width = HTML_Width;
var canvas_image_height = HTML_Height;
var totalPDFPages = Math.ceil(HTML_Height / PDF_Height) - 1;
html2canvas($(".canvas_div_pdf")[0], { allowTaint: true }).then(function (canvas) {
canvas.getContext('2d');
console.log(canvas.height + " " + canvas.width);
var imgData = canvas.toDataURL("image/jpeg", 1.0);
var pdf = new jsPDF('p', 'pt', [PDF_Width, PDF_Height]);
pdf.addImage(imgData, 'JPG', top_left_margin, top_left_margin, canvas_image_width, canvas_image_height);
for (var i = 1; i <= totalPDFPages; i++) {
pdf.addPage(PDF_Width, PDF_Height);
pdf.addImage(imgData, 'JPG', top_left_margin, -(PDF_Height * i) + (top_left_margin * 4), canvas_image_width, canvas_image_height);
}
pdf.save("HTML-Document.pdf");
});
};
</script>
</body>
</html>