PageSourceSearch

http://www.fogyasztok.hu/!javascript/fontsize.js

js fogyasztok.hu collected 2026-10-02 12:33:58 UTC 1,568 bytes, 66 lines download raw bytes

1if ( ! get_cookie ( "fontSize" ) ) {
2  var fontSizelead = 12;
3  set_cookie ( "fontSize", fontSizelead );
4}
5else {
6  var fontSizelead = get_cookie ( "fontSize" );
7}
8
9defaultFontSize('cikkszoveg');
10
11
12function defaultFontSize(elementid) {
13  var fontSizelead = get_cookie ( "fontSize" );
14
15  if (document.getElementById(elementid) != null) {
16    document.getElementById(elementid).style.fontSize = fontSizelead + 'px';
17  }
18}
19
20function increaseFontSize(elementid) {
21
22  var fontSizelead = get_cookie ( "fontSize" );
23
24  fontSizelead = ( fontSizelead * 1 )+ 2;
25
26  if ( fontSizelead >= 19 ) {
27    fontSizelead = 19;
28  }
29  set_cookie ( "fontSize", fontSizelead );
30  if (document.getElementById(elementid) != null) {
31    document.getElementById(elementid).style.fontSize = fontSizelead + 'px';
32  }
33}
34
35
36function decreaseFontSize(elementid) {
37  var fontSizelead = get_cookie ( "fontSize" );
38
39  fontSizelead = ( fontSizelead * 1 ) - 2;
40  if ( fontSizelead <= 11 ) {
41    fontSizelead = 11;
42  }
43  set_cookie ( "fontSize", fontSizelead );
44  if (document.getElementById(elementid) != null) {
45    document.getElementById(elementid).style.fontSize = fontSizelead + 'px';
46  }
47}
48
49
50function set_cookie ( name, value) {
51
52    var cookie_string = name + "=" + value +'; path=/';
53
54    document.cookie = cookie_string;
55}
56
57
58
59function get_cookie ( cookie_name ) {
60  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
61
62  if ( results )
63    return ( unescape ( results[2] ) );
64  else
65    return null;
66}

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.