Install Widget

To install the script on the site you need add to the body data attributes and register the script.

Attributes

script: http://context2.com/App/mainEmbedded.js

Example of use

<script>
    function initContext2() {
        var options = {
            cssSelector: "div.content",
            userCode: "#######",
            language: "en",
            position: "middle",
            marginTop: "",
            marginBottom: "",
            content: "Comments",
            mobilePosition: "bottom",
            mobileMarginTop: "",
            mobileMarginBottom: "10px",
            mobileContent: "",
        }
        return options;
    }
</script>
<script type="text/javascript" src="https://context2.com/App/mainEmbedded.js"></script>