1(function ($, APP, undefined) { 2 "use strict"; 3 /** 4 * ÐоÑÑÐ¾Ð»Ð»ÐµÑ ÑÑÑаниÑÑ Ð½Ð¾Ð²Ð¾ÑÑи 5 */ 6 APP.Controls.Page.News = can.Control.extend( 7 { 8 defaults: { 9 popoverLink: '.js-popover-link' 10 } 11 }, 12 { 13 init: function() { 14 if (!Modernizr.touch || $('html').hasClass('bx-no-touch')) { 15 this.initScrollr(); 16 } 17 18 this.element.find('.js-slideshow').each(function() { 19 new APP.Controls.Slideshow(this); 20 }); 21 22 var popover = this.element.find('.js-popover'); 23 popover.each(function() { 24 new APP.Controls.Popover(this); 25 }); 26 27 this.element.find('.js-form-subscribe').each(function() { 28 new APP.Controls.FormSubscribe(this, {popover: popover}); 29 }); 30 }, 31 32 initScrollr: function() { 33 skrollr.init({ 34 smoothScrolling: true, 35 smoothScrollingDuration: 500, 36 forceHeight: false 37 }); 38 }, 39 40 '{popoverLink} click': function(el, ev) { 41 var popover = this.element.find(el.data('target')); 42 popover.addClass('active'); 43 popover.find('input[type=text], textarea').first().focus(); 44 } 45 46 } 47 ); 48 49})(jQuery, APP);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.