PageSourceSearch

https://jsb.se/themes/custom/basetheme2/js/plugins/fit-text/settings.js?tlcgui

js jsb.se collected 2026-10-07 22:27:36 UTC 9,069 bytes, 143 lines download raw bytes

1(function ($) {
2
3	$(document).ready(function(){
4		fitText();
5	});
6
7
8	function fitText() {
9
10
11        console.log('fit-text.js loaded');
12
13		//$("#block-views-flexslider-block .top_slide_title h2").fitText(1.0, { minFontSize: '    24px', maxFontSize: '75px' });
14/*
15		$(".news_gallery_title h3").fitText(1.0, { minFontSize: '18px', maxFontSize: '24px' });
16		$(".page-header").fitText(1.0, { minFontSize: '20px', maxFontSize: '36px' });
17		$("#block-views-on-page-flexslider-block .top_slide_title h2").fitText(1.0, { minFontSize: '20px', maxFontSize: '36px' });
18		$(".paragraph-instagram_widget h2").fitText(1.2, { minFontSize: '20px', maxFontSize: '50px' });
19		$(".paragraph-events h2").fitText(1.2, { minFontSize: '20px', maxFontSize: '50px' });
20*/
21		
22		
23		
24		
25		  /**************************/
26		 /*     base font sizes    */
27		/**************************/
28
29		/* headers */
30                               $(".paragraph.paragraph_visual_header.layout-single .content h1").fitText(0.8, { minFontSize: '35px', maxFontSize: '75px' });
31                        		
32							   				$(".paragraph.paragraph_highlight .content .header").fitText(1.0, { minFontSize: '40px', maxFontSize: '90px' });
33										 $(".paragraph.paragraph_highlight .content .subheader").fitText(1.0, { minFontSize: '18px', maxFontSize: '52px' });
34									 $(".paragraph.paragraph_facts_with_sources .section-title").fitText(1.0, { minFontSize: '20px', maxFontSize: '36px' });
35												  $(".paragraph.paragraph_preamble .content h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
36                                                            $(".paragraph .content .linkbox h2").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
37                                              $(".paragraph.paragraph_job_listings .content h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
38                                                             $(".view_related_jobs .content h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
39      				  $(".paragraph.paragraph_news .content .views-element-container header h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
40     $(".paragraph.paragraph_current_news_articles .content .views-element-container header h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
41                                				 $(".node--type-news .content .text-content h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
42                                 $(".node--type-current-news-article .content .text-content h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
43                                              $(".node--type-project .content .text-content h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
44                                          $(".node--type-job-listing .content .text-content h1").fitText(1.5, { minFontSize: '26px', maxFontSize: '50px' });
45             $(".paragraph.paragraph_columns_auto .paragraph_contact .content .contact-info h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
46							$(".paragraph_columns_auto .paragraph_embedded_content .content h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
47			  		          $(".paragraph.paragraph_documents .content .segment.documents h1").fitText(0.8, { minFontSize: '24px', maxFontSize: '50px' });
48			  		          						$(".custom-webform.job_application_form h4").fitText(1.0, { minFontSize: '20px', maxFontSize: '36px' });
49			  		          
50			  		          
51		  		        $("body.page-node-type-error-message .layout-content .error-message h1").fitText(0.5, { minFontSize: '125px', maxFontSize: '200x' });
52                 
53
54                
55                 
56//     $(".paragraph.paragraph_infobox .content .field--name-field-link a").fitText(1.0, { minFontSize: '14px', maxFontSize: '20px' });
57
58		      
59						    $(".paragraph.paragraph_conceptbuilding .content .project-links h2").fitText(0.9, { minFontSize: '18px', maxFontSize: '36px' });
60							$(".paragraph.paragraph_conceptbuilding .content .project-links h5").fitText(0.9, { minFontSize: '16px', maxFontSize: '23px' });
61						  $(".paragraph.paragraph_conceptbuilding .content .project-links .cta").fitText(0.9, { minFontSize: '15px', maxFontSize: '20px' });
62	
63										 $(".paragraph .infobox .infobox-content .small-cta h2").fitText(0.9, { minFontSize: '20px', maxFontSize: '50px' });
64												 	  $(".paragraph.paragraph_text .content h1").fitText(1.5, { minFontSize: '24px', maxFontSize: '50px' });
65                        		          
66                        		          
67                        		          //$(".paragraph.paragraph_facts .content .additional-info .small-cta .link-title").fitText(1.1, { minFontSize: '15px', maxFontSize: '20px' });
68		
69		
70		
71		
72		/* large cta-texts, headers, etc. */
73        $(".paragraph.paragraph_visual_header.layout-two-tone .content h1").fitText(1.
730, { minFontSize: '35px', maxFontSize: '96px' });
74              $(".paragraph.paragraph_call_to_action .content .link-title").fitText(1.0, { minFontSize: '35px', maxFontSize: '75px'});
75                              $(".paragraph.paragraph_infobox .content h4").fitText(1.0, { minFontSize: '14px', maxFontSize: '36px' });
76                              
77                   $(".paragraph.paragraph_infobox .content h1.short-text").fitText(1.0, { minFontSize: '42px', maxFontSize: '77px' });
78                    $(".paragraph.paragraph_infobox .content h1.long-text").fitText(1.0, { minFontSize: '24px', maxFontSize: '46px' });
79        
80
81
82		/* sliders */
83        $(".paragraph.paragraph_slider .slider-item-content .text-content h4").fitText(1.0, { minFontSize: '24px', maxFontSize: '36px' });
84        $(".paragraph.paragraph_slider .slider-item-content .text-content h5").fitText(1.0, { minFontSize: '18px', maxFontSize: '23px' });
85
86		
87		/* smaller in-content titles/texts */
88										 $(".paragraph.paragraph_reference_project .text-content .title-content h4").fitText(0.6, { minFontSize: '24px', maxFontSize: '36px' });
89									$(".paragraph.paragraph_reference_project a .content .text-content .cta-button").fitText(1.4, { minFontSize: '16px', maxFontSize: '20px' });
90        $(".paragraph.paragraph_documents .content .segment.documents .document-section .document-section-title h5").fitText(0.6, { minFontSize: '18px', maxFontSize: '23px' });
91
92        $(".paragraph.paragraph_key_individuals_visual .content .key_individuals .field__items .field__item h5").fitText(1.2, { minFontSize: '19px', maxFontSize: '23px' });
93        $(".paragraph.paragraph_key_individuals_visual .content .key_individuals .field__items .field__item h6").fitText(1.6, { minFontSize: '13px', maxFontSize: '17px' });
94
95
96        // $(".page-node-type-contact-page .content .info-boxes .field--name-field-info-boxes .field__item .small-cta .link-title").fitText(1.6, { minFontSize: '14px', maxFontSize: '22px' });
97
98		
99		  /*****************************************************************/
100		 /*     custom font sizes (used on for example custom-onepages)   */
101		/*****************************************************************/
102		
103        //$("body.page-node-type-custom-onepage .paragraph.paragraph_visual_header.layout-two-tone .content h1").fitText(0.8, { minFontSize: '45px', maxFontSize: '175px' });
104    	$("body.page-node-type-custom-onepage .paragraph.paragraph_visual_header.layout-two-tone .content h1").fitText(0.8, { minFontSize: '35px', maxFontSize: '75px' });
105
106    		
107    		
108    		
109    		
110		
111		  /**************************/
112		 /*   startpage specific   */
113		/**************************/
114		// top
115		$(".paragraph.paragraph_landing_page_top .content h1").fitText(0.4, { minFontSize: '24px', maxFontSize: '280px' });
116		
117		// facts
118		$(".paragraph.paragraph_facts_with_sources .content .field_facts").fitText(2, { minFontSize: '24px', maxFontSize: '55px' });
119
120		// company profiles
121		$(".paragraph.paragraph_company_profile h2.section-title").fitText(0.6, { minFontSize: '24px', maxFontSize: '36px' });
122		$(".paragraph.paragraph_company_profile .text-content h2").fitText(0.7, { minFontSize: '30px', maxFontSize: '85px' });
123		$(".paragraph.paragraph_company_profile .text-content .field--name-field-text").fitText(1, { minFontSize: '18px', maxFontSize: '23px' });
124				
125		// slides
126		$(".paragraph.paragraph_full_page_scroll .content .column.scroll .slide-scroll h2").fitText(0.7, { minFontSize: '44px', maxFontSize: '85px' });
127		$(".paragraph.paragraph_full_page_scroll .content .column.scroll .slide-scroll .text").fitText(1, { minFontSize: '18px', maxFontSize: '23px' });
128
129
130		// tabs (LARGE text)
131		$(".paragraph.paragraph_tabs.tab-style-large_text .content .text").fitText(1.6, { minFontSize: '18px', maxFontSize: '55px' });
132		
133		// footer
134		$(".paragraph.paragraph_footer .content .column.column-1 .field--name-field-text").fitText(1, { minFontSize: '18px', maxFontSize: '22px' });
135		$(".paragraph.paragraph_footer .content .column.column-1 a").fitText(0.2, { minFontSize: '26px', maxFontSize: '45px' });
136
137
138	}
139
140
141	
142
143}(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.