?, HTML5 ? ???? ?? ? API? ?? ?? ??? ??? ? ??? JavaScript, ??? ??? ? ??? ??? ??? ?????. ?? ??? ??? ????. 1. ???? ?? ??? ???? ??? ??? ? PushManager? ??? ??????. 2. ?? ???? ???? ?? ??? ???? ??????. 3. Notification.RequestPermission ()? ?? ??? ?? ??; 4. ? ?? ?????? ???? ?? ????? VAPID ?? ??????. 5. ??? ?? ? PushManager.Subscribe ???? ???? ?? ???? ???? ?? ??? ???? ??????. 6. ??? ???? ?? ???? ?? ??? ???? ??? ?????. 7. ???? ? ?? ????? ? VAPID ?? ???? ????? ?? ???? ????.
HTML5? ?? ??? HTML??? ?? ??? ??? ?? ????. JavaScript, ??? ??? ? ??? ??? ??? ?????. ??? ?, ?? ? API? ???? ? ????? ?? ??? ??? ? ? ????.

???? ???? ??? ??? ????.
1. ???? ??? ??????
??? ????? ?? ???? ????? ?? ??? ????? ??????. Chrome, Firefox, Edge ? Safari? ?? ???? ?? ??????? ????? ?? ??? ???? (?? iOS)? ??? ?????? ????.

??? ?? ??? ??? ? ????.
if (navigator && 'fushmanager'?? 'serviceworker') { // ???????! } ? ?? { Console.log ( '? ?????? ???? ?? ?? ??'); }
?????? :

- Safari? APNS (Apple Push Unking Service)? ?? ?? ?? ?? ??? ??? ????.
- iOS Safari? ??? ? ?? ?? ?? ?? ? ????? (? ??? ??)
2. ??? ???? ??????
?? ??? ???? ??? ???? ?? ???? ??? ??? ????? ?? ???? ? ??? ????? ?????.
sw.js
?? ??? ??? ?? JavaScript ??? ??????.
navigator.serviceworker.register ( '/sw.js') . ?? ?? (?? (??) { Console.log ( 'Scope? ?? ? ??? ??? :', registration.scope); }) .catch (function (err) { Console.log ( '??? ??? ?? ?? :', err); });
sw.js
???? ??? ?? ????. ??? ?? ???? ???? ? ??? ????.
3. ???? ??? ??????
??? ??? ?? ????? ??? ???????. ??? Notification.requestPermission()
???? ???? ?????.
notification.requestPermission (). ?? ?? (?? (??) { if (result === 'willed') { Console.log ( '?? ??!'); // ?? ?? ??? ?????? } ? ?? { Console.log ( '?? ?? ?? ??.'); } });
?? ??? :?? ?? ?????? ????. ???? ?? ?? ?? ?? ??? ???? ?????????. ??? ??? ???? ??? ? ????.
4. vapid ?? ?????
?? ??? ????? VAPID (??? ?? ???? ?? ??)? ??? ??? ?? ?????. ??? ???? ?? ????? ???? ? ?????.
Node.js?? Web-Push ? ?? ?????? ???? ??? ?? ?? ? ? ????.
NPM ? ?? ??
?? ?? ?? :
const webpush = require ( 'web-push'); const Vacuumkeys = webpush.generatevapidkeys (); Console.log (Vapidkeys);
?? ? ?? ? ?? - ?? ? ? ?? ?? ???? ??? ?? ?? ?????.
5. ???? ??????
??? ???? ???? ??? ???? ????? ??? ?? ? ? ????.
navigator.serviceworker.ready.then (?? (??) { return registration.pushmanager.subscribe ({ uservisibleonly : ??, ApplicationServerkey : urlbase64touint8array (publicvapidkey) }); });
Base64 ??? ? ?? ?? ?????? ?? ??? ?????.
?? urlbase64touint8array (base64string) { const padding = '='. ?? ((4 -base64string.length 4) % 4); const base64 = (Base64string Padding) .replace (/-/g, '') .replace (/_/g, '/'); const rawdata = window.atob (base64); const outputarray = new uint8array (rawdata.length); for (i = 0; i <rawdata.length; i) { outputArray [i] = rawData.charcodeat (i); } ?? outputArray; }
?? ? ?? ???? ?? ???? ??? ?? ???? ?? ? ????.
6. ??? ???? ?? ???? ??????
?? ???? ??????? ??? ???? ???? ?? ???? ???????.
??? sw.js
? ??????.
self.addeventListener ( 'push', function (event) { const data = event.data.json (); self.registration.hownotification (data.title, { ?? : data.body, ??? : data.icon || '/icon.png' }); });
??? ?? ???? ?? ?? ? ????? ???? ??? ?????.
7. ????? ?? ???? ?????
?????, ??? ?????? ?? VAPID ?? ???? ?? ?? ??? ???? ?? ?? ??? ?? ???? ??? ??? ??????.
web-push
????? ?? :
const webpush = require ( 'web-push'); webpush.setVapidDetails ( 'mailto : you@example.com', publicvapidkey, PrivateVapidkey ); webpush.sendNotification (??, json.stringify ({{ ?? : '?????!', ?? : '??? ?? ?????.', ??? : '/icon.png' });
??? subscription
pushManager.subscribe
?? ?? ?? ? ?????.
??? ????? ?????. ???? ??? ???? ?? ??? ???? HTML5?? ?? ??? ??? ? ????.
???? ????. ? ?? ???? ??? ?? ???? ?? ?????.
? ??? HTML5?? ?? ??? ???? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

? ???? ??? ? ?? ??? ???? ??? ?? ??????? ????? ???? HTML5? Draganddrop API? ???? ????. ?? ??? ??? ????. 1. ???? ?????? ?? draggable = "true"? ?????. 2. ??? ???? ??, ???, ?? ? ??? ?? ???? ????. 3. DragStart?? ???? ???? Dragover?? ?? ??? ???? ??? ?????. ??, AppendChild? ?? ?? ??? ?? ? ? ??? e.datatransfer.files? ?? ?? ???? ?? ? ? ????. ?? : ??? ???????

ARIA ? HTML5 ??? ??? ??? ??? HTML5 ??? ??? ??? ??? ??? ARIA? ???? ???? ?? ?? ?? ??? ???? ? ?? ?????. ?? ??, ??? ????? ??? ??? ??, ?? ????? ?? ?? (? : ?? ??) ? ?? ????? ???? ????????? Aria? ??? ??? ?????. Nav, Main, Downet? ?? HTML5 ??? ????? Ariarole? ???? ?? ??? ????? ??? ???? ?? ? ??? ????. ARIA? ??????? ???? ??? ?????. 1. ?? ??/?? ??? ???? ARIA-expeded? ???? ?? ?? ?? ? ?? ??? ?????. 2. DIV ??? ???? ?? ???? ???? ?? ??? ??? ??? ?? ??

HTML5 ?? ????? ?? ??? ?? XSS ??, ????? ?? ? ?? ????? ??? ???? ??? ?? ?????? ???????. 1. XSS ?? : ??? ?? ??, TextContent, CSP ?? ??, ?? ??, Eval ()? ??? JSON? ?? ??; 2. ????? ?? : CSRFtoken, SamesIteCookie ??, ?? ?? ?? ? ??? ??????? ??? ??? ??????. 3. ?? ?????? ?? ?? : ?? ?? ???, ???? ?? ??, ?? ??? ??, SRI ?? ???, ?? ?? ???? ?? ??? ?????? ??????.

HTML5, CSS ? JavaScript? ??? ??, ???? ?? ?? ? ???? ??? ????? ????????. 1. SEO ? ????? ???? ????? ??? ??? ? ?? ??? ??? ?? HTML5 ??? ??? ??????. 2. CSS? ???? ?? ??? ???? ???? ???? ??? ???? ????? ??? ?????. 3. JavaScript? ??? ???? ?? ???? DEFER ?? ASYNC? ???? ?? ???? ??? ?? ??? ????????. 4. ??? ??? ??? ???? ??? ??? ?? ? ??? ?? ?? ??? ?? ??? ???? ?? ?? ?? ??? ?? ?? ???? ??????. ??? ??? ??? ??? ????? ????? ?? ?? ? ? ????.

HTML5 ???? ???? ???? ?? ???? ???? ?? ???, ?? ?? ??, ?? ?? MIME ?? ?? ? ???? ?? ??? ?????. 1. ???? MP4 (H.264) ??? ???? ? ?? ??? ????? ?? ????? ???? ?? ?? ?? ??? ???????. 2. ?? ??? ??? ?? ?? ? javaScript? ?? ??? ??? ????? javaScript? ????????. 3. ?? ??? ???? ???? ??? ??? MIME ???? ???? ??? ??????. ?? ??? ???? ? ?? ???? ?????. 4.

HTML5 ??? ??? ???? ? ?? ???, ??? ? SEO ??? ?? ? ? ????. 1. 2. ? ???? ??? ??? ????. ?? ???? ??, ? ????? ??, ?? ???, ????? ?? ??, ?? ?? ???, ?? ??? ? ? ?? ?? ??? ?????. 3. ??? ??? ??? ? ???, ??? ??, ???? ?? ? ??? ?????. ??? ?? ???? ????? ? ??? ????? ????? ??? ? ? ????.

html5canvas? ? ??? ? ?????? ???? JavaScript? ???? ???? ???? ?????. ① ?? HTML? ??? ??? ???? 2D ????? ????. ② FillRect, Arc ? ?? ??? ???? ???? ?????. ③ ???? ???, ?? ??? ? ??? ???? ?????? ?????. complem ??? ???? ??? ??, ??? ?? ? ?? ???? ?? ??? ?????.

HTML5 ??? ???? ? ???? ????? ?? ?? ???, ??? ?? ??? ? ?? ? ???? ?????. 1. ?? ??? : ??? ???? SRC ? ??? ??? ???? ?? ??? ?????. 2. ?? ?? ?? : MP4, Webm, OGG ?? ?? ??? ??? ??? ?? ???? ???? ???? ??????. 3. ??? ?? ? ?? : ?? ??? ??? CSS ? JavaScript? ?? ??? ?? ? ??? ??? ?????. 4. ?? ?????? ?????? : Muted ? AutoPlay ?? ?? ??? ???? ??? ?????? ??? ???? ?? ?? ?? ???? ?? ? ????? ???? ??? ???? ???? ??????.
