| Server IP : 162.214.74.102 / Your IP : 216.73.216.139 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_projetos/sopizzas/build/aui-scrollspy/ |
Upload File : |
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/aui-scrollspy/aui-scrollspy.js']) {
__coverage__['build/aui-scrollspy/aui-scrollspy.js'] = {"path":"build/aui-scrollspy/aui-scrollspy.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0},"b":{"1":[0,0],"2":[0,0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":44}}},"2":{"name":"(anonymous_2)","line":53,"loc":{"start":{"line":53,"column":17},"end":{"line":53,"column":28}}},"3":{"name":"(anonymous_3)","line":75,"loc":{"start":{"line":75,"column":22},"end":{"line":75,"column":33}}},"4":{"name":"(anonymous_4)","line":85,"loc":{"start":{"line":85,"column":13},"end":{"line":85,"column":24}}},"5":{"name":"(anonymous_5)","line":107,"loc":{"start":{"line":107,"column":25},"end":{"line":107,"column":41}}},"6":{"name":"(anonymous_6)","line":118,"loc":{"start":{"line":118,"column":24},"end":{"line":118,"column":35}}},"7":{"name":"(anonymous_7)","line":131,"loc":{"start":{"line":131,"column":20},"end":{"line":131,"column":31}}},"8":{"name":"(anonymous_8)","line":136,"loc":{"start":{"line":136,"column":51},"end":{"line":136,"column":66}}},"9":{"name":"(anonymous_9)","line":151,"loc":{"start":{"line":151,"column":23},"end":{"line":151,"column":38}}},"10":{"name":"(anonymous_10)","line":172,"loc":{"start":{"line":172,"column":15},"end":{"line":172,"column":26}}},"11":{"name":"(anonymous_11)","line":184,"loc":{"start":{"line":184,"column":16},"end":{"line":184,"column":39}}},"12":{"name":"(anonymous_12)","line":190,"loc":{"start":{"line":190,"column":39},"end":{"line":190,"column":54}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":275,"column":81}},"2":{"start":{"line":9,"column":0},"end":{"line":12,"column":32}},"3":{"start":{"line":27,"column":0},"end":{"line":273,"column":3}},"4":{"start":{"line":54,"column":8},"end":{"line":54,"column":48}},"5":{"start":{"line":62,"column":8},"end":{"line":64,"column":11}},"6":{"start":{"line":66,"column":8},"end":{"line":66,"column":62}},"7":{"start":{"line":67,"column":8},"end":{"line":67,"column":23}},"8":{"start":{"line":76,"column":8},"end":{"line":76,"column":32}},"9":{"start":{"line":86,"column":8},"end":{"line":86,"column":45}},"10":{"start":{"line":90,"column":8},"end":{"line":92,"column":9}},"11":{"start":{"line":91,"column":12},"end":{"line":91,"column":19}},"12":{"start":{"line":94,"column":8},"end":{"line":97,"column":11}},"13":{"start":{"line":108,"column":8},"end":{"line":108,"column":53}},"14":{"start":{"line":119,"column":8},"end":{"line":119,"column":42}},"15":{"start":{"line":121,"column":8},"end":{"line":121,"column":72}},"16":{"start":{"line":132,"column":8},"end":{"line":134,"column":9}},"17":{"start":{"line":133,"column":12},"end":{"line":133,"column":59}},"18":{"start":{"line":136,"column":8},"end":{"line":138,"column":11}},"19":{"start":{"line":137,"column":12},"end":{"line":137,"column":55}},"20":{"start":{"line":140,"column":8},"end":{"line":140,"column":32}},"21":{"start":{"line":152,"column":8},"end":{"line":155,"column":38}},"22":{"start":{"line":157,"column":8},"end":{"line":162,"column":9}},"23":{"start":{"line":158,"column":12},"end":{"line":158,"column":54}},"24":{"start":{"line":161,"column":12},"end":{"line":161,"column":44}},"25":{"start":{"line":163,"column":8},"end":{"line":163,"column":69}},"26":{"start":{"line":173,"column":8},"end":{"line":173,"column":23}},"27":{"start":{"line":185,"column":8},"end":{"line":185,"column":50}},"28":{"start":{"line":186,"column":8},"end":{"line":186,"column":50}},"29":{"start":{"line":189,"column":8},"end":{"line":193,"column":9}},"30":{"start":{"line":190,"column":10},"end":{"line":192,"column":13}},"31":{"start":{"line":191,"column":12},"end":{"line":191,"column":79}},"32":{"start":{"line":195,"column":8},"end":{"line":198,"column":9}},"33":{"start":{"line":196,"column":12},"end":{"line":196,"column":68}},"34":{"start":{"line":197,"column":12},"end":{"line":197,"column":35}},"35":{"start":{"line":200,"column":8},"end":{"line":203,"column":9}},"36":{"start":{"line":201,"column":12},"end":{"line":201,"column":61}},"37":{"start":{"line":202,"column":12},"end":{"line":202,"column":34}}},"branchMap":{"1":{"line":90,"type":"if","locations":[{"start":{"line":90,"column":8},"end":{"line":90,"column":8}},{"start":{"line":90,"column":8},"end":{"line":90,"column":8}}]},"2":{"line":90,"type":"binary-expr","locations":[{"start":{"line":90,"column":12},"end":{"line":90,"column":36}},{"start":{"line":90,"column":41},"end":{"line":90,"column":46}},{"start":{"line":90,"column":50},"end":{"line":90,"column":66}}]},"3":{"line":132,"type":"if","locations":[{"start":{"line":132,"column":8},"end":{"line":132,"column":8}},{"start":{"line":132,"column":8},"end":{"line":132,"column":8}}]},"4":{"line":137,"type":"binary-expr","locations":[{"start":{"line":137,"column":19},"end":{"line":137,"column":28}},{"start":{"line":137,"column":33},"end":{"line":137,"column":53}}]},"5":{"line":157,"type":"if","locations":[{"start":{"line":157,"column":8},"end":{"line":157,"column":8}},{"start":{"line":157,"column":8},"end":{"line":157,"column":8}}]},"6":{"line":157,"type":"binary-expr","locations":[{"start":{"line":157,"column":12},"end":{"line":157,"column":46}},{"start":{"line":157,"column":50},"end":{"line":157,"column":84}}]},"7":{"line":163,"type":"binary-expr","locations":[{"start":{"line":163,"column":16},"end":{"line":163,"column":22}},{"start":{"line":163,"column":27},"end":{"line":163,"column":66}}]},"8":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":8},"end":{"line":189,"column":8}},{"start":{"line":189,"column":8},"end":{"line":189,"column":8}}]},"9":{"line":195,"type":"if","locations":[{"start":{"line":195,"column":8},"end":{"line":195,"column":8}},{"start":{"line":195,"column":8},"end":{"line":195,"column":8}}]},"10":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":8},"end":{"line":200,"column":8}},{"start":{"line":200,"column":8},"end":{"line":200,"column":8}}]}},"code":["(function () { YUI.add('aui-scrollspy', function (A, NAME) {","","/**"," * The Scrollspy Component"," *"," * @module aui-scrollspy"," */","","var getClassName = A.getClassName,"," Lang = A.Lang,",""," ACTIVATE_EVENT = 'activate';","","/**"," * A base class for Scrollspy."," *"," * Check the [live demo](http://alloyui.com/examples/scrollspy/)."," *"," * @class A.Scrollspy"," * @extends Base"," * @param {Object} config Object literal specifying scrollspy configuration"," * properties."," * @constructor"," * @include http://alloyui.com/examples/scrollspy/basic-markup.html"," * @include http://alloyui.com/examples/scrollspy/basic.js"," */","A.Scrollspy = A.Base.create('scrollspy', A.Base, [], {",""," /**"," * Holds the active link node reference."," *"," * @property activeLink"," * @type {Node}"," * @protected"," */"," activeLink: null,",""," /**"," * Holds a cache of the valid links."," *"," * @property cachedLinks"," * @type {NodeList}"," * @protected"," */"," cachedLinks: null,",""," /**"," * Construction logic executed during Scrollspy instantiation. Lifecycle."," *"," * @method initializer"," * @protected"," */"," initializer: function() {"," var scrollNode = this.get('scrollNode');",""," /**"," * Fired when any target's link changes."," *"," * @event activate"," * @param {EventFacade} event That activate link change event."," */"," this.publish(ACTIVATE_EVENT, {"," defaultFn: this._defActivateEventFn"," });",""," scrollNode.on('scroll', A.bind(this._onScroll, this));"," this.refresh();"," },",""," /**"," * Cleans the cached links."," *"," * @method clearCachedLinks"," */"," clearCachedLinks: function() {"," this.cachedLinks = null;"," },",""," /**"," * Recalculates the current active node in the list and resets the active"," * CSS class names."," *"," * @method refresh"," **/"," refresh: function() {"," var link = this._findLinkBestMatch();",""," // Early return to avoid fire activate event when not necessary."," // Event should be fired only when link is different from activeLink."," if (link === this.activeLink || (!link && !this.activeLink)) {"," return;"," }",""," this.fire(ACTIVATE_EVENT, {"," newVal: link,"," prevVal: this.activeLink"," });"," },",""," /**"," * Handler function for scrollNode's scroll event."," *"," * @method _defActivateEventFn"," * @param {EventFacade} event"," * @protected"," **/"," _defActivateEventFn: function(event) {"," this._uiSetLink(event.newVal, event.prevVal);"," },",""," /**"," * Finds the node whose target should be activated."," *"," * @method _findLinkBestMatch"," * @return {Node} Best link match that attends the viewport criteria."," * @protected"," **/"," _findLinkBestMatch: function() {"," var links = this._getValidLinks();",""," return links.filter(A.bind(this._isLinkInViewport, this)).pop();"," },",""," /**"," * Gets target ids from target links."," *"," * @method _getValidLinks"," * @return {NodeList} Filtered cached links."," * @protected"," **/"," _getValidLinks: function() {"," if (!this.cachedLinks) {"," this.cachedLinks = this.get('target').all('a');"," }",""," this.cachedLinks = this.cachedLinks.filter(function(link) {"," return link.hash && (link.hash.length > 1);"," });",""," return this.cachedLinks;"," },",""," /**"," * Checks if there's a link corresponding to an anchor in the viewport."," *"," * @method _isLinkInViewport"," * @param {Node} link"," * @return {Boolean} Whether link is in viewport."," * @protected"," **/"," _isLinkInViewport: function(link) {"," var offset = this.get('offset'),"," scrollNode = this.get('scrollNode'),"," scrollNodeY,"," anchor = A.one(link.hash);",""," if (scrollNode.compareTo(A.config.win) || scrollNode.compareTo(A.config.doc)) {"," scrollNodeY = scrollNode.get('scrollTop');"," }"," else {"," scrollNodeY = scrollNode.getY();"," }"," return (anchor && (scrollNodeY >= (anchor.getY() - offset)));"," },",""," /**"," * Call refresh on scroll event from scrollNode."," *"," * @method _onScroll"," * @protected"," **/"," _onScroll: function() {"," this.refresh();"," },",""," /**"," * Sets correct class to active node."," *"," * @method _uiSetLink"," * @param {Node} val"," * @param {Node} prevVal"," * @protected"," **/"," _uiSetLink: function(val, prevVal) {"," var activeGroup = this.get('activeGroup');"," var activeClass = this.get('activeClass');",""," // For the first time it gets here make sure to clean the previous active"," if (!prevVal) {"," this._getValidLinks().filter(function(link) {"," return A.one(link).ancestors(activeGroup).removeClass(activeClass);"," });"," }",""," if (prevVal) {"," prevVal.ancestors(activeGroup).removeClass(activeClass);"," this.activeLink = null;"," }",""," if (val) {"," val.ancestors(activeGroup).addClass(activeClass);"," this.activeLink = val;"," }"," }","}, {"," /**"," * Static property used to define the default attribute"," * configuration for the Scrollspy."," *"," * @property ATTRS"," * @type Object"," * @static"," */"," ATTRS: {"," /**"," * Ancestors which should be added the .active class."," *"," * @attribute activeGroup"," * @type {String}"," */"," activeGroup: {"," validator: Lang.isString,"," value: 'li, .dropdown'"," },",""," /**"," * Class to be used as active class."," *"," * @attribute activeClass"," * @type {String}"," */"," activeClass: {"," validator: Lang.isString,"," value: getClassName('active')"," },",""," /**"," * Pixels to offset from top when calculating position of scroll."," *"," * @attribute offset"," * @type {Number}"," */"," offset: {"," validator: Lang.isNumber,"," value: 10"," },",""," /**"," * Container that maps target links."," *"," * @attribute scrollNode"," * @type {Node | String}"," * @initOnly"," */"," scrollNode: {"," setter: A.one,"," value: A.config.win,"," writeOnce: 'initOnly'"," },",""," /**"," * Target list. Usually a nav bar element with anchors."," *"," * @attribute target"," * @type {Node | String}"," * @initOnly"," */"," target: {"," setter: A.one,"," writeOnce: 'initOnly'"," }"," }","});","","}, '3.0.1', {\"requires\": [\"base-build\", \"node-screen\", \"aui-classnamemanager\"]});","","}());"]};
}
var __cov_I4YnehlmR3xTsJYrRVN_JA = __coverage__['build/aui-scrollspy/aui-scrollspy.js'];
__cov_I4YnehlmR3xTsJYrRVN_JA.s['1']++;YUI.add('aui-scrollspy',function(A,NAME){__cov_I4YnehlmR3xTsJYrRVN_JA.f['1']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['2']++;var getClassName=A.getClassName,Lang=A.Lang,ACTIVATE_EVENT='activate';__cov_I4YnehlmR3xTsJYrRVN_JA.s['3']++;A.Scrollspy=A.Base.create('scrollspy',A.Base,[],{activeLink:null,cachedLinks:null,initializer:function(){__cov_I4YnehlmR3xTsJYrRVN_JA.f['2']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['4']++;var scrollNode=this.get('scrollNode');__cov_I4YnehlmR3xTsJYrRVN_JA.s['5']++;this.publish(ACTIVATE_EVENT,{defaultFn:this._defActivateEventFn});__cov_I4YnehlmR3xTsJYrRVN_JA.s['6']++;scrollNode.on('scroll',A.bind(this._onScroll,this));__cov_I4YnehlmR3xTsJYrRVN_JA.s['7']++;this.refresh();},clearCachedLinks:function(){__cov_I4YnehlmR3xTsJYrRVN_JA.f['3']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['8']++;this.cachedLinks=null;},refresh:function(){__cov_I4YnehlmR3xTsJYrRVN_JA.f['4']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['9']++;var link=this._findLinkBestMatch();__cov_I4YnehlmR3xTsJYrRVN_JA.s['10']++;if((__cov_I4YnehlmR3xTsJYrRVN_JA.b['2'][0]++,link===this.activeLink)||(__cov_I4YnehlmR3xTsJYrRVN_JA.b['2'][1]++,!link)&&(__cov_I4YnehlmR3xTsJYrRVN_JA.b['2'][2]++,!this.activeLink)){__cov_I4YnehlmR3xTsJYrRVN_JA.b['1'][0]++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['11']++;return;}else{__cov_I4YnehlmR3xTsJYrRVN_JA.b['1'][1]++;}__cov_I4YnehlmR3xTsJYrRVN_JA.s['12']++;this.fire(ACTIVATE_EVENT,{newVal:link,prevVal:this.activeLink});},_defActivateEventFn:function(event){__cov_I4YnehlmR3xTsJYrRVN_JA.f['5']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['13']++;this._uiSetLink(event.newVal,event.prevVal);},_findLinkBestMatch:function(){__cov_I4YnehlmR3xTsJYrRVN_JA.f['6']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['14']++;var links=this._getValidLinks();__cov_I4YnehlmR3xTsJYrRVN_JA.s['15']++;return links.filter(A.bind(this._isLinkInViewport,this)).pop();},_getValidLinks:function(){__cov_I4YnehlmR3xTsJYrRVN_JA.f['7']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['16']++;if(!this.cachedLinks){__cov_I4YnehlmR3xTsJYrRVN_JA.b['3'][0]++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['17']++;this.cachedLinks=this.get('target').all('a');}else{__cov_I4YnehlmR3xTsJYrRVN_JA.b['3'][1]++;}__cov_I4YnehlmR3xTsJYrRVN_JA.s['18']++;this.cachedLinks=this.cachedLinks.filter(function(link){__cov_I4YnehlmR3xTsJYrRVN_JA.f['8']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['19']++;return(__cov_I4YnehlmR3xTsJYrRVN_JA.b['4'][0]++,link.hash)&&(__cov_I4YnehlmR3xTsJYrRVN_JA.b['4'][1]++,link.hash.length>1);});__cov_I4YnehlmR3xTsJYrRVN_JA.s['20']++;return this.cachedLinks;},_isLinkInViewport:function(link){__cov_I4YnehlmR3xTsJYrRVN_JA.f['9']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['21']++;var offset=this.get('offset'),scrollNode=this.get('scrollNode'),scrollNodeY,anchor=A.one(link.hash);__cov_I4YnehlmR3xTsJYrRVN_JA.s['22']++;if((__cov_I4YnehlmR3xTsJYrRVN_JA.b['6'][0]++,scrollNode.compareTo(A.config.win))||(__cov_I4YnehlmR3xTsJYrRVN_JA.b['6'][1]++,scrollNode.compareTo(A.config.doc))){__cov_I4YnehlmR3xTsJYrRVN_JA.b['5'][0]++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['23']++;scrollNodeY=scrollNode.get('scrollTop');}else{__cov_I4YnehlmR3xTsJYrRVN_JA.b['5'][1]++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['24']++;scrollNodeY=scrollNode.getY();}__cov_I4YnehlmR3xTsJYrRVN_JA.s['25']++;return(__cov_I4YnehlmR3xTsJYrRVN_JA.b['7'][0]++,anchor)&&(__cov_I4YnehlmR3xTsJYrRVN_JA.b['7'][1]++,scrollNodeY>=anchor.getY()-offset);},_onScroll:function(){__cov_I4YnehlmR3xTsJYrRVN_JA.f['10']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['26']++;this.refresh();},_uiSetLink:function(val,prevVal){__cov_I4YnehlmR3xTsJYrRVN_JA.f['11']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['27']++;var activeGroup=this.get('activeGroup');__cov_I4YnehlmR3xTsJYrRVN_JA.s['28']++;var activeClass=this.get('activeClass');__cov_I4YnehlmR3xTsJYrRVN_JA.s['29']++;if(!prevVal){__cov_I4YnehlmR3xTsJYrRVN_JA.b['8'][0]++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['30']++;this._getValidLinks().filter(function(link){__cov_I4YnehlmR3xTsJYrRVN_JA.f['12']++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['31']++;return A.one(link).ancestors(activeGroup).removeClass(activeClass);});}else{__cov_I4YnehlmR3xTsJYrRVN_JA.b['8'][1]++;}__cov_I4YnehlmR3xTsJYrRVN_JA.s['32']++;if(prevVal){__cov_I4YnehlmR3xTsJYrRVN_JA.b['9'][0]++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['33']++;prevVal.ancestors(activeGroup).removeClass(activeClass);__cov_I4YnehlmR3xTsJYrRVN_JA.s['34']++;this.activeLink=null;}else{__cov_I4YnehlmR3xTsJYrRVN_JA.b['9'][1]++;}__cov_I4YnehlmR3xTsJYrRVN_JA.s['35']++;if(val){__cov_I4YnehlmR3xTsJYrRVN_JA.b['10'][0]++;__cov_I4YnehlmR3xTsJYrRVN_JA.s['36']++;val.ancestors(activeGroup).addClass(activeClass);__cov_I4YnehlmR3xTsJYrRVN_JA.s['37']++;this.activeLink=val;}else{__cov_I4YnehlmR3xTsJYrRVN_JA.b['10'][1]++;}}},{ATTRS:{activeGroup:{validator:Lang.isString,value:'li, .dropdown'},activeClass:{validator:Lang.isString,value:getClassName('active')},offset:{validator:Lang.isNumber,value:10},scrollNode:{setter:A.one,value:A.config.win,writeOnce:'initOnly'},target:{setter:A.one,writeOnce:'initOnly'}}});},'3.0.1',{'requires':['base-build','node-screen','aui-classnamemanager']});