PageSourceSearch

https://www.actusoins.com/wp-content/cache/min/1/wp-content/plugin…/js/maxbuttons_fonts.js?ver=1790763332

js actusoins.com collected 2026-10-02 11:11:41 UTC 2,022 bytes, 18 lines download raw bytes

1'use strict';class MaxFonts
2{system_fonts=['','Arial','Courier New','Georgia','Tahoma','Times New Roman','Trebuchet MS','Verdana'];base_url='//fonts.googleapis.com/css?family=';Init(){}
3CheckFonts(){}
4LoadFontFamily(){}
5CreateFontFamilyURL(font_family){if(this.system_fonts.indexOf(font_family)>=0)
6return"";var family=font_family.replace(/\s/g,'+');return this.base_url+family}}
7jQuery(document).ready(function($){doFontCheck($);$(document).on('media_button_content_buttons_load',{jq:$},fontEvent)});function fontEvent(e){doFontCheck(e.data.jq)}
8function doFontCheck($){var modal=document.querySelector('.max-modal');var check_fonts=[];if(typeof fonts_loaded=='undefined')
9fonts_loaded=[];if(modal){var nodeList=modal.querySelectorAll('.maxbutton');for(var i=0;i<nodeList.length;i++){var item=nodeList[i];var ff=window.getComputedStyle(item,':after').getPropertyValue('font-family');if(ff&&ff.length>0)
10check_fonts.push(ff)}}
11$('.mb-text, .mb-text2').each(function(){var ff=$(this).css('fontFamily');var weight=$(this).css('fontWeight');if(typeof $(this).data('nofont')!=='undefined'){return}
12if(typeof ff==='undefined')
13return;check_fonts.push(ff)});for(var i=0;i<check_fonts.length;i++){var ff=check_fonts[i];ff=ff.replace(/\'|\"|/g,'');var font_found=!1;for(var j=0;j<fonts_loaded.length;j++){if(fonts_loaded[j]==ff){font_found=!0;continue}}
14if(!1===font_found){fonts_loaded.push(ff);mbpro_loadFontFamilyStylesheet(ff)}}}
15function mbpro_loadFontFamilyStylesheet(font_family){if(font_family.indexOf(",",font_family)>=0)
16return;var font_family_url=mbpro_getFontFamilyUrl(font_family);if(font_family_url!=""){jQuery("head").append("<link rel='stylesheet' type='text/css' href='"+font_family_url+"' />")}}
17function mbpro_getFontFamilyUrl(font_family){var system_fonts=['','Arial','Courier New','Georgia','Tahoma','Times New Roman','Trebuchet MS','Verdana'];if(system_fonts.indexOf(font_family)>=0)
18return"";var base_url='//fonts.googleapis.com/css?family=';var family=font_family.replace(/\s/g,'+');return base_url+family}

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.