UNPKG

@patricksurry/g3

Version:

A flexible Javascript framework for building steam gauge instrument panels that display live external metrics from flight (or other) simulators like XPlane or MS FS2020

36 lines (31 loc) 727 B
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> div.header { text-align: center; font-size: 250%; margin: 15px 0; } svg { display: block; margin: 0 auto; } </style> </head> <body> <div class='header'>g3.contrib gallery</div> <div id='gauge-gallery'></div> <div class='header'>g3.pointers gallery</div> <div id='pointer-gallery'></div> <!-- <script src="./g3-examples.min.js"></script> --> <script src="https://unpkg.com/@patricksurry/g3/dist/g3-contrib.min.js"></script> <script> // A panel with all contrib gauges g3.gallery.contrib('#gauge-gallery'); // A panel showing all the pointer shapes g3.gallery.pointers('#pointer-gallery'); </script> </body> </html>