Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- ! function(a, b) {
- var c = !1,
- d = "ontouchstart" in window || navigator.msMaxTouchPoints > 0,
- e = d ? "touchend" : "click",
- f = function() {
- var a = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
- c = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
- b(".video").toggleClass("horizontal", 1.6 > a / c), b(".links").css({
- width: b(".ruler").eq(0).width(),
- height: b(".ruler").eq(0).height()
- })
- },
- g = function(a, b) {
- a.currentTime = b || .01, setTimeout(function() {
- a.play()
- }, 1)
- },
- h = function(a, d) {
- c && c.removeClass("active").children("video").get(0).pause(), a.addClass("active"), c = a;
- var e = a.children("video");
- g(e.get(0), d || .01), b(".controls").addClass("off"), b(".links .link").hide(), b(".links ." + a.data("controls").split(" ").join(",.")).show(), setTimeout(function() {
- b(".controls").removeClass("off")
- }, 1e3 * a.data("loop")), e.off("ended").on("ended", function() {
- g(e.get(0), a.data("loop"))
- })
- };
- b(function() {
- b(window).bind("resize", f), setTimeout(function() {
- b(window).trigger("resize")
- }, 10), h(b(".video .active")), b(".link").on(e, function() {
- h(b("#" + b(this).data("movie")), b(this).data("time"))
- }), setTimeout(function() {
- c.children("video").get(0).paused && b(document).on(e + ".init", function() {
- h(b(".video .active")), b(document).off(e + ".init")
- })
- }, 100)
- })
- }(window, jQuery);
- Uncaught Error: INVALID_STATE_ERR: DOM Exception 11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement