Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. "use strict";
  2. ! function(a, b) {
  3. var c = !1,
  4. d = "ontouchstart" in window || navigator.msMaxTouchPoints > 0,
  5. e = d ? "touchend" : "click",
  6. f = function() {
  7. var a = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
  8. c = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
  9. b(".video").toggleClass("horizontal", 1.6 > a / c), b(".links").css({
  10. width: b(".ruler").eq(0).width(),
  11. height: b(".ruler").eq(0).height()
  12. })
  13. },
  14. g = function(a, b) {
  15. a.currentTime = b || .01, setTimeout(function() {
  16. a.play()
  17. }, 1)
  18. },
  19. h = function(a, d) {
  20. c && c.removeClass("active").children("video").get(0).pause(), a.addClass("active"), c = a;
  21. var e = a.children("video");
  22. g(e.get(0), d || .01), b(".controls").addClass("off"), b(".links .link").hide(), b(".links ." + a.data("controls").split(" ").join(",.")).show(), setTimeout(function() {
  23. b(".controls").removeClass("off")
  24. }, 1e3 * a.data("loop")), e.off("ended").on("ended", function() {
  25. g(e.get(0), a.data("loop"))
  26. })
  27. };
  28. b(function() {
  29. b(window).bind("resize", f), setTimeout(function() {
  30. b(window).trigger("resize")
  31. }, 10), h(b(".video .active")), b(".link").on(e, function() {
  32. h(b("#" + b(this).data("movie")), b(this).data("time"))
  33. }), setTimeout(function() {
  34. c.children("video").get(0).paused && b(document).on(e + ".init", function() {
  35. h(b(".video .active")), b(document).off(e + ".init")
  36. })
  37. }, 100)
  38. })
  39. }(window, jQuery);
  40.  
  41. Uncaught Error: INVALID_STATE_ERR: DOM Exception 11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement