PageSourceSearch

https://institutvilley.com/wp-content/themes/Avada/includes/lib/as…/fusion-responsive-typography.js?ver=1

js institutvilley.com collected 2026-10-02 10:34:21 UTC 3,435 bytes, 1 lines download raw bytes

1function fusionCalculateResponsiveTypeValues(e,t,i,n){fusionSetOriginalTypographyData(n)}function fusionSetOriginalTypographyData(e){var t="string"==typeof e&&-1!==e.indexOf("fusion-slider");fusion.getElements(e).forEach(function(e){var i,n,o;e.classList.contains("fusion-responsive-typography-calculated")?e.style.getPropertyValue("--fontSize")&&""!==e.style.getPropertyValue("--fontSize")||e.classList.remove("fusion-responsive-typography-calculated"):null!==e.closest(".fusion-slider-revolution")||null!==e.closest(".rev_slider")||null!==e.closest("#layerslider-container")||null!==e.closest(".ls-avada.ls-container")||null!==e.closest(".fusion-slider-container")&&!t||(i=window.getComputedStyle(e),n=!!i["font-size"]&&parseFloat(i["font-size"]),o=!!i["line-height"]&&parseFloat(i["line-height"]),!1!==n&&!1!==o&&(o=Math.round(o/n*100)/100,e.style.setProperty("--fontSize",n),e.setAttribute("data-fontsize",n),e.style.lineHeight=o,e.setAttribute("data-lineheight",i["line-height"]),window.fusionBaseFontSize||(window.fusionBaseFontSize=getComputedStyle(document.documentElement).getPropertyValue("--base-font-size")),window.fusionBaseFontSize*fusionTypographyVars.typography_factor>n&&e.style.setProperty("--minFontSize",n),e.querySelectorAll(".fusion-animated-texts-wrapper").forEach(function(e){var t=window.getComputedStyle(e),i=!!t["font-size"]&&parseFloat(t["font-size"]),o=!!t["line-height"]&&parseFloat(t["line-height"]);e.style.fontSize=i/n+"em",e.style.lineHeight=Math.round(o/i*100)/100}),e.classList.add("fusion-responsive-typography-calculated")))})}function fusionInitTypography(){window.responsiveTypeElements=fusionTypographyVars.elements,0<fusionTypographyVars.typography_sensitivity&&fusionSetOriginalTypographyData(window.responsiveTypeElements)}document.body.classList.contains("fusion-builder-live")?window.onload=fusionInitTypography:fusion.ready(function(){fusionInitTypography()}),document.body.addEventListener("fusion-typography",function(e){var t,i=e.detail.heading,n=e.detail.values;fusion.getElements(i).forEach(function(e){t=window.getComputedStyle(e),""!==e.parentNode.style.fontSize&&e.parentNode.classList.contains("fusion-title")?e.style.fontSize="1em":e.parentNode.getAttribute("data-inline-fontsize")&&e.getAttribute("data-inline-fontsize")?e.style.fontSize=e.getAttribute("data-inline-fontsize"):e.style.fontSize=n["font-size"],e.getAttribute("data-inline-lineheight")&&e.getAttribute("data-inline-lineheight")?e.style.lineHeight=e.getAttribute("data-inline-lineheight"):e.style.lineHeight=n["line-height"],e.setAttribute("data-fontsize",parseFloat(t["font-size"])),e.style.setProperty("--fontSize",parseFloat(t["font-size"])),e.classList.add("fusion-responsive-typography-calculated")})}),jQuery(document).ajaxComplete(function(){0<fusionTypographyVars.typography_sensitivity&&fusionSetOriginalTypographyData(window.responsiveTypeElements)}),jQuery(window).on("fusion-typography-reset",function(e,t){"undefined"!=typeof fusionTypographyVars&&0!==parseFloat(fusionTypographyVars.typography_sensitivity)&&fusionSetOriginalTypographyData(jQuery('div[data-cid="'+t+'"]').find(window.responsiveTypeElements))}),document.body.style.setProperty("--viewportWidth",window.screen.width),window.addEventListener("resize",function(){document.body.style.setProperty("--viewportWidth",window.screen.width)}),jQuery(window).on("load",function(){fusionSetOriginalTypographyData(window.responsiveTypeElements)});

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.