Js PDF
Js PDF
//Fonts
<link href="https://fonts.googleapis.com/css?family=Indie+Flower|Lobster"
rel="stylesheet">
//JQuery
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
//jsPDF-AutoTable
E:\Projects\Front-end\jsPDF
E:\Projects\Front-end\14. Boss Level Challenge 2 - The Simon Game\24.1 Simon
Game Challenge Completed.zip\Simon Game Challenge Completed\game.js
doc.text(x, y, "text")
doc.addImage(imageData //(image 64bit encoded + address), format, x, y, width,
height, alias, compression, rotation)
doc.setFont("times new roman")
doc.setFontSize(Num)
doc.setFontType("bold")
doc.addPage()
doc.ellipse(x, y, rx, ry, style // ("F" = fill, "FD" = fill + border))
doc.setDrawColor(num) //num = border color
doc.setLineWidth(num) //Sets line width for upcoming lines. & Set border width
doc.circle(120, 20, 5, 'FD')
doc.rect(x, y, w, h, style)
// HTML
<meta charset="utf-8">
<table>
<thead>
<tr>
<td>
<tbody>
<div class="last">
<select class="select">
<option value="0">Select Language:</option>
<option value="1">Urdu</option>
<option value="2">Arabic</option>
<option value="3">English</option>
</select>
<p style="float: right;">Powered By<img src="images/googlelogo_color_42x16dp.png"
style="size: 90%;"> Translate</p>
</div>
// CSS
.pressed {
box-shadow: 0 3px 4px 0 #DBEDF3;
opacity: 0.5;
}
// JQuery
$(this).attr("id");
$(document).keypress(function() {
if (!started) {
$("#level-title").text("Level " + level);
nextSequence();
started = true;
}
});
$(document).keypress(function(event) {
$("h1").text(event.key);
});
$("h1").css("color", "red");
setTimeout(function() {
document.querySelector("." + key).classList.remove("pressed");
}, 70);