parent
2253102e3e
commit
e9d37eeae1
20 changed files with 311 additions and 120 deletions
@ -1,75 +1,86 @@ |
|||||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||||
<html lang="en"> |
<html lang="en"> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8" /> |
||||||
|
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> |
||||||
|
<meta |
||||||
|
name="viewport" |
||||||
|
content="width=device-width, initial-scale=1" |
||||||
|
user-scalable="false" |
||||||
|
/> |
||||||
|
<meta name="theme-color" content="#000000" /> |
||||||
|
<meta name="description" content="دانوین" /> |
||||||
|
<link |
||||||
|
href="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css" |
||||||
|
rel="stylesheet" |
||||||
|
/> |
||||||
|
<meta name="mobile-web-app-capable" content="yes" /> |
||||||
|
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> |
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes" /> |
||||||
|
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> |
||||||
|
|
||||||
<head> |
<title>دانوین</title> |
||||||
<meta charset="utf-8" /> |
<!-- Google Tag Manager --> |
||||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> |
<script src="ar.js"></script> |
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="false" /> |
<script src="en.js"></script> |
||||||
<meta name="theme-color" content="#000000" /> |
<script> |
||||||
<meta name="description" content="دانوین" /> |
const lang = localStorage.getItem("language"); |
||||||
<link href="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css" rel="stylesheet" /> |
window.lang = lang; |
||||||
<meta name="mobile-web-app-capable" content="yes" /> |
window.ar = ar; |
||||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> |
window.en = en; |
||||||
<meta name="apple-mobile-web-app-capable" content="yes" /> |
function t(val) { |
||||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> |
const lang_ = window[lang]; |
||||||
|
if (!lang_) return val; |
||||||
|
if (!lang_[val]) console.error(val); |
||||||
|
return lang_[val] || "*" + val; |
||||||
|
} |
||||||
|
|
||||||
<title>دانوین</title> |
(function (w, d, s, l, i) { |
||||||
<!-- Google Tag Manager --> |
w[l] = w[l] || []; |
||||||
<script src="ar.js"></script> |
w[l].push({ |
||||||
<script src="en.js"></script> |
"gtm.start": new Date().getTime(), |
||||||
<script> |
event: "gtm.js", |
||||||
const lang = localStorage.getItem("language"); |
}); |
||||||
window.lang = lang |
var f = d.getElementsByTagName(s)[0], |
||||||
window.ar = ar; |
j = d.createElement(s), |
||||||
window.en = en; |
dl = l != "dataLayer" ? "&l=" + l : ""; |
||||||
function t(val) { |
j.async = true; |
||||||
const lang_ = window[lang]; |
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl; |
||||||
if (!lang_) return val; |
f.parentNode.insertBefore(j, f); |
||||||
if (!lang_[val]) console.error(val); |
})(window, document, "script", "dataLayer", "GTM-WVV8H9L"); |
||||||
return lang_[val] || "*" + val; |
</script> |
||||||
} |
<!-- End Google Tag Manager --> |
||||||
|
</head> |
||||||
|
|
||||||
(function (w, d, s, l, i) { |
<body> |
||||||
w[l] = w[l] || []; |
<!-- Google Tag Manager (noscript) --> |
||||||
w[l].push({ |
<noscript |
||||||
"gtm.start": new Date().getTime(), |
><iframe |
||||||
event: "gtm.js", |
src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L" |
||||||
}); |
height="0" |
||||||
var f = d.getElementsByTagName(s)[0], |
width="0" |
||||||
j = d.createElement(s), |
style="display: none; visibility: hidden" |
||||||
dl = l != "dataLayer" ? "&l=" + l : ""; |
></iframe |
||||||
j.async = true; |
></noscript> |
||||||
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl; |
<!-- End Google Tag Manager (noscript) --> |
||||||
f.parentNode.insertBefore(j, f); |
<div id="root"></div> |
||||||
})(window, document, "script", "dataLayer", "GTM-WVV8H9L"); |
<script> |
||||||
</script> |
if ("serviceWorker" in navigator) { |
||||||
<!-- End Google Tag Manager --> |
window.addEventListener("load", function () { |
||||||
</head> |
navigator.serviceWorker |
||||||
|
.register("./serviceworker.js") |
||||||
<body> |
.then((registration) => { |
||||||
<!-- Google Tag Manager (noscript) --> |
// Registration was successful |
||||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L" height="0" width="0" |
console.log( |
||||||
style="display: none; visibility: hidden"></iframe></noscript> |
"ServiceWorker registration successful with scope: ", |
||||||
<!-- End Google Tag Manager (noscript) --> |
registration.scope |
||||||
<div id="root"></div> |
); |
||||||
<script> |
}) |
||||||
if ("serviceWorker" in navigator) { |
.catch((err) => { |
||||||
window.addEventListener("load", function () { |
console.log(err); |
||||||
navigator.serviceWorker |
}); |
||||||
.register("./serviceworker.js") |
}); |
||||||
.then((registration) => { |
} |
||||||
// Registration was successful |
</script> |
||||||
console.log( |
</body> |
||||||
"ServiceWorker registration successful with scope: ", |
</html> |
||||||
registration.scope |
|
||||||
); |
|
||||||
}) |
|
||||||
.catch((err) => { |
|
||||||
console.log(err); |
|
||||||
}); |
|
||||||
}); |
|
||||||
} |
|
||||||
</script> |
|
||||||
</body> |
|
||||||
|
|
||||||
</html> |
|
||||||
|
Loading…
Reference in new issue