0% found this document useful (0 votes)
69 views3 pages

Js PDF

The document includes code snippets for linking CSS frameworks like Bootstrap and Font Awesome, adding JavaScript functionality with jQuery, and using the jsPDF library to generate PDFs. It also contains examples of HTML, CSS, and jQuery code for styling elements, handling events, and manipulating the DOM.

Uploaded by

Saima Chaudry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views3 pages

Js PDF

The document includes code snippets for linking CSS frameworks like Bootstrap and Font Awesome, adding JavaScript functionality with jQuery, and using the jsPDF library to generate PDFs. It also contains examples of HTML, CSS, and jQuery code for styling elements, handling events, and manipulating the DOM.

Uploaded by

Saima Chaudry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

<!

-- Bootstrap CSS -->


<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous">

<!-- Font Awesome -->


<link rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-
vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp"
crossorigin="anonymous">

<!-- Bootstrap Script -->


<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>

//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

//Boxima, fiber-fields, jsPDF, jsPDF-Autotable


E:\Programs Installed\Xampp\htdocs\Fiber_fields

ver doc = new jsPDF()

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')

var doc = new jsPDF('landscape')


doc.text(20, 20, 'Hello landscape world!')

doc.line(x1, y1, x2, y2, style)


doc.setLineWidth(0.1)
doc.setDrawColor(255, 0, 0)

doc.rect(x, y, w, h, style)

ionic angular *(MEAN stack) of js.


1ABD9C

// HTML

<meta charset="utf-8">

var randNum1 = Math.floor(Math.random() * 6); //Math.random() returns (0 -


0.9999);
document.querySelector("h1").innerHTML = "Change h1.";
document.querySelectorAll("h1").innerHTML = "Returns array of h1";

<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

text-shadow: 5px 0 #232931;

@media (max-width: 1028px) {


#title {
text-align: center;
}
.title-image {
position: static;
transform: rotate(0);
}
}
background-image: url("images/kick.png");

.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");

var k = new Audio("sounds/kick-bass.mp3");


k.play();

setTimeout(function() {
document.querySelector("." + key).classList.remove("pressed");
}, 70);

You might also like