PageSourceSearch

https://moonworx.de/wp-content/plugins/moonworx/assets/js/moon-views-script.js

js moonworx.de collected 2026-10-02 16:06:09 UTC 1,170 bytes, 38 lines download raw bytes

1(function( $ ) {
2	'use strict';
3	
4$(document).ready(function() {
5
6    var referrer = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname
7    var language = (referrer.includes("/en/")) ? "en":"de";
8
9    var dateTime = new Date();
10    var timeZone = dateTime.getTimezoneOffset();
11
12    $.ajax({
13        url: moon_views_data.ajax_url,
14        type: 'POST',
15        data: {
16            action: 'moon_views',
17            security: moon_views_data.nonce,
18            lang: language, 
19            time: (dateTime.getTime() / 1000),
20            offset: timeZone
21        },
22        success: function (response) {
23            //console.log(response);
24            $( "#moonworx-today").html(response.data.moon_today);
25            var el = $("#moonworx-month");
26            el.fadeOut(function() {
27                el.stop().hide().html(response.data.moon_month).fadeIn();
28            });
29        },
30        error: function (xhr, status, error) {
31          console.log('Error retrieving members.');
32          console.dir(xhr);
33          console.log('status: ' + status);
34          console.log('error: ' + error);
35        }
36    });
37});
38})( 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.