Javascript API
Run in this Web Page
Open a console (press Ctrl+Shift+k or F12) to start writing commands:
damas-core API loaded // list every elements identifiers damas.search('*'); // read every elements damas.read(damas.search('*')); // create an empty element damas.create({});
Run in a new Web Page
Load the AMD module using require() or using an html <script> tag.
<script src="damas.js"></script>
Open a console and start using the API as explained above.
Run in a Project
The AMD module is available in the npm module library. Install the module using NPM:
npm install damas-core-client
Then edit your Javascript:
// load the module const damas = require('damas-core-client'); // connect to this server damas.server = 'https://serveripaddr';
Additional JS ressources
damas-socket.js is a module to connect to a damas-core server using websockets. See Event-API.