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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
{"lastUpload":"2020-07-03T14:25:11.061Z","extensionVersion":"v3.4.3"} |
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
set-font-size(value) { | |
font-size: value; /* добавляем PX как подстраховку */ | |
if (value is inherit) { | |
/* делаем если нет значения для шрифта */ | |
} else { | |
font-size: remify(value); | |
} | |
} |
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
/* | |
Theme Name: | |
Theme URI: | |
Author: | |
Author URI: | |
Description: | |
Version: | |
License: | |
License URI: | |
Tags: |
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
показывает при навидении мышки и прячет при отводе | |
<script> | |
$('#show-menu') | |
.mouseenter(function() { | |
$('.other-drop').show(); | |
}) | |
.mouseleave(function() { | |
$('.other-drop').hide(); | |
}); | |
</script> |
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
опредиления процентов скролаы | |
var tmp = getScrollXY(); | |
var fullHeight = $('body').height(); | |
var perec = tmp[1] * 100/ fullHeight; | |
console.log(perec + '%'); | |
function getScrollXY() { | |
var scrOfX = 0, scrOfY = 0; | |
if( typeof( window.pageYOffset ) == 'number' ) { |
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).ready(function(){ | |
//set the starting bigestHeight variable | |
var biggestHeight = 0; | |
//check each of them | |
$('.equal_height').each(function(){ | |
//if the height of the current element is | |
//bigger then the current biggestHeight value | |
if($(this).height() > biggestHeight){ |
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
Сылка изменяющая цвета | |
<script> | |
var colors = new Array( | |
"#008000", | |
"green", | |
"#000000", | |
"#D3CF18", | |
"#C6C68C", | |
"green", |
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
---------------------- Отчистка поля ввода --------------------------------- | |
<div class=""><input type="text" name="" value="Login..." class="f_input" onblur="if(this.value=='') this.value='Login...';" onfocus="if(this.value=='Login...') this.value='';" /></div> |