Skip to content

Commit b022284

Browse files
fix(gamepad-tester): address sonar findings
1 parent 8b4e5b4 commit b022284

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎gamepad-tester.html‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
</div>
2727
<h2 class="display-6 fw-bolder mb-2">Gamepad Tester</h2>
2828
<p class="lead text-muted mb-4">Check buttons, sticks, triggers, axes, and vibration in real time.</p>
29-
<div id="gamepad-status" class="alert alert-warning gamepad-status mb-2" role="status" aria-live="polite">
29+
<output id="gamepad-status" class="alert alert-warning gamepad-status mb-2" aria-live="polite">
3030
<span class="gamepad-status-indicator" aria-hidden="true"></span>
3131
<span id="gamepad-status-message">No gamepad detected. Connect a gamepad and press any button.</span>
32-
</div>
32+
</output>
3333
<p class="gamepad-privacy-note text-muted mb-0">
3434
<i class="fas fa-lock me-1" aria-hidden="true"></i>
3535
Input data stays in your browser.
@@ -193,16 +193,16 @@ <h3 class="h5 mb-0" id="vibration-heading">Vibration</h3>
193193
<span class="gamepad-details-action text-muted">Show details <i class="fas fa-chevron-down" aria-hidden="true"></i></span>
194194
</summary>
195195
<div class="gamepad-panel-body">
196-
<dl class="gamepad-details-grid mb-0">
197-
<div class="gamepad-detail gamepad-detail-wide"><dt>Name</dt><dd id="gamepad-name">-</dd></div>
198-
<div class="gamepad-detail gamepad-detail-wide"><dt>Device ID</dt><dd id="gamepad-id">-</dd></div>
199-
<div class="gamepad-detail"><dt>Type</dt><dd id="gamepad-type">-</dd></div>
200-
<div class="gamepad-detail"><dt>Mapping</dt><dd id="gamepad-mapping">-</dd></div>
201-
<div class="gamepad-detail"><dt>Index</dt><dd id="gamepad-index">-</dd></div>
202-
<div class="gamepad-detail"><dt>Connected</dt><dd id="gamepad-connected">-</dd></div>
203-
<div class="gamepad-detail"><dt>Buttons</dt><dd id="gamepad-buttons-count">-</dd></div>
204-
<div class="gamepad-detail"><dt>Axes</dt><dd id="gamepad-axes-count">-</dd></div>
205-
</dl>
196+
<div class="gamepad-details-grid mb-0">
197+
<dl class="gamepad-detail gamepad-detail-wide"><dt>Name</dt><dd id="gamepad-name">-</dd></dl>
198+
<dl class="gamepad-detail gamepad-detail-wide"><dt>Device ID</dt><dd id="gamepad-id">-</dd></dl>
199+
<dl class="gamepad-detail"><dt>Type</dt><dd id="gamepad-type">-</dd></dl>
200+
<dl class="gamepad-detail"><dt>Mapping</dt><dd id="gamepad-mapping">-</dd></dl>
201+
<dl class="gamepad-detail"><dt>Index</dt><dd id="gamepad-index">-</dd></dl>
202+
<dl class="gamepad-detail"><dt>Connected</dt><dd id="gamepad-connected">-</dd></dl>
203+
<dl class="gamepad-detail"><dt>Buttons</dt><dd id="gamepad-buttons-count">-</dd></dl>
204+
<dl class="gamepad-detail"><dt>Axes</dt><dd id="gamepad-axes-count">-</dd></dl>
205+
</div>
206206
</div>
207207
</details>
208208
</div>

0 commit comments

Comments
 (0)