Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 812 Bytes

readme.md

File metadata and controls

28 lines (19 loc) · 812 Bytes

Vements Web Components

This repo provides two web components for displaying public achievement leaderboards and scoreboard scores from the Vements API.

Installation

  1. Copy the vements-web.js file into your project.
  2. Add the following script tag to your HTML file:
<script src="vements-web.js"></script>

Adjust the src attribute to point to the location of the vements-web.js file in your project.

  1. Add one or more instances of the web components to your HTML file. Examples of each are provided below.
<scoreboard-scores scoreboard-id="01HEDQVWKN00000738M1TQTB50">
</scoreboard-scores>

And for achievement leaderboards:

<achievement-leaderboard achievement-id="01HEDQVTQ70000002FFHVXZAJ3">
</achievement-leaderboard>