-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
31 lines (24 loc) · 848 Bytes
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<div class="test-selector"></div>
<div id="testId"></div>
<script src="js/debug/dollar-bill.js?v=.1"></script>
<script src="js/debug/dollar-bill-css.js?v=.1"></script>
<script>
var testSelector = document.querySelector(".test-selector"),
testId = document.getElementById("testId"),
$ts = $(".test-selector"),
$tid = $("#testId"),
$ts2 = $(testSelector),
$tid2 = $(testId);
testSelector.innerText = $ts.length;
testId.innerText = $tid.length;
console.info($ts.hasClass("test-selector"));
</script>
</body>
</html>