Skip to content

Instantly share code, notes, and snippets.

content: '';
position: absolute;
top: 32px;
left: 1px;
width: 0;
height: 0;
border-width: 8px;
border-color: #fff #fff transparent transparent;
border-style: solid;
-webkit-transform: rotate(-135deg) translateY(-50%);
// Закрытие по нажатию
$('.close').click(function(event) {
$('.popup').fadeOut('fast', function() {
});;
});
// Закрытие при клике вне области
$(document).mouseup(function (e){ // событие клика по веб-документу
var div = $(".popup-content"); // тут указываем ID элемента
var css = '@import url(https://fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,400,400italic,500,500italic,700,700italic,900,900italic&subset=latin,latin-ext,cyrillic,cyrillic-ext,greek-ext,greek,vietnamese);\
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext,cyrillic-ext,cyrillic,greek-ext,greek,vietnamese);\
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700&subset=latin,latin-ext,greek-ext,greek,vietnamese,cyrillic,cyrillic-ext);',
head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
&:after, &:before {
bottom: 100%;
left: 74%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
$(document).click(function() {
alert('clicked outside');
});
$("#cabinet_messages").click(function(event) {
alert('clicked inside');
event.stopPropagation();
});
input:focus:required:invalid
$('.rocket').on('click touchend', function () {
$('html, body').animate({'scrollTop': 0}, 800, 'swing');
return false;
});
label {
font - size: 12 px;
font - weight: normal;
color: @link - color;
border - bottom: 1 px dotted @link - color;
}
}
input[type = "checkbox"] { display: none; }
input[type = "checkbox"] + label {
document.addEventListener("DOMContentLoaded", function() {
var newDiv = document.createElement('div');
var newElemDiv = newDiv.className = "fields-wrapper";
var fieldsContainer = document.querySelectorAll('.fields-container');
var fieldsContainerArray = Array.prototype.slice.call(fieldsContainer);
for (i = 0; i < fieldsContainerArray.length; i++) {