55 Commits

Author SHA1 Message Date
DarkShyMW
8fbcbf628e modified: css/style.css 2023-03-13 03:09:37 +03:00
DarkShyMW
4a467e3ced modified: css/style.css 2023-03-13 03:07:39 +03:00
DarkShyMW
c386dfb481 modified: css/style.css
modified:   index.html
2023-03-13 03:07:05 +03:00
DarkShyMW
b1946441c3 modified: index.html 2023-03-13 03:05:50 +03:00
DarkShyMW
502cc74fa5 modified: index.html 2023-03-13 03:04:40 +03:00
DarkShyMW
e1b133b74d modified: index.html 2023-03-13 03:03:37 +03:00
DarkShyMW
bd37751df1 modified: index.html 2023-03-13 03:03:00 +03:00
DarkShyMW
ceea9bc889 modified: index.html 2023-03-13 03:01:55 +03:00
DarkShyMW
91ad144bb5 modified: index.html 2023-03-13 03:00:31 +03:00
DarkShyMW
4beda5872d modified: index.html 2023-03-13 02:58:02 +03:00
DarkShyMW
adf484f165 modified: index.html 2023-03-13 02:56:53 +03:00
DarkShyMW
b35f5befe8 modified: index.html 2023-03-13 02:56:03 +03:00
DarkShyMW
193e5ede30 modified: index.html 2023-03-13 02:55:43 +03:00
DarkShyMW
00122e9bc1 modified: index.html 2023-03-13 02:52:27 +03:00
DarkShyMW
fc5c37373c modified: index.html 2023-03-13 02:51:46 +03:00
DarkShyMW
b7e6d32dab modified: index.html 2023-03-13 02:50:16 +03:00
DarkShyMW
1d2edaa85d modified: index.html 2023-03-13 02:49:42 +03:00
DarkShyMW
b925491449 modified: index.html 2023-03-13 02:49:04 +03:00
DarkShyMW
9ee3e19814 modified: index.html 2023-03-13 02:47:56 +03:00
DarkShyMW
b8675f53aa Changes to be committed:
modified:   index.html
	new file:   js/fuckbad.js
2023-03-13 02:46:59 +03:00
DarkShyMW
99d2abb69e Changes to be committed:
modified:   css/style.css
2023-03-13 01:43:46 +03:00
DarkShyMW
0b76394671 Changes to be committed:
new file:   about.html
 Changes not staged for commit:
	modified:   css/style.css
2023-03-13 01:43:33 +03:00
DarkShyMW
c919666a09 <!-- AD BLOCK NEED FOR WE CAN WORKS --> 2023-03-13 01:26:09 +03:00
DarkShyMW
07c6b21631 modified: js/pwabuilder-sw.js 2023-03-13 01:21:32 +03:00
DarkShyMW
bb64533a45 OPENGRAPH 2023-03-12 21:21:30 +03:00
DarkShyMW
1003c561a0 modified: index.html 2023-03-12 21:17:04 +03:00
DarkShyMW
3390a52761 modified: index.html 2023-03-12 21:16:29 +03:00
DarkShyMW
0ed7c1ec07 modified: index.html 2023-03-12 21:13:50 +03:00
DarkShyMW
bef4597dbf target="_blank" 2023-03-12 21:12:28 +03:00
DarkShyMW
d4d5e76b3d modified: sw.js 2023-03-12 21:11:26 +03:00
DarkShyMW
1738ec2c79 modified: sw.js 2023-03-12 21:10:29 +03:00
DarkShyMW
ebda41fd49 modified: js/pwabuilder-sw.js 2023-03-12 21:06:49 +03:00
DarkShyMW
bd91600112 modified: index.html 2023-03-12 21:04:34 +03:00
DarkShyMW
5489a276b1 oncontextmenu='alert("Вы не можете сохранить это изображение.");return false;' 2023-03-12 21:02:50 +03:00
DarkShyMW
1f15a51c95 modified: css/style.css
modified:   index.html
2023-03-12 21:01:41 +03:00
DarkShyMW
ac05026991 modified: css/style.css
modified:   index.html
2023-03-12 20:59:12 +03:00
DarkShyMW
b5b9eb7751 Remove the user-scalable="no" parameter from the content attribute of the <meta name="viewport"> element in order to allow zooming and ensure the maximum-scale parameter is not less than 2. 2023-03-12 20:55:45 +03:00
DarkShyMW
c1e59b5d56 modified: index.html 2023-03-12 20:54:17 +03:00
DarkShyMW
de080ca62e modified: js/pwabuilder-sw.js
$('img').bind('contextmenu', function(e) {
    return false;
});
2023-03-12 20:53:20 +03:00
DarkShyMW
55c9a31627 modified: index.html 2023-03-12 20:51:56 +03:00
DarkShyMW
583b7d2e10 modified: index.html 2023-03-12 20:49:38 +03:00
DarkShyMW
0a0789e38b modified: index.html 2023-03-12 20:48:31 +03:00
DarkShyMW
09cd143736 modified: css/style.css
modified:   index.html
2023-03-12 20:48:23 +03:00
DarkShyMW
df1ea81e5c modified: 50% 2023-03-12 20:44:48 +03:00
DarkShyMW
749074f6be modified: index.html 2023-03-12 20:44:19 +03:00
DarkShyMW
1f81d8ec7f modified: index.html 2023-03-12 20:43:39 +03:00
DarkShyMW
5d4a302996 modified: css/style.css 2023-03-12 20:42:08 +03:00
DarkShyMW
1b64d55858 modified: 25% 2023-03-12 20:40:45 +03:00
DarkShyMW
cdebe506a3 modified: index.html 2023-03-12 20:40:07 +03:00
DarkShyMW
4e81ba2fa2 Changes to be committed:
modified:   index.html
2023-03-12 20:38:30 +03:00
DarkShyMW
183ca133c2 modified: css/style.css
modified:   index.html
2023-03-12 20:37:54 +03:00
DarkShyMW
623865805b modified: css/style.css
new file:   img/log.webp
	modified:   index.html
	modified:   sitemap.xml
2023-03-12 20:36:26 +03:00
DarkShyMW
ec8eeb714b modified: index.html
modified:   offline.html
2023-03-12 20:28:36 +03:00
DarkShyMW
533ae42132 Update 2023-03-12 20:27:17 +03:00
DarkShy
fef8946647 Add yandex.metrika code
Some fixes
2023-01-15 03:56:51 +03:00
9 changed files with 347 additions and 25 deletions

0
about.html Normal file
View File

View File

@@ -1,7 +1,8 @@
body { body {
background-color: rgb(87, 86, 86); background-color: rgb(100, 100, 100);
color: chartreuse; color: chartreuse;
font-family: monospace; font-family: monospace;
} }
.header { .header {
@@ -57,4 +58,12 @@ a.github {
outline: none; outline: none;
text-decoration: none; text-decoration: none;
padding: 2px 1px 0; padding: 2px 1px 0;
color:#0ed1f8;
}
.license_S {
outline: none;
text-decoration: none;
padding: 2px 1px 0;
color:chartreuse;
} }

BIN
img/log.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 KiB

View File

@@ -2,10 +2,16 @@
<html lang="RU"> <html lang="RU">
<head> <head>
<title>DarkShy - main page</title> <title>DarkShy - main page</title>
<meta name="description" content="Страница DarkShy."> <meta charset="UTF-8" />
<meta name="keywords" content="DarkShy, pony, bronyfurry, mlp"> <meta name="title" content="DarkShy - main page">
<meta charset="utf-8"> <meta name="description" content="Серая пегаска, среднего роста, примерно 60 см в холке. Имеет серый окрас и черно-красную гриву. Любит заниматься серверным оборудованием.">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> <meta name="keywords" content="DarkShy, pony, bronyfurry, mlp, cisco, пони, серая пони, черно-красная грива">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="Russian">
<meta name="revisit-after" content="5 days">
<meta name="author" content="Dark Shy">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="black"> <meta name="theme-color" content="black">
@@ -15,32 +21,48 @@
<link rel="apple-touch-icon" href="/img/favicon.ico"> <link rel="apple-touch-icon" href="/img/favicon.ico">
<link rel="stylesheet" href="/css/bootstrap.min.css"> <link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/style.css">
<!-- Open Graph Generated: a.pr-cy.ru -->
<meta property="og:type" content="website">
<meta property="og:title" content="DarkShy - сайт серой пегаски">
<meta property="og:description" content="Серая пегаска, среднего роста, примерно 60 см в холке. Имеет серый окрас и черно-красную гриву. Любит заниматься серверным оборудованием.">
<meta property="og:url" content="https://darkshy.bronyfurry.com">
<meta property="og:image" content="https://darkshy.bronyfurry.com/img/log.webp">
<meta property="og:site_name" content="DarkShy">
<meta property="og:locale" content="ru_RU">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:site" content="@yaoinayakoro4ka">
<meta property="twitter:creator" content="@yaoinayakoro4ka">
<meta property="twitter:image:src" content="https://darkshy.bronyfurry.com/img/log.webp">
</head> </head>
<body> <body>
<h1 class="header">darkshy@bronyfurry:~ <span class="dark">Dark<span class="shy">Shy</span></h1> <h1 class="header">darkshy@bronyfurry:~ <span class="dark">Dark<span class="shy">Shy</span></h1>
<h2 class="header outro">Просто серая пегаска..<span id="blink">|</span></h2> <h2 class="header outro">Просто серая пегаска..<span id="blink">|</span></h2>
<script src="/js/bootstrap.bundle.min.js"></script>
<h2 class="header" style="padding-top: 25px; padding-left: 25px; padding-right: 25px;">Обо мне</h2> <h2 class="header" style="padding-top: 25px; padding-left: 25px; padding-right: 25px;">Обо мне</h2>
<div style="padding-top: 15px; padding-bottom: 15px; padding-left: 10%; padding-right: 10%;"> <div style="padding-top: 15px; padding-bottom: 15px; padding-left: 10%; padding-right: 10%;">
<p class="card" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse;">Меня зовут DarkShy. В свободное время я занимаюсь изучением программирования на языке NodeJS, а так же занимаюсь сайтами. По профессии я - системный администратор. На картинке изображена моя ОС-ка. </p> <p class="card" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse;">Меня зовут DarkShy. В свободное время я занимаюсь изучением программирования на языке NodeJS, а так же занимаюсь сайтами. По профессии я - системный администратор. На картинке изображена моя ОС-ка. </p>
</div> </div>
<figure class="img-fluid" style="padding-top: 15px; padding-bottom: 15px; padding-left: 30%; padding-right: 30%; --bs-card-border-color: chartreuse;">
<img src="/img/log.webp" width="100%" height="50%" alt="DarkShy" loading="lazy">
</figure>
<h2 class="header" style="padding-top: 25px; padding-left: 25px; padding-right: 25px;">Мои проекты</h2> <h2 class="header" style="padding-top: 25px; padding-left: 25px; padding-right: 25px;">Мои проекты</h2>
<div style="padding-top: 15px; padding-bottom: 15px; padding-left: 10%; padding-right: 10%;"> <div style="padding-top: 15px; padding-bottom: 15px; padding-left: 10%; padding-right: 10%;">
<p class="card" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse;"> <p class="card" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse;">
<a href="https://bronyfurry.com/?from=darkshy" rel="follow" class="btn btn-success" role="button" data-bs-toggle="button" style="margin-top: 5px;">BronyFurry fediverse</a> <a href="https://bronyfurry.com/?from=darkshy" target="_blank" rel="follow" class="btn btn-success" role="button" data-bs-toggle="button" style="margin-top: 5px;">BronyFurry fediverse</a>
<a href="https://github.com/darkshymw" class="btn btn-dark" role="button" data-bs-toggle="button" style="margin-top: 5px;">Мой Github</a> <a href="https://github.com/darkshymw" target="_blank" class="btn btn-dark" role="button" data-bs-toggle="button" style="margin-top: 5px;">Мой Github</a>
<a href="https://vk.com/gigisarts" class="btn btn-warning" role="button" data-bs-toggle="button" style="margin-top: 5px;">Паблик с рисунками</a> <a href="https://vk.com/gigisarts" target="_blank" class="btn btn-warning" role="button" data-bs-toggle="button" style="margin-top: 5px;">Паблик с рисунками</a>
<a href="/offline.html" rel="follow" class="btn btn-info" role="button" data-bs-toggle="button" style="margin-top: 5px;">Страница offline</a> <a href="/offline.html" target="_blank" rel="follow" class="btn btn-info" role="button" data-bs-toggle="button" style="margin-top: 5px;">Страница offline</a>
</p> </p>
</div> </div>
<footer class="text-center" style="padding-top: 35px; padding-bottom: 15px; padding-left: 10%; padding-right: 10%;"> <footer class="text-center" style="padding-top: 35px; padding-bottom: 15px; padding-left: 10%; padding-right: 10%;">
<p class="card" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse;">Все права защищены и принадлежат поням.</p> <p class="card" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse;">Все права защищены и принадлежат поням.</p>
<div class="card text-center" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse; "><a href="https://github.com/DarkShyMW/darkshy.bronyfurry.com" class="github" rel="follow">Source code at GitHub</a></div> <div class="card text-center" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse; "><a href="https://github.com/DarkShyMW/darkshy.bronyfurry.com" class="github" rel="follow">Source code at GitHub</a></div>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Лицензия Creative Commons" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><p class="card text-center" style="background-color: inherit; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; --bs-card-border-color: chartreuse; ">Это произведение доступно по <a rel="license" class="license_S" href="http://creativecommons.org/licenses/by-sa/4.0/">лицензии Creative Commons «Attribution-ShareAlike» («Атрибуция-СохранениеУсловий») 4.0 Всемирная.</p></a>
</footer> </footer>
</body> </body>
<script> <script async>
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
// Весь код регистрации у нас асинхронный. // Весь код регистрации у нас асинхронный.
navigator.serviceWorker.register('./sw.js') navigator.serviceWorker.register('./sw.js')
@@ -51,7 +73,7 @@
} }
</script> </script>
<!-- Yandex.Metrika counter --> <!-- Yandex.Metrika counter -->
<script type="text/javascript" > <script type="text/javascript" async >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date(); m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
@@ -67,4 +89,18 @@
</script> </script>
<noscript><div><img src="https://mc.yandex.ru/watch/80486719" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <noscript><div><img src="https://mc.yandex.ru/watch/80486719" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter --> <!-- /Yandex.Metrika counter -->
<!-- AD BLOCK NEED FOR WE CAN WORKS -->
<!-- Yandex.RTB -->
<script>window.yaContextCb=window.yaContextCb||[]</script>
<script src="https://yandex.ru/ads/system/context.js" async></script>
<!-- Yandex.RTB R-A-1591105-2 -->
<script>window.yaContextCb.push(()=>{
Ya.Context.AdvManager.render({
type: 'fullscreen',
platform: 'touch',
blockId: 'R-A-1591105-2'
})
})</script>
<!-- AD BLOCK NEED FOR WE CAN WORKS -->
</html> </html>

250
js/fuckbad.js Normal file
View File

@@ -0,0 +1,250 @@
/*
* FuckAdBlock 3.2.1
* Copyright (c) 2015 Valentin Allaire <valentin.allaire@sitexw.fr>
* Released under the MIT license
* https://github.com/sitexw/FuckAdBlock
*/
(function(window) {
var FuckAdBlock = function(options) {
this._options = {
checkOnLoad: false,
resetOnEnd: false,
loopCheckTime: 50,
loopMaxNumber: 5,
baitClass: 'pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links',
baitStyle: 'width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;',
debug: false
};
this._var = {
version: '3.2.1',
bait: null,
checking: false,
loop: null,
loopNumber: 0,
event: { detected: [], notDetected: [] }
};
if(options !== undefined) {
this.setOption(options);
}
var self = this;
var eventCallback = function() {
setTimeout(function() {
if(self._options.checkOnLoad === true) {
if(self._options.debug === true) {
self._log('onload->eventCallback', 'A check loading is launched');
}
if(self._var.bait === null) {
self._creatBait();
}
setTimeout(function() {
self.check();
}, 1);
}
}, 1);
};
if(window.addEventListener !== undefined) {
window.addEventListener('load', eventCallback, false);
} else {
window.attachEvent('onload', eventCallback);
}
};
FuckAdBlock.prototype._options = null;
FuckAdBlock.prototype._var = null;
FuckAdBlock.prototype._bait = null;
FuckAdBlock.prototype._log = function(method, message) {
console.log('[FuckAdBlock]['+method+'] '+message);
};
FuckAdBlock.prototype.setOption = function(options, value) {
if(value !== undefined) {
var key = options;
options = {};
options[key] = value;
}
for(var option in options) {
this._options[option] = options[option];
if(this._options.debug === true) {
this._log('setOption', 'The option "'+option+'" he was assigned to "'+options[option]+'"');
}
}
return this;
};
FuckAdBlock.prototype._creatBait = function() {
var bait = document.createElement('div');
bait.setAttribute('class', this._options.baitClass);
bait.setAttribute('style', this._options.baitStyle);
this._var.bait = window.document.body.appendChild(bait);
this._var.bait.offsetParent;
this._var.bait.offsetHeight;
this._var.bait.offsetLeft;
this._var.bait.offsetTop;
this._var.bait.offsetWidth;
this._var.bait.clientHeight;
this._var.bait.clientWidth;
if(this._options.debug === true) {
this._log('_creatBait', 'Bait has been created');
}
};
FuckAdBlock.prototype._destroyBait = function() {
window.document.body.removeChild(this._var.bait);
this._var.bait = null;
if(this._options.debug === true) {
this._log('_destroyBait', 'Bait has been removed');
}
};
FuckAdBlock.prototype.check = function(loop) {
if(loop === undefined) {
loop = true;
}
if(this._options.debug === true) {
this._log('check', 'An audit was requested '+(loop===true?'with a':'without')+' loop');
}
if(this._var.checking === true) {
if(this._options.debug === true) {
this._log('check', 'A check was canceled because there is already an ongoing');
}
return false;
}
this._var.checking = true;
if(this._var.bait === null) {
this._creatBait();
}
var self = this;
this._var.loopNumber = 0;
if(loop === true) {
this._var.loop = setInterval(function() {
self._checkBait(loop);
}, this._options.loopCheckTime);
}
setTimeout(function() {
self._checkBait(loop);
}, 1);
if(this._options.debug === true) {
this._log('check', 'A check is in progress ...');
}
return true;
};
FuckAdBlock.prototype._checkBait = function(loop) {
var detected = false;
if(this._var.bait === null) {
this._creatBait();
}
if(window.document.body.getAttribute('abp') !== null
|| this._var.bait.offsetParent === null
|| this._var.bait.offsetHeight == 0
|| this._var.bait.offsetLeft == 0
|| this._var.bait.offsetTop == 0
|| this._var.bait.offsetWidth == 0
|| this._var.bait.clientHeight == 0
|| this._var.bait.clientWidth == 0) {
detected = true;
}
if(window.getComputedStyle !== undefined) {
var baitTemp = window.getComputedStyle(this._var.bait, null);
if(baitTemp && (baitTemp.getPropertyValue('display') == 'none' || baitTemp.getPropertyValue('visibility') == 'hidden')) {
detected = true;
}
}
if(this._options.debug === true) {
this._log('_checkBait', 'A check ('+(this._var.loopNumber+1)+'/'+this._options.loopMaxNumber+' ~'+(1+this._var.loopNumber*this._options.loopCheckTime)+'ms) was conducted and detection is '+(detected===true?'positive':'negative'));
}
if(loop === true) {
this._var.loopNumber++;
if(this._var.loopNumber >= this._options.loopMaxNumber) {
this._stopLoop();
}
}
if(detected === true) {
this._stopLoop();
this._destroyBait();
this.emitEvent(true);
if(loop === true) {
this._var.checking = false;
}
} else if(this._var.loop === null || loop === false) {
this._destroyBait();
this.emitEvent(false);
if(loop === true) {
this._var.checking = false;
}
}
};
FuckAdBlock.prototype._stopLoop = function(detected) {
clearInterval(this._var.loop);
this._var.loop = null;
this._var.loopNumber = 0;
if(this._options.debug === true) {
this._log('_stopLoop', 'A loop has been stopped');
}
};
FuckAdBlock.prototype.emitEvent = function(detected) {
if(this._options.debug === true) {
this._log('emitEvent', 'An event with a '+(detected===true?'positive':'negative')+' detection was called');
}
var fns = this._var.event[(detected===true?'detected':'notDetected')];
for(var i in fns) {
if(this._options.debug === true) {
this._log('emitEvent', 'Call function '+(parseInt(i)+1)+'/'+fns.length);
}
if(fns.hasOwnProperty(i)) {
fns[i]();
}
}
if(this._options.resetOnEnd === true) {
this.clearEvent();
}
return this;
};
FuckAdBlock.prototype.clearEvent = function() {
this._var.event.detected = [];
this._var.event.notDetected = [];
if(this._options.debug === true) {
this._log('clearEvent', 'The event list has been cleared');
}
};
FuckAdBlock.prototype.on = function(detected, fn) {
this._var.event[(detected===true?'detected':'notDetected')].push(fn);
if(this._options.debug === true) {
this._log('on', 'A type of event "'+(detected===true?'detected':'notDetected')+'" was added');
}
return this;
};
FuckAdBlock.prototype.onDetected = function(fn) {
return this.on(true, fn);
};
FuckAdBlock.prototype.onNotDetected = function(fn) {
return this.on(false, fn);
};
window.FuckAdBlock = FuckAdBlock;
if(window.fuckAdBlock === undefined) {
window.fuckAdBlock = new FuckAdBlock({
checkOnLoad: true,
resetOnEnd: true
});
}
})(window);

View File

@@ -1,6 +1,6 @@
// This is the "Offline copy of pages" service worker // This is the "Offline copy of pages" service worker
const CACHE = "darkshy-offline"; const CACHE = "new_darkshy_cache";
importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js'); importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js');

View File

@@ -1,9 +1,14 @@
html> <html>
<head> <head>
<title>DarkShy - main page</title> <title>DarkShy - Offline page</title>
<meta name="description" content="Страница DarkShy."> <meta name="title" content="DarkShy - offline page">
<meta name="keywords" content="DarkShy, pony, bronyfurry, mlp"> <meta name="description" content="Серая пегаска, среднего роста, примерно 60 см в холке. Имеет серый окрас и черно-красную гриву. Любит заниматься серверным оборудованием.">
<meta charset="utf-8"> <meta name="keywords" content="DarkShy, pony, bronyfurry, mlp, cisco, пони, серая пони, черно-красная грива">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="Russian">
<meta name="revisit-after" content="5 days">
<meta name="author" content="Dark Shy">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
@@ -20,4 +25,22 @@ html>
<h3>Код ошибки: No internet connection or server is dead</h3> <h3>Код ошибки: No internet connection or server is dead</h3>
<h3>Попробовать еще раз?</h3> <h3>Попробовать еще раз?</h3>
<a href="/" rel="follow">Главная</a> <a href="/" rel="follow">Главная</a>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(80486719, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/80486719" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body> </body>
</html>

View File

@@ -9,12 +9,12 @@
<url> <url>
<loc>https://darkshy.bronyfurry.com/</loc> <loc>https://darkshy.bronyfurry.com/</loc>
<lastmod>2023-01-14T12:14:10+00:00</lastmod> <lastmod>2023-03-12T12:14:10+00:00</lastmod>
<priority>1.00</priority> <priority>1.00</priority>
</url> </url>
<url> <url>
<loc>https://darkshy.bronyfurry.com/offline.html</loc> <loc>https://darkshy.bronyfurry.com/offline.html</loc>
<lastmod>2023-01-14T12:14:10+00:00</lastmod> <lastmod>2023-03-12T12:14:10+00:00</lastmod>
<priority>0.80</priority> <priority>0.80</priority>
</url> </url>

6
sw.js
View File

@@ -16,7 +16,11 @@ self.addEventListener('install', (event) => {
event.waitUntil( event.waitUntil(
caches.open(CACHE).then((cache) => cache.addAll([ caches.open(CACHE).then((cache) => cache.addAll([
'/img/favicon.ico', '/img/favicon.ico',
'/css/style.css' '/css/style.css',
'/img/log.webp',
'/css/bootstrap.min.css',
'/js/bootstrap.min.js',
'/index.html'
]) ])
)); ));
}); });