гравитация сайтов:
@creative_programmer #web
javascript:var script = document.createElement("script"); script.src="//gravityscript.github.io/grav.js"; document.body.appendChild(script); void(0);
@creative_programmer #web
Давно не было интересных кодов😼
#web
function isMarch8th() {
const today = new Date();
return today.getMonth() === 2 && today.getDate() === 8;
}
if (isMarch8th()) {
var image = document.getElementById('image1');
image.src = 'ссылка на изображение 8 марта';
}
#web
Please open Telegram to view this post
VIEW IN TELEGRAM
Случайный цвет фона на сайте🙂
#web
const randomColor = () => {
const r = Math.floor(Math.random() * 256);
const g = Math.floor(Math.random() * 256);
const b = Math.floor(Math.random() * 256);
document.body.style.backgroundColor = `rgb(${r}, ${g}, ${b})`;
};
randomColor();
#web
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥6 4🆒2
function isDate(month, number) { const today = new Date();
return today.getMonth() === month-1 && today.getDate() === number;}
#web
Please open Telegram to view this post
VIEW IN TELEGRAM
Я нашел сайт который поможет вам в веб-программировании
- doka.guide
- html, js, css и все что вам нужно!
#полезные_сайты #web
- doka.guide
- html, js, css и все что вам нужно!
#полезные_сайты #web
Дока
Документация для разработчиков на понятном языке