Skip to content

Instantly share code, notes, and snippets.

::-webkit-input-placeholder {color:#000000;}
::-moz-placeholder {color:#000000;}/* Firefox 19+ */
:-moz-placeholder {color:#000000;}/* Firefox 18- */
:-ms-input-placeholder {color:#000000;}
.clearfix {
display:inline-block;
}
.clearfix {
zoom:1;
display:block;
}
.clearfix:after {
display: flex;
justify-content: center;
flex-direction: column;
@media only screen and (max-width: 1279px) {
}
@myvitaliy
myvitaliy / scripts_menu_mobile.js
Last active August 22, 2016 19:51
js menu mobile with coursre
var pull = $('#pull');
menu = $('.menu ul');
menuHeight = menu.height();
$(pull).on('click', function(e) {
e.preventDefault();
menu.slideToggle();
});
$(window).resize(function(){
MODx Ace Material Theme
Системные настройки > Пространство имен "ace":
Размер шрифта: 18px
Высота области редактирования: 560
Невидимые символы: Да
Мягкая табуляция: Нет
Размер табуляции: 2
Тема редактора: tomorrow_night
@myvitaliy
myvitaliy / plugin.js
Created January 8, 2017 09:25
jQuery plugin start
(function($) {
$.fn.myParallax = function() {
return this.each(function() {
var ths = $(this);
});
};
})(jQuery);
@myvitaliy
myvitaliy / script browser detection
Created March 2, 2017 08:41
Скрипт определения браузера
var is_chrome = navigator.userAgent.indexOf('Chrome') > -1;
var is_explorer = navigator.userAgent.indexOf('MSIE') > -1;
var is_firefox = navigator.userAgent.indexOf('Firefox') > -1;
var is_safari = navigator.userAgent.indexOf("Safari") > -1;
var is_opera = navigator.userAgent.toLowerCase().indexOf("op") > -1;
if ((is_chrome)&&(is_safari)) {is_safari=false;}
if ((is_chrome)&&(is_opera)) {is_chrome=false;}
/* end detect browser*/
@myvitaliy
myvitaliy / index.php
Last active May 14, 2018 14:29
index.php
<?php
require_once 'Car.php';
require_once 'CanMove.php';
use twelve\Car;
use twelve\CanMove;
$car = new Car();
$car->move();
@myvitaliy
myvitaliy / Car.php
Created May 14, 2018 14:25
car.php
<?php
namespace twelve\Car;
use twelve\CanMove;
require_once 'CanMove.php';
class Car
{
use CanMove;