FFNM/test/validate.html

117 lines
4.7 KiB
HTML
Raw Permalink Normal View History

2020-07-05 10:35:36 +02:00
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Test syntax</title>
2020-07-16 01:08:13 +02:00
<script src="../dist/ffnm.min.js"></script>
2020-07-05 10:35:36 +02:00
</head>
<body>
<!-- Class with ID -->
2020-07-22 19:31:19 +02:00
<div is-click="class:add('show1', '#menu1')">add</div>
<div is-click="class:remove('show2', '#menu2')">remove</div>
<div is-click="class:toggle('show3', '#menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with ID -->
<!-- Class with class -->
2020-07-22 19:31:19 +02:00
<div is-click="class:add('show1', '.menu1')">add</div>
<div is-click="class:remove('show2', '.menu2')">remove</div>
<div is-click="class:toggle('show3', '.menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with class -->
<!-- Class with tag -->
2020-07-22 19:31:19 +02:00
<div is-click="class:add('show1', 'a')">add</div>
<div is-click="class:remove('show2', 'li')">remove</div>
<div is-click="class:toggle('show3', 'button')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with tag -->
<!-- Class with ID -->
2020-07-22 19:31:19 +02:00
<div is-scroll-up="class:add('show1', '#menu1')">add</div>
<div is-scroll-up="class:remove('show2', '#menu2')">remove</div>
<div is-scroll-up="class:toggle('show3', '#menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with ID -->
<!-- Class with class -->
2020-07-22 19:31:19 +02:00
<div is-scroll-up="class:add('show1', '.menu1')">add</div>
<div is-scroll-up="class:remove('show2', '.menu2')">remove</div>
<div is-scroll-up="class:toggle('show3', '.menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with class -->
<!-- Class with tag -->
2020-07-22 19:31:19 +02:00
<div is-scroll-up="class:add('show1', 'a')">add</div>
<div is-scroll-up="class:remove('show2', 'li')">remove</div>
<div is-scroll-up="class:toggle('show3', 'button')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with tag -->
<!-- Class with ID -->
2020-07-22 19:31:19 +02:00
<div is-scroll-down="class:add('show1', '#menu1')">add</div>
<div is-scroll-down="class:remove('show2', '#menu2')">remove</div>
<div is-scroll-down="class:toggle('show3', '#menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with ID -->
<!-- Class with class -->
2020-07-22 19:31:19 +02:00
<div is-scroll-down="class:add('show1', '.menu1')">add</div>
<div is-scroll-down="class:remove('show2', '.menu2')">remove</div>
<div is-scroll-down="class:toggle('show3', '.menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with class -->
<!-- Class with tag -->
2020-07-22 19:31:19 +02:00
<div is-scroll-down="class:add('show1', 'a')">add</div>
<div is-scroll-down="class:remove('show2', 'li')">remove</div>
<div is-scroll-down="class:toggle('show3', 'button')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with tag -->
<!-- Class with ID -->
2020-07-22 19:31:19 +02:00
<div is-hover="class:add('show1', '#menu1')">add</div>
<div is-hover="class:remove('show2', '#menu2')">remove</div>
<div is-hover="class:toggle('show3', '#menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with ID -->
<!-- Class with class -->
2020-07-22 19:31:19 +02:00
<div is-hover="class:add('show1', '.menu1')">add</div>
<div is-hover="class:remove('show2', '.menu2')">remove</div>
<div is-hover="class:toggle('show3', '.menu3')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with class -->
<!-- Class with tag -->
2020-07-22 19:31:19 +02:00
<div is-hover="class:add('show1', 'a')">add</div>
<div is-hover="class:remove('show2', 'li')">remove</div>
<div is-hover="class:toggle('show3', 'button')">toggle</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with tag -->
<!-- Class with ID -->
2020-07-22 19:31:19 +02:00
<div is-visible="class:add('show1', '#menu1')">add</div>
<div is-visible="class:remove('show2', '#menu2')">remove</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with ID -->
<!-- Class with class -->
2020-07-22 19:31:19 +02:00
<div is-visible="class:add('show1', '.menu1')">add</div>
<div is-visible="class:remove('show2', '.menu2')">remove</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with class -->
<!-- Class with tag -->
2020-07-22 19:31:19 +02:00
<div is-visible="class:add('show1', 'a')">add</div>
<div is-visible="class:remove('show2', 'li')">remove</div>
2020-07-05 10:35:36 +02:00
<!-- End Class with tag -->
2020-07-22 19:31:19 +02:00
<!-- Class with ID -->
<div is-not-visible="class:add('show1', '#menu1')">add</div>
<div is-not-visible="class:remove('show2', '#menu2')">remove</div>
<!-- End Class with ID -->
<!-- Class with class -->
<div is-not-visible="class:add('show1', '.menu1')">add</div>
<div is-not-visible="class:remove('show2', '.menu2')">remove</div>
<!-- End Class with class -->
<!-- Class with tag -->
<div is-not-visible="class:add('show1', 'a')">add</div>
<div is-not-visible="class:remove('show2', 'li')">remove</div>
<!-- End Class with tag -->
2020-07-05 10:35:36 +02:00
<!-- Errors -->
2020-07-22 19:31:19 +02:00
<div is-click="class:dd('show1', '.menu1')">add</div>
2020-07-05 10:35:36 +02:00
</body>
</html>