PageSourceSearch

http://terbuny.org/common/js/common.js?1647450900

js terbuny.org collected 2026-09-25 04:08:58 UTC 24,702 bytes, 1,142 lines download raw bytes

1
2(function($) {
3    $.fn.closest_child = function(filter) {
4        var $found = $(),
5            $currentSet = this; // Current place
6        while ($currentSet.length) {
7            $found = $currentSet.filter(filter);
8            if ($found.length) break;  // At least one match: break loop
9            // Get all children of the current set
10            $currentSet = $currentSet.children();
11        }
12        return $found.first(); // Return first match of the collection
13    }
14})(jQuery);
15
16
17
18
19/*
20function loadScript(url, callback){
21
22    var script = document.createElement("script");
23    script.type = "text/javascript";
24
25    if (script.readyState){  //IE
26        script.onreadystatechange = function(){
27            if (script.readyState == "loaded" ||
28                script.readyState == "complete"){
29                script.onreadystatechange = null;
30                callback();
31            }
32        };
33    } else {
34        script.onload = function(){
35            callback();
36        };
37    }
38
39    script.src = url;
40    document.getElementsByTagName("head")[0].appendChild(script);
41}
42
43 
44    loadScript("common/js/jquery.appear.js", function(){
45
46
47
48
49        loadScript("common/js/jquery.lettering.js", function(){
50
51
52            loadScript("common/js/jquery.textillate.js", function(){
53
54
55                
56                
57                
58
59                $(document).on('appear', '.textanimated', function(e, $affected) {
60                    // console.log($(this).attr('animation'));
61                    // $(this).addClass( $(this).attr('animation'));
62
63                    var el = $(e.target);
64
65
66
67                    if(el.attr('data-in-effect') != undefined){
68
69                        if(el.attr('atype') == undefined){
70                            el.textillate();
71
72
73                        }else{
74
75
76
77                            eval("el.textillate({ in: { effect: '"+el.attr('data-in-effect')+
78                                "', "+el.attr('atype')+":true} }); el.textillate('start'); ") ;
79
80
81
82                        }
83
84
85                        el.removeAttr('data-in-effect');
86
87
88
89                    }
90
91
92
93
94
95                });
96                $('.textanimated').appear();
97
98
99                $.force_appear();
100
101
102
103            });
104
105
106        });
107
108
109
110
111
112        $(document).on('appear', '.animated', function(e, $affected) {
113        // console.log($(this).attr('animation'));
114        // $(this).addClass( $(this).attr('animation'));
115
116
117        var el = $(e.target);
118
119        if( el.attr('animation') != undefined){
120
121
122
123
124            el.addClass(el.attr('animation'));
125            el.removeAttr('animation');
126
127
128        }
129    });
130    $('.animated').appear();
131
132
133
134    $.force_appear();
135
136});
137
138
139
140
141var videofones = $('div.blockvid[vidsrc]');
142
143if(videofones.length > 0){
144
145    var tag = document.createElement('script');
146    tag.src = "https://www.youtube.com/iframe_api";
147    var firstScriptTag = document.getElementsByTagName('script')[0];
148    firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
149
150    window.onYouTubeIframeAPIReady = function() {
151        videofones.each(function (i) {
152
153
154            // $(this).tubular($('#'+$(this).attr('id')),{videoId: "oi54JmQ--Iw", start: 1});
155
156
157
158            var vidid = $(this).attr('vidsrc');
159
160
161            if(vidid  != undefined && vidid != ''){
162
163                var options =     {
164                    ratio: 16/9, // usually either 4/3 or 16/9 -- tweak as needed
165                    videoId: vidid, // toy robot in space is a good default, no?
166                    mute: true,
167                    repeat: true,
168                    width: $(window).width(),
169                    wrapperZIndex: 99,
170                    playButtonClass: 'tubular-play',
171                    pauseButtonClass: 'tubular-pause',
172                    muteButtonClass: 'tubular-mute',
173                    volumeUpClass: 'tubular-volume-up',
174                    volumeDownClass: 'tubular-volume-down',
175                    increaseVolumeBy: 10,
176                    start: 0
177                };
178
179
180                $node = $(this);//$(node); // cache wrapper node
181
182                // build container
183                var tubularContainer = '<div class="tubular-container" style="overflow: hidden; position: absolute; z-index: 1; width: 100%; height: 100%"><div id="' + guid() + '" class="tubular-player" style="position: absolute"></div></div><div class="tubular-shield" style="width: 100%; height: 100%; z-index: 2; position: absolute; left: 0; top: 0;"></div>';
184
185                var x = $node.find('.videovrapper').first();
186
187                x.html(tubularContainer);
188
189
190                var player = new YT.Player(x.find('.tubular-player').first().attr('id'), {
191                    width: options.width,
192                    height: Math.ceil(options.width / options.ratio),
193                    videoId: options.videoId,
194                    playerVars: {
195                        controls: 0,
196                        showinfo: 0,
197                        modestbranding: 1,
198                        wmode: 'transparent',
199                        autoplay: 1,
200                        loop: 1
201                    }
202                    ,events: {
203
204                        'onStateChange' : function(e,state) {
205                            if(e.target.getPlayerState() ==0) {
206
207                                e.target.seekTo(0); // restart
208                                e.target.playVideo();
209                            }  if(e.target.getPlayerState() == 1) {
210
211                                e.target.mute();
212                                
213
214                            }
215                        }
216
217                    }
218                });
219
220            }
221
222
223
224        });
225    }
226
227
228
229}
230
231*/
232
233
234
235function guid() {
236
237    function s4() {
238        return Math.floor((1 + Math.random()) * 0x10000)
239            .toString(16)
240            .substring(1);
241    }
242    return (s4() + s4() + '' + s4() + '' + s4() + '' +
243    s4() + '' + s4() + s4() + s4() + s4() + '' + s4() + '' + s4() + '' +
244    s4() + '' + s4() + s4() + s4()+ '' + s4() + s4() + s4()+ '' + s4() + s4() + s4()).replace(/[0-9]/g, '');/**/
245
246
247}
248
249
250
251
252
253
254
255
256
257
258$(document).on('click', '.accordion-header', function (e) {
259   //e.stopPropagation();
260    $(this).closest_child('.accordion-header-toggle').click();
261});
262
263$(document).on('click', '.accordion-header-toggle', function (e) {
264
265    e.stopPropagation();
266
267    var currentToggle = $(this);
268
269    var currentItem = currentToggle.closest('.accordion-item');
270
271    var accordion = currentItem.parent();
272
273
274
275    if(currentItem.hasClass('accordion-active')){
276
277        currentItem.removeClass('accordion-active');
278        currentItem.closest_child('.accordion-content').animate({height: '0px'},300,
279            function () {
280
281
282                this.classList.add('hidden');
283            });
284
285
286    }else{
287
288
289
290        var currentUi = currentItem.closest_child('.ui-element');
291
292        var cnt = currentItem.closest_child('.accordion-content');
293
294        cnt.removeClass('hidden');
295        cnt.animate({height: currentUi[0].style.height},500,
296            function () {
297
298                this.style.height = '';
299            });
300
301
302        accordion.children('.accordion-active').each(function () {
303
304
305
306            var el = $(this);
307
308            el.removeClass('accordion-active');
309
310            el.closest_child('.accordion-content').animate({height: '0px'},500,
311                function () {
312
313
314                    this.classList.add('hidden');
315
316                });
317
318
319        })
320
321
322
323        currentItem.addClass('accordion-active');
324
325    }
326
327
328
329});
330
331
332
333
334
335$('.popupButton').click(function () {
336
337    var id = $(this).find('*[linkvalue]').attr('linkvalue');
338
339    openFancyPopup(id);
340
341
342});
343function openFancyPopup(id) {
344    if(id != '' && id != 'none' && id != undefined){
345        $(id).css('position','initial');
346        $.fancybox({
347
348            'content' : $(id),
349            'autoDimensions'	: false,
350            'width'         		: $(id).width(),
351            'padding' :   '0px',
352            'height'        		: $(id).height(),
353            'transitionIn'		: 'none',
354            'transitionOut'		: 'none'
355        });
356
357    }
358}
359
360
361
362var canOpenPanel = true;
363
364function OpenTreeMenu(){
365    var panel = $('#pagesTreePanel');
366    if(panel.hasClass('hidden') == false){
367        //CloseWidgetMenu();
368        return;
369    }
370
371
372
373    if(canOpenPanel){
374    panel.css('left','-250px');
375
376    panel.removeClass('hidden');
377    panel.animate({left: '0px'}, 300);
378}
379}
380
381function CloseTreeMenu(){
382
383    var panel = $('#pagesTreePanel');
384    if(panel.hasClass('hidden') == true){
385        //CloseWidgetMenu();
386        return;
387    }
388
389
390    //panel.css('left','0px');
391    panel.css('z-index','99999999');
392
393    panel.animate({left: '-250px'}, 300, function(){
394
395        panel.addClass('hidden');
396
397    });
398
399
400}
401
402
403
404
405    if(pagesData != undefined){
406
407
408
409        $('#pagesTreePanel').on('mouseleave',function (e) {
410
411
412            CloseTreeMenu();
413
414        });
415
416
417        var treeSettings = {
418            view: {
419                dblClickExpand: false,
420                showLine: true,
421                showIcon: true,
422                selectedMulti: false
423            },
424            edit: {
425                enable: false,
426                showRemoveBtn: true,
427                showRenameBtn: false
428            },
429            data: {
430                simpleData: {
431                    enable: true
432                }
433            },
434
435            callback: {
436
437                onClick: function (e,x, node) {
438
439                    e.stopPropagation();
440
441
442                    if(node.isIndex){
443                        window.location = 'index.html';
444                    }else{
445                        window.location = node.alias + '.html';
446                    }
447
448
449                },
450
451            }
452
453        };
454
455
456        var PagesTree = $.fn.zTree.init($("#pagesTreeList"),treeSettings, pagesData);
457
458        PagesTree.expandAll(true);
459
460
461
462
463
464
465
466
467        $(document).mousemove(function (e) {
468
469
470
471            if (e.pageX < 10) {
472                var panel = $('#pagesTreePanel');
473                if (panel.hasClass('hidden') == true) {
474
475                    OpenTreeMenu();
476                }
477
478            }
479
480        });
481
482
483
484
485        }
486
487
488    $('.ui-element.EskWidgetMenu').each(function () {
489
490
491        $(this).on($(this).attr('openevent'), function (e) {
492
493
494
495           // e.stopPropagation();
496
497           // $(this).closest('section').css('z-index','77778');
498           /* $(this).parents().not('body,html').not('[sectionfixed]').css('z-index','77778');
499            if($(this).parents('.ui-element.EskWidgetMenu').length == 0) {
500                $(this).css('z-index', '77778');
501            } */
502            $(this).closest('section').not('[sectionfixed]').css('z-index','77778');
503            $(this).children('.EskWidgetContainer').removeClass('hidden');
504
505        });
506
507
508        $(this).on('mouseleave', function (e) {
509
510
511
512
513             
514            $(this).find('.ui-element.EskWidgetContainer').addClass('hidden');
515
516           // $(this).children('.EskWidgetContainer').addClass('hidden')
517          //  $(this).closest('section').css('z-index','');
518
519          /*  if($(this).parents('.ui-element.EskWidgetMenu').length == 0){
520            $(this).parents().not('[sectionfixed]').css('z-index','');
521
522
523
524            }*/
525
526            //if($(this).parent().hasClass('sectionFixedWrapper'))
527            if($(this).closest('.EskWidgetContainer').length = 0)
528            $(this).closest('section').not('[sectionfixed]').css('z-index', '');
529           // $(this).css('z-index','');
530
531        });
532
533    });
534
535    $('[panelactivator]').each(function () {
536
537       $(this).bind($(this).attr('event'), function () {
538       // $(this).bind('mouseenter', function () {
539
540
541
542          if (  $(this).find('.ispopup').length == 0){
543            var clone = $('#'+$(this).attr('panel')).clone(true);
544
545
546
547              var height = $('#'+$(this).attr('panel')).height();
548              var width = $('#'+$(this).attr('panel')).width();
549
550
551
552
553              if($(this).attr('xOffset') != undefined && $(this).attr('yOffset') != undefined) {
554                  clone.css({
555                      top: $(this).attr('yOffset'),
556                      left: $(this).attr('xOffset')
557                  });
558
559              }else {
560
561
562                  var pos = $(this).attr('panelpos');
563                  if (pos == undefined || pos == 'bottom') {
564                      clone.css({
565                          top: $(this).height() + 'px',
566                          left: '0px'
567                      });
568                  }
569                  if (pos == 'right') {
570                      clone.css({
571                          left: $(this).width() + 'px',
572                          top: '0px'
573                      });
574                  }
575                  if (pos == 'left') {
576                      clone.css({
577                          left: (0 - width  ) + 'px',
578                          top: '0px'
579                      });
580                  }
581                  if (pos == 'center') {
582                      clone.css({
583                          top: ((((height / 2) * -1) + ($(this).height()) / 2) ) + 'px',
584                          left: ((((width / 2) * -1) + ($(this).width()) / 2) ) + 'px'
585                      });
586                  }
587
588
589                  if (pos == 'top') {
590                      clone.css({
591                          top: (height * -1) + 'px',
592                          left: '0px'
593                      });
594                  }
595
596
597              }
598
599              clone.addClass('floatingnow');
600              clone.css('z-index', '77778');
601
602
603            $(this).append(clone);
604
605
606              $(this).closest('section').css('z-index','77778');
607              $(this).parents().css('z-index','77778');
608
609              $(this).css('z-index','77778');
610          }
611
612        });
613
614        $(this).bind('mouseleave', function () {
615
616
617
618            $(this).find('.floatingnow').remove();
619            $(this).closest('section').css('z-index','');
620            $(this).parents().css('z-index','');
621            $(this).css('z-index','');
622
623        });
624
625
626
627    });
628
629
630
631$(document).on('click', '.tabsItem', function () {
632
633  
634
635    var ui = $(this).closest('.ui-element');
636
637    ui.find('.tabsItem').removeClass('ActiveItem');
638    $(this).addClass('ActiveItem');
639    ui.find('.tabsContent').addClass('hidden');
640
641    ui.find('.tabsContent[tabdata="'+$(this).attr('tabdata')+'"]').removeClass('hidden');
642
643
644
645});
646
647
648$('i[widgettype=NOTE]').each(function () {
649
650    if($(this).attr('title') != undefined) {
651    $(this).attr('title', $(this).attr('title').replace(/\n/g, '<br/>') );
652    }
653
654    if($(this).attr('links') != undefined) {
655
656
657        var links = JSON.parse($(this).attr('links'));
658
659        var linksBlock = '<div style="text-align: left; margin: 10px 0px; border-top:1px solid #ccc;"> <div style="clear: both;"></div>';
660
661
662        links.forEach(function (link) {
663
664            var title = link.title;
665            var href = link.link;
666            var image = link.image;
667
668            linksBlock += '<div style="padding: 3px;"> <img style="float: left; margin-right: 5px; height: 20px;
668" src="' + image + '"/> <a target="_blank" href="' + href + '">' + title + '</a></div>';
669
670
671        });
672
673        linksBlock += '</div>';
674        if($(this).attr('title') != undefined) {
675
676            var title =  $(this).attr('title');
677        }else{
678            title = ''; 
679        }
680        $(this).attr('title', title + linksBlock);
681
682    }
683});
684
685
686$('i[widgettype=NOTE]').mouseenter(function (e) {
687
688
689    var elNote = $(this);
690
691    if((elNote.offset().top - $(window).scrollTop()) < 230){
692
693         elNote.tooltip({
694            placement: 'bottom',
695
696            //container: 'body',
697            delay: { show: 500, hide: 50 },
698            trigger: 'manual',
699            html: true,
700
701        })
702    }else{
703
704             elNote.tooltip({
705
706                //container: 'body',
707                delay: { show: 500, hide: 50 },
708                trigger: 'manual',
709                html: true,
710
711            })
712    } /**/
713    elNote.parents().not('[sectionfixed="true"]').css('z-index', '99999999');
714    elNote.tooltip('show');
715
716});
717
718
719$('i[widgettype=NOTE]').parent().mouseleave(function (e) {
720
721
722    $(this).find('i').first().tooltip('hide').tooltip('destroy');
723    $(this).css('z-index', '');
724    $(this).parents().not('[sectionfixed="true"]').css('z-index', '');
725
726});
727
728
729$('i[IconHover]').mouseenter(function (e) {
730
731 $(this).attr('class', $(this).attr('IconHover'));
732
733});
734
735
736$('i[IconHover]').mouseleave(function (e) {
737
738
739    $(this).attr('class', $(this).attr('IconNormal'));
740});
741
742
743$(document).on('mouseenter', '.ui-element[linktp="BLOCKLINK"]', (function (e) {
744    var bl = $(this).closest('.ui-element');
745   var container =  bl.parent();
746
747    container.find('.ui-element').filter(function () {
748        var ui  = $(this);
749
750        if((ui.position().top > bl.position().top && ui.position().top <  (bl.position().top +  bl.height() ))
751        && (ui.position().left > bl.position().left && ui.position().left <  (bl.position().left +  bl.width())
752        )){
753            return true;
754
755        }else{
756            return false;
757        }
758    }).each(function () {
759
760
761
762         var openevent = $(this).attr('openevent');
763
764        if(openevent == undefined || openevent == 'mouseenter' ){
765        $(this).mouseenter().addClass('hovering');
766            $(this).find('[widgettype="ICON"], .LsConstructorElement').not('.EskWidgetMenu').first().mouseenter().addClass('hovering');
767            $(this).children('.LsConstructorElement.EskWidgetMenu').addClass('hovering');
768
769        }else{
770            $(this).addClass('hovering');
771            $(this).find('[widgettype="ICON"], .LsConstructorElement').not('.EskWidgetMenu').first().mouseenter().addClass('hovering');
772
773            $(this).children('.LsConstructorElement.EskWidgetMenu').addClass('hovering');
774        }
775
776
777    });
778
779}));
780$(document).on('click', '.ui-element[linktp="BLOCKLINK"]', (function (e) {
781    var bl = $(this).closest('.ui-element');
782   var container =  bl.parent();
783
784    container.find('.ui-element').filter(function () {
785        var ui  = $(this);
786
787        if((ui.position().top > bl.position().top && ui.position().top <  (bl.position().top +  bl.height() ))
788        && (ui.position().left > bl.position().left && ui.position().left <  (bl.position().left +  bl.width())
789        )){
790            return true;
791
792        }else{
793            return false;
794        }
795    }).each(function () {
796
797
798
799            $(this).addClass('hovering').click();
800
801
802
803     });
804
805}));
806
807$(document).on('mouseleave', '.ui-element[linktp="BLOCKLINK"]', (function (e) {
808
809
810    var bl = $(this).closest('.ui-element');
811
812
813    var container = bl.parent();
814    container.find('.hovering').each(function () {
815
816
817
818        $(this).removeClass('hovering');
819         if($(e.relatedTarget).closest('.EskWidgetMenu').length == 0)
820        $(this).mouseleave();
821    });
822
823
824}));
825
826$('.HasBsection').each(function () {
827
828    var width = $(this).width();
829/*
830    var img = new Image();
831
832    img.width = width;
833    img.onload = function() {
834
835        this.width = width;
836        this.hwidth = 'auto';
837
838        alert(this.height); 
839    }
840
841
842    img.src =   $(this).css('background-image').replace(/url\((['"])?(.*?)\1\)/gi, '$2').split(',')[0];
843*/
844
845    $(this).css('background-size', width+'px');
846    
847    $(this).find('.blockb').css({
848        'background-size' : width+'px',
849        'display' : 'block',
850        'width' : '50%',
851
852
853    }).append('<div class="blockb-line"></div>');
854
855
856});
857
858
859
860$('.HasBsection').mouseenter(function (e) {
861
862    canOpenPanel = false;
863
864});$('.HasBsection').mouseleave(function (e) {
865
866    canOpenPanel = true;
867
868});
869
870$('.HasBsection').mousemove(function (e) {
871
872
873    var width = $(this).width();
874    var relX = e.pageX - $(this).offset().left;
875
876
877
878
879    $(this).find('.blockb').css({
880        'width' : (width - relX)+'px'
881
882    });
883
884
885    //console.log(e);
886
887
888});
889
890
891/*
892$(document).on('drag','.blockb-line-hand' ,function (e) {
893
894
895
896    var ui = $(this).closest('section');
897    var width = ui.width();
898
899//.touches[0]
900    var relX = e.pageX - $(this).offset().left;
901
902    console.log(e);
903
904
905    ui.find('.blockb').css({
906        'width' : ((width - relX)+25)+'px'
907
908    });
909
910
911    //console.log(e);
912)
913
914});
915
916*/
917
918 function updateFixing(scroll){
919
920
921    $('[sectionfixed="true"]').each(function () {
922
923
924        $(this).css('z-index', '99997');
925        var scrollvalue = $(this).attr('scroll');
926
927        if(scrollvalue == undefined || scrollvalue <= scroll){
928            $(this).removeClass('hidden');
929
930        }else{
931            $(this).addClass('hidden');
932
933        }
934
935
936    });
937
938}
939
940updateFixing(0);
941
942
943
944$(document).scroll(function () {
945
946    updateFixing($(this).scrollTop());
947});
948
949
950
951$('.ui-element[eskEvent]').each(function () {
952
953    var element = $(this);
954
955
956    var events = JSON.parse(element.attr('eskEvent'));
957
958    events.forEach(function (obj) {
959
960
961
962        if(obj.event == 'click'){
963            element.css('cursor', 'pointer');
964        }
965
966        obj.actions.forEach(function (obj) {
967        $(document).on(obj.event, '#'+element.attr('id'), function (e) {
968
969           // $('#'+obj.panel).find('.dinamicState').addClass('hidden');
970
971
972           
973
974            if(obj.action == 'popup'){
975
976                openFancyPopup('#'+obj.popup);
977                return;
978            }
979            if(obj.action == 'link'){
980
981                window.location = obj.page+'.html';
982                return;
983            }
984
985
986
987            var state = $('[dinamicstatekey="'+obj.state+'"]');
988
989            var panel =  $('[dinamickey="'+obj.panel+'"]');
990
991
992
993
994            if(obj.action == 'show'){
995                panel.each(function () {
996
997                   $(this).children('.dinamicState').addClass('hidden').removeClass('activeState');
998               });
999
1000
1001                state.removeClass('hidden').addClass('activeState');
1002            }
1003
1004            if(obj.action == 'toggle'){
1005                panel.each(function () {
1006
1007                   $(this).children('.dinamicState').not(state).addClass('hidden').removeClass('activeState');
1008               });
1009
1010                state.toggleClass('hidden');
1011
1012                if(state.hasClass('hidden')){
1013
1014                    state.removeClass('activeState');
1015                }else{
1016                    state.addClass('activeState');
1017
1018                }
1019            }
1020
1021
1022
1023
1024            if(obj.action == 'next'){
1025
1026                dinamicsNext(state, panel);
1027
1028            }
1029
1030
1031            if(obj.action == 'prev'){
1032                dinamicsPrev(state, panel);
1033
1034            }
1035
1036
1037            if(obj.action == 'hide'){
1038            //   $('#'+obj.panel).find('.dinamicState').addClass('hidden');
1039
1040
1041
1042
1043                if(e.type == 'mouseleave'  && $(e.toElement).closest('[dinamickey="'+obj.panel+'"]').length  != 0){
1044
1045                }else{
1046                    state.addClass('hidden').removeClass('activeState');
1047                }
1048
1049
1050            }
1051
1052
1053
1054
1055            //var panl = $('[dinamickey="'+obj.panel+'"]');
1056
1057
1058            if(panel.children('.activeState').length == 0){
1059                panel.closest('.ui-element').addClass('hidden');
1060            }else{
1061                panel.closest('.ui-element').removeClass('hidden');
1062            }
1063
1064
1065
1066
1067
1068        });
1069
1070
1071    });
1072        
1073    });
1074
1075
1076
1077});
1078
1079        function dinamicsNext(state, panel) {
1080
1081
1082            var st = panel.children('.activeState').first();
1083
1084
1085            if(st.length == 0){
1086                st = panel.children('.stateActive').first();
1087                st.removeClass('stateActive')
1088            }
1089
1090            console.log(st)
1091
1092            panel.each(function () {
1093
1094                $(this).children('.dinamicState').addClass('hidden').removeClass('activeState');
1095            });
1096
1097
1098            var next = st.next();
1099
1100            if(next.length  == 0){
1101                next = panel.children('.dinamicState').first();
1102            }
1103
1104
1105            var key = next.attr('dinamicstatekey');
1106            $('[dinamicstatekey="'+key+'"]').removeClass('hidden').addClass('activeState');
1107
1108
1109        }
1110
1111        function dinamicsPrev(state, panel) {
1112
1113            var st = panel.children('.activeState').first();
1114
1115
1116
1117            if(st.length == 0){
1118                st = panel.children('.stateActive').first();
1119                st.removeClass('stateActive')
1120            }
1121
1122
1123            panel.each(function () {
1124
1125                $(this).children('.dinamicState').addClass('hidden').removeClass('activeState');
1126            });
1127
1128
1129            var previous = st.prev();
1130
1131            if(previous.length == 0){
1132                previous = panel.children('.dinamicState').last();
1133            }
1134
1135
1136            var key = previous.attr('dinamicstatekey');
1137            $('[dinamicstatekey="'+key+'"]').removeClass('hidden').addClass('activeState');
1138           // previous.removeClass('hidden').addClass('activeState');
1139
1140        }
1141
1142

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.