Skip to content

volotea-virtual/stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stats

stats is a javascript script used for displaying stats from vamsys to the Virtual Airline Website.

Usage

Stats is hosted on vVolotea CDN at https://cdn.volotea-virtual.it/stats/bundle.js To use stats, include at the bottom of body, bunlke.js and then you can specify what stst to replace. You wikll need your VA UUID which is the key at the end of your Statistics URL from Orwell. AN Example UUID is '44af8377-34f9-401a-aafe-5cfbc2cf8325'.

<span id="total-pireps-stat"></span>
<script src="https://cdn.volotea-virtual.it/stats/bundle.js"></script>
<script>
  var stats = vamsysStats({
    uuid: "[YOUR_VA_UUID]"
  });

  stats.replace("total-pireps-stat").withVaStat(stats => stats.pireps.total);
</script>

The example above replaces the inner HTML of the element with the id total-pireps-stat with the total PIREPs statistic.

A full list of what statistics can be included can be found in the statistics.ts file. A full list of options that can be passed to the vamsysStats function can be found in the settings.ts file.

Security

If you find a security issue with the script, please email luca [a t] ahd-creative.agency. You can encrypt your message using his key, available here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published