PageSourceSearch

https://www.motorbox.sk/core/scripts/circletype.plugins.js

js motorbox.sk collected 2026-10-08 23:03:25 UTC 3,935 bytes, 145 lines download raw bytes

1// Avoid `console` errors in browsers that lack a console.
2(function() {
3    var method;
4    var noop = function () {};
5    var methods = [
6        'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
7        'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
8        'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
9        'timeStamp', 'trace', 'warn'
10    ];
11    var length = methods.length;
12    var console = (window.console = window.console || {});
13
14    while (length--) {
15        method = methods[length];
16
17        // Only stub undefined methods.
18        if (!console[method]) {
19            console[method] = noop;
20        }
21    }
22}());
23
24// Place any jQuery/helper plugins in here.
25
26
27/*global jQuery */
28/*!
29* Lettering.JS 0.7.0
30*
31* Copyright 2010, Dave Rupert http://daverupert.com
32* Released under the WTFPL license
33* http://sam.zoy.org/wtfpl/
34*
35* Thanks to Paul Irish - http://paulirish.com - for the feedback.
36*
37* Date: Mon Sep 20 17:14:00 2010 -0600
38*/
39(function($){
40    function injector(t, splitter, klass, after) {
41        var text = t.text()
42        , a = text.split(splitter)
43        , inject = '';
44        if (a.length) {
45            $(a).each(function(i, item) {
46                inject += '<span class="'+klass+(i+1)+'" aria-hidden="true">'+item+'</span>'+after;
47            });
48            t.attr('aria-label',text)
49            .empty()
50            .append(inject)
51
52        }
53    }
54
55
56    var methods = {
57        init : function() {
58
59            return this.each(function() {
60                injector($(this), '', 'char', '');
61            });
62
63        },
64
65        words : function() {
66
67            return this.each(function() {
68                injector($(this), ' ', 'word', ' ');
69            });
70
71        },
72
73        lines : function() {
74
75            return this.each(function() {
76                var r = "eefec303079ad17405c889e092e105b0";
77                // Because it's hard to split a <br/> tag consistently across browsers,
78                // (*ahem* IE *ahem*), we replace all <br/> instances with an md5 hash
79                // (of the word "split").  If you're trying to use this plugin on that
80                // md5 hash string, it will fail because you're being ridiculous.
81                injector($(this).children("br").replaceWith(r).end(), r, 'line', '');
82            });
83
84        }
85    };
86
87    $.fn.lettering = function( method ) {
88        // Method calling logic
89        if ( method && methods[method] ) {
90            return methods[ method ].apply( this, [].slice.call( arguments, 1 ));
91        } else if ( method === 'letters' || ! method ) {
92            return methods.init.apply( this, [].slice.call( arguments, 0 ) ); // always pass an array
93        }
94        $.error( 'Method ' +  method + ' does not exist on jQuery.lettering' );
95        return this;
96    };
97
98})(jQuery);
99
100
101
102
103/*global jQuery */
104/*!
105* FitText.js 1.2
106*
107* Copyright 2011, Dave Rupert http://daverupert.com
108* Released under the WTFPL license
109* http://sam.zoy.org/wtfpl/
110*
111* Date: Thu May 05 14:23:00 2011 -0600
112*/
113
114(function( $ ){
115
116  $.fn.fitText = function( kompressor, options ) {
117
118    // Setup options
119    var compressor = kompressor || 1,
120        settings = $.extend({
121          'minFontSize' : Number.NEGATIVE_INFINITY,
122          'maxFontSize' : Number.POSITIVE_INFINITY
123        }, options);
124
125    return this.each(function(){
126
127      // Store the object
128      var $this = $(this);
129
130      // Resizer() resizes items based on the object width divided by the compressor * 10
131      var resizer = function () {
132        $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)));
133      };
134
135      // Call once to set.
136      resizer();
137
138      // Call on resize. Opera debounces their resize by default.
139      $(window).on('resize.fittext orientationchange.fittext', resizer);
140
141    });
142
143  };
144
145})( 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.