๐Ÿ“ฆ microsoft / playwright

๐Ÿ“„ checkerboard.html ยท 43 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43<html>
<script>
function changeBackground() {
  const color = location.hash.substr(1);
  document.body.style.backgroundColor = color;
}
</script>
<style>
body {
  margin: 0;
}

.container {
  display: grid;
  background-color: rgb(0, 0, 0);
  grid-template-columns: auto auto;
  width: 100%;
  height: 100%;
}

.cell {
  border: none;
  font-size: 30px;
  text-align: center;
}

.cell.grey {
  background-color: rgb(100, 100, 100);
}

.cell.red {
  background-color: rgb(255, 0, 0);
}
</style>
<body>
<div class="container">
  <div class="cell red"></div>
  <div class="cell grey"></div>
  <div class="cell grey"></div>
  <div class="cell red"></div>
</div>
</body>
</html>