## Modal
The modal is pure CSS, which makes the HTML quite ugly actually. However it does work. To try it, press the button:
```html
Great offer
We have a special offer for you. I am sure you will love it! However this does look spammy...
```
### JavaScript
As always, there is **no javascript**. However, a little bit of javascript could enhance the experience allowing to close the modal by pressing `ESC`.
```js
document.onkeydown = function(e){
if (e.keyCode == 27) {
var mods = document.querySelectorAll('.modal > [type=checkbox]');
[].forEach.call(mods, function(mod){ mod.checked = false; });
}
}
```
##### Toggling the modal with javascript
If you want to be able to toggle the modal with javascript, you can use the following:
```js
document.getElementById('modal_1').checked = true; // open modal
document.getElementById('modal_1').checked = false; // close modal
```