Skip to content

vements/web-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>