Widget Integration

Embed the battery code decoder directly on your own website with a single line of HTML — your visitors decode GB/T-standard battery codes without leaving your page. Copy the snippet below to get started. Prefer to call it from code? See the REST API documentation.

Get Your Code

Embed Code

<div id="battery-decoder-widget"></div>
<script type="module" src="https://batterydays.com/widget.js" async defer></script>

Implementation Notes

  • Add the embed code to any HTML page where you want the widget to appear.
  • The widget is responsive and will adapt to its container's width.

Widget Preview

Battery decoder widget input form
Battery decoder widget showing results

The widget will inherit styles from your website and adjust to fit its container.