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
| //Класс для заметок | |
| 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)); |
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
| 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; |
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 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"); |