index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#009578">
<title>PWA</title>
<link rel="stylesheet" href="src/master.css">
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" href="images/logo_2.jpg">
</head>
<body>
<h3>Progressive Web App</h3>
<script src="src/index.js"></script>
<h4>Addition</h4>
<label for="num1">Enter 1st Number:</label><br>
<input type="text" id="num1" name="num1"><br>
<br>
<label for="num2">Enter 2nd Number:</label><br>
<input type="text" id="num2" name="num2"><br><br>
<button type="button" name="button" onclick="addition()">Add</button>
<div>
<h4>Result: <span id="res"> </span></h4>
</div>
<script>
function addition() {
var x = parseInt(document.getElementById("num1").value);
var y = parseInt(document.getElementById("num2").value);
var z = x + y;
document.getElementById("res").innerHTML = z;
}
</script>
</body>
</html>
manifest.json
{
"name": "PWA demo",
"short_name": "PWA",
"start_url": ".",
"background_color": "#6dcdb1",
"theme_color": "#009578",
"display": "standalone",
"icons": [
{
"src": "images/logo_2.jpg",
"sizes": "512x512",
"type": "image/jpg"
},
{
"src": "images/logo_1.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
sw.js
self.addEventListener("install", e => {
// console.log("Install decode!");
e.waitUntil(
caches.open("static").then(cache => {
return cache.addAll(["./", "./src/master.css", "./images/logo_2.jpg"]);
})
);
});
self.addEventListener("fetch", e => {
// console.log(`Intercepting fetch request for: ${e.request.url}`);
e.respondWith(
caches.match(e.request).then(response => {
return response || fetch(e.request);
})
);
});
src/index.js
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("sw.js").then(registration => {
console.log("SW Registered!");
console.log(registration);
}).catch(error => {
console.log("SW Registration failed!");
console.log(error);
})
}
src/master.css
body {
background: #eeeeee;
}
фильм языке онлайн сериалы про вампиров и оборотней
the best adult generator virtual partner 18+ create erotic videos, images, and virtual characters. flexible settings, high quality, instant results, and easy operation right in your browser. the best features for porn generation.
сервисы рассылок список сервис по созданию емейл рассылок
Contact Me here – Finally, a blog that explains things properly.
code promo melbet du jour telecharger melbet apk
inscription 1win 1win apk
купить квартиру вторичка жк светский лес сочи купить квартиру
Нужен проектор? projector24.ru/ большой выбор моделей для дома, офиса и бизнеса. Проекторы для кино, презентаций и обучения, официальная гарантия, консультации специалистов, гарантия качества и удобные условия покупки.
Learn More – I can’t believe I just learned this today. Thanks!
View Blog – Really enjoyed how you broke things down step by step.
химчистка покраска обуви химчистка обуви цена
Лучшее казино ап икс официальный играйте в слоты и live-казино без лишних сложностей. Простой вход, удобный интерфейс, стабильная платформа и широкий выбор игр для отдыха и развлечения.
Лучшее казино ап икс официальный играйте в слоты и live-казино без лишних сложностей. Простой вход, удобный интерфейс, стабильная платформа и широкий выбор игр для отдыха и развлечения.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
https://t.me/s/ed_1xbet/502
https://t.me/s/officlal_1win/257
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
clicktraffic site – Found practical insights today; sharing this article with colleagues later.
nicheninja site – Navigation felt smooth, found everything quickly without any confusing steps.
reachly site – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
leadzo site – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
leadora site – Color palette felt calming, nothing distracting, just focused, thoughtful design.
adster – Color palette felt calming, nothing distracting, just focused, thoughtful design.
reacho – Content reads clearly, helpful examples made concepts easy to grasp.
offerorbit – Found practical insights today; sharing this article with colleagues later.
promova – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
rankora – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
trendfunnel – Found practical insights today; sharing this article with colleagues later.
scaleify – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
For those seeking an exceptional online gaming experience, us.com](https://maxispin.us.com/) stands out as a premier destination. At Maxispin Casino, players can enjoy a vast array of pokies, table games, and other thrilling options, all accessible in both demo and real-money modes. The casino offers attractive bonuses, including free spins and a generous welcome offer, along with cashback promotions and engaging tournaments. To ensure a seamless experience, Maxispin provides various payment methods, efficient withdrawal processes, and reliable customer support through live chat. Security is a top priority, with robust safety measures and a strong focus on responsible gambling tools. Players can easily navigate the site, with detailed guides on account creation, verification, and payment methods. Whether you’re interested in high RTP slots, hold and win pokies, or the latest slot releases, Maxispin Casino delivers a user-friendly and secure platform. Explore their terms and conditions, read reviews, and discover why many consider Maxispin a legitimate and trustworthy choice in Australia.
The user-friendly nature of the platform ensures it is accessible to all users.
**Features of MaxiSpin.us.com**
The platform also features a built-in editor, allowing users to make immediate adjustments for the best outcomes.
**Benefits of Using MaxiSpin.us.com**
MaxiSpin.us.com’s scalability allows it to meet the needs of users across various industries and sizes.
stackhq – Color palette felt calming, nothing distracting, just focused, thoughtful design.
cloudhq – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
bytehq – Found practical insights today; sharing this article with colleagues later.
devopsly – Loved the layout today; clean, simple, and genuinely user-friendly overall.
stackops – Loved the layout today; clean, simple, and genuinely user-friendly overall.
kubeops – Color palette felt calming, nothing distracting, just focused, thoughtful design.
cloudopsly – Found practical insights today; sharing this article with colleagues later.
keywordcraft – Bookmarked this immediately, planning to revisit for updates and inspiration.
adscatalyst – Bookmarked this immediately, planning to revisit for updates and inspiration.
clickrevamp – Found practical insights today; sharing this article with colleagues later.
promoseeder – Content reads clearly, helpful examples made concepts easy to grasp.
serpstudio – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
leadspike – Loved the layout today; clean, simple, and genuinely user-friendly overall.
trafficcrafter – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
auditpilot – Found practical insights today; sharing this article with colleagues later.
leadvero – Color palette felt calming, nothing distracting, just focused, thoughtful design.
authoritylab – Loved the layout today; clean, simple, and genuinely user-friendly overall.
datadev – Appreciate the typography choices; comfortable spacing improved my reading experience.
applabs – Content reads clearly, helpful examples made concepts easy to grasp.
dataops – Bookmarked this immediately, planning to revisit for updates and inspiration.
trycloudy – Appreciate the typography choices; comfortable spacing improved my reading experience.
gobyte – Navigation felt smooth, found everything quickly without any confusing steps.
getbyte – Loved the layout today; clean, simple, and genuinely user-friendly overall.
getkube – Bookmarked this immediately, planning to revisit for updates and inspiration.
trystack – Bookmarked this immediately, planning to revisit for updates and inspiration.
usekube – Bookmarked this immediately, planning to revisit for updates and inspiration.
usebyte – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
getstackr – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
usestackr – Color palette felt calming, nothing distracting, just focused, thoughtful design.
cloudster – Navigation felt smooth, found everything quickly without any confusing steps.
deployly – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
byteworks – Content reads clearly, helpful examples made concepts easy to grasp.
stackable – Navigation felt smooth, found everything quickly without any confusing steps.
datavio – Found practical insights today; sharing this article with colleagues later.
devnex – Content reads clearly, helpful examples made concepts easy to grasp.
dataworks – Navigation felt smooth, found everything quickly without any confusing steps.
cryptora – Navigation felt smooth, found everything quickly without any confusing steps.
kubexa – Navigation felt smooth, found everything quickly without any confusing steps.
cloudiva – Bookmarked this immediately, planning to revisit for updates and inspiration.
stackora – Color palette felt calming, nothing distracting, just focused, thoughtful design.
netlance – Appreciate the typography choices; comfortable spacing improved my reading experience.
devonic – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
apponic – Appreciate the typography choices; comfortable spacing improved my reading experience.
securia – Color palette felt calming, nothing distracting, just focused, thoughtful design.
codestackr – Loved the layout today; clean, simple, and genuinely user-friendly overall.
Discover the thrill of real-money live casino action at best live baccarat strategies for Maxispin, where you can enjoy live dealers, top software providers, and exclusive promotions.
Tools and resources are provided to help users manage their activity and preferences.
devpush – Navigation felt smooth, found everything quickly without any confusing steps.
codepushr – Content reads clearly, helpful examples made concepts easy to grasp.
gitpushr – Content reads clearly, helpful examples made concepts easy to grasp.
mergekit – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
debugkit – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
commitkit – Appreciate the typography choices; comfortable spacing improved my reading experience.
testkit – Color palette felt calming, nothing distracting, just focused, thoughtful design.
promptkit – Content reads clearly, helpful examples made concepts easy to grasp.
logkit – Found practical insights today; sharing this article with colleagues later.
modelops – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
databrain – Bookmarked this immediately, planning to revisit for updates and inspiration.
deploykit – Found practical insights today; sharing this article with colleagues later.
mlforge – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
smartpipe – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
taskpipe – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
patchkit – Content reads clearly, helpful examples made concepts easy to grasp.
guardstack – Color palette felt calming, nothing distracting, just focused, thoughtful design.
securekit – Found practical insights today; sharing this article with colleagues later.
authkit – Navigation felt smooth, found everything quickly without any confusing steps.
pipelinesy – Bookmarked this immediately, planning to revisit for updates and inspiration.
zerotrusty – Color palette felt calming, nothing distracting, just focused, thoughtful design.
keyvaulty – Color palette felt calming, nothing distracting, just focused, thoughtful design.
threatlens – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
shieldops – Color palette felt calming, nothing distracting, just focused, thoughtful design.
secstackr – Color palette felt calming, nothing distracting, just focused, thoughtful design.
auditkit – Content reads clearly, helpful examples made concepts easy to grasp.
smartbyte – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
techsphere – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
cyberstack – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
nanotechhub – Color palette felt calming, nothing distracting, just focused, thoughtful design.
keyvaulty – Found practical insights today; sharing this article with colleagues later.
clicktechy – Found practical insights today; sharing this article with colleagues later.
bytetap – Found practical insights today; sharing this article with colleagues later.
quickbyte – Loved the layout today; clean, simple, and genuinely user-friendly overall.
techvertex – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
pixelengine – Appreciate the typography choices; comfortable spacing improved my reading experience.
futurestack – Appreciate the typography choices; comfortable spacing improved my reading experience.
logicforge – Color palette felt calming, nothing distracting, just focused, thoughtful design.
bytelab – Appreciate the typography choices; comfortable spacing improved my reading experience.
zyrotech – Found practical insights today; sharing this article with colleagues later.
omegabyte – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
techdock – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
bitzone – Loved the layout today; clean, simple, and genuinely user-friendly overall.
codehive – Content reads clearly, helpful examples made concepts easy to grasp.
tronbyte – Loved the layout today; clean, simple, and genuinely user-friendly overall.
cyberpulse – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
codenova – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
bytenova – Content reads clearly, helpful examples made concepts easy to grasp.
zybertech – Color palette felt calming, nothing distracting, just focused, thoughtful design.
vortexbyte – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
zenixtech – Navigation felt smooth, found everything quickly without any confusing steps.
technexus – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
veloxtech – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Sprawdz poradnik sprzet fpv dla poczatkujacych kamera, jesli szukasz najlepszych wskazowek przy wyborze kamery FPV na start.
Stabilne i amortyzowane mocowanie ogranicza ryzyko uszkodzen podczas intensywnego latania.
techcatalyst – Color palette felt calming, nothing distracting, just focused, thoughtful design.
devbyte – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
dataforge – Found practical insights today; sharing this article with colleagues later.
logicbyte – Content reads clearly, helpful examples made concepts easy to grasp.
bytecore – Found practical insights today; sharing this article with colleagues later.
bitcore – Loved the layout today; clean, simple, and genuinely user-friendly overall.
seovault – Loved the layout today; clean, simple, and genuinely user-friendly overall.
seoshift – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
seonexus – Content reads clearly, helpful examples made concepts easy to grasp.
clickrly – Found practical insights today; sharing this article with colleagues later.
seoradar – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
reachrocket – Appreciate the typography choices; comfortable spacing improved my reading experience.
scalewave – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.