- Узнать и записать версию php
- нужно закинуть файл
info.php
на старый сайт с содержимым:
<?php phpinfo(); ?>
- зайти на старый сайт:
oldsite.ru/info.php
- записать себе версию php, её потом надо включить на новом сайте
- нужно закинуть файл
View guide.md
View replace_href_src.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('DOMContentLoaded', function() { | |
let links = document.querySelectorAll('[href*="mida.ru"]'); | |
links.forEach(function(link){ | |
let href = link.getAttribute('href'); | |
href = href.replace('mida.ru', 'oldmida.emisart-server.ru'); | |
link.setAttribute('href', href); | |
}); | |
let srcs = document.querySelectorAll('[src*="mida.ru"]'); | |
srcs.forEach(function(srcItem){ |
View example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<picture> | |
<!-- Приоритет у тех что идут сначала --> | |
<source type="image/svg+xml" media="(min-width: 992px)" srcset="images/logo.svg"> | |
<source type="image/webp" media="(min-width: 992px)" srcset="images/logo.webp"> | |
<source media="(min-width: 992px)" srcset="images/logo.png"> | |
<source type="image/svg+xml" media="(max-width: 991px) and (min-width: 671px)" srcset="images/logo-258.svg"> | |
<source type="image/webp" media="(max-width: 991px) and (min-width: 671px)" srcset="images/logo-258.webp"> | |
<source media="(max-width: 991px) and (min-width: 671px)" srcset="images/logo-258.png"> |
View readme.md
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins-extra
View to-top.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('DOMContentLoaded', function () { | |
/** | |
* Scroll to top by click button | Скролл наверх по нажатию на кнопку | |
* Contacts: web.master-artem.ru | |
* | |
* @dependancies scrollSmoothlyToPosition() - https://snippets.cacher.io/snippet/1530dfc32408f9682b30 - https://gist.github.com/artemijeka/860cfcd079b1f42cace732c31b5e3a29 | |
* @dependencies common-js-variables - https://snippets.cacher.io/snippet/520ad065955e15ed9112 - https://gist.github.com/artemijeka/94817ed0212b04d683a1d9e47a897a18 | |
* | |
* @authors Artem Kuznecov |
NewerOlder