PageSourceSearch

https://www.offshore-protection.com/media/com_jchoptimize/cache/js…044302556099c17796e5caeb827b7693f0257d37.js

js offshore-protection.com collected 2026-10-02 06:42:08 UTC 1,930 bytes, 9 lines download raw bytes

1var tableOfContents=function(content,target,options){var contentWrap=document.querySelector(content);var toc=document.querySelector(target);if(!contentWrap||!toc)return;var defaults={levels:'h2, h3, h4, h5, h6',heading:'Table of Contents',headingLevel:'h2',headingClass:'',listType:'ul',scrollspy:''};var settings={};var headings;var merge=function(obj){for(var key in defaults){if(Object.prototype.hasOwnProperty.call(defaults,key)){settings[key]=Object.prototype.hasOwnProperty.call(obj,key)?obj[key]:defaults[key];}}};var createID=function(heading){if(heading.id.length)return;heading.id='toc_'+heading.textContent.replace(/[^A-Za-z0-9]/g,'');};var getIndent=function(count){var html='';for(var i=0;i<count;i++){html+='<'+settings.listType+'>';}
2return html;};var getOutdent=function(count){var html='';for(var i=0;i<count;i++){html+='</'+settings.listType+'></li>';}
3return html;};var getStartingHTML=function(diff,index){if(diff>0){return getIndent(diff);}
4if(diff<0){return getOutdent(Math.abs(diff));}
5if(index&&!diff){return'</li>';}
6return'';};var injectTOC=function(){var level=headings[0].tagName.slice(1);var startingLevel=level;var len=headings.length-1;toc.innerHTML='<'+settings.headingLevel+' class="'+settings.headingClass+'">'+settings.heading+'</'+settings.headingLevel+'>'+'<'+settings.listType+settings.scrollspy+'>'+
7Array.prototype.map.call(headings,function(heading,index){createID(heading);var currentLevel=heading.tagName.slice(1);var levelDifference=currentLevel-level;level=currentLevel;var html=getStartingHTML(levelDifference,index);html+='<li>'+'<a uk-scroll="offset:0" href="#'+heading.id+'">'+
8heading.innerHTML.trim()+'</a>';if(index===len){html+=getOutdent(Math.abs(startingLevel-currentLevel));}
9return html;}).join('')+'</'+settings.listType+'>';};var init=function(){merge(options||{});headings=contentWrap.querySelectorAll(settings.levels);if(!headings.length)return;injectTOC();};init();};

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.