PageSourceSearch

https://www.lemelson.org/wp-content/themes/hotpepper_v5/assets/js/shave/jquery.shave.min.js?ver=5.0.1790274477

js lemelson.org collected 2026-09-24 18:28:36 UTC 1,686 bytes, 8 lines download raw bytes

1/**
2  shave - Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
3  @version v2.5.7
4  @link https://github.com/dollarshaveclub/shave#readme
5  @author Jeff Wainwright <[email protected]> (jeffry.in)
6  @license MIT
7**/
8!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";if("undefined"!=typeof window){var e=window.$||window.jQuery||window.Zepto;e&&(e.fn.shave=function(e,t){return function(e,t,n){var i=2<arguments.length&&void 0!==n?n:{};if(void 0===t||isNaN(t))throw Error("maxHeight is required");var a="string"==typeof e?document.querySelectorAll(e):e;if(a){var o=i.character||"…",r=i.classname||"js-shave",s="boolean"!=typeof i.spaces||i.spaces,c='<span class="js-shave-char">'.concat(o,"</span>");"length"in a||(a=[a]);for(var h=0;h<a.length;h+=1){var d=a[h],l=d.style,f=d.querySelector(".".concat(r)),v=void 0===d.textContent?"innerText":"textContent";f&&(d.removeChild(d.querySelector(".js-shave-char")),d[v]=d[v]);var g=d[v],u=s?g.split(" "):g;if(!(u.length<2)){var p=l.height;l.height="auto";var m=l.maxHeight;if(l.maxHeight="none",d.offsetHeight<=t)l.height=p,l.maxHeight=m;else{for(var y=u.length-1,j=0,w=void 0;j<y;)w=j+y+1>>1,d[v]=s?u.slice(0,w).join(" "):u.slice(0,w),d.insertAdjacentHTML("beforeend",c),d.offsetHeight>t?y=w-1:j=w;d[v]=s?u.slice(0,y).join(" "):u.slice(0,y),d.insertAdjacentHTML("beforeend",c);var x=s?" ".concat(u.slice(y).join(" ")):u.slice(y),H=document.createTextNode(x),b=document.createElement("span");b.classList.add(r),b.style.display="none",b.appendChild(H),d.insertAdjacentElement("beforeend",b),l.height=p,l.maxHeight=m}}}}}(this,e,t),this})}});

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.