cockpit.js

cockpit.js — Basic cockpit API to interact with the system

Loading cockpit.js

cockpit.js should be loaded via a script tag. In general jQuery should be loaded before cockpit.js as in the example below. If jQuery is not loaded then only the raw channel API will be defined.

<script src="../base1/jquery.js">
<script src="../base1/cockpit.js">