PageSourceSearch

https://www.redcross.bg/onload-internal.js

js redcross.bg collected 2026-09-24 09:29:17 UTC 9,772 bytes, 135 lines download raw bytes

1$(document).ready(function() {
2  $('#news_bar .btn').click(toggleAccordeon);
3  $('#news_bar .btn_a').click(toggleAccordeon);
4    
5  function toggleAccordeon() {
6    $('#news_bar .btn').removeClass('btn_a');
7    $(this).next().slideToggle();
8  }
9});
10  
11
12$(function() {
13
14
15var calen = jQuery.noConflict();
16calen(function() {
17  var pickerOpts = {
18    minDate: 0,
19    dateFormat: "dd.mm.yy",
20    firstDay: 1,
21    showOn: "both",
22    buttonImage: "/img/calendar-icon.png",
23    buttonImageOnly: true
24  };
25  calen(".datepicker").datepicker(pickerOpts);
26
27});
28
29var _SlideshowTransitions = [
30     //Fade in L
31         {$Duration: 1200, $During: { $Left: [0.3, 0.7] }, $FlyDirection: 1, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
32     //Fade out R
33         , { $Duration: 1200, $SlideOut: true, $FlyDirection: 2, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
34     //Fade in R
35         , { $Duration: 1200, $During: { $Left: [0.3, 0.7] }, $FlyDirection: 2, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
36     //Fade out L
37         , { $Duration: 1200, $SlideOut: true, $FlyDirection: 1, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
38
39     //Fade in T
40         , { $Duration: 1200, $During: { $Top: [0.3, 0.7] }, $FlyDirection: 4, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
41     //Fade out B
42         , { $Duration: 1200, $SlideOut: true, $FlyDirection: 8, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
43     //Fade in B
44         , { $Duration: 1200, $During: { $Top: [0.3, 0.7] }, $FlyDirection: 8, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
45     //Fade out T
46         , { $Duration: 1200, $SlideOut: true, $FlyDirection: 4, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
47
48     //Fade in LR
49         , { $Duration: 1200, $Cols: 2, $During: { $Left: [0.3, 0.7] }, $FlyDirection: 1, $ChessMode: { $Column: 3 }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
50     //Fade out LR
51         , { $Duration: 1200, $Cols: 2, $SlideOut: true, $FlyDirection: 1, $ChessMode: { $Column: 3 }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
52     //Fade in TB
53         , { $Duration: 1200, $Rows: 2, $During: { $Top: [0.3, 0.7] }, $FlyDirection: 4, $ChessMode: { $Row: 12 }, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
54     //Fade out TB
55         , { $Duration: 1200, $Rows: 2, $SlideOut: true, $FlyDirection: 4, $ChessMode: { $Row: 12 }, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
56
57     //Fade in LR Chess
58         , { $Duration: 1200, $Cols: 2, $During: { $Top: [0.3, 0.7] }, $FlyDirection: 4, $ChessMode: { $Column: 12 }, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
59     //Fade out LR Chess
60         , { $Duration: 1200, $Cols: 2, $SlideOut: true, $FlyDirection: 8, $ChessMode: { $Column: 12 }, $Easing: { $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleVertical: 0.3, $Opacity: 2 }
61     //Fade in TB Chess
62         , { $Duration: 1200, $Rows: 2, $During: { $Left: [0.3, 0.7] }, $FlyDirection: 1, $ChessMode: { $Row: 3 }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
63     //Fade out TB Chess
64         , { $Duration: 1200, $Rows: 2, $SlideOut: true, $FlyDirection: 2, $ChessMode: { $Row: 3 }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $Opacity: 2 }
65
66     //Fade in Corners
67         , { $Duration: 1200, $Cols: 2, $Rows: 2, $During: { $Left: [0.3, 0.7], $Top: [0.3, 0.7] }, $FlyDirection: 5, $ChessMode: { $Column: 3, $Row: 12 }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $ScaleVertical: 0.3, $Opacity: 2 }
68     //Fade out Corners
69         , { $Duration: 1200, $Cols: 2, $Rows: 2, $During: { $Left: [0.3, 0.7], $Top: [0.3, 0.7] }, $SlideOut: true, $FlyDirection: 5, $ChessMode: { $Column: 3, $Row: 12 }, $Easing: { $Left: $JssorEasing$.$EaseInCubic, $Top: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $ScaleHorizontal: 0.3, $ScaleVertical: 0.3, $Opacity: 2 }
70
71     //Fade Clip in H
72         , { $Duration: 1200, $Delay: 20, $Clip: 3, $Assembly: 260, $Easing: { $Clip: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $Opacity: 2 }
73     //Fade Clip out H
74         , { $Duration: 1200, $Delay: 20, $Clip: 3, $SlideOut: true, $Assembly: 260, $Easing: { $Clip: $JssorEasing$.$EaseOutCubic, $Opacity: $JssorEasing$.$EaseLinear }, $Opacity: 2 }
75     //Fade Clip in V
76         , { $Duration: 1200, $Delay: 20, $Clip: 12, $Assembly: 260, $Easing: { $Clip: $JssorEasing$.$EaseInCubic, $Opacity: $JssorEasing$.$EaseLinear }, $Opacity: 2 }
77     //Fade Clip out V
78         , { $Duration: 1200, $Delay: 20, $Clip: 12, $SlideOut: true, $Assembly: 260, $Easing: { $Clip: $JssorEasing$.$EaseOutCubic, $Opacity: $JssorEasing$.$EaseLinear }, $Opacity: 2 }
79         ];
80
81     var options = {
82         $AutoPlay: false,                                    //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false
83         $AutoPlayInterval: 1500,                            //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000
84         $PauseOnHover: 1,                                //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, default value is 1
85
86         $DragOrientation: 3,                                //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
87         $ArrowKeyNavigation: false,                  //[Optional] Allows keyboard (arrow key) navigation or not, default value is false
88         $SlideDuration: 800,                                //Specifies default duration (swipe) for slide in milliseconds
89
90         $SlideshowOptions: {                                //[Optional] Options to specify and enable slideshow or not
91             $Class: $JssorSlideshowRunner$,                 //[Required] Class to create instance of slideshow
92             $Transitions: _SlideshowTransitions,            //[Required] An array of slideshow transitions to play slideshow
93             $TransitionsOrder: 1,                           //[Optional] The way to choose transition to play slide, 1 Sequence, 0 Random
94             $ShowLink: true                                    //[Optional] Whether to bring slide link on top of the slider when slideshow is running, default value is false
95         },
96
97         $ArrowNavigatorOptions: {                       //[Optional] Options to specify and enable arrow navigator or not
98             $Class: $JssorArrowNavigator$,              //[Requried] Class to create arrow navigator instance
99             $ChanceToShow: 1                               //[Required] 0 Never, 1 Mouse Over, 2 Always
100         },
101
102         $ThumbnailNavigatorOptions: {                       //[Optional] Options to specify and enable thumbnail navigator or not
103             $Class: $JssorThumbnailNavigator$,              //[Required] Class to create thumbnail navigator instance
104             $ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
105
106             $ActionMode: 1,                                 //[Optional] 0 None, 1 act by click, 2 act by mouse hover, 3 both, default value is 1
107             $SpacingX: 10,                                   //[Optional] Horizontal space between each thumbnail in pixel, default value is 0
108             $DisplayPieces: 4,                             //[Optional] Number of pieces to display, default value is 1
109             $ParkingPosition: 0                          //[Optional] The offset position to park thumbnail
110         }
111     };
112
113     var jssor_slider1 = new $JssorSlider$("slider1_container", options);
114     //responsive code begin
115     //you can remove responsive code if you don't want the slider scales while window resizes
116     function ScaleSlider() {
117         var parentWidth = jssor_slider1.$Elmt.parentNode.clientWidth;
118         if (parentWidth)
119             jssor_slider1.$SetScaleWidth(Math.max(Math.min(parentWidth, 1144), 500));
120         else
121             window.setTimeout(ScaleSlider, 30);
122     }
123
124     ScaleSlider();
125
126     if (!navigator.userAgent.match(/(iPhone|iPod|iPad|BlackBerry|IEMobile)/)) {
127         $(window).bind('resize', ScaleSlider);
128     }
129
130
131     //if (navigator.userAgent.match(/(iPhone|iPod|iPad)/)) {
132     //    $(window).bind("orientationchange", ScaleSlider);
133     //}
134     //responsive code end
135});

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.