Skip to content

Instantly share code, notes, and snippets.

View abdelfattah-atef94's full-sized avatar

Abdelfattah atef abdelfattah-atef94

  • Dubai
View GitHub Profile
<html>
<head>
<meta charset="utf-8">
<title>List of Countries</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<h1>Countries</h1>
<ul>
<html>
<head>
<meta charset="utf-8">
<title>List of Countries</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<h1>Countries</h1>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>List of Countries</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>List of Countries</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
body{
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
.container{
padding: 30px;
}
var cacheName = 'hello-pwa';
var filesToCache = [
'/',
'/index.html',
'/css/style.css',
'/js/main.js'
];
/* Start the service worker and cache all of the app's content */
self.addEventListener('install', function(e) {
var cacheName = 'PWA_APP';
var filesToCache = [
'/',
'/index.html',
'/css/style.css',
'/js/main.js'
];
/* Start the service worker and cache all of the app's content */
self.addEventListener('install', function(e) {
window.onload = () => {
'use strict';
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('./sw.js');
}
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>List of Users</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<h1>Our Awesome Users</h1>
body{
margin: 20px;
padding: 0;
background: #eeeeee;
}
ul{
list-style-type: none;
padding: 0;