This file contains hidden or 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
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%); |
This file contains hidden or 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
// Закрытие по нажатию | |
$('.close').click(function(event) { | |
$('.popup').fadeOut('fast', function() { | |
});; | |
}); | |
// Закрытие при клике вне области | |
$(document).mouseup(function (e){ // событие клика по веб-документу | |
var div = $(".popup-content"); // тут указываем ID элемента |
This file contains hidden or 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 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 { |
This file contains hidden or 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
&:after, &:before { | |
bottom: 100%; | |
left: 74%; | |
border: solid transparent; | |
content: " "; | |
height: 0; | |
width: 0; | |
position: absolute; | |
pointer-events: none; | |
} |
This file contains hidden or 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).click(function() { | |
alert('clicked outside'); | |
}); | |
$("#cabinet_messages").click(function(event) { | |
alert('clicked inside'); | |
event.stopPropagation(); | |
}); |
This file contains hidden or 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
input:focus:required:invalid |
This file contains hidden or 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
$('.rocket').on('click touchend', function () { | |
$('html, body').animate({'scrollTop': 0}, 800, 'swing'); | |
return false; | |
}); |
This file contains hidden or 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
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 { |
This file contains hidden or 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.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++) { |
This file contains hidden or 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
// // Instantiate the Bootstrap carousel | |
// $('#SliderWatch1').carousel({ | |
// interval: false | |
// }); | |
// // for every slide in carousel, copy the next slide's item in the slide. | |
// // Do the same for the next, next item. | |
// $('#SliderDnID .fields-container').each(function(){ | |
// var next = $(this).next(); | |
// if (!next.length) { |