Permalink
Browse files

new ipad/ilustritas section

  • Loading branch information...
1 parent f6ad3a9 commit 326153e27a39f97f04a9febe9ead841b6551f531 @rodbeh committed Feb 7, 2014
View

Large diffs are not rendered by default.

Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,44 @@
+(function(e, t, n) {
+ var r, i;
+ e.uaMatch = function(e) {
+ e = e.toLowerCase();
+ var t = /(chrome)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e) || [], n = /(ipad)/.exec(e) || /(iphone)/.exec(e) || /(android)/.exec(e) || [];
+ return {browser: t[1] || "",version: t[2] || "0",platform: n[0] || ""}
+ }, r = e.uaMatch(t.navigator.userAgent), i = {}, r.browser && (i[r.browser] = !0, i.version = r.version), r.platform && (i[r.platform] = !0), i.chrome ? i.webkit = !0 : i.webkit && (i.safari = !0), e.browser = i
+ }(jQuery, window), function() {
+ var e, t;
+ e = jQuery.browser, t = e.android || e.ipad || e.iphone, $(function() {
+ var e, n, r, i, s;
+ i = null, s = null, r = null, n = function() {
+ return i = 1, r = $(window).height(), $("header").css({height: r})
+ }, $(window).resize(n), n(), $("body").css({minHeight: r * 3}), $("header a").click(function() {
+ var e, n;
+ return n = r, e = "easeOutQuint", t && (n = n / i * 2), $("html, body").animate({scrollTop: n}, {duration: 400, easing: e}), !1
+ });
+ if (t)
+ return;
+ e = function() {
+ var e, t, n, s;
+ return s = $(document).scrollTop(), n = s / r, s >= r ? $("header").css({y: -r,opacity: 0}) : (e = -s * i, e > 0 && (e = 0), t = 1 - n / 2, t > 1 && (t = 1), $("header").css({y: e,opacity: t})), s >= r ? ($("#content").css({position: "relative",marginTop: r,y: 0,opacity: 1}), $("header").css("display", "none")) : ($("header").css("display", "table"), t = n * 1.5, t > 1 && (t = 1), $("#content").css({position: "fixed",y: 0,left: 0,right: 0,top: 0,marginTop: 0,opacity: t}))
+ }, $(document).scroll(e), $(document).bind("touchmove", e), $(document).bind("touchend", e), $(window).resize(e), e();
+ if (window.location.hash === "#content")
+ return $(window).scrollTop(r), e()
+ })
+})();
+
+$( "html").on( "click", function() {
+ $(".sideshow").fadeIn().removeClass("sideshow");
+ $("#sideshow").fadeIn().addClass("sideshow");
+});
+
+$(window).load(function() {
+ if ($("body").width() > 1024) {
+ $("#ilustritas").addClass("ipad");
+ for (var i = 1; i <= 47; i++) {
+ var img = document.createElement("img");
+ img.src = "https://dl.dropboxusercontent.com/u/4343272/rodbeh/ibook-"+i+".png";
+ $("#featured").append(img);
+ }
+ $('#featured').orbit();
+ }
+});
Oops, something went wrong.

0 comments on commit 326153e

Please sign in to comment.