Module 3 Notes
Module 3 Notes
Module 3 Notes
MODULE 3
JQuery
By
Prof. Likhith S R
Assistant. Professor
Dept. of CSE(DS), NCET
Module - III
JQuery: Introduction, Selectors, Events, jQuery DOM Manipulation: jQuery HTML,
jQuery CSS, jQuery Event Model, jQuery Effects and Animations, jQuery Plugins.
jQuery Introduction
The purpose of jQuery is to make it much easier to use JavaScript on your website.
What is jQuery?
• jQuery is a lightweight, "write less, do more", JavaScript library.
• jQuery takes a lot of common tasks that require many lines of JavaScript code to
accomplish, and wraps them into methods that you can call with a single line of
code.
• jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX
calls and DOM manipulation.
The jQuery library contains the following features:
• HTML/DOM manipulation
• CSS manipulation
• HTML event methods
• Effects and animations
• AJAX
• Utilities
Tip: In addition, jQuery has plugins for almost any task out there.
Why jQuery?
• There are lots of other JavaScript frameworks out there, but jQuery seems to be the
most popular, and also the most extendable.
• Many of the biggest companies on the Web use jQuery, such as:
1. Google
2. Microsoft
3. IBM
4. Netflix
jQuery CDN
• If you don't want to download and host jQuery yourself, you can include it from a
CDN (Content Delivery Network).
• Google is an example of someone who host jQuery:
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/
jquery.min.js"></script>
</head>
• Microsoft CDN:
<head>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script>
</head>
jQuery Syntax: The jQuery syntax is tailor-made for selecting HTML elements and
performing some action on the element(s).
Basic syntax is: $(selector).action()
A $ sign to define/access jQuery
A (selector) to "query (or find)" HTML elements
});
• This is to prevent any jQuery code from running before the document is finished
loading (is ready).
• It is good practice to wait for the document to be fully loaded and ready before
working with it. This also allows you to have your JavaScript code before the body
of your document, in the head section.
• Here are some examples of actions that can fail if methods are run before the
document is fully loaded:
• Trying to hide an element that is not created yet
• Trying to get the size of an image that is not loaded yet
Tip: The jQuery team has also created an even shorter method for the document ready
event:
$(function(){
// jQuery methods go here...
});
• Use the syntax you prefer. We think that the document ready event is easier to
understand when reading the code.
How to Call a jQuery Library Functions?
• If you want an event to work on your page, you should call it inside the
$(document).ready() function.
• Everything inside it will load as soon as the DOM is loaded and before the page
contents are loaded.
• To do this, we register a ready event for the document as follows:
$(document).ready(function()
{
// do stuff when DOM is ready
});
The $() Factory Function
• All type of selectors available in jQuery, always start with the dollar sign and
parentheses:$(). The factory function $() makes use of the following three building
blocks while selecting elements in a given document:
1 Tag Name Represents a tag name available in the DOM. For example $('p') selects all
paragraphs in the document
2 Tag ID Represents a tag available with the given ID in the DOM. For example
$('#someid') selects the single element in the document that has an ID of some-id.
3 Tag Class Represents a tag available with the given class in the DOM. For example
$('.some-class') selects all elements in the document that have a class of someclass.
jQuery Selectors
• jQuery selectors allow you to select and manipulate HTML element(s).
• jQuery selectors are used to "find" (or select) HTML elements based on their name,
id, classes, types, attributes, values of attributes and much more. It's based on the
existing CSS Selectors, and in addition, it has some own custom selectors.
• All selectors in jQuery start with the dollar sign and parentheses: $().
1 Name
Selects all elements which match with the given element Name.
2 #ID
Selects a single element which matches with the given ID.
3 .Class
Selects all elements which matches with the given Class.
4 Universal (*)
Selects all elements available in a DOM.
5 Multiple Elements E, F, G
Selects the combined results of all the specified selectors E, F or G.
$(document).ready(function(){
$("button").click(function(){
$("p").hide();
});
});
The ID Selector
• The jQuery #id selector uses the id attribute of an HTML tag to find the specific
element.
• An id should be unique within a page, so you should use the #id selector when you
want to find a single, unique element.
• To find an element with a specific id, write a hash character, followed by the id of
the HTML element: $("#test")
$(document).ready(function(){
$("button").click(function(){
$("#test").hide();
});
});
.class Selector
• The jQuery .class selector finds elements with a specific class.
• To find elements with a specific class, write a period character, followed by the
name of the class:
• $(".test")
$(document).ready(function(){
$("button").click(function(){
$(".test").hide();
});
});
Other Examples
Syntax Description
$("ul li:first") Selects the first <li> element of the first <ul>
Selects all <a> elements with a target attribute value NOT equal to
$("a[target!='_blank']")
"_blank"
The term "fires/fired" is often used with events. Example: "The keypress event is fired, the
moment you press a key".
• Here are some common DOM events:
$("p").click();
• The next step is to define what should happen when the event fires. You must pass a
function to the event:
$("p").click(function(){
// action goes here!!
});
$("p").click(function(){
$(this).hide();
});
dblclick()
• The dblclick() method attaches an event handler function to an HTML element.
• The function is executed when the user double-clicks on the HTML element:
$("p").dblclick(function(){
$(this).hide();
});
mouseenter()
• The mouseenter() method attaches an event handler function to an HTML element.
• The function is executed when the mouse pointer enters the HTML element:
$("#p1").mouseenter(function(){
alert("You entered p1!");
});
mouseleave()
• The mouseleave() method attaches an event handler function to an HTML element.
• The function is executed when the mouse pointer leaves the HTML element:
$("#p1").mouseleave(function(){
alert("Bye! You now leave p1!");
});
mousedown()
• The mousedown() method attaches an event handler function to an HTML element.
• The function is executed, when the left, middle or right mouse button is pressed
down, while the mouse is over the HTML element:
$("#p1").mousedown(function(){
alert("Mouse down over p1!");
});
mouseup()
• The mouseup() method attaches an event handler function to an HTML element.
• The function is executed, when the left, middle or right mouse button is released,
while the mouse is over the HTML element:
$("#p1").mouseup(function(){
alert("Mouse up over p1!");
});
hover()
• The hover() method takes two functions and is a combination of
the mouseenter() and mouseleave() methods.
• The first function is executed when the mouse enters the HTML element, and the
second function is executed when the mouse leaves the HTML element:
$("#p1").hover(function(){
alert("You entered p1!");
},
function(){
alert("Bye! You now leave p1!");
});
focus()
The focus() method attaches an event handler function to an HTML form field.
The function is executed when the form field gets focus:
blur()
The blur() method attaches an event handler function to an HTML form field.
The function is executed when the form field loses focus:
$("p").on("click", function(){
$(this).hide();
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("p").on({
mouseenter: function(){
$(this).css("background-color", "lightgray");
Dept. of CSE(Data Science), NCET 11 2021-22
Web Programming(20CSI43) Module-3
},
mouseleave: function(){
$(this).css("background-color", "lightblue");
},
click: function(){
$(this).css("background-color", "yellow");
}
});
});
</script>
</head>
<body>
<p>Click or move the mouse pointer over this paragraph.</p>
</body>
</html>
<!doctype html>
<html> <head> <title>The jQuery Example</title>
<script src="https://www.tutorialspoint.com/jquery/jquery-3.6.0.js"></script>
<script>
$(document).ready(function()
{ $("button").click(function(){
alert( "Href = " + $("#home").attr("href"));
alert( "Title = " + $("#home").attr("title")); });
});
</script> </head>
<body> <p>Click the below button to see the result:</p>
<p><a id="home" href="index.htm" title="Tutorials Point">Home</a></p>
<button>Get Attribute</button>
</body> </html>
$(selector).html();
$(selector).text();
• The jQuery text() method returns plain text value of the content where
as html() returns the content with HTML tags. You will need to use jQuery selectors
to select the target element.
$(selector).html(val, [function]);
$(selector).text(val, [function]);
• Here val is he HTML of text content to be set for the element. We can provide an
optional callback function to these methods which will be called when the value of
the element will be set.
• The jQuery text() method sets plain text value of the content where
as html() method sets the content with HTML tags.
<!doctype html>
<html> <head> <title>The jQuery Example</title>
<script src="https://www.tutorialspoint.com/jquery/jquery-3.6.0.js"></script>
<script>
$(document).ready(function()
{ $("#text").click(function(){
$("p").text("The quick <b>brown fox</b> jumps over the <b>lazy dog</b>");
});
$("#html").click(function(){
$("p").html("The quick <b>brown fox</b> jumps over the <b>lazy dog</b>"); });
}); </script>
</head>
<body>
<p>Click on any of the two buttons to see the result</p>
<button id="text">Set Text</button>
<button id="html">Set HTML</button>
</body>
</html>
$(selector).val(val);
• Here val is the value to be set for the input field. We can provide an optional
callback function which will be called when the value of the field will be set.
$(selector).replaceWith(val);
• Here val is what you want to have instead of original element. This could be HTML
or simple text.
<body>
<p>Click below button to replace me</p>
<button id="b1">Replace Paragraph</button>
<button id="b2">Replace Heading</button>
</body>
</html>
jQuery - CSS Classes
• jQuery provides three methods addClass(), removeClass() and toggleClass() to
manipulate CSS classes of the elements.
jQuery - Adding CSS Classes
• jQuery provides addClass() method to add a CSS class to the matched HTML
element(s). Following is the syntax of the addClass() method:
$(selector).addClass(className);
$(selector).addClass("Class1 Class2");
• This method takes a parameter which is one or more space-separated classes to be
added to the class attribute of each matched element. More than one class may be
added at a time, separated by a space, to the set of matched elements,
• Please note that addClass() method does not replace an existing class, rather it
simply adds the class, appending it to any which may already be assigned to the
elements
<div class="container">
<h2>jQuery addClass() Method</h2>
<div class="hello">Hello</div>
<div class="goodbye">Goodbye</div> </div> <br>
<button>Add Class</button>
</body> </html>
<button>Remove Class</button>
</body> </html>
<!doctype html>
<html>
<head>
<title>The jQuery Example</title>
<script src="https://www.tutorialspoint.com/jquery/jquery-3.6.0.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(){
alert("Background color = " + $("div").css("background-color"));
});
});
</script>
<style>
button{margin:10px;width:150px;cursor:pointer}
div{ margin:10px;padding:12px; width:125px;}
</style>
</head>
<body>
<p>Click the below button to see the result:</p>
<div style="background-color:#9c9cff;">Blue</div>
<div style="background-color:#93ff93;">Green</div>
<!doctype html>
<html>
<head>
<title>The jQuery Example</title>
<script src="https://www.tutorialspoint.com/jquery/jquery-3.6.0.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(){
var color = $("div").css("background-color");
$("p").css("color", color);
});
});
</script>
<style>
button{margin:10px;width:150px;cursor:pointer}
div{ margin:10px;padding:12px; width:125px;}
</style>
</head>
<body>
<p>Click the below button to see the result:</p>
<div style="background-color:#9c9cff;">Blue</div>
<div style="background-color:#93ff93;">Green</div>
<!doctype html>
<html>
<head>
<title>The jQuery Example</title>
<script src="https://www.tutorialspoint.com/jquery/jquery-3.6.0.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(){
$("div").css({"background-color":"#fb7c7c", "font-size": "25px"});
});
});
</script>
<style>
button{margin:10px;width:150px;cursor:pointer}
div{ margin:10px;padding:12px; width:125px;}
</style>
</head>
<body>
<p>Click the below button to see the result:</p>
<div style="background-color:#9c9cff;">Blue</div>
<div style="background-color:#93ff93;">Green</div>
jQuery Effects
jQuery hide() and show()
• With jQuery, you can hide and show HTML elements with
the hide() and show() methods:
$("#hide").click(function(){
$("p").hide();
});
$("#show").click(function(){
$("p").show();
});
Syntax:
$(selector).hide(speed,callback);
$(selector).show(speed,callback);
• The optional speed parameter specifies the speed of the hiding/showing, and can
take the following values: "slow", "fast", or milliseconds.
• The optional callback parameter is a function to be executed after
the hide() or show() method completes
$("button").click(function(){
$("p").hide(1000);
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("#p2").hide();
});
$("#show").click(function(){
$("#p2").show();
});
Dept. of CSE(Data Science), NCET 23 2021-22
Web Programming(20CSI43) Module-3
});
$(document).ready(function(){
$("#w").click(function(){
$("#p1").hide(1000);
});
});
</script>
</head>
<body>
<button id="hide">Hide</button>
<button id="show">Show</button>
<br>
<br>
<div>
<button id="w">Hide1</button>
$("button").click(function(){
$("#div1").fadeIn();
$("#div2").fadeIn("slow");
$("#div3").fadeIn(3000);
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeIn();
$("#div2").fadeIn("slow");
$("#div3").fadeIn(3000);
});
});
</script>
</head>
<body>
</body>
</html>
$("button").click(function(){
$("#div1").fadeOut();
$("#div2").fadeOut("slow");
$("#div3").fadeOut(3000);
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeOut();
$("#div2").fadeOut("slow");
Dept. of CSE(Data Science), NCET 26 2021-22
Web Programming(20CSI43) Module-3
$("#div3").fadeOut(3000);
});
});
</script>
</head>
<body>
$("button").click(function(){
$("#div1").fadeToggle();
$("#div2").fadeToggle("slow");
$("#div3").fadeToggle(3000);
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeToggle();
$("#div2").fadeToggle("slow");
$("#div3").fadeToggle(3000);
});
});
</script>
</head>
<body>
</body>
</html>
$("button").click(function(){
$("#div1").fadeTo("slow", 0.15);
$("#div2").fadeTo("slow", 0.4);
$("#div3").fadeTo("slow", 0.7);
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeTo("slow", 0.15);
$("#div2").fadeTo("slow", 0.4);
$("#div3").fadeTo("slow", 0.7);
});
});
</script>
</head>
<body>
</body>
</html>
jQuery Effects - Sliding
• With jQuery you can create a sliding effect on elements.
• jQuery has the following slide methods:
• slideDown()
• slideUp()
• slideToggle()
$("#flip").click(function(){
$("#panel").slideDown();
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
Dept. of CSE(Data Science), NCET 30 2021-22
Web Programming(20CSI43) Module-3
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideDown("slow");
});
});
</script>
<style>
#panel, #flip {
padding: 5px;
text-align: center;
background-color: #e5eecc;
border: solid 1px #c3c3c3;
}
#panel {
padding: 50px;
display: none;
}
</style>
</head>
<body>
</body>
</html>
• The optional speed parameter specifies the duration of the effect. It can take the
following values: "slow", "fast", or milliseconds.
• The optional callback parameter is a function to be executed after the sliding
completes.
• The following example demonstrates the slideUp() method:
$("#flip").click(function(){
$("#panel").slideUp();
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideUp("slow");
});
});
</script>
<style>
#panel, #flip {
padding: 5px;
text-align: center;
background-color: #e5eecc;
border: solid 1px #c3c3c3;
}
#panel {
padding: 50px;
}
</style>
</head>
<body>
Dept. of CSE(Data Science), NCET 32 2021-22
Web Programming(20CSI43) Module-3
$("#flip").click(function(){
$("#panel").slideToggle();
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
</script>
<style>
#panel, #flip {
padding: 5px;
text-align: center;
background-color: #e5eecc;
Dept. of CSE(Data Science), NCET 33 2021-22
Web Programming(20CSI43) Module-3
$("button").click(function(){
$("div").animate({left: '250px'});
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").animate({left: '250px'});
});
Dept. of CSE(Data Science), NCET 34 2021-22
Web Programming(20CSI43) Module-3
});
</script>
</head>
<body>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To
manipulate the position, remember to first set the CSS position property of the element to
relative, fixed, or absolute!</p>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;"></div>
</body>
</html>
jQuery animate() - Manipulate Multiple Properties
• Notice that multiple properties can be animated at the same time:
$("button").click(function(){
$("div").animate({
left: '250px',
opacity: '0.5',
height: '150px',
width: '150px'
});
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").animate({
left: '250px',
opacity: '0.5',
height: '150px',
width: '150px'
});
});
});
Dept. of CSE(Data Science), NCET 35 2021-22
Web Programming(20CSI43) Module-3
</script>
</head>
<body>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To
manipulate the position, remember to first set the CSS position property of the element to
relative, fixed, or absolute!</p>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;"></div>
</body>
</html>
$("button").click(function(){
$("div").animate({
left: '250px',
height: '+=150px',
width: '+=150px'
});
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").animate({
left: '250px',
height: '+=150px',
width: '+=150px'
});
});
});
</script>
Dept. of CSE(Data Science), NCET 36 2021-22
Web Programming(20CSI43) Module-3
</head>
<body>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To
manipulate the position, remember to first set the CSS position property of the element to
relative, fixed, or absolute!</p>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;"></div>
</body>
</html>
jQuery animate() - Using Pre-defined Values
• You can even specify a property's animation value as "show", "hide", or "toggle":
$("button").click(function(){
$("div").animate({
height: 'toggle'
});
});
$("button").click(function(){
var div = $("div");
div.animate({height: '300px', opacity: '0.4'}, "slow");
div.animate({width: '300px', opacity: '0.8'}, "slow");
div.animate({height: '100px', opacity: '0.4'}, "slow");
div.animate({width: '100px', opacity: '0.8'}, "slow");
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
Dept. of CSE(Data Science), NCET 37 2021-22
Web Programming(20CSI43) Module-3
$("button").click(function(){
var div = $("div");
div.animate({height: '300px', opacity: '0.4'}, "slow");
div.animate({width: '300px', opacity: '0.8'}, "slow");
div.animate({height: '100px', opacity: '0.4'}, "slow");
div.animate({width: '100px', opacity: '0.8'}, "slow");
});
});
</script>
</head>
<body>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To
manipulate the position, remember to first set the CSS position property of the element to
relative, fixed, or absolute!</p>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;"></div>
</body>
</html>
Ex2;
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var div = $("div");
div.animate({left: '100px'}, "slow");
div.animate({fontSize: '3em'}, "slow");
});
});
</script>
</head>
Dept. of CSE(Data Science), NCET 38 2021-22
Web Programming(20CSI43) Module-3
<body>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To
manipulate the position, remember to first set the CSS position property of the element to
relative, fixed, or absolute!</p>
<div
style="background:#98bf21;height:100px;width:200px;position:absolute;">HELLO</div>
</body>
</html>
Animate-toggel
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").animate({
height: 'toggle'
});
});
});
</script>
</head>
<body>
<p>Click the button multiple times to toggle the animation.</p>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To
manipulate the position, remember to first set the CSS position property of the element to
relative, fixed, or absolute!</p>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;"></div>
</body>
</html>
Dept. of CSE(Data Science), NCET 39 2021-22
Web Programming(20CSI43) Module-3
jQuery - Plugins
• A plug-in is piece of code written in a standard JavaScript file. These files provide
useful jQuery methods which can be used along with jQuery library methods.
• There are plenty of jQuery plug-in available which you can download from
repository link at https://jquery.com/plugins.
• How to use Plugins
• To make a plug-in's methods available to us, we include plug-in file very similar to
jQuery library file in the <head> of the document.
• We must ensure that it appears after the main jQuery source file, and before our
custom JavaScript code.
<html> <head> <title>The jQuery Example</title>
<script type = "text/javascript" src = "https://www.tutorialspoint.com/jquery/jquery-
3.6.0.js"> </script>
<script src = "jquery.plug-in.js" type = "text/javascript"></script>
<script src = "custom.js" type = "text/javascript"></script>
<script type = "text/javascript" language = "javascript">
$(document).ready(function()
{
.......your custom code.....
});
</script>
</head>
<body> ............................. </body>
</html>
jQuery - Plugins
• jQuery - PagePiling.js
• jQuery - Flickerplate.js
• jQuery - Multiscroll.js
• jQuery - Slidebar.js
• jQuery - Rowgrid.js
• jQuery - Alertify.js
• jQuery - Progressbar.js
• jQuery - Slideshow.js
Dept. of CSE(Data Science), NCET 40 2021-22
Web Programming(20CSI43) Module-3
• jQuery - Drawsvg.js
• jQuery - Tagsort.js
• jQuery - LogosDistort.js
• jQuery - Filer.js
• jQuery - Whatsnearby.js
• jQuery - Checkout.js
• jQuery - Blockrain.js
• jQuery - Producttour.js
• jQuery - Megadropdown.js
• jQuery - Weather.js