PageSourceSearch

https://scchk.com.hk/sites/default/files/js/js_VqP8XZHAehWRABh2oYp…9Sa3B5SyrsiZ2nxTVgf7R4UNHbmddq7j_Gl_Ays6gEM

js scchk.com.hk collected 2026-09-26 12:20:30 UTC 19,033 bytes, 16 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2/* Source and licensing information for the line(s) below can be found at https://scchk.com.hk/libraries/drupal-superfish/jquery.hoverIntent.minified.js. */
3/*!
4 * hoverIntent v1.10.1 // 2019.10.05 // jQuery v1.7.0+
5 * http://briancherne.github.io/jquery-hoverIntent/
6 *
7 * You may use hoverIntent under the terms of the MIT license. Basically that
8 * means you are free to use hoverIntent as long as this header is left intact.
9 * Copyright 2007-2019 Brian Cherne
10 */
11!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";function track(ev){cX=ev.pageX,cY=ev.pageY}var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),(typeof cfg.out==="function")||(cfg.out=cfg.over)):cfg=(typeof handlerOut==="function")?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});function handleHover(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){!function(ev,$el,s,out){var data=$el.data("hoverIntent");data&&delete data[s.id],out.apply($el[0],[ev])}(ev,$el,state,cfg.out)},cfg.timeout)}}return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});
12/* Source and licensing information for the above line(s) can be found at https://scchk.com.hk/libraries/drupal-superfish/jquery.hoverIntent.minified.js. */;
13(function($){$.fn.sfsmallscreen=function(options){options=$.extend({mode:'inactive',type:'accordion',breakpoint:768,breakpointUnit:'px',useragent:'',title:'',addSelected:false,menuClasses:false,hyperlinkClasses:false,excludeClass_menu:'',excludeClass_hyperlink:'',includeClass_menu:'',includeClass_hyperlink:'',accordionButton:1,expandText:'Expand',collapseText:'Collapse'},options);function refine(menu){const refined=menu.clone();const rm=refined.find('span.sf-sub-indicator');const rh=refined.find('.sf-smallscreen-remove');const mm=refined.find('ul.sf-multicolumn');for(let a=0;a<rh.length;a++)rh.eq(a).replaceWith(rh.eq(a).html());if(options.accordionButton===2||options.type==='select'){for(let b=0;b<rm.length;b++)rm.eq(b).remove();}if(mm.length>0){mm.removeClass('sf-multicolumn');const ol=refined.find('div.sf-multicolumn-column > ol');for(let o=0;o<ol.length;o++)ol.eq(o).replaceWith('<ul>'+ol.eq(o).html()+'</ul>');const elements=['div.sf-multicolumn-column','.sf-multicolumn-wrapper > ol','li.sf-multicolumn-wrapper'];for(let i=0;i<elements.length;i++){let obj=refined.find(elements[i]);for(let t=0;t<obj.length;t++)obj.eq(t).replaceWith(obj.eq(t).html());}refined.find('.sf-multicolumn-column').removeClass('sf-multicolumn-column');}refined.add(refined.find('*')).css({width:''});return refined;}function toSelect(menu,level){let items='';const childLI=$(menu).children('li');for(let a=0;a<childLI.length;a++){const list=childLI.eq(a);const parent=list.children('a, span');for(let b=0;b<parent.length;b++){const item=parent.eq(b);const path=(item.is('a')&&!!item.attr('href'))?item.attr('href'):'';const itemClone=item.clone();let classes=(options.hyperlinkClasses)?((options.excludeClass_hyperlink&&itemClone.hasClass(options.excludeClass_hyperlink))?itemClone.removeClass(options.excludeClass_hyperlink).attr('class'):itemClone.attr('class')):'';classes=(options.includeClass_hyperlink&&!itemClone.hasClass(options.includeClass_hyperlink))?((options.hyperlinkClasses)?itemClone.addClass(options.includeClass_hyperlink).attr('class'):options.includeClass_hyperlink):classe
13s;if(options.addSelected&&item.hasClass('active'))classes+=' active';classes=classes?' class="'+classes+'"':'';const disable=path===''||path==='#'?' disabled="disabled"':'';const subIndicator=1<level?Array(level).join('-')+' ':'';items+='<option value="'+path+'"'+classes+disable+'>'+subIndicator+item.text().trim()+'</option>';const childUL=list.find('> ul');for(let u=0;u<childUL.length;u++)items+=toSelect(childUL.eq(u),level+1);}}return items;}function convert(menu){const menuID=menu.attr('id');const refinedMenu=refine(menu);if(options.type==='accordion'){const toggleID=menuID+'-toggle';const accordionID=menuID+'-accordion';if($('#'+accordionID).length!==0)return;const styleClass=menu.attr('class').split(' ').filter(function(item){return item.indexOf('sf-style-')>-1?item:'';});const accordion=$(refinedMenu).attr('id',accordionID);accordion.removeClass('sf-horizontal sf-vertical sf-navbar sf-shadow sf-js-enabled');accordion.addClass('sf-accordion sf-hidden');accordion.find('li').each(function(){$(this).removeAttr('style').removeClass('sfHover').attr('id',$(this).attr('id')+'-accordion');});accordion.children('ul').removeAttr('style').not('.sf-hidden').addClass('sf-hidden');accordion.find('ul').each(function(){$(this).removeAttr('style').not('.sf-hidden').addClass('sf-hidden');});const toggle='<div class="sf-accordion-toggle '+styleClass+'"><a href="#" id="'+toggleID+'"><span>'+options.title+'</span></a></div>';if(options.accordionButton===2){accordion.addClass('sf-accordion-with-buttons');const parent=accordion.find('li.menuparent');for(let i=0;i<parent.length;i++)parent.eq(i).prepend('<a href="#" class="sf-accordion-button">'+options.expandText+'</a>');}menu.before(toggle).before(accordion).hide();const $accordionElement=$('#'+accordionID);const buttonElement=(options.accordionButton<2)?'a.menuparent,span.nolink.menuparent':'a.sf-accordion-button';const $button=$accordionElement.find(buttonElement);$('#'+toggleID).on('click',function(e){e.preventDefault();$(this).toggleClass('sf-expanded');if($accordionElement.hasClass('sf-expanded')){$accordionElement.add($accordionElement.find('li.sf-expanded')).removeClass('sf-expanded').end().children('ul').hide().end().hide().addClass('sf-hidden').show();if(options.accordionButton===2)$accordionElement.find('a.sf-accordion-button').text(options.expandText);}else $accordionElement.addClass('sf-expanded').hide().removeClass('sf-hidden').show();});$button.on('click',function(e){if($(this).closest('li').children('ul').length===0)return;e.preventDefault();const $parent=$(this).closest('li');if(options.accordionButton===1&&$parent.children('a.menuparent,span.nolink.menuparent').length>0&&$parent.children('ul').children('li.sf-clone-parent').length===0){let cloneLink=$parent.children('a.menuparent').clone();cloneLink.removeClass('menuparent sf-with-ul').children('.sf-sub-indicator').remove();cloneLink=$('<li class="sf-clone-parent" />').html(cloneLink);$parent.children('ul').addClass('sf-has-clone-parent').prepend(cloneLink);}if(options.accordionButton===0||options.accordionButton===1)$accordionElement.find('a.is-active:not(.menuparent)').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden');});if(options.accordionButton===2)$accordionElement.find('a.is-active').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden');});if($parent.hasClass('sf-expanded')){$parent.children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').show();});if(options.accordionButton===2&&$parent.children('.sf-accordion-button').length>0)$parent.children('.sf-accordion-button').text(options.expandText);}else $parent.children('ul').hide().removeClass('sf-hidden').slideDown('fast').end().addClass('sf-expanded').children('a.sf-accordion-button').text(options.collapseText).end().siblings('li.sf-expanded').children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').show();}).parent().children('a.sf-accordion-button').text(options.expandText);});}else{const menuClone=menu.clone();let classes=options.menuClasses?((options.excludeClass_menu&&menuClone.hasClass(options.excludeClass_menu))?menuClone.removeClass(options.excludeClass_menu).attr('class'):menuClone.attr('class')):'';classes=options.includeClass_menu&&!menuClone.hasClass(options.includeClass_menu)?((options.menuClasses)?menuClone.addClass(options.includeClass_menu).attr('class'):options.includeClass_menu):classes;
13classes=classes?' class="'+classes+'"':'';if($('#'+menuID+'-select').length!==0)return;const newMenu=toSelect(refinedMenu,1);const selectList=$('<select '+classes+' id="'+menuID+'-select"/>').html('<option>'+options.title+'</option>'+newMenu).change(function(){if($('option:selected',this).index())window.location=selectList.val();});if(options.addSelected)selectList.find('.active').attr('selected',!0);menu.before(selectList).hide();}}function turnBack(menu){const id='#'+menu.attr('id');$(id+'-'+options.type).remove();if(options.type==='accordion')$(id+'-toggle').parent('div').remove();$(id).css('display','');}for(let s=0;s<this.length;s++){const menu=$(this).eq(s);const mode=options.mode;if(menu.children('li').length===0){}else if(mode==='always_active')convert(menu);else if(mode==='window_width'){const breakpoint=options.breakpointUnit==='em'?options.breakpoint*parseFloat($('body').css('font-size')):options.breakpoint;const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;let timer;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else{if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);}$(window).resize(function(){clearTimeout(timer);timer=setTimeout(function(){const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);else turnBack(menu);},50);});}else if(mode==='useragent_custom'){if(options.useragent!==''){const ua=RegExp(options.useragent,'i');if(navigator.userAgent.match(ua))convert(menu);}}else{if(mode==='useragent_predefined'&&navigator.userAgent.match(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i))convert(menu);}}return this;};})(jQuery);;
14(function($){$.fn.supersubs=function(options){const superfish_options=$.extend({},$.fn.supersubs.defaults,options);let size;let o;for(let a=0;a<this.length;a++){let $$=$(this).eq(a);o=$.meta?$.extend({},superfish_options,$$.data()):superfish_options;if($$.hasClass('sf-navbar'))$$=$$.children('li').children('ul');let $ULs=$$.find('ul');if($ULs.length){let fontsize=$('<li id="menu-fontsize">&#8212;</li>');size=fontsize.attr('style','padding:0;position:absolute;top:-99999em;width:auto;').appendTo($$)[0].clientWidth;fontsize.remove();for(let b=0;b<$ULs.length;b++){let $ul=$ULs.eq(b);if(o.multicolumn&&$ul.hasClass('sf-multicolumn')&&$ul.find('.sf-multicolumn-column').length>0){let $column=$ul.find('div.sf-multicolumn-column > ol');let mwWidth=0;for(let d=0;d<$column.length;d++){resize($column.eq(d));let colWidth=Math.ceil($column.width());$column.css({width:colWidth}).parents('.sf-multicolumn-column').css({width:colWidth});mwWidth+=colWidth;}$ul.add($ul.find('li.sf-multicolumn-wrapper, li.sf-multicolumn-wrapper > ol')).css({width:mwWidth});}else resize($ul);}}}function resize($ul){const $LIs=$ul.children();const $As=$LIs.children('a');$LIs.css('white-space','nowrap');$ul.add($LIs).add($As).css({float:'none',width:'auto'});let emWidth=$ul.get(0).clientWidth/size;emWidth+=o.extraWidth;if(emWidth>o.maxWidth)emWidth=o.maxWidth;else{if(emWidth<o.minWidth)emWidth=o.minWidth;}emWidth+='em';$ul.css({width:emWidth});$LIs.add($As).css({float:'',width:'',whiteSpace:''});for(let c=0;c<$LIs.length;c++){let $childUl=$LIs.eq(c).children('ul');let offsetDirection=$childUl.css('left')!==undefined?'left':'right';$childUl.css(offsetDirection,'100%');}}return this;};$.fn.supersubs.defaults={multicolumn:true,minWidth:12,maxWidth:27,extraWidth:1};})(jQuery);;
15(function($){$.fn.supposition=function(){const $w=$(window);const _offset=function(dir){return window[dir==='y'?'pageYOffset':'pageXOffset']||document.documentElement&&document.documentElement[dir==='y'?'scrollTop':'scrollLeft']||document.body[dir==='y'?'scrollTop':'scrollLeft'];};const onHide=function(){this.css({bottom:''});};const onBeforeShow=function(){this.each(function(){const $u=$(this);$u.css('display','block');const $mul=$u.closest('.sf-menu');const level=$u.parents('ul').length;const menuWidth=$u.width();const menuParentWidth=$u.closest('li').outerWidth(true);const menuParentLeft=$u.closest('li').offset().left;const totalRight=$w.width()+_offset('x');const menuRight=$u.offset().left+menuWidth;const exactMenuWidth=menuRight>(menuParentWidth+menuParentLeft)?menuWidth-(menuRight-(menuParentWidth+menuParentLeft)):menuWidth;if($u.parents('.sf-js-enabled').hasClass('rtl')){if(menuParentLeft<exactMenuWidth){if($mul.hasClass('sf-horizontal')&&level===1||$mul.hasClass('sf-navbar')&&level===2)$u.css({left:0,right:'auto'});else $u.css({left:menuParentWidth+'px',right:'auto'});$u.parent().addClass('sf-supposition-active');}}else{if(menuRight>totalRight&&menuParentLeft>menuWidth){if($mul.hasClass('sf-horizontal')&&level===1||$mul.hasClass('sf-navbar')&&level===2)$u.css({right:0,left:'auto'});else $u.css({right:menuParentWidth+'px',left:'auto'});$u.parent().addClass('sf-supposition-active');}};const windowHeight=$w.height();const offsetTop=$u.offset().top;const menuParentShadow=$mul.hasClass('sf-shadow')&&$u.css('padding-bottom').length>0?parseInt($u.css('padding-bottom').slice(0,-2)):0;const menuParentHeight=$mul.hasClass('sf-vertical')?'-'+menuParentShadow:$u.parent().outerHeight(true)-menuParentShadow;const menuHeight=$u.height();const baseline=windowHeight+_offset('y');const expandUp=(offsetTop+menuHeight>baseline)&&(offsetTop>
15menuHeight);if(expandUp)$u.css({bottom:menuParentHeight+'px',top:'auto'});$u.css('display','none');});};return this.each(function(){const options=$.fn.superfish.optionsList[this.serial];const _onBeforeShow=options.onBeforeShow;const _onHide=options.onHide;$.extend($.fn.superfish.optionsList[this.serial],{onBeforeShow:function(){onBeforeShow.call(this);_onBeforeShow.call(this);},onHide:function(){onHide.call(this);_onHide.call(this);}});});};})(jQuery);;
16(function($){$.fn.sftouchscreen=function(options){options=$.extend({mode:'inactive',breakpoint:768,breakpointUnit:'px',useragent:'',behaviour:2,disableHover:false},options);function activate(menu){const eventHandler=(('ontouchstart' in window)||(window.DocumentTouch&&document instanceof DocumentTouch))?['click touchstart','mouseup touchend']:['click','mouseup'];menu.find('li:has(ul)').children('a,span.nolink').each(function(){const $item=$(this),parent=$item.closest('li');if(options.disableHover)parent.off('mouseenter mouseleave');if(options.behaviour===2)if(parent.children('a.menuparent,span.nolink.menuparent').length>0&&parent.children('ul').children('.sf-clone-parent').length===0){let cloneLink=parent.children('a.menuparent').clone();cloneLink=$('<li class="sf-clone-parent" />').html(cloneLink);cloneLink.find('.sf-sub-indicator').remove();parent.children('ul').addClass('sf-has-clone-parent').prepend(cloneLink);}$item.on(eventHandler[0],function(event){if($item.hasClass('sf-clicked'))if(options.behaviour===0){url=$item.attr('href');if(typeof (url)!='undefined')window.location=url;}else{if(options.behaviour===1||options.behaviour===2){event.preventDefault();$item.removeClass('sf-clicked');parent.hideSuperfishUl().find('a,span.nolink').removeClass('sf-clicked');}}else{event.preventDefault();$item.addClass('sf-clicked');parent.showSuperfishUl().siblings('li:has(ul)').hideSuperfishUl().find('.sf-clicked').removeClass('sf-clicked');}});});$(document).on(eventHandler[1],function(event){if(menu.not(event.target)&&menu.has(event.target).length===0){menu.find('.sf-clicked').removeClass('sf-clicked');menu.find('li:has(ul)').hideSuperfishUl();}});}for(let b=0;b<this.length;b++){const menu=$(this).eq(b),mode=options.mode;if(mode==='always_active')activate(menu);else if(mode==='window_width'){const breakpoint=(options.breakpointUnit==='em')?(options.breakpoint*parseFloat($('body').css('font-size'))):options.breakpoint;const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;let timer;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)activate(menu);else{if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))activate(menu);}$(window).resize(function(){clearTimeout(timer);timer=setTimeout(function(){const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)activate(menu);else{if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))activate(menu);}},50);});}else if(mode==='useragent_custom'){if(options.useragent!=''){const ua=RegExp(options.useragent,'i');if(navigator.userAgent.match(ua))activate(menu);}}else{if(mode==='useragent_predefined'&&navigator.userAgent.match(/(android|bb\d+|meego)|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i))activate(menu);}}return this;};})(jQuery);;

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.