45 lines
1.1 KiB
HTML
45 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Counter Example</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
|
</head>
|
|
<body>
|
|
<div class="container py-5">
|
|
<h1>Counter</h1>
|
|
|
|
<div class="row mt-4">
|
|
<div class="col col-12 col-sm-10 col-lg-6">
|
|
<div class="input-group mb-3">
|
|
<span class="input-group-text" id="basic-addon1">Count:</span>
|
|
<input type="text" id="count" class="form-control" value="0" readonly />
|
|
</div>
|
|
<button id="incrementButton" class="btn btn-primary w-100">Increment</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
'use strict';
|
|
|
|
(() => {
|
|
// === DOM & VARS =======
|
|
const DOM = {};
|
|
|
|
// === INIT =============
|
|
const init = () => {};
|
|
|
|
// === EVENTHANDLER =====
|
|
|
|
// === XHR/FETCH ========
|
|
|
|
// === FUNCTIONS ========
|
|
|
|
init();
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|