1/** 2* @package Gridbox 3* @author Balbooa http://www.balbooa.com/ 4* @copyright Copyright @ Balbooa 5* @license http://www.gnu.org/licenses/gpl.html GNU/GPL 6*/ 7 8if (window.themeData && themeData.page.view == 'gridbox') { 9 var file = document.createElement('link'); 10 file.rel = 'stylesheet'; 11 file.href = JUri+'components/com_gridbox/libraries/headline/css/animation.css'; 12 document.head.append(file); 13} 14 15function checkHeadline($this) 16{ 17 var wHeight = $g(window).height(), 18 itemTop = Math.round($g($this).offset().top) + 50, 19 itemBottom = itemTop + ($g($this).height()), 20 top = window.pageYOffset, 21 bottom = (top + wHeight); 22 if ((itemTop < bottom) && (itemBottom > top)) { 23 $this.headlineWrapper.classList.add(app.items[$this.id].desktop.animation.effect); 24 $g(window).off('scroll.headline-'+$this.id); 25 } else if ($this.headlineWrapper.classList.contains(app.items[$this.id].desktop.animation.effect)) { 26 $this.headlineWrapper.classList.remove(app.items[$this.id].desktop.animation.effect); 27 } 28} 29 30app.initheadline = function(obj, key){ 31 var item = $g('#'+key) 32 $this = item[0]; 33 if (app.items[key].desktop.animation.effect) { 34 $this.headlineWrapper = $this.querySelector('.headline-wrapper'); 35 $g(window).off('scroll.headline-'+key).on('scroll.headline-'+key, $g.proxy(checkHeadline, $this, $this)); 36 checkHeadline($this); 37 } 38 if (themeData.page.view == 'gridbox') { 39 item.find('.headline-wrapper').attr('contenteditable', true).on('keydown', function(event){ 40 if (event.keyCode == 13) { 41 event.preventDefault(); 42 event.stopPropagation(); 43 } 44 }); 45 } 46 initItems(); 47} 48 49if (app.modules.initheadline) { 50 app.initheadline(app.modules.initheadline.data, app.modules.initheadline.selector); 51}
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.