Skip to content

Instantly share code, notes, and snippets.

CSS3 Правило @keyframes
http://uroki-css.ru/cssref/css3_pr_keyframes.php
=========================================================
@keyframes blinkRed {
0%, 100% { color: rgba(0, 0, 0, 0.87); }
50% { color: rgba(255, 0, 0, 1); }
}
@alex28742
alex28742 / jQuery libs and OOP
Last active January 6, 2017 09:50
jQuery libs and OOP study
============================================================================
создание своей библиотеки
// my lib
var base_param = (function() {
var module = {}
// в параметрах переменные
module.init = function(first, second) {
@alex28742
alex28742 / gist.study.txt
Last active September 17, 2018 14:09
git study
…or create a new repository on the command line
echo "# donaulab" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/alex28742/donaulab.git
git push -u origin master
…or push an existing repository from the command line
<?=GetMessage("MENU_TITLE")?> включение текстовой области
в файле lang/ru это выглядит как : $MESS["MENU_TITLE"]="Какое-то описание";
Макросы для index.php
==========================================================================
@alex28742
alex28742 / gist:2267d6ffd4f90f899251a8201f7fb499
Last active October 29, 2018 19:36
linux useful instructions
установка sublime-text
http://www.sublimetext.com/docs/3/linux_repositories.html#apt
sudo snap install sublime-text --classic
============================================================================================================
решение проблемы со звуком
@alex28742
alex28742 / study jquery
Last active May 3, 2019 06:12
study jquery
JQuery
Методы
=====================
.on('click',function(){});// обработчик событий
.eq(0);// взятие элемента по индексу
.text("string") - вставляем текстовое содержимое в нужный элемент
.change() - обработчик на изменение состояния элеменна
Может быть вызван принудительно....
@alex28742
alex28742 / JQuery & JS
Last active May 3, 2019 06:12
JQuery & JS
====================================================================================================
jQuery удаление ссылки из элемента
$(document).ready(function() {
$('.base-menu.type3 .parent > ul').css('display', 'block');
$('.base-menu.type3 .parent > a').removeAttr( 'href' );
});
====================================================================================================
@alex28742
alex28742 / fonts.css
Created November 12, 2015 05:46
fonts.css
A/* font-family: "RobotoRegular"; */
@font-face {
font-family: "RobotoRegular";
src: url("../fonts/RobotoRegular/RobotoRegular.eot");
src: url("../fonts/RobotoRegular/RobotoRegular.eot?#iefix")format("embedded-opentype"),
url("../fonts/RobotoRegular/RobotoRegular.woff") format("woff"),
url("../fonts/RobotoRegular/RobotoRegular.ttf") format("truetype");
font-style: normal;
font-weight: normal;
}