Grammalecte  Diff

Differences From Artifact [0dfb85fb05]:

To Artifact [0491f8cbe1]:


1
2
3
4
5
6


7
8
9
10
11
12
13
// JavaScript

"use strict";


const oGrammalecteAPI = {


    // functions callable from within pages
    // to be sent to the content-cript via an event “GrammalecteCall”

    sVersion: "1.0",

    generateNodeId: function (xNode) {
        xNode.id = "grammalecte_generated_id_" + Date.now().toString(36) + "_" + (Math.floor(Math.random() * (1000000))).toString(36);





|
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// JavaScript

"use strict";


var oGrammalecteAPI = {
    // Thes script might be reloaded, don’t use const or let.

    // functions callable from within pages
    // to be sent to the content-cript via an event “GrammalecteCall”

    sVersion: "1.0",

    generateNodeId: function (xNode) {
        xNode.id = "grammalecte_generated_id_" + Date.now().toString(36) + "_" + (Math.floor(Math.random() * (1000000))).toString(36);