PageSourceSearch

https://summerhillgroup.co.uk/WebResource.axd?d=S1kkcidchAAmbJ9Peh…3UwmXZKGJIzxojJP6hICU0&t=635815326621611945

js summerhillgroup.co.uk collected 2026-10-07 06:40:12 UTC 10,526 bytes, 325 lines download raw bytes

1Sitefinity.FadeEffect = function(elId, sred, sgreen, sblue, ered, egreen, eblue, step)
2 {
3    this.id = Sitefinity.FadeEffect.cnt;
4    this.elId = elId;
5    this.sred = sred;
6    this.sgreen = sgreen;
7    this.sblue = sblue;
8    this.ered = ered;
9    this.egreen = egreen;
10    this.eblue = eblue;
11    this.step = step;
12    this.counter = step;
13    Sitefinity.FadeEffect.objects[Sitefinity.FadeEffect.cnt++] = this;
14
15    this.fade = function()
16 {
17        if (this.counter > 0) 
18{
19            var red = Math.floor(this.ered * this.counter / this.step + this.sred * ((this.step - this.counter) / this.step));
20            var green = Math.floor(this.egreen * this.counter / this.step + this.sgreen * ((this.step - this.counter) / this.step));
21            var blue = Math.floor(this.eblue * this.counter / this.step + this.sblue * ((this.step - this.counter) / this.step));
22            var el = document.getElementById(this.elId);
23            if (el != null) {
24                el.style.backgroundColor = "#" + this.toHex(red) + this.toHex(green) + this.toHex(blue);
25                setTimeout('Sitefinity.FadeEffect.objects[' + this.id + '].fade();', (this.step - this.counter));
26                this.counter--;
27            }
28        }
29    }
30
31    this.toHex = function(dec) 
32{
33        var hexCharacters = "0123456789ABCDEF"
34        if (dec < 0)
35            return "00"
36        if (dec > 255)
37            return "FF"
38        var i = Math.floor(dec / 16)
39        var j = dec % 16
40        return hexCharacters.charAt(i) + hexCharacters.charAt(j)
41    }
42}
43
44Sitefinity.FadeEffect.cnt = 0;
45Sitefinity.FadeEffect.objects = new Array();
46
47Sitefinity.RGBColor = function(color_string)
48{
49    this.ok = false;
50
51    // strip any leading #
52    if (color_string.charAt(0) == '#') { // remove # if any
53        color_string = color_string.substr(1,6);
54    }
55
56    color_string = color_string.replace(/ /g,'');
57    color_string = color_string.toLowerCase();
58
59    // before getting into regexps, try simple matches
60    // and overwrite the input
61    var simple_colors = {
62        aliceblue: 'f0f8ff',
63        antiquewhite: 'faebd7',
64        aqua: '00ffff',
65        aquamarine: '7fffd4',
66        azure: 'f0ffff',
67        beige: 'f5f5dc',
68        bisque: 'ffe4c4',
69        black: '000000',
70        blanchedalmond: 'ffebcd',
71        blue: '0000ff',
72        blueviolet: '8a2be2',
73        brown: 'a52a2a',
74        burlywood: 'deb887',
75        cadetblue: '5f9ea0',
76        chartreuse: '7fff00',
77        chocolate: 'd2691e',
78        coral: 'ff7f50',
79        cornflowerblue: '6495ed',
80        cornsilk: 'fff8dc',
81        crimson: 'dc143c',
82        cyan: '00ffff',
83        darkblue: '00008b',
84        darkcyan: '008b8b',
85        darkgoldenrod: 'b8860b',
86        darkgray: 'a9a9a9',
87        darkgreen: '006400',
88        darkkhaki: 'bdb76b',
89        darkmagenta: '8b008b',
90        darkolivegreen: '556b2f',
91        darkorange: 'ff8c00',
92        darkorchid: '9932cc',
93        darkred: '8b0000',
94        darksalmon: 'e9967a',
95        darkseagreen: '8fbc8f',
96        darkslateblue: '483d8b',
97        darkslategray: '2f4f4f',
98        darkturquoise: '00ced1',
99        darkviolet: '9400d3',
100        deeppink: 'ff1493',
101        deepskyblue: '00bfff',
102        dimgray: '696969',
103        dodgerblue: '1e90ff',
104        feldspar: 'd19275',
105        firebrick: 'b22222',
106        floralwhite: 'fffaf0',
107        forestgreen: '228b22',
108        fuchsia: 'ff00ff',
109        gainsboro: 'dcdcdc',
110        ghostwhite: 'f8f8ff',
111        gold: 'ffd700',
112        goldenrod: 'daa520',
113        gray: '808080',
114        green: '008000',
115        greenyellow: 'adff2f',
116        honeydew: 'f0fff0',
117        hotpink: 'ff69b4',
118        indianred : 'cd5c5c',
119        indigo : '4b0082',
120        ivory: 'fffff0',
121        khaki: 'f0e68c',
122        lavender: 'e6e6fa',
123        lavenderblush: 'fff0f5',
124        lawngreen: '7cfc00',
125        lemonchiffon: 'fffacd',
126        lightblue: 'add8e6',
127        lightcoral: 'f08080',
128        lightcyan: 'e0ffff',
129        lightgoldenrodyellow: 'fafad2',
130        lightgrey: 'd3d3d3',
131        lightgreen: '90ee90',
132        lightpink: 'ffb6c1',
133        lightsalmon: 'ffa07a',
134        lightseagreen: '20b2aa',
135        lightskyblue: '87cefa',
136        lightslateblue: '8470ff',
137        lightslategray: '778899',
138        lightsteelblue: 'b0c4de',
139        lightyellow: 'ffffe0',
140        lime: '00ff00',
141        limegreen: '32cd32',
142        linen: 'faf0e6',
143        magenta: 'ff00ff',
144        maroon: '800000',
145        mediumaquamarine: '66cdaa',
146        mediumblue: '0000cd',
147        mediumorchid: 'ba55d3',
148        mediumpurple: '9370d8',
149        mediumseagreen: '3cb371',
150        mediumslateblue: '7b68ee',
151        mediumspringgreen: '00fa9a',
152        mediumturquoise: '48d1cc',
153        mediumvioletred: 'c71585',
154        midnightblue: '191970',
155        mintcream: 'f5fffa',
156        mistyrose: 'ffe4e1',
157        moccasin: 'ffe4b5',
158        navajowhite: 'ffdead',
159        navy: '000080',
160        oldlace: 'fdf5e6',
vendor: 5,398 bytes, lines 161-325
161        olive: '808000',
162        olivedrab: '6b8e23',
163        orange: 'ffa500',
164        orangered: 'ff4500',
165        orchid: 'da70d6',
166        palegoldenrod: 'eee8aa',
167        palegreen: '98fb98',
168        paleturquoise: 'afeeee',
169        palevioletred: 'd87093',
170        papayawhip: 'ffefd5',
171        peachpuff: 'ffdab9',
172        peru: 'cd853f',
173        pink: 'ffc0cb',
174        plum: 'dda0dd',
175        powderblue: 'b0e0e6',
176        purple: '800080',
177        red: 'ff0000',
178        rosybrown: 'bc8f8f',
179        royalblue: '4169e1',
180        saddlebrown: '8b4513',
181        salmon: 'fa8072',
182        sandybrown: 'f4a460',
183        seagreen: '2e8b57',
184        seashell: 'fff5ee',
185        sienna: 'a0522d',
186        silver: 'c0c0c0',
187        skyblue: '87ceeb',
188        slateblue: '6a5acd',
189        slategray: '708090',
190        snow: 'fffafa',
191        springgreen: '00ff7f',
192        steelblue: '4682b4',
193        tan: 'd2b48c',
194        teal: '008080',
195        thistle: 'd8bfd8',
196        tomato: 'ff6347',
197        turquoise: '40e0d0',
198        violet: 'ee82ee',
199        violetred: 'd02090',
200        wheat: 'f5deb3',
201        white: 'ffffff',
202        whitesmoke: 'f5f5f5',
203        yellow: 'ffff00',
204        yellowgreen: '9acd32'
205    };
206    for (var key in simple_colors) {
207        if (color_string == key) {
208            color_string = simple_colors[key];
209        }
210    }
211    // emd of simple type-in colors
212
213    // array of color definition objects
214    var color_defs = [
215        {
216            re: /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,
217            example: ['rgb(123, 234, 45)', 'rgb(255,234,245)'],
218            process: function (bits){
219                return [
220                    parseInt(bits[1]),
221                    parseInt(bits[2]),
222                    parseInt(bits[3])
223                ];
224            }
225        },
226        {
227            re: /^(\w{2})(\w{2})(\w{2})$/,
228            example: ['#00ff00', '336699'],
229            process: function (bits){
230                return [
231                    parseInt(bits[1], 16),
232                    parseInt(bits[2], 16),
233                    parseInt(bits[3], 16)
234                ];
235            }
236        },
237        {
238            re: /^(\w{1})(\w{1})(\w{1})$/,
239            example: ['#fb0', 'f0f'],
240            process: function (bits){
241                return [
242                    parseInt(bits[1] + bits[1], 16),
243                    parseInt(bits[2] + bits[2], 16),
244                    parseInt(bits[3] + bits[3], 16)
245                ];
246            }
247        }
248    ];
249
250    // search through the definitions to find a match
251    for (var i = 0; i < color_defs.length; i++) {
252        var re = color_defs[i].re;
253        var processor = color_defs[i].process;
254        var bits = re.exec(color_string);
255        if (bits) {
256            channels = processor(bits);
257            this.r = channels[0];
258            this.g = channels[1];
259            this.b = channels[2];
260            this.ok = true;
261        }
262
263    }
264
265    // validate/cleanup values
266    this.r = (this.r < 0 || isNaN(this.r)) ? 0 : ((this.r > 255) ? 255 : this.r);
267    this.g = (this.g < 0 || isNaN(this.g)) ? 0 : ((this.g > 255) ? 255 : this.g);
268    this.b = (this.b < 0 || isNaN(this.b)) ? 0 : ((this.b > 255) ? 255 : this.b);
269
270    // some getters
271    this.toRGB = function () {
272        return '?gb(' + this.r + ', ' + this.g + ', ' + this.b + ')';
273    }
274    this.toHex = function () {
275        var r = this.r.toString(16);
276        var g = this.g.toString(16);
277        var b = this.b.toString(16);
278        if (r.length == 1) r = '0' + r;
279        if (g.length == 1) g = '0' + g;
280        if (b.length == 1) b = '0' + b;
281        return '#' + r + g + b;
282    }
283
284    // help
285    this.getHelpXML = function () {
286
287        var examples = new Array();
288        // add regexps
289        for (var i = 0; i < color_defs.length; i++) {
290            var example = color_defs[i].example;
291            for (var j = 0; j < example.length; j++) {
292                examples[examples.length] = example[j];
293            }
294        }
295        // add type-in colors
296        for (var sc in simple_colors) {
297            examples[examples.length] = sc;
298        }
299
300        var xml = document.createElement('ul');
301        xml.setAttribute('id', 'rgbcolor-examples');
302        for (var i = 0; i < examples.length; i++) {
303            try {
304                var list_item = document.createElement('li');
305                var list_color = new RGBColor(examples[i]);
306                var example_div = document.createElement('div');
307                example_div.style.cssText =
308                        'margin: 3px; '
309                        + 'border: 1px solid black; '
310                        + 'background:' + list_color.toHex() + '; '
311                        + 'color:' + list_color.toHex()
312                ;
313                example_div.appendChild(document.createTextNode('test'));
314                var list_item_value = document.createTextNode(
315                    ' ' + examples[i] + ' -> ' + list_color.toRGB() + ' -> ' + list_color.toHex()
316                );
317                list_item.appendChild(example_div);
318                list_item.appendChild(list_item_value);
319                xml.appendChild(list_item);
320
321            } catch(e){}
322        }
323        return xml;
324    }
325}

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.