Skip to content
Kyle Bryant edited this page Jan 3, 2019 · 8 revisions

Torus Integration Guide

There are a few ways you can easily integrate Torus into your DAPP! The easiest way is to simply include the script tag into your html as follows:

<script src="https://tor.us/embed-main.min.js"></script>

This will give you our default widget at the bottom left of your DAPP. If you would like to customize the widget styling we provide a few attributes in order to give a more appealing look according to your own needs:

  1. show-widget - Optional, wether or not you would like to show the widget at all. See 'Using Torus without the widget' section for more information.
  2. custom-style - Optional, wether or not you would like to add your own custom style to the widget. Required for following attributes.
  3. style-color - Background color of the widget in any form (hex, color name, etc.. Note: white not recommended)
  4. style-position - Position on the webpage. Options are top-left, top-right, bottom-left, bottom-right
  5. style-padding - Padding from the corner of the screen
  6. style-diameter - Diameter of the widget's circle
Clone this wiki locally