jquery: the basics and beyond var title = “ jquery: the basics and beyond ”; $(this).data({...

22
var title = jQuery: The Basics and Beyond”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Upload: oscar-powell

Post on 18-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

var title = “jQuery: The Basics and Beyond”;$(this).data({

target: ‘BEGINNERS’, speaker: ’superKalo’

});

Page 2: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Kaloyan Kosev

Web Developerat DevLabs.bg

LinkedIn/ superKalo

Page 3: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

jQuery: The Basics and Beyond

$(this).agenda({

About: ‘Why?’,Selectors: ‘Retrieving page

content’,Events: ‘The event handling

features’,Effects: ‘Creating basic animations’

});

Page 4: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

$(this).agenda({

1: ‘Cross-Browser Support’,

});

About: Why jQuery?

Page 5: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

About: Why jQuery?

$(this).agenda({

1: ‘Cross-Browser Support’,2: ‘Easy to Learn + Community

Support’,

});

Page 6: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

About: Why jQuery?

$(this).agenda({

1: ‘Cross-Browser Support’,2: ‘Easy to Learn + Community

Support’,

3: ‘Powerful DOM Selection’

});

Page 7: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

jQuery versions?

jQuery 1.xvs.

jQuery 2.x

Page 8: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

jQuery()$()

Page 9: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

$(“#myId”)$(“.myClass”)

Page 10: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

$(“ ..CSS.. ”)

Page 11: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

$( “.submenu:visible” )$( “nav > ul > li” )$( “input[type=text]” )$( “li:even” )$( “p:not(.redP)” )

Page 12: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

Link1Link2Link3Link4Link5

Page 13: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

$( “a[href$=pdf]” ).append(“<img

src=‘img/icon.jpg’ />”)

Link1

Page 14: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

$( “.subMenu:visible” )$( “section:hidden” )$( “a[href^=http]” )

Page 15: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

Page 16: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: The event handling

features

Page 17: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Selectors: Retrieving page content

$( “p:contains(смотан)” ).remove();

Page 18: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Events: The event handling

features

$( “#myElement” ).on( “ … ”, function(){//Do something

});

• click, mouseover, mouseout

• blur, focus• scroll, resize

Page 19: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Effects: Creating basic animations

$( “#myElement” ).fadeIn(); .fadeOut(); .slideUp(); .slideDown();

$( “#myElement” ).animate({ opacity: 0.2 });

Page 20: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });
Page 21: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

My Contacts

LinkedIn/ superKaloFacebook/ superKaloE-mail/ [email protected]

[email protected]

SlideShare/ Kaloyan Kosev

Page 22: JQuery: The Basics and Beyond var title = “ jQuery: The Basics and Beyond ”; $(this).data({ target: ‘BEGINNERS’, speaker: ’superKalo’ });

Thanks to our Sponsors:

Diamond Sponsor:

Gold Sponsors:

Swag Sponsors: Media Partners:

Technological Partners:

Silver Sponsors:

Bronze Partners: