cgkineo / adapt-definitions

Glossary - Popup word definitions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adapt-definitions

course.json

    "_definitions": {
        "_isEnabled": true,
        "title": "Definition",
        "body": "{{{word}}}: {{{definition}}}",
        "confirmText": "Close",
        "_showIcon": true
    }

any json - single instance definition

    {
        "body": "This next <span role='button' tabindex='0' definition='Has a brief description'>word</span>"
    }

course.json - global definition for every word occurance

    "_definitions": {
        "_isEnabled": true,
        "title": "Definition",
        "body": "{{{word}}}: {{{definition}}}",
        "confirmText": "Close",
        "_showIcon": true,
        "_items": [
            {
                "words": [
                    "sam"
                ],
                "definition": "This is the sun of Sam"
            },
            {
                "words": [
                    "Adapt Framework"
                ],
                "definition": "This is a piece of software which</br>allows you to create e-learning."
            },
            {
                "words": [
                    "Adapt"
                ],
                "definition": "This is a community of people"
            },
            {
                "words": [
                    "the",
                    "a"
                ],
                "definition": "Excellent word this one"
            }
        ]
    } 

About

Glossary - Popup word definitions

License:GNU General Public License v3.0


Languages

Language:JavaScript 98.7%Language:Less 1.3%