PageSourceSearch

https://marked2app.com/js/main.js?9

js marked2app.com collected 2026-09-24 18:10:51 UTC 3,528 bytes, 143 lines download raw bytes

1if (!window.marked2) {
2  var marked2 = {};
3}
4
5var getQueryString = (function () {
6  var result;
7
8  function lifter() {
9    var queryString = location.search.substring(1),
10      re = /([^&=]+)=([^&]*)/g,
11      m;
12
13    result = {};
14
15    while ((m = re.exec(queryString))) {
16      result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
17    }
18  }
19
20  return function () {
21    if (!result) {
22      lifter();
23    }
24
25    return result;
26  };
27})();
28
29marked2.animation = (function () {
30  var texttimer,
31    fliptimer,
32    flipstate = "front";
33
34  function animationInit() {
35    $(".fliptext").each(function (n, i) {
36      $(this).data("orig-text", $(this).text());
37      var datalist = $(this).data("text-list").split(/,/),
38        counter = 0;
39      texttimer = setInterval(function () {
40        if (flipstate === "front") {
41          $(".fliptext").fadeOut(600, function () {
42            $(this).text(datalist[counter]).fadeIn(300);
43            counter = counter === datalist.length - 1 ? 0 : counter + 1;
44          });
45        }
46      }, 1000);
47    });
48
49    fliptimer = setTimeout(flipImage, 6000);
50  }
51
52  function flipImage() {
53    clearTimeout(fliptimer);
54    if (flipstate === "front") {
55      flipstate = "back";
56      $("img", "#imageholder").transition({ y: "-392px" });
57      $(".edit", "#hed").fadeOut("slow", function () {
58        $(".preview", "#hed").fadeIn("fast");
59      });
60    } else {
61      $("img", "#imageholder").transition({ y: "0" });
62      $(".preview", "#hed").fadeOut("fast", function () {
63        $(".fliptext").each(function () {
64          $(this).text($(this).data("orig-text"));
65          flipstate = "front";
66          $(".edit", "#hed").fadeIn("fast");
67        });
68      });
69    }
70    fliptimer = setTimeout(flipImage, 6000);
71  }
72
73  return {
74    init: animationInit
75  };
76})();
77
78(function ($) {
79  // if (!Modernizr.touch) {
80  //   var s = skrollr.init();
81  // }
82
83  var qv = getQueryString();
84
85  if (qv["v"] === "2") {
86    // $('<link rel="stylesheet">').attr('href','css/marked2v2.css').appendTo('head');
87    $("body").addClass("experimentsv2");
88  }
89
90  marked2.animation.init();
91  $("a.product").colorbox({
92    rel: "productimages",
93    maxWidth: "90%",
94    maxHeight: "90%",
95    scalePhotos: true
96  });
97
98  new WOW({ offset: 10 }).init();
99  // Setapp setup
100  window._setappBtn = window._setappBtn || [];
101  window._setappBtn.push({
102    vendorID: 44,
103    appID: 80,
104    selector: ".available-on-setapp-80",
105    campaignName: "" //optional, check docs for more info
106  });
107  // Paddle Setup
108  Paddle.Setup({
109    vendor: 127,
110    debug: false,
111    completeDetails: true
112  });
113  Paddle.Audience.Popup({
114    vendorName: "Brett Terpstra",
115    triggers: {
116      exitIntent: true,
117      scrollDepth: false,
118      timed: false
119    },
120    strings: {
121      heading: "Before you leave...",
122      subHeading:
123        "Before you head out, why not subscribe to the email list and be the first to know about the latest Marked 2 features, updates, and offers?",
124      cta: "Sign me up!"
125    }
126  });
127
128  $("#retreive_license").on("submit", function (e) {
129    e.preventDefault();
130
131    var email = $("#email", "#retreive_license").val();
132    // Enter the product_id in the second parameter to additionally filter the email response to specific product.
133    Paddle.User.History(email, 489454, function (response) {
134      if (response.success) {
135        alert("If a license exists for this email it's been sent.");
136      } else {
137        alert("Sorry, an error occurred");
138      }
139    });
140
141    return false;
142  });
143})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.