Commit aeb5693b authored by Prakhar Agrawal's avatar Prakhar Agrawal
Browse files

Updated readme for v5.

parent f8ba9274
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
# Leegality Web SDK 4.0#
# Leegality Web SDK 5.0#

### Steps to use: ###

1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/web-sdk/blob/v4/leegalityv4.js
1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/web-sdk/blob/v5/leegalityv5.js
2. Insert the SDK JS file in head tag of HTML.
    <br __>Ex. `<script src="leegalityv4.js" type="text/javascript"></script>`
    <br __>Ex. `<script src="leegalityv5.js" type="text/javascript"></script>`
3. Create a JSON object with following keys:
    <br __>3.1 logoUrl: (This is an optional parameter) This key contains a URL of your logo in any image file format. This Logo is shown on the Loading Page before the Signing Page appears. 
    <br __>3.2 callback: (This is a required parameter) This key contains a function which will be automatically executed after the completion of signing or in case of any error.
@@ -38,7 +38,7 @@
```
<html>
    <head>
        <script src="leegalityv4.js" type="text/javascript"></script>
        <script src="leegalityv5.js" type="text/javascript"></script>
    </head>
    <body>
        <p>Message: <span id="message"></span></p>