Skip to content

Instantly share code, notes, and snippets.

View fyapy's full-sized avatar
🏠
Working from home

Amir Abdullin fyapy

🏠
Working from home
View GitHub Profile
<?php
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
show_admin_bar(false);
add_theme_support('post-thumbnails');
<?php echo get_permalink(); ?>
https://codepen.io/agragregra/pen/bEbbmZ
$('.carousel-service-composition h3').each(function() {
var ths = $(this);
ths.html(ths.html().replace(/(\S+)\s*$/, '<span>$1</span>'));
});
$('section h2').each(function() {
var ths = $(this);
ths.html(ths.html().replace(/^(\S+)/, '<span>$1</span>'));
});
npm i gulp -g
npm init
npm i
--save-dev
&::-webkit-input-placeholder
color: #fff
opacity: 1
&:-moz-placeholder
color: #fff
opacity: 1
&::-moz-placeholder
color: #fff
opacity: 1
&:-ms-input-placeholder
https://codepen.io/devstreak/pen/dMYgeO
\::-webkit-scrollbar-button
background-image: url('')
background-repeat: no-repeat
width: 6px
height: 0px
\::-webkit-scrollbar-track
background-color: #32312e
<div class="mouse-icon"><div class="wheel"></div></div>
.mouse-icon
border: 2px solid #000
border-radius: 16px
height: 40px
width: 24px
display: block
z-index: 10
opacity: 0.7
$('element:hidden')
$('element:visible')
$('#myDiv').is(':visible');
$('#myDiv').is(':hidden');
$(window).on('load', function() {
$('.preloader').delay(1).fadeOut('slow');
})
<div class="preloader"><div class="loader"></div></div>
.preloader
position: fixed
top: 0
left: 0