Created
September 21, 2013 18:18
-
-
Save montogeek/6652859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doTransition(c, f, n) { | |
var q = $("#all-content"); | |
ads_clean(); | |
jQuery.ajax(c, {complete: function(f) { | |
function B(c, f) { | |
var l = f.attr("data-ga"); | |
if ("string" === typeof l) | |
try { | |
googleAnalytics(c, JSON.parse(l)) | |
} catch (m) { | |
googleAnalytics(c), console.error(m) | |
} | |
} | |
f = jQuery.parseHTML(f.responseText); | |
q.html(f); | |
var f = q.find("[data-view]"), l = f.attr("data-view"), m = f.attr("data-title"); | |
document.title = m; | |
"gallery" === l ? $("#all-content").addClass("fullscreen") : $("#all-content").removeClass("fullscreen"); | |
n && n(c); | |
switch (l) { | |
case "post": | |
B(c, | |
f); | |
"undefined" != typeof _sf_async_config && (_sf_async_config.authors = f.attr("data-author")); | |
item_post(); | |
post(); | |
break; | |
case "gallery": | |
B(c, f); | |
gallery(); | |
break; | |
case "agroupation_list": | |
googleAnalytics(c); | |
item_post(); | |
break; | |
case "author_list": | |
googleAnalytics(c); | |
item_post(); | |
break; | |
case "recent_list": | |
googleAnalytics(c); | |
item_post(); | |
break; | |
case "home": | |
googleAnalytics(c), item_post() | |
} | |
"undefined" != typeof pSUPERFLY ? pSUPERFLY.virtualPage(c, m) : console.error("aun no carga pSUPERFLY"); | |
common() | |
}}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment