PageSourceSearch

https://2021.ref.ac.uk/assets/js/jquery.tap.js

js ref.ac.uk collected 2026-09-24 08:38:26 UTC 1,048 bytes, 1 lines download raw bytes

1!function(n,t){var e=0,i=0;n.fn.tap=function(t,c,o){return"function"==typeof t&&(o=c,c=t,t=15),"ontouchstart"in window?this.each(function(){var o=0,r=null,a=++e,l=null,u=!1,h=this,s=n(this),p=null;s.click(function(){null!=p&&Date.now()<p||c.apply(h,arguments)}),s.bind("touchstart",function(n){0==i&&(i=a,u=!0,o=0,n.originalEvent.touches&&n.originalEvent.touches[0]&&(r=n.originalEvent.touches[0],l={x:r.screenX,y:r.screenY,px:r.pageX,py:r.pageY,cx:r.clientX,cy:r.clientY}))}),s.bind("touchend",function(n){i==a&&(i=0),u&&(u=!1,t>o?(p=Date.now()+600,n.pageX=l.px,n.pageY=l.py,n.clientX=l.cx,n.clientY=l.cy,n.screenX=l.x,n.scrrenY=l.y,c.apply(h,arguments)):s.trigger("tap-failed"))}),s.bind("touchmove",function(n){if(u){if(0==n.originalEvent.touches.length||null===l)return u=!1;r=n.originalEvent.touches[0],(o=Math.sqrt(Math.pow(r.screenX-l.x,2)+Math.pow(r.screenY-l.y,2)))>t&&(s.trigger("exceed-tap-threshold"),u=!1)}}),s.bind("touchcancel",function(){i==a&&(i=0),u=!1,s.trigger("tap-failed")})}):o||this.click(c),this}}(window.jQuery||window.$);

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.