KameSame Open Framework - Jquery module

Progress module for KameSame Open Framework

נכון ליום 07-10-2022. ראה הגרסה האחרונה.

אין להתקין סקריפט זה ישירות. זוהי ספריה עבור סקריפטים אחרים // @require https://update.greatest.deepsurf.us/scripts/451523/1101979/KameSame%20Open%20Framework%20-%20Jquery%20module.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

"use strict";
// ==UserScript==
// @name        KameSame Open Framework - Jquery module
// @namespace   timberpile
// @description Progress module for KameSame Open Framework
// @version     0.1
// @copyright   2022+, Robin Findley, Timberpile
// @license     MIT; http://opensource.org/licenses/MIT
// ==/UserScript==
// These lines are necessary to make sure that TSC does not put any exports in the
// compiled js, which causes the script to crash
// eslint-disable-next-line no-var, @typescript-eslint/no-unused-vars
var module = {};
(async (global) => {
    console.log(1);
    const ksof = global.ksof;
    //########################################################################
    //------------------------------
    // Published interface
    //------------------------------
    // eslint-disable-next-line no-var
    var version = '';
    ksof.Jquery = {
        version: version,
    };
    //########################################################################
    ksof.ready('document')
        .then(function () {
        const promises = [];
        try {
            $.fn.jquery;
        }
        catch (e) {
            promises.push(ksof.load_script(ksof.support_files['jquery.js'], true /* cache */));
        }
        return Promise.all(promises);
    })
        .then(function (data) {
        version = $.fn.jquery;
        // Notify listeners that we are ready.
        // Delay guarantees include() callbacks are called before ready() callbacks.
        setTimeout(function () { ksof.set_state('ksof.Jquery', 'ready'); }, 0);
    });
})(window);
module.exports = null;