Guest User

Untitled

a guest
Jun 25th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. GitHub.TreeSlider = function () {
  2. if (window.history && window.history.pushState) {
  3. function a() {
  4. if (e.sliding) {
  5. e.sliding = false;
  6. $(".frame-right").hide();
  7. $(".frame-loading:visible").removeClass("frame-loading")
  8. }
  9. }
  10. if (!($("#slider").length == 0 || !GitHub.shouldSlide)) if (!navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
  11. window.history.replaceState({
  12. path: this.pathFromURL(location.pathname)
  13. }, "");
  14. var e = this;
  15. $(".frames a.js-slide-to, .breadcrumb a").live("click", function (b) {
  16. if (b.which == 2 || b.metaKey || b.ctrlKey) return true;
  17. else {
  18. e.clickHandler(b);
  19. return false
  20. }
  21. });
  22. $(window).bind("popstate", function (b) {
  23. e.popStateHandler(b.originalEvent)
  24. });
  25. $(".frames .frame").live("webkitTransitionEnd", a).live("transitionend", a)
  26. }
  27. }
  28. };
Add Comment
Please, Sign In to add comment