This file contains hidden or 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
// Types | |
// ============================== | |
let num: number = 0.222 | |
console.log(num) | |
let str: string = '11' | |
console.log(str) | |
const isValid: boolean = true | |
const isInvalid: boolean = true |
This file contains hidden or 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
// Паралакс эффект при движении мышки -> | |
$('.section-4').mousemove(function(e) { | |
var x = (e.pageX * -0.011); | |
var y = (e.pageY * -0.022); | |
$('.mouse-parallax').css('background-position', x + 'px ' + y + 'px'); | |
}); | |
// <- Паралакс эффект при движении мышки |
This file contains hidden or 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
// Плавная прокрутка экрана -> | |
$('body').on('click', '[href*="#"]', function(e){ | |
var fixed_offset = 50; | |
$('html,body').stop().animate({ scrollTop: $(this.hash).offset().top - fixed_offset }, 1000); | |
e.preventDefault(); | |
}); | |
// <- Плавная прокрутка экрана |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Создание подсказок при наведении на элементы</title> | |
<style> | |
p | |
{ | |
margin-bottom: 40px; | |
cursor: pointer; |
This file contains hidden or 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
/* Для того, чтобы не появлялся баг с отступами, когда исчезает адресная строка в браузере на мобильных устройствах при прокрутки страницы, делаем следующее... */ | |
/* Site Overlay */ | |
.site-overlay { | |
display: none; | |
} | |
.site-overlay { | |
display: block; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Preloader</title> | |
<style> | |
/*PRELOADER OPENED*/ | |
.preloader | |
{ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Border CSS gradient</title> | |
<style> | |
.box { | |
margin: 50px auto; |
This file contains hidden or 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
<?php | |
// Admin form logo OPENED | |
function my_login_logo(){ | |
echo ' | |
<style type="text/css"> | |
#login h1 a { background: url('. get_bloginfo('template_directory') . '/img/wp_admin_logo_64x64.svg) no-repeat 0 0 !important; } | |
</style>'; | |
} | |
add_action('login_head', 'my_login_logo'); |
This file contains hidden or 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
<?php | |
$method = $_SERVER['REQUEST_METHOD']; | |
$sitename = "sitename"; | |
$from = "email"; | |
$to = "email"; | |
// $to = "e.brazhnik2017@gmail.com"; | |
$color = false; // Переключает чередование цветов ячеек таблицы |
NewerOlder