Comments (3)
'use strict';
! function ($) {
$.fn.lazyify = function () {
return this.each(function () {
function thumbchange() {
var triggerHeight = $(window).height();
var triggerY = $(window).scrollTop();
var containerTop = $this.offset().top;
if (triggerY + triggerHeight > containerTop) {
var simg = new Image;
simg.onload = function () {
$this.attr("style", "background-image:url(" + this.src + ")").addClass("lazy-ify")
};
simg.src = url
}
}
var $this = $(this);
var img = $this.attr("data-image");
var x = Math.round($this.width());
var height = Math.round($this.height());
var width = "/w" + x + "-h" + height + "-p-k-no-nu";
var url = "";
if (img.match("s72-c")) url = img.replace("/s72-c", width);
else if (img.match("w72-h")) url = img.replace("/w72-h72-p-k-no-nu", width);
else url = img;
$(window).on("load resize scroll", thumbchange);
thumbchange()
})
}
}(jQuery);
$("#seoify-free-main-menu").menuify();
$("#seoify-free-main-menu .widget").addClass("show-menu");
$(".search-toggle").on("click", function () {
$("body").toggleClass("search-active")
});
$(".follow-by-email-text").each(function () {
var $widthLabel = $(this);
var val = followByEmailText;
if (val != "") $widthLabel.text(val)
});
$(".avatar-image-container img").attr("src", function (canCreateDiscussions, originalBaseURL) {
originalBaseURL = originalBaseURL.replace("//resources.blogblog.com/img/blank.gif", "//4.bp.blogspot.com/-oSjP8F09qxo/Wy1J9dp7b0I/AAAAAAAACF0/ggcRfLCFQ9s2SSaeL9BFSE2wyTYzQaTyQCK4BGAYYCw/s35-r/avatar.jpg");
originalBaseURL = originalBaseURL.replace("//img1.blogblog.com/img/blank.gif", "//4.bp.blogspot.com/-oSjP8F09qxo/Wy1J9dp7b0I/AAAAAAAACF0/ggcRfLCFQ9s2SSaeL9BFSE2wyTYzQaTyQCK4BGAYYCw/s35-r/avatar.jpg");
return originalBaseURL
});
$(".post-body a").each(function () {
var detailViewItem = $(this);
var singleUri = detailViewItem.text().trim();
var values = singleUri.split("/");
var value3 = values[0];
var type = values[1];
var connectionColor = values.pop();
if (singleUri.match("button")) {
detailViewItem.addClass("button").text(value3);
if (type != "button") detailViewItem.addClass(type);
if (connectionColor != "button") detailViewItem.addClass("colored-button").css({
"background-color": connectionColor
})
}
});
$(".post-body strike").each(function () {
var $token = $(this);
var container = $token.text().trim();
var _0xb2e6x17 = $token.html();
if (container.match("contact-form")) {
$token.replaceWith('<div class="contact-form"/>');
$(".contact-form").append($("#ContactForm1"))
}
if (container.match("alert-success")) $token.replaceWith('<div class="alert-message alert-success short-b">' + _0xb2e6x17 + "</div>");
if (container.match("alert-info")) $token.replaceWith('<div class="alert-message alert-info short-b">' + _0xb2e6x17 + "</div>");
if (container.match("alert-warning")) $token.replaceWith('<div class="alert-message alert-warning short-b">' + _0xb2e6x17 + "</div>");
if (container.match("alert-error")) $token.replaceWith('<div class="alert-message alert-error short-b">' + _0xb2e6x17 + "</div>");
if (container.match("left-sidebar")) $token.replaceWith("<style>.item #main-wrapper{float:right}.item #sidebar-wrapper{float:left}</style>");
if (container.match("right-sidebar")) $token.replaceWith("<style>.item #main-wrapper{float:left}.item #sidebar-wrapper{float:right}</style>");
if (container.match("full-width")) $token.replaceWith("<style>.item #main-wrapper{width:100%}.item #sidebar-wrapper{display:none}</style>");
if (container.match("no-sidebar")) $token.replaceWith("<style>.item #main-wrapper{float:unset;margin:0 auto}.item #sidebar-wrapper{display:none}</style>");
if (container.match("code-box")) $token.replaceWith('<pre class="code-box short-b">' + _0xb2e6x17 + "</pre>");
var $words = $(".post-body .short-b").find("b");
$words.each(function () {
var $obfuscatedEmail = $(this);
var container =
$obfuscatedEmail.text().trim();
if (container.match("alert-success") || container.match("alert-info") || container.match("alert-warning") || container.match("alert-error") || container.match("code-box")) $obfuscatedEmail.replaceWith("")
})
});
$(".seoify-free-share-links .window-ify,.entry-share .window-ify").on("click", function () {
var embedContainer = $(this);
var url = embedContainer.data("url");
var labelWidth = embedContainer.data("width");
var imgH = embedContainer.data("height");
var widthCanvas = window.screen.width;
var cellCY = window.screen.height;
var _0xb2e6x1f = Math.round(widthCanvas / 2 - labelWidth / 2);
var y = Math.round(cellCY / 2 - imgH / 2);
var newwin = window.open(url, "_blank", "scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=" + labelWidth + ",height=" +
imgH + ",left=" + _0xb2e6x1f + ",top=" + y);
newwin.focus()
});
$(".seoify-free-share-links").each(function () {
var verticalNavigation = $(this);
var resizeOptionsTable = verticalNavigation.find(".show-hid a");
resizeOptionsTable.on("click", function () {
verticalNavigation.toggleClass("show-hidden")
})
});
$(".about-author .author-description span a").each(function () {
var $obfuscatedEmail = $(this);
var _0xb2e6x22 = $obfuscatedEmail.text().toLowerCase().trim();
var this_href = $obfuscatedEmail.attr("href");
$obfuscatedEmail.replaceWith('<li class="' + _0xb2e6x22 + '"><a href="' + this_href + '" title="' + _0xb2e6x22 + '" target="_blank"/></li>');
$(".author-description").append($(".author-description span li"));
$(".author-description").addClass("show-icons")
});
function regxify(data) {
var yt_regex = /[^{\}]+(?=})/g;
return String(data.match(yt_regex)).trim()
}
function msgError() {
return '<span class="no-posts"><b>Error:</b> No Results Found</span>'
}
function msgServerError() {
return '<div class="no-posts error-503"><b>Error loading feeds!</b> Maybe because the connection failed or the blogger server did not respond to the request.</div>'
}
function beforeLoader() {
return '<div class="loader"/>'
}
function getFeedUrl(action, label, type) {
var destination_wrapper = "";
switch (type) {
case "recent":
destination_wrapper = "/feeds/posts/summary?alt=json&max-results=" + label;
break;
case "comments":
if (action == "list") destination_wrapper = "/feeds/comments/summary?alt=json&max-results=" + label;
else destination_wrapper = "/feeds/posts/summary/-/" + type + "?alt=json&max-results=" + label;
break;
default:
destination_wrapper = "/feeds/posts/summary/-/" + type + "?alt=json&max-results=" + label;
break
}
return destination_wrapper
}
function getPostLink(o, name) {
var i = 0;
for (; i < o[name].link.length; i++)
if (o[name].link[i].rel == "alternate") {
var entityUrl = o[name].link[i].href;
break
} return entityUrl
}
function getPostTitle(opts, val) {
var video1title = opts[val].title.$t;
return video1title
}
function getPostImage(a, v) {
if ("media$thumbnail" in a[v]) {
var current_url = a[v].media$thumbnail.url;
if (current_url.match("img.youtube.com")) current_url = current_url.replace("/default.", "/0.");
var 0 = current_url
} else 0 = "https://4.bp.blogspot.com/-eALXtf-Ljts/WrQYAbzcPUI/AAAAAAAABjY/vptx-N2H46oFbiCqbSe2JgVSlHhyl0MwQCK4BGAYYCw/s72-c/nth-ify.png";
return 0
}
function getAjax(table, method, url, id) {
switch (method) {
case "related":
if (id == undefined) id = "geterror404";
var item = getFeedUrl(method, url, id);
$.ajax({
url: item,
type: "GET",
dataType: "json",
cache: true,
beforeSend: function (xhr) {
switch (method) {
case "related":
table.html(beforeLoader()).parent().addClass("show-ify");
break
}
},
success: function (data) {
var count_int = "";
switch (method) {
case "related":
count_int = '<div class="related-posts">';
break
}
var src = data.feed.entry;
if (src != undefined) {
var i = 0;
var query = src;
for (; i < query.length; i++) {
var url =
getPostLink(query, i);
var key = getPostTitle(query, i, url);
var text = getPostImage(query, i, url);
var delta = "";
switch (method) {
case "related":
delta = delta + ('<article class="related-item post item-' + i + '"><div class="entry-image"><a class="entry-image-link" href="' + url + '"><span class="entry-thumb" data-image="' + text + '"/></a></div><div class="entry-header"><h2 class="entry-title"><a href="' + url + '">' + key + "</a></h2></div></article>");
break
}
count_int = count_int + delta
}
} else count_int = msgError();
count_int = count_int +
"</div>";
table.html(count_int);
table.find("span.entry-thumb").lazyify()
},
error: function () {
table.html(msgServerError())
}
})
}
}
function ajaxRelated(table, context, obj, extra, suffix) {
if (suffix.match("getrelated")) return getAjax(table, context, obj, extra)
}
$(".seoify-free-related-content").each(function () {
var $unusedPanel = $(this);
var label = $unusedPanel.find(".related-tag").attr("data-label");
var pornResult = relatedPostsNum;
ajaxRelated($unusedPanel, "related", pornResult, label, "getrelated")
});
$(".seoify-free-blog-post-comments").each(function () {
var tWidget = $(this);
var state = "blogger";
var id = "comments-system-" + state;
switch (state) {
case "blogger":
case "disqus":
case "facebook":
tWidget.addClass(id).show();
$(".entry-meta .entry-comments-link").addClass("show");
break;
case "hide":
tWidget.hide();
break;
default:
tWidget.addClass("comments-system-blogger").show();
$(".entry-meta .entry-comments-link").addClass("show");
break
}
var resizeOptionsTable = tWidget.find(".comments .toplevel-thread > ol > .comment .comment-actions .comment-reply");
var $shareWrap = tWidget.find(".comments .toplevel-thread > #top-continue");
resizeOptionsTable.on("click", function () {
$shareWrap.show()
});
$shareWrap.on("click", function () {
$shareWrap.hide()
})
});
$(function () {
$(".index-post .entry-image-link .entry-thumb, .PopularPosts .entry-image-link .entry-thumb, .FeaturedPost .entry-image-link .entry-thumb,.about-author .author-avatar").lazyify();
$(".mobile-logo").each(function () {
var input_container = $(this);
var input_dbpedia_uri = $("#main-logo .header-widget a").clone();
input_dbpedia_uri.find("#h1-tag").remove();
input_dbpedia_uri.appendTo(input_container)
});
$("#seoify-free-mobile-menu").each(function () {
var input_container = $(this);
var input_description =
$("#seoify-free-main-menu-nav").clone();
input_description.attr("id", "main-mobile-nav");
input_description.appendTo(input_container);
$(".show-seoify-free-mobile-menu, .hide-seoify-free-mobile-menu, .overlay").on("click", function () {
$("body").toggleClass("nav-active")
});
$(".seoify-free-mobile-menu .has-sub").append('<div class="submenu-toggle"/>');
$(".seoify-free-mobile-menu ul li .submenu-toggle").on("click", function (event) {
if ($(this).parent().hasClass("has-sub")) {
event.preventDefault();
if (!$(this).parent().hasClass("show")) $(this).parent().addClass("show").children(".m-sub").slideToggle(170);
else $(this).parent().removeClass("show").find("> .m-sub").slideToggle(170)
}
})
});
$(".social-mobile").each(function () {
var input_container = $(this);
var input_dbpedia_uri = $("#about-section ul.social-footer").clone();
input_dbpedia_uri.appendTo(input_container)
});
$("#seoify-free-header-wrapper .headerify").each(function () {
var sidebar = $(this);
if (fixedMenu == true)
if (sidebar.length > 0) {
var gasSum = $(document).scrollTop();
var p = sidebar.offset().top;
var l = sidebar.height();
var numParagraphs = p + l;
$(window).scroll(function () {
var imageElementCount =
$(document).scrollTop();
var i = $("#footer-wrapper").offset().top;
var pos = i - l;
if (imageElementCount < pos) {
if (imageElementCount > numParagraphs) sidebar.addClass("is-fixed");
else if (imageElementCount <= 0) sidebar.removeClass("is-fixed");
if (imageElementCount > gasSum) sidebar.removeClass("show");
else sidebar.addClass("show");
gasSum = $(document).scrollTop()
}
})
}
});
$("#main-wrapper,#sidebar-wrapper").each(function () {
if (fixedSidebar == true) {
if (fixedMenu == true) var _0xb2e6x46 = 76;
else _0xb2e6x46 = 20;
$(this).theiaStickySidebar({
additionalMarginTop: _0xb2e6x46,
additionalMarginBottom: 20
})
}
});
$("a#templateify").attr("href", "https://www.templateify.com/").text("Templateify").attr("style", "visibility:visible!important;opacity:1!important;position:relative!important;z-index:1!important;font-size:14px!important;color:#d2dae2!important;");
setInterval(function () {
if (!$("a#templateify:visible").length) window.location.href = "https://www.templateify.com/"
}, 1E3);
$(".back-top").each(function () {
var $tabHeading = $(this);
$(window).on("scroll", function () {
if ($(this).scrollTop() >= 100) $tabHeading.fadeIn(170);
else $tabHeading.fadeOut(170);
if ($tabHeading.offset().top >= $("#footer-wrapper").offset().top - 32) $tabHeading.addClass("on-footer");
else $tabHeading.removeClass("on-footer")
});
$tabHeading.click(function () {
$("html, body").animate({
scrollTop: 0
}, 500)
})
});
$("p.comment-content").each(function () {
var body = $(this);
body.replaceText(/(https:\/\/\S+(\.png|\.jpeg|\.jpg|\.gif))/g, '<img src="$1"/>');
body.replaceText(/(?:https:\/\/)?(?:www\.)?(?:youtube\.com)\/(?:watch\?v=)?(.+)/g, '<iframe id="youtube" width="100%" height="358" src="https://www.youtube.com/embed/$1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
});
$("#seoify-free-load-more-link").each(function () {
var editingEl = $(this);
var img = editingEl.data("load");
if (img) $("#seoify-free-load-more-link").show();
$("#seoify-free-load-more-link").on("click", function (event) {
$("#seoify-free-load-more-link").hide();
$.ajax({
url: img,
success: function (dzixml) {
var jQFooter = $(dzixml).find(".blog-posts");
jQFooter.find(".index-post").addClass("post-animated post-fadeInUp");
$(".blog-posts").append(jQFooter.html());
img = $(dzixml).find("#seoify-free-load-more-link").data("load");
if (img) $("#seoify-free-load-more-link").show();
else {
$("#seoify-free-load-more-link").hide();
$("#blog-pager .no-more").addClass("show")
}
$(".index-post .entry-image-link .entry-thumb").lazyify()
},
beforeSend: function () {
$("#blog-pager .loading").show()
},
complete: function () {
$("#blog-pager .loading").hide()
}
});
event.preventDefault()
})
})
});
from de4js.
Why version 1.6.0 can not using auto decode function like before?
from de4js.
! function (_0xb351x2) {
_0xb351x2.fn.lazyify = function () {
return this.each(function () {
var _0xb351x3 = _0xb351x2(this),
_0xb351x4 = _0xb351x3.attr("data-image"),
_0xb351x5 = Math.round(_0xb351x3.width()),
_0xb351x6 = Math.round(_0xb351x3.height()),
_0xb351x7 = "/w" + _0xb351x5 + "-h" + _0xb351x6 + "-p-k-no-nu",
_0xb351x8 = "";
if (_0xb351x4.match("s72-c")) {
_0xb351x8 = _0xb351x4.replace("/s72-c", _0xb351x7)
} else {
if (_0xb351x4.match("w72-h")) {
_0xb351x8 = _0xb351x4.replace("/w72-h72-p-k-no-nu", _0xb351x7)
} else {
_0xb351x8 = _0xb351x4
}
};
_0xb351x2(window).on("load resize scroll", _0xb351x9);
function _0xb351x9() {
var _0xb351xa = _0xb351x2(window).height(),
_0xb351xb = _0xb351x2(window).scrollTop(),
_0xb351xc = _0xb351x3.offset().top;
if (_0xb351xb + _0xb351xa > _0xb351xc) {
var _0xb351xd = new Image();
_0xb351xd.onload = function () {
_0xb351x3.attr("style", "background-image:url\(" + this.src + "\)").addClass("lazy-ify")
}, _0xb351xd.src = _0xb351x8
}
}
_0xb351x9()
})
}
}(jQuery);
$("#onepress-free-main-menu").menuify();
$("#onepress-free-main-menu .widget").addClass("show-menu");
$(".search-toggle").on("click", function () {
$("body").toggleClass("search-active")
});
$(".blog-posts-title a.more,.related-title a.more").each(function () {
var _0xb351xe = $(this),
_0xb351xf = viewAllText;
if (_0xb351xf != "") {
_0xb351xe.text(_0xb351xf)
}
});
$(".follow-by-email-text").each(function () {
var _0xb351xe = $(this),
_0xb351x10 = followByEmailText;
if (_0xb351x10 != "") {
_0xb351xe.text(_0xb351x10)
}
});
$("#onepress-free-social-counter ul.social-icons li a").each(function () {
var _0xb351xe = $(this),
_0xb351x11 = _0xb351xe.find(".count"),
_0xb351x12 = _0xb351xe.data("content").trim(),
_0xb351x13 = _0xb351x12.split("\$"),
_0xb351x14 = _0xb351x13[0],
_0xb351x15 = _0xb351x13[1];
_0xb351xe.attr("href", _0xb351x14);
_0xb351x11.text(_0xb351x15)
});
$(".avatar-image-container img").attr("src", function (_0xb351x16, _0xb351x17) {
_0xb351x17 = _0xb351x17.replace("//resources.blogblog.com/img/blank.gif", "//4.bp.blogspot.com/-oSjP8F09qxo/Wy1J9dp7b0I/AAAAAAAACF0/ggcRfLCFQ9s2SSaeL9BFSE2wyTYzQaTyQCK4BGAYYCw/s35-r/avatar.jpg");
_0xb351x17 = _0xb351x17.replace("//img1.blogblog.com/img/blank.gif", "//4.bp.blogspot.com/-oSjP8F09qxo/Wy1J9dp7b0I/AAAAAAAACF0/ggcRfLCFQ9s2SSaeL9BFSE2wyTYzQaTyQCK4BGAYYCw/s35-r/avatar.jpg");
return _0xb351x17
});
$(".post-body a").each(function () {
var _0xb351x16 = $(this),
_0xb351x18 = _0xb351x16.text().trim(),
_0xb351x19 = _0xb351x18.split("/"),
_0xb351x1a = _0xb351x19[0],
_0xb351x1b = _0xb351x19[1],
_0xb351x1c = _0xb351x19.pop();
if (_0xb351x18.match("button")) {
_0xb351x16.addClass("button").text(_0xb351x1a);
if (_0xb351x1b != "button") {
_0xb351x16.addClass(_0xb351x1b)
};
if (_0xb351x1c != "button") {
_0xb351x16.addClass("colored-button").css({
'background-color': _0xb351x1c
})
}
}
});
$(".post-body strike").each(function () {
var _0xb351x16 = $(this),
_0xb351x18 = _0xb351x16.text().trim(),
_0xb351x1d = _0xb351x16.html();
if (_0xb351x18.match("contact-form")) {
_0xb351x16.replaceWith('<div class="contact-form"/>');
$(".contact-form").append($("#ContactForm1"))
};
if (_0xb351x18.match("alert-success")) {
_0xb351x16.replaceWith('<div class="alert-message alert-success short-b">' + _0xb351x1d + "</div>")
};
if (_0xb351x18.match("alert-info")) {
_0xb351x16.replaceWith('<div class="alert-message alert-info short-b">' + _0xb351x1d + "</div>")
};
if (_0xb351x18.match("alert-warning")) {
_0xb351x16.replaceWith('<div class="alert-message alert-warning short-b">' + _0xb351x1d + "</div>")
};
if (_0xb351x18.match("alert-error")) {
_0xb351x16.replaceWith('<div class="alert-message alert-error short-b">' + _0xb351x1d + "</div>")
};
if (_0xb351x18.match("left-sidebar")) {
_0xb351x16.replaceWith("<style>.item #main-wrapper\{float:right\}.item #sidebar-wrapper\{float:left\}</style>")
};
if (_0xb351x18.match("right-sidebar")) {
_0xb351x16.replaceWith("<style>.item #main-wrapper\{float:left\}.item #sidebar-wrapper\{float:right\}</style>")
};
if (_0xb351x18.match("full-width")) {
_0xb351x16.replaceWith("<style>.item #main-wrapper\{width:100%\}.item #sidebar-wrapper\{display:none\}</style>")
};
if (_0xb351x18.match("code-box")) {
_0xb351x16.replaceWith('<pre class="code-box short-b">' + _0xb351x1d + "</pre>")
};
var _0xb351x1e = $(".post-body .short-b").find("b");
_0xb351x1e.each(function () {
var _0xb351x1f = $(this),
_0xb351xe = _0xb351x1f.text().trim();
if (_0xb351xe.match("alert-success") || _0xb351xe.match("alert-info") || _0xb351xe.match("alert-warning") || _0xb351xe.match("alert-error") || _0xb351xe.match("code-box")) {
_0xb351x1f.replaceWith("")
}
})
});
$(".onepress-free-share-links .window-ify,.entry-share .window-ify").on("click", function () {
var _0xb351x16 = $(this),
_0xb351x20 = _0xb351x16.data("url"),
_0xb351x21 = _0xb351x16.data("width"),
_0xb351x22 = _0xb351x16.data("height"),
_0xb351x23 = window.screen.width,
_0xb351x24 = window.screen.height,
_0xb351x25 = Math.round(_0xb351x23 / 2 - _0xb351x21 / 2),
_0xb351x26 = Math.round(_0xb351x24 / 2 - _0xb351x22 / 2),
_0xb351x27 = window.open(_0xb351x20, "_blank", "scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=" + _0xb351x21 + ",height=" + _0xb351x22 + ",left=" + _0xb351x25 + ",top=" + _0xb351x26);
_0xb351x27.focus()
});
$(".onepress-free-share-links").each(function () {
var _0xb351xe = $(this),
_0xb351x1f = _0xb351xe.find(".show-hid a");
_0xb351x1f.on("click", function () {
_0xb351xe.toggleClass("show-hidden")
})
});
$(".about-author .author-description span a").each(function () {
var _0xb351x16 = $(this),
_0xb351x28 = _0xb351x16.text().trim(),
_0xb351x20 = _0xb351x16.attr("href");
_0xb351x16.replaceWith('<li class="' + _0xb351x28 + '"><a href="' + _0xb351x20 + '" title="' + _0xb351x28 + '" target="_blank"/></li>');
$(".author-description").append($(".author-description span li"));
$(".author-description").addClass("show-icons")
});
function regxify(_0xb351x17) {
var _0xb351x2a = /[^{\}]+(?=})/g;
return String(_0xb351x17.match(_0xb351x2a)).trim()
}
function msgError() {
return '<span class="no-posts"><b>Error:</b> No Results Found</span>'
}
function msgServerError() {
return '<div class="no-posts error-503"><b>Error loading feeds!</b> Maybe because the connection failed or the blogger server did not respond to the request.</div>'
}
function beforeLoader() {
return '<div class="loader"/>'
}
function getFeedUrl(_0xb351x18, _0xb351x2f, _0xb351x30) {
var _0xb351x31 = "";
switch (_0xb351x30) {
case "recent":
_0xb351x31 = "/feeds/posts/summary\?alt=json&max-results=" + _0xb351x2f;
break;
case "comments":
if (_0xb351x18 == "list") {
_0xb351x31 = "/feeds/comments/summary\?alt=json&max-results=" + _0xb351x2f
} else {
_0xb351x31 = "/feeds/posts/summary/-/" + _0xb351x30 + "\?alt=json&max-results=" + _0xb351x2f
};
break;
default:
_0xb351x31 = "/feeds/posts/summary/-/" + _0xb351x30 + "\?alt=json&max-results=" + _0xb351x2f;
break
};
return _0xb351x31
}
function getPostLink(_0xb351x33, _0xb351x17) {
for (var _0xb351x34 = 0; _0xb351x34 < _0xb351x33[_0xb351x17].link.length; _0xb351x34++) {
if (_0xb351x33[_0xb351x17].link[_0xb351x34].rel == "alternate") {
var _0xb351x35 = _0xb351x33[_0xb351x17].link[_0xb351x34].href;
break
}
};
return _0xb351x35
}
function getPostTitle(_0xb351x33, _0xb351x17) {
var _0xb351xd = _0xb351x33[_0xb351x17].title["\$t"];
return _0xb351xd
}
function getPostImage(_0xb351x33, _0xb351x17) {
if ("media\$thumbnail" in _0xb351x33[_0xb351x17]) {
var _0xb351x38 = _0xb351x33[_0xb351x17]["media\$thumbnail"].url;
if (_0xb351x38.match("img.youtube.com")) {
_0xb351x38 = _0xb351x38.replace("/default.", "/0.")
};
var _0xb351x8 = _0xb351x38
} else {
_0xb351x8 = "https://4.bp.blogspot.com/-eALXtf-Ljts/WrQYAbzcPUI/AAAAAAAABjY/vptx-N2H46oFbiCqbSe2JgVSlHhyl0MwQCK4BGAYYCw/s72-c/nth-ify.png"
};
return _0xb351x8
}
function getPostAuthor(_0xb351x33, _0xb351x17) {
var _0xb351xd = _0xb351x33[_0xb351x17].author[0].name["\$t"];
if (messages.postAuthor == "true") {
var _0xb351x3a = '<span class="entry-author">' + _0xb351xd + "</span>"
} else {
var _0xb351x3a = ""
};
return _0xb351x3a
}
function getPostDate(_0xb351x33, _0xb351x17) {
var _0xb351x3c = _0xb351x33[_0xb351x17].published["\$t"],
_0xb351x3d = _0xb351x3c.substring(0, 4),
_0xb351x3e = _0xb351x3c.substring(5, 7),
_0xb351x3f = _0xb351x3c.substring(8, 10),
_0xb351x40 = monthFormat[parseInt(_0xb351x3e, 10) - 1] + " " + _0xb351x3f + ", " + _0xb351x3d;
if (messages.postDate == "true") {
var _0xb351x3a = '<span class="entry-time"><time class="published" datetime="' + _0xb351x3c + '">' + _0xb351x40 + "</time></span>"
} else {
_0xb351x3a = ""
};
return _0xb351x3a
}
function getPostMeta(_0xb351x42, _0xb351x43) {
if (messages.postAuthor == "true" || messages.postDate == "true") {
var _0xb351x44 = '<div class="entry-meta">' + _0xb351x42 + _0xb351x43 + "</div>"
} else {
_0xb351x44 = ""
};
if (messages.postDate == "true") {
var _0xb351x45 = '<div class="entry-meta">' + _0xb351x43 + "</div>"
} else {
_0xb351x45 = ""
};
var _0xb351x3a = [_0xb351x44, _0xb351x45];
return _0xb351x3a
}
function getPostLabel(_0xb351x33, _0xb351x17) {
if (_0xb351x33[_0xb351x17].category != undefined) {
var _0xb351x47 = _0xb351x33[_0xb351x17].category[0].term,
_0xb351x3a = '<span class="entry-category">' + _0xb351x47 + "</span>"
} else {
_0xb351x3a = ""
};
return _0xb351x3a
}
function getCustomStyle(_0xb351x18, _0xb351x30, _0xb351x1c) {
if (_0xb351x1c != "") {
if (_0xb351x18 == "featured") {
var _0xb351x3a = ".id-" + _0xb351x18 + "-" + _0xb351x30 + " .entry-category\{background-color:" + _0xb351x1c + ";color:#fff\}.id-" + _0xb351x18 + "-" + _0xb351x30 + " .loader:after\{border-color:" + _0xb351x1c + ";border-right-color:rgba\(155,155,155,0.2\)\}"
}
} else {
_0xb351x3a = ""
};
return _0xb351x3a
}
function getAjax(_0xb351x16, _0xb351x18, _0xb351x2f, _0xb351x30, _0xb351x1c) {
switch (_0xb351x18) {
case "featured":
;
case "related":
if (_0xb351x30 == undefined) {
_0xb351x30 = "geterror404"
};
var _0xb351x31 = getFeedUrl(_0xb351x18, _0xb351x2f, _0xb351x30);
$.ajax({
url: _0xb351x31,
type: "GET",
dataType: "json",
cache: true,
beforeSend: function (_0xb351x4a) {
var _0xb351x4b = getCustomStyle(_0xb351x18, _0xb351x30, _0xb351x1c);
switch (_0xb351x18) {
case "featured":
$("#page-skin-2").prepend(_0xb351x4b);
_0xb351x16.html(beforeLoader()).parent().addClass("id-" + _0xb351x18 + "-" + _0xb351x30 + " show-ify");
break;
case "related":
_0xb351x16.html(beforeLoader()).parent().addClass("show-ify");
break
}
},
success: function (_0xb351x4a) {
var _0xb351x1d = "";
switch (_0xb351x18) {
case "featured":
_0xb351x1d = '<div class="featured-posts">';
break;
case "related":
_0xb351x1d = '<div class="related-posts">';
break
};
var _0xb351x4c = _0xb351x4a.feed.entry;
if (_0xb351x4c != undefined) {
for (var _0xb351x17 = 0, _0xb351x33 = _0xb351x4c; _0xb351x17 < _0xb351x33.length; _0xb351x17++) {
var _0xb351x35 = getPostLink(_0xb351x33, _0xb351x17),
_0xb351x4d = getPostTitle(_0xb351x33, _0xb351x17, _0xb351x35),
_0xb351x4e = getPostImage(_0xb351x33, _0xb351x17, _0xb351x35),
_0xb351x42 = getPostAuthor(_0xb351x33, _0xb351x17),
_0xb351x43 = getPostDate(_0xb351x33, _0xb351x17),
_0xb351x4f = getPostMeta(_0xb351x42, _0xb351x43),
_0xb351x47 = getPostLabel(_0xb351x33, _0xb351x17);
var _0xb351x50 = "";
switch (_0xb351x18) {
case "featured":
switch (_0xb351x17) {
case 0:
_0xb351x50 += '<article class="featured-item post item-' + _0xb351x17 + '"><div class="featured-item-inner"><a class="entry-image-link before-mask" href="' + _0xb351x35 + '"><span class="entry-thumb" data-image="' + _0xb351x4e + '"/></a>' + _0xb351x47 + '<div class="entry-header entry-info"><h2 class="entry-title"><a href="' + _0xb351x35 + '">' + _0xb351x4d + "</a></h2>" + _0xb351x4f[0] + '</div></div></article><div class="featured-scroll">';
break;
default:
_0xb351x50 += '<article class="featured-item post item-' + _0xb351x17 + '"><div class="featured-item-inner"><a class="entry-image-link before-mask" href="' + _0xb351x35 + '"><span class="entry-thumb" data-image="' + _0xb351x4e + '"/></a>' + _0xb351x47 + '<div class="entry-header entry-info"><h2 class="entry-title"><a href="' + _0xb351x35 + '">' + _0xb351x4d + "</a></h2>" + _0xb351x4f[1] + "</div></div></article>";
break
};
break;
case "related":
_0xb351x50 += '<article class="related-item post item-' + _0xb351x17 + '"><div class="entry-image"><a class="entry-image-link" href="' + _0xb351x35 + '"><span class="entry-thumb" data-image="' + _0xb351x4e + '"/></a></div><div class="entry-header"><h2 class="entry-title"><a href="' + _0xb351x35 + '">' + _0xb351x4d + "</a></h2>" + _0xb351x4f[1] + "</div></article>";
break
};
_0xb351x1d += _0xb351x50
}
} else {
_0xb351x1d = msgError()
};
switch (_0xb351x18) {
case "featured":
_0xb351x1d += "</div></div>";
_0xb351x16.html(_0xb351x1d);
break;
default:
_0xb351x1d += "</div>";
_0xb351x16.html(_0xb351x1d);
break
};
_0xb351x16.find("span.entry-thumb").lazyify()
},
error: function () {
_0xb351x16.html(msgServerError())
}
})
}
}
function ajaxFeatured(_0xb351x16, _0xb351x18, _0xb351x2f, _0xb351x30, _0xb351x52, _0xb351x1c) {
if (_0xb351x52.match("getfeatured")) {
if (_0xb351x18 == "featured") {
return getAjax(_0xb351x16, _0xb351x18, _0xb351x2f, _0xb351x30, _0xb351x1c)
} else {
_0xb351x16.html(beforeLoader()).parent().addClass("show-ify");
setTimeout(function () {
_0xb351x16.html(msgError())
}, 500)
}
}
}
function ajaxRelated(_0xb351x16, _0xb351x18, _0xb351x2f, _0xb351x30, _0xb351x52) {
if (_0xb351x52.match("getrelated")) {
return getAjax(_0xb351x16, _0xb351x18, _0xb351x2f, _0xb351x30)
}
}
$("#featured .HTML .widget-content").each(function (_0xb351x30, _0xb351x1c) {
var _0xb351x16 = $(this),
_0xb351x1a = _0xb351x16.text().trim(),
_0xb351x52 = _0xb351x1a.toLowerCase(),
_0xb351x54 = _0xb351x1a.split("\$");
_0xb351x54[1] != undefined ? _0xb351x30 = regxify(_0xb351x54[1]) : _0xb351x30 = "";
_0xb351x54[2] != undefined ? _0xb351x1c = regxify(_0xb351x54[2]) : _0xb351x1c = "";
ajaxFeatured(_0xb351x16, "featured", 3, _0xb351x30, _0xb351x52, _0xb351x1c)
});
$(".onepress-free-related-content").each(function () {
var _0xb351x16 = $(this),
_0xb351x30 = _0xb351x16.find(".related-tag").attr("data-label"),
_0xb351x2f = relatedPostsNum;
ajaxRelated(_0xb351x16, "related", _0xb351x2f, _0xb351x30, "getrelated")
});
$(".onepress-free-blog-post-comments").each(function () {
var _0xb351x16 = $(this),
_0xb351x55 = "blogger",
_0xb351x56 = "comments-system-" + _0xb351x55;
switch (_0xb351x55) {
case "blogger":
;
case "facebook":
;
case "disqus":
_0xb351x16.addClass(_0xb351x56).show();
$(".entry-meta .entry-comments-link").addClass("show");
break;
case "hide":
_0xb351x16.hide();
break;
default:
_0xb351x16.addClass("comments-system-default").show();
$(".entry-meta .entry-comments-link").addClass("show");
break
};
var _0xb351x57 = _0xb351x16.find(".comments .toplevel-thread > ol > .comment .comment-actions .comment-reply"),
_0xb351x15 = _0xb351x16.find(".comments .toplevel-thread > #top-continue");
_0xb351x57.on("click", function () {
_0xb351x15.show()
});
_0xb351x15.on("click", function () {
_0xb351x15.hide()
})
});
$(function () {
$(".index-post .entry-image-link .entry-thumb, .PopularPosts .entry-image-link .entry-thumb, .FeaturedPost .entry-image-link .entry-thumb,.about-author .author-avatar").lazyify();
$(".mobile-logo").each(function () {
var _0xb351xe = $(this),
_0xb351x58 = $("#main-logo .header-widget a").clone();
_0xb351x58.find("#h1-tag").remove();
_0xb351x58.appendTo(_0xb351xe)
});
$("#onepress-free-mobile-menu").each(function () {
var _0xb351xe = $(this),
_0xb351x59 = $("#onepress-free-main-menu-nav").clone();
_0xb351x59.attr("id", "main-mobile-nav");
_0xb351x59.appendTo(_0xb351xe);
$(".show-onepress-free-mobile-menu, .hide-onepress-free-mobile-menu, .overlay").on("click", function () {
$("body").toggleClass("nav-active")
});
$(".onepress-free-mobile-menu .has-sub").append('<div class="submenu-toggle"/>');
$(".onepress-free-mobile-menu ul li .submenu-toggle").on("click", function (_0xb351x16) {
if ($(this).parent().hasClass("has-sub")) {
_0xb351x16.preventDefault();
if (!$(this).parent().hasClass("show")) {
$(this).parent().addClass("show").children(".m-sub").slideToggle(170)
} else {
$(this).parent().removeClass("show").find("> .m-sub").slideToggle(170)
}
}
})
});
$(".social-mobile").each(function () {
var _0xb351xe = $(this),
_0xb351x58 = $("#navbar-social ul.social").clone();
_0xb351x58.appendTo(_0xb351xe)
});
$("a#templateify").attr("href", "https://www.templateify.com/").text("Blogger Templates").attr("style", "visibility:visible!important;opacity:1!important;position:relative!important;z-index:1!important;font-size:14px!important;color:#f0f0f0!important;");
setInterval(function () {
if (!$("a#templateify:visible").length) {
window.location.href = "https://www.templateify.com/"
}
}, 1000);
$("#onepress-free-header-wrapper .headerify").each(function () {
var _0xb351x16 = $(this);
if (fixedMenu == true) {
if (_0xb351x16.length > 0) {
var _0xb351x3 = $(document).scrollTop(),
_0xb351x5a = _0xb351x16.offset().top,
_0xb351x5b = _0xb351x16.height(),
_0xb351x40 = (_0xb351x5a + _0xb351x5b);
$(window).scroll(function () {
var _0xb351xd = $(document).scrollTop(),
_0xb351x3e = $("#footer-wrapper").offset().top,
_0xb351x3f = (_0xb351x3e - _0xb351x5b);
if (_0xb351xd < _0xb351x3f) {
if (_0xb351xd > _0xb351x40) {
_0xb351x16.addClass("is-fixed")
} else {
if (_0xb351xd <= 0) {
_0xb351x16.removeClass("is-fixed")
}
};
if (_0xb351xd > _0xb351x3) {
_0xb351x16.removeClass("show")
} else {
_0xb351x16.addClass("show")
};
_0xb351x3 = $(document).scrollTop()
}
})
}
}
});
$("#main-wrapper,#sidebar-wrapper").each(function () {
if (fixedSidebar == true) {
if (fixedMenu == true) {
var _0xb351x5c = 90
} else {
_0xb351x5c = 30
};
$(this).theiaStickySidebar({
additionalMarginTop: _0xb351x5c,
additionalMarginBottom: 30
})
}
});
$(".back-top").each(function () {
var _0xb351xe = $(this);
$(window).on("scroll", function () {
$(this).scrollTop() >= 100 ? _0xb351xe.fadeIn(250) : _0xb351xe.fadeOut(250);
_0xb351xe.offset().top >= $("#footer-wrapper").offset().top - 32 ? _0xb351xe.addClass("on-footer") : _0xb351xe.removeClass("on-footer")
}), _0xb351xe.click(function () {
$("html, body").animate({
scrollTop: 0
}, 500)
})
});
$("p.comment-content").each(function () {
var _0xb351xe = $(this);
_0xb351xe.replaceText(/(https:\/\/\S+(\.png|\.jpeg|\.jpg|\.gif))/g, '<img src="\$1"/>');
_0xb351xe.replaceText(/(?:https:\/\/)?(?:www\.)?(?:youtube\.com)\/(?:watch\?v=)?(.+)/g, '<iframe id="youtube" width="100%" height="358" src="https://www.youtube.com/embed/\$1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
});
$("#onepress-free-load-more-link").each(function () {
var _0xb351x16 = $(this),
_0xb351x5d = _0xb351x16.data("load");
if (_0xb351x5d) {
$("#onepress-free-load-more-link").show()
};
$("#onepress-free-load-more-link").on("click", function (_0xb351x2) {
$("#onepress-free-load-more-link").hide();
$.ajax({
url: _0xb351x5d,
success: function (_0xb351x4a) {
var _0xb351x5e = $(_0xb351x4a).find(".blog-posts");
_0xb351x5e.find(".index-post").addClass("post-animated post-fadeInUp");
$(".blog-posts").append(_0xb351x5e.html());
_0xb351x5d = $(_0xb351x4a).find("#onepress-free-load-more-link").data("load");
if (_0xb351x5d) {
$("#onepress-free-load-more-link").show()
} else {
$("#onepress-free-load-more-link").hide();
$("#blog-pager .no-more").addClass("show")
};
$(".index-post .entry-image-link .entry-thumb").lazyify()
},
beforeSend: function () {
$("#blog-pager .loading").show()
},
complete: function () {
$("#blog-pager .loading").hide()
}
});
_0xb351x2.preventDefault()
})
})
})
from de4js.
Related Issues (20)
- unreadable says to transpile then transpiling fails too. HOT 2
- Figure out variable names HOT 3
- Method after closing curly brace HOT 3
- Disappearing string literal HOT 1
- Skipping space HOT 1
- Unpacker please HOT 1
- Is there any chance to deobfuscate this sort of encryption ? HOT 3
- Update obfuscator.io
- Unable to decrypt this js code HOT 2
- Not working... It always say "Please wait....." HOT 4
- Obfuscator.io is no longer working HOT 26
- Not entirely decoded strings HOT 1
- Add WiseLoop unpacker HOT 4
- Help me HOT 1
- getting error: sanex3339
- cant decode this code
- Incorrectly replaces ![] with true
- Doesn't clean up uc8.tv properly HOT 1
- [INVESTIGATION] Found obfuscated file and none of the encodings work on it
- Failure to Handle Large Files + Other Oddities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from de4js.