PageSourceSearch

https://coopervision.in/sites/coopervision.in/files/js/js_T0qxblbS…ZSThUr1YwUQ4oBSax58-coVpQ7MhVMq4F_pNPK9erxA

js coopervision.in collected 2026-10-06 03:52:36 UTC 6,010 bytes, 7 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function($,window,i){$.fn.tinyNav=function(options){var settings=$.extend({'active':'selected','header':'','indent':'- ','label':''},options);return this.each(function(){i++;var $nav=$(this),namespace='tinynav',namespace_i=namespace+i,l_namespace_i='.l_'+namespace_i,$select=$('<select/>').attr("id",namespace_i).addClass(namespace+' '+namespace_i);if($nav.is('ul,ol')){if(settings.header!=='')$select.append($('<option/>').text(settings.header));var options='';$nav.addClass('l_'+namespace_i).find('a').each(function(){options+='<option value="'+$(this).attr('href')+'">';var j;for(j=0;j<$(this).parents('ul, ol').length-1;j++)options+=settings.indent;options+=$(this).text()+'</option>';});$select.append(options);$activeIndex=$(l_namespace_i+' li').index($(l_namespace_i+' li.'+settings.active));$select.find(':eq('+($activeIndex+(settings.header!==''?1:0))+')').attr('selected',true);$select.change(function(){window.location.href=$(this).val();});$(l_namespace_i).after($select);if(settings.label)$select.before($("<label/>").attr("for",namespace_i).addClass(namespace+'_label '+namespace_i+'_label').append(settings.label));}});};})(jQuery,this,0);;
3(function($){Drupal.behaviors.cvContact={attached:false,attach:function(context){if(Drupal.behaviors.cvContact.attached||context!==document)return;Drupal.behaviors.cvContact.attached=true;if(typeof $.fn.tinyNav!=='undefined'){$('.contact-tinynav ul.nav').tinyNav({active:'menu-item--active-trail',header:'- Please Choose -',label:'Select an interest area <span class="form-required" title="This field is required."></span>'}).hide();$('.contact-tinynav select.tinynav option:eq(0)').val('/our-company/contact-us');}$('#skip-link a').click(function(e){e.preventDefault();let target=$(this).attr('href');$(target).attr('tabindex','-1').focus();});}};Drupal.behaviors.cvLoggedInOnly={attach:function(context){$('body.not-logged-in .logged-in-only').each(function(){$(this).remove();});}};Drupal.behaviors.cvFontsNetTracking={scriptURL:'//hello.myfonts.net/count/4249a0',imported:false,attach:function(context){if(typeof Drupal.cv_onetrust==="undefined")this.importFontsNet();else $(document).on('OneTrustGroupsUpdated',function(){if(Drupal.cv_onetrust.hasFunctionalConsent())Drupal.behaviors.cvFontsNetTracking.importFontsNet();});},importFontsNet:function(){if(!this.imported){$.get(this.scriptURL);this.imported=true;}}};Drupal.behaviors.cvCollapseValidation={attach:function(context){$(once('collapseValidation','details input, details textarea, details select',context)).on('invalid',function(e){$(e.target).parents('details:not([open])').each(function(){$(this).attr('open','');});});}};Drupal.behaviors.cvSidebarBlockTitles={attach:function(context){$(once('cvSidebarBlockTitles','.sidebar--first div.block-title',context)).each(function(){let $newtag=$('<h2 class="block-title"></h2>');let thisId=$(this).attr('id');if(thisId)$newtag.attr('id',thisId);$(this).wrapAll($newtag);$(this).contents().unwrap();});}};})(jQuery);;
4(function($,Drupal){Drupal.behaviors.cvMediaSettings={attach:function(context,settings){function autoplayVideos(){$('video[autoplay]').each(function(){$(this).get(0).play();});}$(once('muted-videos','video[muted]',context)).attr('aria-hidden','true');if(!once('video','html').length)return;$(window).on('load',function(){if($(window).width()>=601)autoplayVideos();});}};})(jQuery,Drupal);;
5(function(){Drupal.behaviors.searchQueryTrim={attach:function(context){once('search-query-trim','form[id^=search-api-page]').forEach(function(form){form.addEventListener('submit',function(e){form.querySelectorAll('input[name=keys]').forEach(function(input){input.value=input.value.trim();});});});}};})();;
6(function($){Drupal.behaviors.siteSwitchJumpMenu={attach:function(context){once('site-switch-jump-menu','.toolbar-icon-cv-site-switch-admin-site-switch').forEach(function(link){const container=$(link).parent();container.removeClass('menu-item--expanded');const dropdown=container.find('ul');const header='- '+Drupal.t('Other Sites')+' -';dropdown.tinyNav({header,indent:''});dropdown.hide();const tinynav=container.find('select.tinynav');tinynav.find('option:not([value])').attr('value','');$(link).replaceWith(tinynav);window.addEventListener('pageshow',function(){tinynav[0].value='';});});}};})(jQuery);;
7(function($){Drupal.behaviors.titleTextFit={config:{minFontSize:12,fitElementSelector:['.homepage-slideshow__title','.hero__title'],mutationElementSelector:'.homepage-slideshow .homepage-bxslider',fittedClass:'fitted'},attach:function(context){const that=this;const applyTextFit=function(){that.config.fitElementSelector.forEach(function(element){$(element,context).each(function(){setTimeout(()=>{that.textFit(this);});});});};applyTextFit();window.addEventListener('cv_homepage_slideshow_loaded',function(){const observer=new MutationObserver(applyTextFit);observer.observe(document.querySelector(that.config.mutationElementSelector),{attributes:true,subtree:true});applyTextFit();});},innerWidth:function(el){const style=window.getComputedStyle(el,null);return el.clientWidth-parseInt(style.getPropertyValue('padding-left'),10)-parseInt(style.getPropertyValue('padding-right'),10);},textFit:function(el){if(el.classList.contains(this.config.fittedClass))return;const originalWidth=this.innerWidth(el);if(originalWidth==0)return;const innerSpan=document.createElement('span');innerSpan.className='textFitted';innerSpan.style['display']='inline-block';innerSpan.style['word-break']='keep-all';innerSpan.style['white-space']='nowrap';innerSpan.innerHTML=el.innerHTML;el.innerHTML='';el.appendChild(innerSpan);let low=this.config.minFontSize;let high=parseInt(window.getComputedStyle(el).fontSize.replace('px',''));let mid;while(low<=high){mid=parseInt((low+high)/2,10);innerSpan.style.fontSize=mid+'px';if(innerSpan.scrollWidth<=originalWidth)low=mid+1;else high=mid-1;}innerSpan.style.fontSize=(mid-1)+'px';el.classList.add('fitted');}};})(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.