?, 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)

??? ??











html5isbetterforcontrolandcustomization, whileoutubebetterforeaseandperformance

InputType = "Range"? ???? ???? ???? ? ???? ???? ?? ?? ? ???? ?? ??? ? ????. 1. ?? ??, ?? ?? ???? ??? ??? ?? ?? ????? ?? ???? ??? ?? ?????. 2. ?? ???? ???, ?? ? ? ?? ??? ?? ???? ??, ?? ? ?? ??? ?????. 3.? ?? ??? ??? ????? ?? JavaScript? ?? ????? ?? ??? ? ????. 4. ?? ?? ???? ??? ? ??? ? ???? ??? ?????? ???? ?? ????.

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

animatingsvgwithcssispossibleusingkeyframesforbasicanimationsandtransitionsforactiveeffects.1.use@keyframestodefineanimationStagesFropertiesLikescale, ???? ? ? ?? .2

HTML? ??? ? ??? ??? ? ???? ?? ? ??? ??? ???? ? ????. 1. ??? ???? ??? ??? ????? ?? ?? ? ?? ??? ?? ?? ??? ?? ? ?? ??? ??????. 2. ??? ???? ??? ??? ???? ?? ??? ???? ??? ???? ???? ???? ???? ?? ?? ??? ?????.

WEBRTC? ????? ?? ?? ??? ??? ???? ?? ?? ?? ?????. ?????? ?? API? ?? ??? ? ??? ??, ??? ? ??? ? ??? ?????. ?? ???? ??? ?????. 1. ????? ??? ? ??? ??? ?????. 2. ???? ?? ????? ?? ?? ????? ?? ????? ?????. 3. ?? ??? ?? ??? ?????? ??? ???? ???? ????. 4. ??? ??? ?? ?? ??? ???? ?? ???????. ?? ?? ???? ????? ??? ????. 1. ?? ?? (? : Googlemeet, Jitsi); 2. ?? ??? ??/?? ??; 3. ??? ?? ? ?? ??????; 4. IoT ? ??? ????. ??? ??? ??? ???, ???? ?? ??, ?? ??? ? ?? ?? ??, ??? ? ??? ?????.

????? ?? ??? ??? ??? ? ??? ????? ?? ??? ?? ? ????. 1. ????? ?? ?? ?? Caniuse ? ???? ???? Chrome Supports MP4, Webm ?? ?? ???? ??? ????? Safari? ?? MP4? ?????. 2. HTML5 ?? ?? ???? ???? ??? ??????? ????? ??? ? ??? ??????. 3. Cross-Platform Detection? ?? VideoJstechinsights ?? BrowserstackLive? ?? ??? ??? ??? ???????. ??? ? ? ??? ? ??? ?????? ??????, ?? ?? ???? ???? ???? ?? ? ? ????.

htmlcanvas?? ???? ?????? ???? ?? requestAnimationFrame ()? ???? ??? ?? ????? ???? ???? ??? ????? ???? ????. 1. requestAnimationFrame ()? ?????? ?????? ?? ??? API???. ?? ?? ?? ??? ????? ???? ??? ??? Settimeout ?? SetInterval?? ??????. 2. ????? ????? ??? ?? ??, ???? ?? ? ?? ?? ?? ?? ???? ???? ?? ???? ???? ?? ???? ???? ?? ?? ?? ??? ?????. 3. ?? ??? ???? ?? ?? ?? ??? ?? ?? ??? ? ????? ?????? ?????.
