spacerjs
Version:
Manipulate the DOM easily
40 lines (34 loc) • 806 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SpacerJS Test</title>
<link rel="shortcut icon" href="#" type="image/x-icon" />
<style>
.hidden {
display: none;
}
.hoverbtn {
color: red;
}
.test {
color: black;
transition: 1s;
}
</style>
</head>
<body>
<div class="test" id="test">
<button onclick="alert('clicked')">Hello</button>
</div>
<span>Testing contains text</span>
<div class="emptydiv"></div>
<p>Some Text</p>
<p>More text</p>
<input type="text" name="text" id="myInput" />
<script src="../build/Spacer.js"></script>
<script src="test.js"></script>
</body>
</html>