Rewriting The History Books

47
REWRITING THE HISTORY BOOKS sydlawrence

description

My talk from London JS 1 at Poke London office. The HTML5 History API.

Transcript of Rewriting The History Books

Page 1: Rewriting The History Books

REWRITING THEHISTORY BOOKS

sydlawrence

Page 2: Rewriting The History Books

[email protected]/sydlawrencefb.com/sydlawrencetumblr.com/sydlawrenceskype:sydlawrenceyou get the picture

HI, I’MSYDLAWRENCE

Page 3: Rewriting The History Books

WHAT ISTHE HISTORY API?

Page 5: Rewriting The History Books

JAVASCRIPTOBJECT

Page 6: Rewriting The History Books

WHAT IS THEPROBLEM?

Page 7: Rewriting The History Books

DYNAMICCONTENT

Page 8: Rewriting The History Books

NO GOINGBACK

Page 9: Rewriting The History Books

COPY PASTA

Page 10: Rewriting The History Books

THIS ISNOT NEW

Page 11: Rewriting The History Books

LOCATION.HASH

Page 12: Rewriting The History Books

WE HAVE AWINNER

Page 13: Rewriting The History Books

HAXORS FTW

Page 14: Rewriting The History Books

FLASHBACK

Page 15: Rewriting The History Books

GIZMODOWTF #!

Page 16: Rewriting The History Books

WHAT DOESIT DO?

Page 17: Rewriting The History Books

REWRITE THEHISTORY BOOKS

Page 18: Rewriting The History Books

BACK TOTHE FUTURE

Page 19: Rewriting The History Books

WHEN TOUSE IT?

Page 20: Rewriting The History Books

LIGHTBOXES

Page 21: Rewriting The History Books

POPUPLOGINS

Page 22: Rewriting The History Books

COMMENTS

Page 23: Rewriting The History Books

PAGINATION

Page 24: Rewriting The History Books

BROWSERSUPPORT

Page 25: Rewriting The History Books

FIREFOX

Page 29: Rewriting The History Books

INTERNETEXPLORER

Page 30: Rewriting The History Books

✔✔✖✔✖

Page 32: Rewriting The History Books

CLICK EVENTON LINK

Page 33: Rewriting The History Books

RENDER DIFFERENTLYON AJAX REQUEST

Page 34: Rewriting The History Books

history.pushState (stateObj,title,url);

Page 35: Rewriting The History Books

history.replaceState (stateObj,title,url);

Page 36: Rewriting The History Books

LISTEN FOREVENT

Page 37: Rewriting The History Books

window.onpopstate = fn(evt)

Page 38: Rewriting The History Books

FALLBACK

Page 39: Rewriting The History Books

window. onhashchange = fn(evt)

Page 40: Rewriting The History Books

SITES THATUSE IT

Page 42: Rewriting The History Books

GOOGLE20thingsilearned.com

Page 44: Rewriting The History Books

FACEBOOK

Page 45: Rewriting The History Books

https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history - MDNhttp://dev.w3.org/html5/spec/Overview.html - HTML5 Spechttps://github.com/sydlawrence/fancy-box - My Fancy-box Fork

WANT TOKNOW MORE

Page 46: Rewriting The History Books

ANY QUESTIONS?

Page 47: Rewriting The History Books

THANKS, I’ve [email protected]/sydlawrencefb.com/sydlawrencetumblr.com/sydlawrenceskype:sydlawrenceyou get the picture