-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
53 lines (44 loc) · 2.26 KB
/
index.js
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
44
45
46
47
48
49
50
51
52
53
/**************************************************************************
* Copyright (C) 2024-2025 DEVPUNKS LLC.
*
* This file is part of devPunks.studio
*
* devPunks.studio can not be copied and/or distributed
* without the express permission of DEVPUNKS LLC.
**************************************************************************/
/*
- Accessibility
- [role=button] - https://w3.org/WAI/ARIA/apg/example-index/button/button.html
- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#required_javascript_features
- [aria-pressed=true] - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#toggle_button_example
- Page Visibility
- https://web.dev/pagevisibility-intro/
- https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
- https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event
- Form Validation
- https://butterpep.com/form-validation-example.html
- https://developer.mozilla.org/en-US/docs/Web/API/FormData
- https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation
- https://quirksmode.org/blog/archives/2017/12/native_form_val.html
- https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation
- https://quirksmode.org/blog/archives/2017/12/native_form_val.html
- https://quirksmode.org/blog/archives/2017/12/native_form_val_1.html
- https://quirksmode.org/blog/archives/2017/12/native_form_val_2.html
*/
console.log( document.forms )
//, worker = 'Worker' in window && new Worker ('worker.js')
// Passive event listener for touch event
// https://developers.google.com/web/tools/lighthouse/audits/passive-event-listeners?utm_source=lighthouse&utm_medium=devtools
// https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
document.addEventListener
('touchstart', function () {}, { passive: true })
//worker.onmessage = function (e) {
// result.textContent = e.data
// console.log ('Message received from worker')
//}
//worker.postMessage ( [first.value, second.value] )
console.log `loading index.js`
// FULLSCREEN
// https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API
// https://developers.google.com/web/fundamentals/native-hardware/fullscreen
window.scrollTo ( 0,1 )