Advertisement
MertcanGokgoz

Untitled

Dec 29th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mql = window["matchMedia"]("screen and (min-width: 60em)");
  2. if (mql["matches"]) {
  3.     window["onload"] = function() {
  4.         var variable_0 = document["getElementById"]("credit");
  5.         if (variable_0 == null) {
  6.             window["location"]["href"] = "https://www.naminakiky.com"
  7.         };
  8.         variable_0["setAttribute"]("href", "https://www.naminakiky.com");
  9.         variable_0["setAttribute"]("rel", "nofollow");
  10.         variable_0["innerHTML"] = "Template by <a href='https://www.naminakiky.com' rel='nofollow noopener' target='_blank' title='Namina Kiky'>Namina Kiky</a>"
  11.     }
  12. };
  13. $(document)["ready"](function() {
  14.     function variable_1(variable_2, variable_0, variable_3) {
  15.         $["ajax"]({
  16.             url: "/feeds/posts/default/-/" + variable_0 + "?alt=json-in-script&max-results=" + variable_3,
  17.             type: "get",
  18.             dataType: "jsonp",
  19.             success: function(variable_4) {
  20.                 for (var variable_5 = "", variable_6 = "<div class=\"related\">", variable_7 = 0; variable_7 < variable_4["feed"]["entry"]["length"]; variable_7++) {
  21.                     for (var variable_8 = 0; variable_8 < variable_4["feed"]["entry"][variable_7]["link"]["length"]; variable_8++) {
  22.                         if ("alternate" == variable_4["feed"]["entry"][variable_7]["link"][variable_8]["rel"]) {
  23.                             variable_5 = variable_4["feed"]["entry"][variable_7]["link"][variable_8]["href"];
  24.                             break
  25.                         }
  26.                     };
  27.                     var variable_9 = variable_4["feed"]["entry"][variable_7]["title"]["$t"];
  28.                     var variable_10 = variable_4["feed"]["entry"][variable_7]["content"]["$t"];
  29.                     var variable_11 = $("<div>")["html"](variable_10);
  30.                     if (variable_10["indexOf"]("https://www.youtube.com/embed/") > -1 || variable_10["indexOf"]("https://www.youtube.com/embed/") > -1) {
  31.                         var variable_12 = variable_4["feed"]["entry"][variable_7]["media$thumbnail"]["url"],
  32.                             variable_13 = variable_12["replace"]("/default.jpg", "/mqdefault.jpg"),
  33.                             variable_140 = variable_13
  34.                     } else {
  35.                         if (variable_10["indexOf"]("<img") > -1) {
  36.                             var variable_141 = variable_11["find"]("img:first")["attr"]("src"),
  37.                                 variable_142 = variable_141["replace"]("s72-c", "s600");
  38.                             var variable_140 = variable_142
  39.                         } else {
  40.                             var variable_140 = "https://2.bp.blogspot.com/-4lZ7DCckjkg/WtaPclghMGI/AAAAAAAAN00/4Cais5iSDRwwUyU6jEc7qlCojlg1izsVgCLcBGAs/s1600/noImage.png"
  41.                         }
  42.                     };
  43.                     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>"
  44.                 };
  45.                 variable_6 += "</div>", variable_2["html"](variable_6)
  46.             }
  47.         })
  48.     }
  49.     $("#related-posts")["each"](function() {
  50.         var variable_2 = $(this),
  51.             variable_0 = variable_2["text"](),
  52.             variable_3 = 3;
  53.         variable_1(variable_2, variable_0, variable_3)
  54.     })
  55. });
  56. $(document)["ready"](function() {
  57.     $(".comments")["not"](":has(.comment-form)")["addClass"]("not_have_comment_form"), $(".comments:has(.comment-form)")["addClass"]("has-comment-form")
  58. });
  59. $(window)["scroll"](function() {
  60.     $(this)["scrollTop"]() > 200 ? $("#back-to-top")["fadeIn"]() : $("#back-to-top")["fadeOut"]()
  61. }), $("#back-to-top")["hide"]()["click"](function() {
  62.     return $("html, body")["animate"]({
  63.         scrollTop: 0
  64.     }, 400), !1
  65. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement