Skip to content

Instantly share code, notes, and snippets.

//Класс для заметок
function Note($link, $scope) {
this.$link = $link;
this.isOpened = false;
this.scope = $scope;
this.scrollListener = this.scrollListener.bind(this);
var self = this;
this.$link.on("click", ".cibkpi__title-block", this.clickListener.bind(this));
switch(data[0].rang) {
case 1:
$scope.medal = "rating-viget__item--gold";
break;
case 1:
$scope.medal = "rating-viget__item--silver";
break;
case 1:
$scope.medal = "rating-viget__item--bronze";
break;
@radiosterne
radiosterne / lll.js
Last active May 31, 2017 11:21 — forked from anonymous/lll.js
var eventListener;
//функция закрытия попапов по клику вне его
var closeNote = function(elem) {
$(document).mouseup(function(e) {
var container = $(elem).find(".cibkpi__note");
if (!container.is(e.target) && container.has(e.target).length === 0)
{
console.log("call Event");