-
Notifications
You must be signed in to change notification settings - Fork 6
JavaScript
PV Free uses many JS plug-ins in the templates.
Highlight.js does syntax highlighting.
- version: 11.11.1
- last updated: 2025-05-04
- commit: 0c95c1200a9
- cdn: cloudflare
- integrity: none
- components: link to CSS and (1) js script to main plug-in, specific languages also available
FIXME: highlight 9.12.0 is still used on
index.html! Update and think about how to make this DRY with pvlib page?
Vega-Lite makes the solar position graph on the pvlib page. We could also use it via the python package Altair, in place of bokeh, or vice-versa we could use bokeh.js instead of vega-lite.
- vega version: 5.22.1
- vega-lite version: 5.6.1
Leaflet makes the map we use to pick latitude, longitude coordinates on the pvlib page.
- version: 1.4.0
- components: link and main script plus another for ESRI
- version: 2.2.4
Datatables makes the human readable, sortable, searchable tables on the PV inverter, CEC module, and Sandia PV module pages. It has a special CSS link and js script for Bootstrap-3. There are also plug-ins for Bootstrap v4 and v5.
- version: 2.2.2
- components: CSS link for Bootstrap-3, a main js script for datatables, and another js script for bootstrap-3
Bokeh.js are used to make plots of inverter and module efficiency or I-V curves on detail pages.
- version: 3.0.1
- components: js scripts for main, widgets, and tables (IDK which are actually needed, ha, ha)
bootstrap is the web framework for html, css, and js.
- version: 3.4.1
- components: a main css link, another css link for themes, a css link for ie10 workarounds, a main js script, & a js script for the ie10 workaround
jQuery is required by bootstrap & is used to send ajax on the pvlib page.
- version: 3.7.1
We are not currently using js-cookie but it could be used in lieu of the Django script.