1$(function(){ 2 $('.carousel').carousel({ 3 interval: 6000, 4 pause : false 5 }) 6 7 $('.carousel-navi li').click(function(){ 8 $('.carousel-navi li').removeClass('active'); 9 $(this).addClass('active'); 10 }); 11 12 $('#news-slider').on('slid.bs.carousel', function () { 13 var active_item = $(this).find('.item.active'); 14 var active_id = active_item.attr('id').replace('item-',''); 15 $('.carousel-navi li').removeClass('active').addClass('inactive'); 16 $('.carousel-navi #indicator-'+active_id).addClass('active').removeClass('inactive'); 17 }) 18 19 20 $('.user-group a, #skip-step a').click(function(){ 21 var group_id = $(this).attr('data-groupid'); 22 $.cookie('user_group', group_id ,{ path: '/', expires: 365 * 100}); 23 }); 24 25 $('#left-menu .subcategory,#left-menu .category').click(function(){ 26 $('#left-menu .post').addClass('hidden'); 27 $('#left-menu .category,#left-menu .subcategory').removeClass('active').removeClass('current'); 28 if($(this).hasClass('category')){ 29 if($(this).hasClass('open')){ 30 $(this).removeClass('open'); 31 } 32 else 33 $(this).addClass('open'); 34 35 var category_id = $(this).attr('id').replace('category-',''); 36 if($('#left-menu .subcategory.childof-'+category_id).length > 0){ 37 $('#left-menu .post').addClass('hidden'); 38 $('#left-menu .subcategory.childof-'+category_id).toggleClass('hidden'); 39 $('#left-menu .post.grandchildof-'+category_id).addClass('hidden'); 40 } 41 else{ 42 if($(this).hasClass('open')){ 43 $('#left-menu .post.childof-'+category_id).removeClass('hidden'); 44 } 45 else{ 46 $('#left-menu .post.childof-'+category_id).addClass('hidden'); 47 } 48 } 49 50 51 } 52 else{ 53 var category_id = $(this).attr('id').replace('subcategory-',''); 54 if($(this).hasClass('active')){ 55 $(this).removeClass('active').removeClass('current'); 56 $('#left-menu .post.childof-'+category_id).removeClass('active'); 57 $('#left-menu .post.childof-'+category_id).addClass('hidden'); 58 } 59 else{ 60 $(this).addClass('active').addClass('current'); 61 $('#left-menu .post.childof-'+category_id).addClass('active'); 62 $('#left-menu .post.childof-'+category_id).removeClass('hidden'); 63 } 64 } 65 if($(this).find('a').attr('href') == '#') 66 return false; 67 }); 68 69 $('#close-cookie').click(function(){ 70 $.cookie('cookie-accept', 1 , '/', 365); 71 $('#cookie-info').hide(); 72 return false; 73 }); 74 if($.cookie('cookie-accept') != 1){ 75 $('#cookie-info').show(); 76 } 77 78 $('.entry-content header').each(function(){ 79 $(this).wrapInner('<span class="col-xs-11"></span>'); 80 $(this).append('<div class="arrow col-xs-1"><i class="glyphicon glyphicon-chevron-down"></i></div>'); 81 $(this).find('.arrow').height($(this).height()); 82 }); 83 84 $('.entry-content header').click(function(){ 85 if($(this).hasClass('active')){ 86 $(this).parent('.entry-content').find('header').removeClass('active'); 87 $(this).parent('.entry-content').find('section').hide(); 88 } 89 else{ 90 $(this).parent('.entry-content').find('header').removeClass('active'); 91 $(this).addClass('active'); 92 $(this).parent('.entry-content').find('section').hide(); 93 $(this).next('section').show(); 94 } 95 }) 96 97 var window_width = $(window).width(); 98 $('.entry-content a').each(function(){ 99 if($(this).hasClass('fancy')){ 100 var href = $(this).attr('href'); 101 if($(window).width() > 768){ 102 if (href.toLowerCase().indexOf("png") >= 0 || href.toLowerCase().indexOf("gif") >= 0 || href.toLowerCase().indexOf("bmp") >= 0 || href.toLowerCase().indexOf("jpg") >= 0 || href.toLowerCase().indexOf("jpeg") >= 0){ 103 $(this).fancybox( 104 {helpers : {title: {type: 'inside'}}, 105 arrows : true} 106 ); 107 return false;
108 } 109 } 110 else{ 111 $(this).attr('href','#'); 112 } 113 } 114 }); 115 if($(window).width() > 768){ 116 $('.gallery-icon a').fancybox( 117 { 118 helpers : {title: {type: 'inside'}}, 119 arrows : true 120 } 121 ); 122 } 123 124 $('#ellipse-theme #width-toggle').click(function(){ 125 if($(this).hasClass('on')){ 126 $('.left-col').removeClass('col-md-11').addClass('col-md-9'); 127 $('.right-col').removeClass('col-md-1').addClass('col-md-3'); 128 $(this).removeClass('on'); 129 $(this).find('a').text('>>'); 130 } 131 else{ 132 $('.left-col').removeClass('col-md-9').addClass('col-md-11'); 133 $('.right-col').removeClass('col-md-3').addClass('col-md-1'); 134 $(this).addClass('on'); 135 $(this).find('a').text('<<'); 136 } 137 }); 138 $('#menu-toggle').click(function(){ 139 $('#left-menu').toggleClass('hide'); 140 return false; 141 }) 142 143 $('#school-search-phrase').focus(function(){ 144 $('#search-label').removeClass('opened'); 145 $('#search-label').click(); 146 }); 147 148 $('[data-toggle=tooltip]').tooltip(); 149 150 $('.open-label:not(#get-data-label)').click(function(){ 151 toggleAdvancedFilters(); 152 if(!$(this).hasClass('opened')){ 153 $('.form-box:not(#search-form-box)').addClass('hide'); 154 $('#search-form-box').removeClass('full'); 155 $('#school-search-details').addClass('hide'); 156 if($(this).attr('id') == 'search-label'){ 157 $('#school-search-details').removeClass('hide'); 158 $('#search-form-box').addClass('full'); 159 } 160 else{ 161 $('.form-box:not(#search-form-box)').addClass('hide'); 162 $(this).next('.form-box').removeClass('hide').addClass('full'); 163 } 164 165 $('.open-label').removeClass('opened'); 166 $(this).addClass('opened'); 167 } 168 else{ 169 if($(this).attr('id') == 'search-label'){ 170 $('#school-search-details').addClass('hide'); 171 $('#search-form-box').removeClass('full'); 172 } 173 else{ 174 $(this).next('.form-box:not(#search-form-box)').addClass('hide'); 175 $(this).next('.form-box').removeClass('full'); 176 } 177 $(this).removeClass('opened'); 178 } 179 return false; 180 }); 181 182 $('body').on('click','.students-info',function(){ 183 var details = $(this).next('.students-info-details'); 184 if($('.students-info-details').is(':visible')) 185 $('.students-info-details').hide(); 186 if(details.is(':visible')) 187 details.hide(); 188 else 189 details.show(); 190 return false; 191 }); 192 $('body').on('click',":not(.students-info, .students-info-details, .students-info-details *)",function(){ 193 $('.students-info-details').hide(); 194 }); 195 196 197 $('body').on('click','#search-toggle',function(){ 198 $('#search-results').toggleClass('hide'); 199 $('#search-form-box').toggleClass('open'); 200 return false; 201 }) 202 203 $('#map-poland').cssMap({ 204 'size': 500, // set map size to 500px wide; 205 'onClick': function(e){ 206 var link = e.children('a').attr('href'), // get link's URL; 207 text = e.children('a').eq(0).text(), // get text of the link; 208 className = e.attr('class').split(' ')[0]; // get class name of the list item; 209 } 210 }); 211 212 $('body').on('click','*[data-toggle]',function(){ 213 $($(this).attr('data-toggle')).toggleClass('hide'); 214 }); 215 216}); 217 218function trackClickEvent(key,value){ 219 var _gaq = _gaq || []; 220 _gaq.push(['_setAccount', 'UA-20578259-3']); 221 _gaq.push(['_trackPageview']); 222 _gaq.push(['_trackEvent', key, 'clicked', value]); 223}
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.