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
@mixin adaptive($media) | |
@if $media == mobile | |
@media only screen and (max-width: $mobile) | |
@content | |
@else if $media == pad | |
@media only screen and (min-width: $mobile + 1) and (max-width: $desktop - 1) | |
@content | |
@else if $media == desktop | |
@media only screen and (min-width: $desktop ) | |
@content |
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
git push git@github.com:my_user_name/my_repo.git master | |
git remote set-url origin git@github.com:username/repo.git |
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
import utils from './utils' | |
var commonTableHeaders = utils.headers; | |
commonTableHeaders.forEach(function(el) { | |
if(el.title == "Имя, уровень") { | |
for(var a in el) { | |
a.title = "Имя"; | |
a.format = function() { | |
return `<b>${item.char}</b>`; |
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
<?php | |
$Pages = array( | |
'http://sitename.ru/stranica-A.html' , | |
'http://sitename.ru/stranica-B.html' | |
); | |
$MaxRandom = getrandmax(); | |
$RandomValue = intval( rand( 0 , count( $Pages ) - 1 ) ); | |
header( 'Location: '.$Pages[ $RandomValue ] ); | |
?> |
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
forEach(menuItems, (link) => { | |
$(link).on('click', function(e) { | |
e.preventDefault(); | |
$('html, body').stop().animate({ | |
scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear'); | |
}) | |
}); |