PageSourceSearch

https://www.kviff.com/javascript/common.js

js kviff.com collected 2026-09-24 19:35:22 UTC 18,182 bytes, 512 lines download raw bytes

1// JavaScript Document
2$(document).ready(function() {
3
4    // $('.userpass input').each(function( index ) {
5    //     $(this).attr('value', '').attr('type','text');
6    // });
7    // $('.userpass input').focus(function( index ) {
8    //     $(this).attr('type','password');
9    // });
10
11    // $('html').click(function() {
12    //     $('#pastYears').removeClass('showPY');
13    //     $('#filterChoice').removeClass('showPY');
14    // });
15    // $('#pastYears, #filterChoice').click(function(event){
16    //     event.stopPropagation();
17    // });
18
19    // $('.pastYears').click(function() {
20    //     $(this).toggleClass('active');
21    //     $('#pastYears').toggleClass('showPY');
22    //     return false;
23    // });
24    // $('.filterChoice').click(function() {
25    //     $(this).toggleClass('active');
26    //     $('#filterChoice').toggleClass('showPY');
27    //     return false;
28    // });
29    // $('.userpass input').focus(function( index ) {
30    //     $(this).attr('type','password');
31    // });
32    //
33    // $('#top_soc .inner .close_soc').click(function() {
34    //     $('#top_soc').remove();
35    //     return false;
36    // })
37
38    // var sizePage = resizeBgrImgIE();
39    // resizePage();
40    // mobileTransformer();
41
42    // $(window).resize(function() {
43    //     resizePage();
44    // });
45
46
47    // $(".rotateToRegister").click(function() {
48    //     $('.mainLogin, .form002').hide();
49    //     $('.form001').show();
50    //     $('#newEmail').focus();
51    //     $(".form001 .close").unbind();
52    //     $(".form001 .close").click(function() {
53    //         $('.mainLogin').show();
54    //         $('.form001').hide();
55    //         $('#loginEmail').focus();
56    //     });
57    //     return false;
58    // });
59    // $(".rotateToForgoten").click(function() {
60    //     $('.mainLogin, .form001').hide();
61    //     $('.form002').show();
62    //     $('#forgottenEmail').focus();
63    //     $(".form002 .close").unbind();
64    //     $(".form002 .close").click(function() {
65    //         $('.mainLogin').show();
66    //         $('.form002').hide();
67    //         $('#loginEmail').focus();
68    //     });
69    //     return false;
70    // });
71    // $(".form001 .close").click(function() {
72    //     $('.mainLogin').show();
73    //     $('.form001').hide();
74    //     $('#loginEmail').focus();
75    //     return false;
76    // });
77    // $(".form002 .close").click(function() {
78    //     $('.mainLogin').show();
79    //     $('.form002').hide();
80    //     $('#loginEmail').focus();
81    //     return false;
82    // });
83
84
85    // function resizePage() {
86    //     var sizePage = resizeBgrImgIE();
87    //     $('#menuMobile, #menuMobile .content').css('width', (sizePage[0]-32)+'px').css('height', sizePage[1]+'px');
88    //     if (sizePage[0] < 800) {
89    //         mobileMenuShow();
90    //     } else {
91    //         mobileMenuHide();
92    //     }
93    // }
94
95    // function mobileTransformer() {
96    //     var sizePage = resizeBgrImgIE();
97    //     $('body').append('<div id="menuMobile" style="height: ' + sizePage[1] + 'px; width: ' + (sizePage[0]-32) + 'px;"><div class="content" style="height: ' + sizePage[1] + 'px; width: ' + (sizePage[0]-32) + 'px ;"></div></div>');
98    //     $('#topMenuRight').clone().appendTo('#menuMobile .content');
99    //     $('#tm01 ul').clone().appendTo('.tm01');
100    //     $('#tm02 ul').clone().appendTo('.tm02');
101    //     $('#tm03 ul').clone().appendTo('.tm03');
102    //     $('#tm04 ul').clone().appendTo('.tm04');
103    //     $('#tm05 ul').clone().appendTo('.tm05');
104    //     $('#tm06 ul').clone().appendTo('.tm06');
105    //
106    //     $('#festivalMenu').clone().appendTo('#menuMobile .content');
107    //     $('#topMenu').clone().appendTo('#menuMobile .content');
108    //
109    //     $('#menuMobile .content #topMenu>li>a').unbind();
110    //     $('#menuMobile .content #topMenu>li>a').bind('click', function() {
111    //         $(this).parent('li').toggleClass('active');
112    //         return false
113    //     });
114    //     $('#tm01 .area01').clone().appendTo('#menuMobile .content');
115    //     $('#menuMobile').append('<span id="menuMobileButton"></span>');
116    //     $('#menuMobileButton').bind('click', function() {
117    //         $('#menuMobile').toggleClass('active');
118    //         $('body, html').toggleClass('mobileMenuActive').css('height', sizePage[1]);
119    //     });
120    // }
121    // function mobileMenuShow() {
122    //     $('#menuMobile').show();
123    // }
124    // function mobileMenuHide() {
125    //     $('#menuMobile').hide();
126    // }
127    /*
128    function mobileDeTransformer() {
129         $('#menuMobile #festivalMenu').appendTo('#header .inner');
130        $('.tm01 ul').appendTo('#tm01');
131        $('.tm02 ul').appendTo('#tm02');
132        $('.tm03 ul').appendTo('#tm03');
133        $('.tm04 ul').appendTo('#tm04');
134        $('#menuMobile #topMenu').appendTo('#topBar .inner');
135        $('#menuMobile #topMenuRight').appendTo('#topBar .inner');
136        $('body, html').css('height', 'auto').css('overflow','visible');
137        $('#menuMobile').remove();
138    }
139    */
140
141    // $('.ABCMenu li a').click(function(){
142    //     $('html, body').animate({
143    //         scrollTop: $(this).attr('href').offset().top
144    //     }, 500);
145    //     return false;
146    // })
147
148    // $('html').click(function() {
149    //     $('.overMenuTop').removeClass('activeFM');
150    // });
151    // $('.overMenuTop').click(function(event){
152    //     event.stopPropagation();
153    // });
154    //
155    // /*VRa update*/
156    // $('.overMenuTop').hover(
157    //     function(){
158    //         return false;
159    //     },
160    //     function(){
161    //         $(this).removeClass('activeFM');
162    //     });
163
164    $('.download-image').mouseenter(function() {
165        $(this).find('.download-box').slideDown(50);
166    });
167
168    $('.download-image').mouseleave(function() {
169        $(this).find('.download-box').slideUp(50);
170    });
171
172    $('.photoGallery').on('mouseenter', '.download-image', function() {
173        $(this).find('.download-box').slideDown(50);
174    });
175
176    $('.photoGallery').on('mouseleave', '.download-image', function() {
177        $(this).find('.download-box').slideUp(50);
178    });
179
180
181    $('a').each(function() {
182        var a = new RegExp('/' + window.location.host + '/');
183        if(this.href && !a.test(this.href) && !$(this).hasClass('fancybox_video') && !$(this).hasClass('fancy_google_map') && !$(this).hasClass('no_blank')) {
184            $(this).click(function(event) {
185                event.preventDefault();
186                event.stopPropagation();
187                window.open(this.href, '_blank');
188            });
189        }
190    });
191
192    /* new switch */
193    $('.toggleNew').bind('click', function(){
194        $(this).toggleClass('active');
195        $('#'+$(this).attr('href').replace("#","")).toggleClass('open');
196        return false;
197    })
198
199    /* universal switch */
200    // universalSwitch();
201    // function universalSwitch() {
202    //     $(".switchNext").each(function( index ) {
203    //         if ($(this).children('i').attr('class') != 'active') {
204    //             $('#'+$(this).attr('href').replace("#","")).hide();
205    //         }
206    //     });
207    //     $(".switchNext").bind('click', function(){
208    //         $(this).children('i').toggleClass('active');
209    //         $('#'+$(this).attr('href').replace("#","")).toggle();
210    //         /*
211    //             if ($('#'+$(this).attr('href').replace("#","")+':hidden').length==1) {
212    //                 $('#'+$(this).attr('href').replace("#","")).show();
213    //             } else {
214    //                 $('#'+$(this).attr('href').replace("#","")).hide();
215    //             }
216    //         */
217    //         return false;
218    //     })
219    // }
220
221    // nice select
222
223    // $(".sortBy select").each(function( index ) {
224    //     if ($(this).attr('class') != 'phpdebugbar-datasets-switcher') {
225    //         $(this).selectbox();
226    //     }
227    // });
228    // placeholder
229    // $('[placeholder]').focus(function() {
230    //     var input = $(this);
231    //     if (input.val() == input.attr('placeholder')) {
232    //         input.val('');
233    //         input.removeClass('placeholder');
234    //     }
235    // }).blur(function() {
236    //     var input = $(this);
237    //     if (input.val() == '' || input.val() == input.attr('placeholder')) {
238    //         input.addClass('placeholder');
239    //         input.val(input.attr('placeholder'));
240    //     }
241    // }).blur();
242
243    // slider
244    // if (sizePage[0]>800) {
245    //     if ($('.slideFest').length > 0) {
246    //         $('.slideFest ul').cycle({
247    //             fx:     'scrollLeft',
248    //             easing: 'easeInOutQuint',
249    //             speed:  1000,
250    //             pager:  '#nav'
251    //         });
252    //     }
253    // }
254
255    // $('.hosts li h3').bind('click', function() {
256    //     $(this).toggleClass('active');
257    //     $(this).parent('li').children('.switchToOpen').toggle();
258    // });
259
260    // hide on launch
261    // $('.switchList li, .movieBlock').removeClass('active');
262    // $('.hosts .switchToOpen').hide();
263    // director list
264    /*
265    $('.switchList li h2').bind('click', function() {
266      $(this).parent('.toShow').toggleClass('active');
267    });
268    $('.uniSwitchList li h3').bind('click', function() {
269      $(this).parent('.toShow').toggleClass('active');
270    });
271    // section list
272    $('.movieBlock h2').bind('click', function() {
273      $(this).parent('.movieBlock').toggleClass('active');
274    });
275    */
276    // hvezdy
277    // $('.star').bind('click', function() {
278    //     if (!$(this).hasClass('loading')) {
279    //         $(this).toggleClass('selected');
280    //         $(this).children('em').children('span').toggleClass('vActive');
281    //         return false;
282    //     }
283    // });
284
285    // kalendar akci
286    // $('.calendarActions').append('<i class="arr"></i>');
287    // $('.calendarActions .arr').css('left',(($('li.selected').prevAll().length+1)*106)-65+'px');
288    // $('.calendarActions ul li').bind('mouseover', function() {
289    //     $('.calendarActions .arr').css('left',(($(this).prevAll().length+1)*106)-65+'px');
290    // });
291    // $('.calendarActions ul li').bind('mouseleave', function() {
292    //     $('.calendarActions .arr').css('left',(($('li.selected').prevAll().length+1)*106)-65+'px');
293    // });
294    /*
295    $('.calendarActions ul li').bind('click', function() {
296      $('.calendarActions ul li').removeClass('selected');
297      $(this).addClass('selected');
298      return false;
299    });
300    */
301
302    $(".fancybox_video").append('<span class="icoYT"></span>');
303
304    $("[rel=fancybox], .fancybox").attr('rel', 'gallery').fancybox({
305        titleShow : true,
306        padding : 12,
307        title: function() {
308            title = $(this).attr('title');
309            if($(this).closest('.download-image').length > 0) {
310                title = title + (title === '' ? '' : ' | ') + '<a href="' + $(this).closest('.download-image').find('.download-box a').attr('href') + '">Download</a>';
311            }
312            return title;
313        },
314        helpers : {
315            title : {
316                type : 'inside'
317            }
318        }
319    });
320    $(".fancybox_video").on('click touchstart', function() {
321        if (!is_touch_device()) {
322            $.fancybox({
323                'padding'       : 0,
324                'autoScale'     : false,
325                'transitionIn'  : 'none',
326                'transitionOut' : 'none',
327                'title'         : this.title,
328                'width'     : 680,
329                'height'        : 495,
330                'href'          : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
331                'type'          : 'swf',
332                'swf'           : {
333                    'wmode'        : 'transparent',
334                    'allowfullscreen'   : 'true'
335                }
336            });
337            return false;
338        };
339    });
340
341    // function is_touch_device() {
342    //     return (('ontouchstart' in window)
343    //         || (navigator.MaxTouchPoints > 0)
344    //         || (navigator.msMaxTouchPoints > 0));
345    // }
346
347    // $(".innerFoto").each(function() {
348    //     $(this).find('.count_img').text($(this).children('a').length);
349    // });
350//        $("[rel=fancybox], .fancybox").each(function() {
351//            $(this).attr('rel', 'gallery');
352////            title = $(this).attr('title');
353////            if($(this).closest('.download-image').length > 0) {
354////                title = title + ' | <a href="' + $(this).closest('.download-image').find('.download-box a').attr('href') + '">Download</a>';
355////            }
356//            $(this).fancybox({
357//            	titleShow : true,
358//            	padding : 12,
359//                title: 'ahoj',
360//                helpers : {
361//                    title : {
362//    			type : 'inside'
363//                        }
364//                    }
365//                });
366//        });
367
368    // nice checkbox
369
370    // $( "input.niceCheckbox" ).each(function( index ) {
371    //     $(this).wrap('<b class="niceCheckbox">');
372    //     $(this).parent('.niceCheckbox').append('<b />');
373    //     $(this).parent('.niceCheckbox').parent('label').addClass('checkboxFormated');
374    //     if ($(this).attr('checked')) {
375    //         $(this).next('b').addClass('checkedCheckbox');
376    //     }
377    // });
378    // $('input.niceCheckbox').change(function() {
379    //     $(this).parent('.niceCheckbox').children('b').toggleClass('checkedCheckbox');
380    // });
381    //
382    // // nice radio
383    // $( "input.niceRadio" ).each(function( index ) {
384    //     $(this).wrap('<b class="niceRadio">');
385    //     $(this).parent('.niceRadio').append('<b />');
386    //     $(this).parent('.niceRadio').parent('label').addClass('radioFormated');
387    //     if ($(this).attr('checked')) {
388    //         $(this).next('b').addClass('checkedRadio');
389    //     }
390    // });
391    // $('input.niceRadio').change(function() {
392    //     $('input[type=radio][name="'+$(this).attr('name')+'"]').parent('.niceRadio').children('b').removeClass('checkedRadio');
393    //     $(this).parent('.niceRadio').children('b').toggleClass('checkedRadio');
394    // });
395    //
396    // // nice select
397    //
398    // $( "select" ).each(function( index ) {
399    //     $(this).wrap('<b class="niceSelect">');
400    //     $(this).parent('.niceSelect').append('<b />');
401    // });
402    /*
403    $('.niceSelect b').click(function() {
404
405                $(this).parent('.niceSelect').children('select').attr('size','3').css('height','200px').css('position','absolute').css('top','0').css('left','0');
406                $(this).parent('.niceSelect').children('select').click(function() {
407                    alert("ddd");
408                });
409        //$(this).parent('.niceSelect').children('select').trigger('change');
410    });
411    */
412
413
414    if($('.checkChecked').length) {
415        $('.checkChecked label input').each(function( index ) {
416            if ($(this).attr('checked')=='checked') {
417                $(this).parent('label').addClass('selected');
418            }
419        });
420    }
421
422    $('.checkChecked label').click(function(e) {
423        $(this).toggleClass('selected');
424        if ($(this).hasClass('selected')) {
425            $(this).children().attr('checked',true);
426        } else {
427            $(this).children().attr('checked',false);
428        }
429        // e.preventDefault();
430    });
431
432    // $('#topBar .tm01 a, #topBar .tm02 a, #topBar .tm03 a, #topBar .tm04 a, #topBar .tm05 a, #topBar .tm06 a').bind("click", openSubmenu);
433
434    // function openSubmenu() {
435    //     if ($('#'+$(this).parent('li').attr('class')).is('.activeFM')==true) {
436    //         $('#'+$(this).parent('li').attr('class')).removeClass('activeFM');
437    //     } else {
438    //         $('.overMenuTop').removeClass('activeFM');
439    //         $('#'+$(this).parent('li').attr('class')).addClass('activeFM');
440    //     }
441    //     /*
442    //     $('.overMenuTop').mouseleave(function( index ) {
443    //         $('.overMenuTop').removeClass('activeFM');
444    //     });
445    //     */
446    //     return false;
447    // }
448    //
449    // $('.universalOpen').bind("click", function() {
450    //
451    // });
452
453
454    // loading gallery
455    /*
456    if ($('#activeContainer').length==1) {
457        refilShaft();
458        $('.moreItems a').bind('click', function() {
459            refilShaft();
460            return false;
461        });
462    }
463    */
464    // function refilShaft () {
465    //     $('#photoContainer').hide();
466    //     var whatShaft = 0;
467    //     $('#photoContainer .takeContent').each(function( i ) {
468    //         whatShaft = whatShaft + 1;
469    //         if (whatShaft == 5) {whatShaft = 1};
470    //         $('#activeContainer .shaft:nth-child('+whatShaft+')').append('<div class="shadowBlock"></div>');
471    //         $('#activeContainer .shaft:nth-child('+whatShaft+') .shadowBlock:last-child').append($('#photoContainer .takeContent').first().html());
472    //         $('#photoContainer .takeContent').first().remove();
473    //         activePhotos();
474    //         if (i == 7) {
475    //             return false;
476    //         };
477    //     });
478    //
479    //     $('.onePhoto').click(function() {
480    //
481    //         $(this).css('top','0').css('opacity','1');
482    //
483    //     });
484    // }
485    // detail filmu
486
487    // $('p.detailOpen a').bind("click", showDetailMovie);
488    // function showDetailMovie() {
489    //     $(this).parent('strong').parent('p').parent('td').parent('tr').toggleClass("selectedTD");
490    //     $(this).parent('strong').parent('p').parent('td').parent('tr').next('tr').toggle().next('td').toggle();
491    //     return false;
492    // }
493
494
495});
496
497// page sizes
498// function resizeBgrImgIE() {
499//     var myHeight = 0;
500//     var myWidth = 0;
501//     if( typeof( window.innerWidth ) == 'number' ) {
502//         myHeight = window.innerHeight;
503//         myWidth = window.innerWidth;
504//     } else if( document.documentElement && document.documentElement.clientHeight ) {
505//         myHeight = document.documentElement.clientHeight;
506//         myWidth = document.documentElement.clientWidth;
507//     } else if( document.body && document.body.clientHeight ) {
508//         myHeight = document.body.clientHeight;
509//         myWidth = document.body.clientWidth;
510//     }
511//     return[myWidth,myHeight];
512// }

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.