Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mql = window["matchMedia"]("screen and (min-width: 60em)");
- if (mql["matches"]) {
- window["onload"] = function() {
- var variable_0 = document["getElementById"]("credit");
- if (variable_0 == null) {
- window["location"]["href"] = "https://www.naminakiky.com"
- };
- variable_0["setAttribute"]("href", "https://www.naminakiky.com");
- variable_0["setAttribute"]("rel", "nofollow");
- variable_0["innerHTML"] = "Template by <a href='https://www.naminakiky.com' rel='nofollow noopener' target='_blank' title='Namina Kiky'>Namina Kiky</a>"
- }
- };
- $(document)["ready"](function() {
- function variable_1(variable_2, variable_0, variable_3) {
- $["ajax"]({
- url: "/feeds/posts/default/-/" + variable_0 + "?alt=json-in-script&max-results=" + variable_3,
- type: "get",
- dataType: "jsonp",
- success: function(variable_4) {
- for (var variable_5 = "", variable_6 = "<div class=\"related\">", variable_7 = 0; variable_7 < variable_4["feed"]["entry"]["length"]; variable_7++) {
- for (var variable_8 = 0; variable_8 < variable_4["feed"]["entry"][variable_7]["link"]["length"]; variable_8++) {
- if ("alternate" == variable_4["feed"]["entry"][variable_7]["link"][variable_8]["rel"]) {
- variable_5 = variable_4["feed"]["entry"][variable_7]["link"][variable_8]["href"];
- break
- }
- };
- var variable_9 = variable_4["feed"]["entry"][variable_7]["title"]["$t"];
- var variable_10 = variable_4["feed"]["entry"][variable_7]["content"]["$t"];
- var variable_11 = $("<div>")["html"](variable_10);
- if (variable_10["indexOf"]("https://www.youtube.com/embed/") > -1 || variable_10["indexOf"]("https://www.youtube.com/embed/") > -1) {
- var variable_12 = variable_4["feed"]["entry"][variable_7]["media$thumbnail"]["url"],
- variable_13 = variable_12["replace"]("/default.jpg", "/mqdefault.jpg"),
- variable_140 = variable_13
- } else {
- if (variable_10["indexOf"]("<img") > -1) {
- var variable_141 = variable_11["find"]("img:first")["attr"]("src"),
- variable_142 = variable_141["replace"]("s72-c", "s600");
- var variable_140 = variable_142
- } else {
- var variable_140 = "https://2.bp.blogspot.com/-4lZ7DCckjkg/WtaPclghMGI/AAAAAAAAN00/4Cais5iSDRwwUyU6jEc7qlCojlg1izsVgCLcBGAs/s1600/noImage.png"
- }
- };
- variable_6 += "<li><div class=\"related-thumb\"><a class=\"related-img\" href=\"" + variable_5 + "\" style=\"background:url(" + variable_140 + ") no-repeat center center;background-size: cover\"/></div><h3 class=\"related-title\"><a href=\"" + variable_5 + "\">" + variable_9 + "</a></h3></li>"
- };
- variable_6 += "</div>", variable_2["html"](variable_6)
- }
- })
- }
- $("#related-posts")["each"](function() {
- var variable_2 = $(this),
- variable_0 = variable_2["text"](),
- variable_3 = 3;
- variable_1(variable_2, variable_0, variable_3)
- })
- });
- $(document)["ready"](function() {
- $(".comments")["not"](":has(.comment-form)")["addClass"]("not_have_comment_form"), $(".comments:has(.comment-form)")["addClass"]("has-comment-form")
- });
- $(window)["scroll"](function() {
- $(this)["scrollTop"]() > 200 ? $("#back-to-top")["fadeIn"]() : $("#back-to-top")["fadeOut"]()
- }), $("#back-to-top")["hide"]()["click"](function() {
- return $("html, body")["animate"]({
- scrollTop: 0
- }, 400), !1
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement