.. include:: ../Includes.txt .. _developer: ================ Developer Corner ================ Target group: **Developers** .. _javascript-api: JavaScript API ============== cookieman.js exposes these methods: cookieman.showOnce() ^^^^^^^^^^^^^^^^^^^^ :aspect:`Data type` void :aspect:`Description` Shows the confirmation modal when consent has not been saved yet. It is automatically called on each page from `cookieman-init.js` (with an aditional condition, see :ref:`when-is-it-shown` cookieman.show() ^^^^^^^^^^^^^^^^ :aspect:`Data type` void :aspect:`Description` Shows the confirmation modal. You can call that from anywhere you need it (e.g. with a link from your data protection declaration page). .. code-block:: HTML .. attention:: If your website uses a strict `Content-Security-Policy` (see `Mozilla Developer Network `__) the onclick= needs to be replaced with registering a click-handler from an external