PageSourceSearch

https://www.fquadrat-systemberatung.de/valhalla-js-3.6/polyfills/polyfill.js

js fquadrat-systemberatung.de collected 2026-10-07 04:59:32 UTC 6,285 bytes, 104 lines download raw bytes

1// POLYFILL FOR
2// FLEX BOX WRAP
3// ( SAME HIGHT FOR CHILD ELEMENTS )
4
5
6;( function( $, window, document, undefined )
7		{
8		    'use strict';
9		 
10		    var s = document.body || document.documentElement, s = s.style;
11		    if( s.webkitFlexWrap == '' || s.msFlexWrap == '' || s.flexWrap == '' ) return true;
12
13			 
14		    var setHeights  = function()
15		    {
16		    	var lists       = $( '#content .row.sameChildHeight' );
17		    	for (var index = 0; index < lists.length; index++)
18		    	{
19		   		var list = $(lists[index]);
20                var rowWidth =  list.width();
21
22                
23		        var items      = list.find( '>*' );
24
25		        items.css( 'height', 'auto' );
26
27
28
29	            	var row = [];
30	                var maxHeight   = 0;
31	                var currRowWidth = 0;
32	
33		            for( var i = 0; i < items.length; i ++ )
34		            {
35
36		            	currRowWidth += $(items[i]).width();
37		            	var itemHeight = parseInt( $(items[i]).outerHeight() );
38		            	
39		            	if ( currRowWidth <= rowWidth || i == items.length - 1) {
40		                    if ( itemHeight > maxHeight ) maxHeight = itemHeight;
41		                    row.push(items[i]);										
42						}
43
44						if ( currRowWidth >= rowWidth || i == items.length - 1) {
45							
46			                $(row).each( function()
47							{
48					                $(this).css( 'height', maxHeight );
49							});
50
51			                row = [];
52
53							if ( currRowWidth > rowWidth) {
54				                // tooManyItemsInRow
55
56								row.push(items[i]);										
57				            	currRowWidth = $(items[i]).width();
58				                maxHeight = itemHeight;					            	
59							        
60							}
61							else {
62				                maxHeight   = 0;
63				                currRowWidth = 0;					
64							}			                
65
66						}
67
68		            }
69
70		        };
71			}
72			
73		    $(document).on('ready', function(){ setTimeout(setHeights, 1000)});
74		    $( window ).on( 'resize', function(){ setTimeout(setHeights, 1000)});
75		  
76		 
77		})( jQuery, window, document );
78                
79                
80                
81
82$(document).on('readyLater', function(){
83    
84    // POLYFILL FOR IE
85    // object-position | object-fit
86    var ua = window.navigator.userAgent;
87    var msie = ua.indexOf("MSIE ");
88    
89    if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))  // If Internet Explorer, return version number
90    {        
91        $('[data-module="Picture"] img').each(function()  {
92            var image = $(this);
93            var imgFit = image[0].currentStyle.getAttribute('object-fit');
94            var imgPos = image[0].currentStyle.getAttribute('object-position');
95            if (imgPos == null) imgPos = '50% 50%';
96            image.css('font-family', '"object-fit: ' + imgFit +'; object-position: ' + imgPos +';"' );  
97        });
98        /*! npm.im/object-fit-images 3.2.4 */
99        var objectFitImages=function(){"use strict";function t(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+t+"' height='"+e+"'%3E%3C/svg%3E"}function e(t){if(t.srcset&&!p&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillImg(t,{reselect:!0}),t[e.ns].curSrc||(t[e.ns].supported=!1,e.fillImg(t,{reselect:!0})),t.currentSrc=t[e.ns].curSrc||t.src}}function i(t){for(var e,i=getComputedStyle(t).fontFamily,r={};null!==(e=u.exec(i));)r[e[1]]=e[2];return r}function r(e,i,r){var n=t(i||1,r||0);b.call(e,"src")!==n&&h.call(e,"src",n)}function n(t,e){t.naturalWidth?e(t):setTimeout(n,100,t,e)}function c(t){var c=i(t),o=t[l];if(c["object-fit"]=c["object-fit"]||"fill",!o.img){if("fill"===c["object-fit"])return;if(!o.skipTest&&f&&!c["object-position"])return}if(!o.img){o.img=new Image(t.width,t.height),o.img.srcset=b.call(t,"data-ofi-srcset")||t.srcset,o.img.src=b.call(t,"data-ofi-src")||t.src,h.call(t,"data-ofi-src",t.src),t.srcset&&h.call(t,"data-ofi-srcset",t.srcset),r(t,t.naturalWidth||t.width,t.naturalHeight||t.height),t.srcset&&(t.srcset="");try{s(t)}catch(t){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}e(o.img),t.style.backgroundImage='url("'+(o.img.currentSrc||o.img.src).replace(/"/g,'\\"')+'")',t.style.backgroundPosition=c["object-position"]||"center",t.style.backgroundRepeat="no-repeat",t.style.backgroundOrigin="content-box",/scale-down/.test(c["object-fit"])?n(o.img,function(){o.img.naturalWi
vendor: 1,811 bytes, lines 99-104
99dth>t.width||o.img.naturalHeight>t.height?t.style.backgroundSize="contain":t.style.backgroundSize="auto"}):t.style.backgroundSize=c["object-fit"].replace("none","auto").replace("fill","100% 100%"),n(o.img,function(e){r(t,e.naturalWidth,e.naturalHeight)})}function s(t){var e={get:function(e){return t[l].img[e?e:"src"]},set:function(e,i){return t[l].img[i?i:"src"]=e,h.call(t,"data-ofi-"+i,e),c(t),e}};Object.defineProperty(t,"src",e),Object.defineProperty(t,"currentSrc",{get:function(){return e.get("currentSrc")}}),Object.defineProperty(t,"srcset",{get:function(){return e.get("srcset")},set:function(t){return e.set(t,"srcset")}})}function o(){function t(t,e){return t[l]&&t[l].img&&("src"===e||"srcset"===e)?t[l].img:t}d||(HTMLImageElement.prototype.getAttribute=function(e){return b.call(t(this,e),e)},HTMLImageElement.prototype.setAttribute=function(e,i){return h.call(t(this,e),e,String(i))})}function a(t,e){var i=!y&&!t;if(e=e||{},t=t||"img",d&&!e.skipTest||!m)return!1;"img"===t?t=document.getElementsByTagName("img"):"string"==typeof t?t=document.querySelectorAll(t):"length"in t||(t=[t]);for(var r=0;r<t.length;r++)t[r][l]=t[r][l]||{skipTest:e.skipTest},c(t[r]);i&&(document.body.addEventListener("load",function(t){"IMG"===t.target.tagName&&a(t.target,{skipTest:e.skipTest})},!0),y=!0,t="img"),e.watchMQ&&window.addEventListener("resize",a.bind(null,t,{skipTest:e.skipTest}))}var l="fregante:object-fit-images",u=/(object-fit|object-position)\s*:\s*([-.\w\s%]+)/g,g="undefined"==typeof Image?{style:{"object-position":1}}:new Image,f="object-fit"in g.style,d="object-position"in g.style,m="background-size"in g.style,p="string"==typeof g.currentSrc,b=g.getAttribute,h=g.setAttribute,y=!1;return a.supportsObjectFit=f,a.supportsObjectPosition=d,o(),a}();
100        objectFitImages();
101
102    }
103
104});

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.