1(function($){ 2$(document).ready(function(){ 3 4 if ( self != top ) { 5 $.logooos_findNotReadyInserted(); 6 } 7 else { 8 var logooos_containers = $('.logooos_container'); 9 10 if (logooos_containers.length ) 11 { 12 logooos_containers.each(function(){ 13 $(this).removeClass('logooos_notready'); 14 $.logooos_run($(this)); 15 }); 16 } 17 } 18 19}); 20 21 22$.logooos_findNotReadyInserted = function() { 23 24 var logooos_containers = $('.logooos_container.logooos_notready'); 25 26 if (logooos_containers.length ) 27 { 28 logooos_containers.each(function(){ 29 $(this).removeClass('logooos_notready'); 30 $.logooos_run($(this)); 31 }); 32 } 33 34 35 setTimeout(function() { 36 $.logooos_findNotReadyInserted(); 37 },1000); 38} 39 40 41$.logooos_run = function( logooos_container ) { 42 43 /*======================== Logos ========================*/ 44 45 var logooos = logooos_container.children('.logooos'); 46 var logooos_items = logooos.children('.logooos_item'); 47 var logooos_links = logooos_items.children('a'); 48 var logooos_images = logooos_items.children('img'); 49 var logooos_item_height_percentage= 0.65; 50 51 52 if(logooos.hasClass('logooos_list') && logooos.hasClass('logooos_showdetails')) { 53 var logooos_morelink = logooos_container.find('.logooos_morelink'); 54 } 55 56 if(logooos.hasClass('logooos_showdetails')) { 57 var logooos_detailsarea_closeBtn = logooos_container.find('.logooos_detailsarea_closeBtn'); 58 } 59 60 61 var logooos_detailsarea_page_url = ''; 62 63 if(logooos.hasClass('logooos_showdetails')) { 64 logooos_detailsarea_page_url = logooos.data('detailspageurl'); 65 logooos.removeAttr('data-detailspageurl'); 66 } 67 68 69 if (logooos.length ) 70 { 71 72 logooos_calculateItemsWidthAndHight(logooos); 73 74 if (logooos.hasClass('logooos_slider')) 75 { 76 logooos_runSlider(logooos); 77 } 78 79 80 $(window).resize(function() { 81 82 logooos_calculateItemsWidthAndHight(logooos); 83 84 if (logooos.hasClass('logooos_slider')) 85 { 86 setTimeout(function(){ 87 logooos_runSlider(logooos); 88 },500); 89 } 90 91 }); 92 93 94 // Hover Effects 95 96 logooos_items.mouseenter(function(){ 97 98 if($(this).parent().data('hovereffect')=='effect1') { 99 100 $(this).css('box-shadow', '0px 0px 10px 2px '+$(this).parent().data('hovereffectcolor')); 101 102 } 103 else if($(this).parent().data('hovereffect')=='effect2') { 104 105 $(this).children('a').children('.logooos_effectspan').css('box-shadow', 'inset 0px 0px '+$(this).width()/10+'px 3px '+$(this).parent().data('hovereffectcolor')); 106 107 } 108 else if($(this).parent().data('hovereffect')=='effect3') { 109 $(this).css('border-color', $(this).parent().data('hovereffectcolor')); 110 } 111 else if($(this).parent().data('hovereffect')=='effect4') { 112 113 $(this).parent().children('.logooos_item').stop().animate({opacity: 0.3},300); 114 115 if($(this).parent().hasClass('logooos_list')) { 116 $(this).parent().children('.logooos_textcontainer').stop().animate({opacity: 0.3},300); 117 $(this).next().stop().animate({opacity: 1},300); 118 } 119 120 $(this).stop().animate({opacity: 1},300); 121 } 122 123 }); 124 125 logooos_items.mouseleave(function(){ 126 if($(this).parent().data('hovereffect')=='effect1') { 127 $(this).css('box-shadow', ''); 128 } 129 else if($(this).parent().data('hovereffect')=='effect2') { 130 $(this).children('a').children('.logooos_effectspan').css('box-shadow', ''); 131 } 132 else if($(this).parent().data('hovereffect')=='effect3') { 133 $(this).css('border-color', $(this).parent().data('bordercolor')); 134 } 135 else if($(this).parent().data('hovereffect')=='effect4') { 136 $(this).parent().children('.logooos_item').stop().animate({opacity: 1},300); 137 138 if($(this).parent().hasClass('logooos_list')) { 139 $(this).parent().children('.logooos_textcontainer').stop().animate({opacity: 1},300); 140 } 141 } 142 143 }); 144 145 // Tooltip 146 147 if(logooos.hasClass('logooos_withtooltip')) { 148 149 logooos_items.mouseenter(function(){ 150 151 var tooltips=$('.logooos_tooltip'); 152 if(tooltips.length) { 153 tooltips.remove(); 154 } 155 156 if($(this).data('title')!='') 157 { 158 var tooltip=$('<div class="logooos_tooltip"><span class="logooos_tooltipText">'+$(this).data('title')+'<span class="logooos_tooltipArrow"></span></span></div>'); 159 tooltip.appendTo('body'); 160 161 tooltip.css('opacity',0); 162 163 var arrowBgPosition=''; 164 165 // Left 166 if($(this).offset().left + $(this).width()/2 - tooltip.width()/2 < 0) { 167 tooltip.css('left', 1 ); 168 arrowBgPosition = $(this).offset().left + $(this).width()/2 - 11 +'px'; 169 } 170 else if($(this).offset().left + $(this).width()/2 - tooltip.width()/2 +tooltip.width() > $(window).width()) { 171 tooltip.css('right', 1 ); 172 arrowBgPosition = $(this).offset().left - tooltip.offset().left + $(this).width()/2 - 11 +'px'; 173 } 174 else { 175 tooltip.css('left', $(this).offset().left + $(this).width()/2 - tooltip.width()/2 ); 176 arrowBgPosition='center'; 177 } 178 179 // Top 180 if($(window).scrollTop() > $(this).offset().top - tooltip.height()) { 181 tooltip.css('top', $(this).offset().top + $(this).height()+13); 182 arrowBgPosition+=' top'; 183 tooltip.find('.logooos_tooltipArrow').css({'background-position': arrowBgPosition, 'bottom': '100%'}); 184 } 185 else { 186 tooltip.css('top', $(this).offset().top - tooltip.height()+9); 187 arrowBgPosition+=' bottom'; 188 tooltip.find('.logooos_tooltipArrow').css({'background-position': arrowBgPosition, 'top': '100%'}); 189 } 190 191 // Show 192 if( $(this).offset().left < $(this).parent().parent().offset().left + $(this).parent().parent().width()) { 193 tooltip.animate({opacity:1,top:'-=10px'},'slow'); 194 } 195 } 196 197 }); 198 199 // Remove Tooltip 200 logooos_items.mouseleave(function(){ 201 var tooltips=$('.logooos_tooltip'); 202 if(tooltips.length) { 203 tooltips.remove(); 204 } 205 }); 206 207 } 208 209 210 } 211 212 213 // Details Area 214 215 if(logooos.hasClass('logooos_slider') && logooos.hasClass('logooos_showdetails')) { 216 217 logooos_items.click(function() { 218 219 var logooos_logoid = $(this).data('id'); 220 var logooos_selectedlogo = $(this); 221 var logooos_detailsarea = $(this).parent().parent().parent().children('.logooos_detailsarea'); 222 var logooos_detailsarea_container = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container'); 223 var logooos_detailsarea_img = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_img');
224 var logooos_detailsarea_title = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_title'); 225 var logooos_detailsarea_text = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_text'); 226 227 228 logooos_selectedlogo.parent().children('.logooos_item').removeClass('logooos_loading'); 229 logooos_selectedlogo.addClass('logooos_loading'); 230 231 logooos_detailsarea.slideUp('slow',function(){ 232 $.get(logooos_detailsarea_page_url, { logo_id: logooos_logoid } , function(data){ 233 234 logooos_detailsarea_img.css({'backgroundImage': 'url('+data.thumbnailsrc+')', 'backgroundSize': data.bgSize}); 235 logooos_detailsarea_title.text(data.title); 236 logooos_detailsarea_text.html(data.text); 237 238 logooos_detailsarea_title.css('paddingTop',0); 239 240 logooos_detailsarea.slideDown('slow'); 241 242 if(logooos_selectedlogo.parent().data('itemsheightpercentage')!='') { 243 logooos_item_height_percentage = logooos_selectedlogo.parent().data('itemsheightpercentage'); 244 } 245 246 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 247 logooos_detailsarea_img.height(logooos_detailsarea_img.width()*logooos_item_height_percentage); 248 } 249 250 logooos_selectedlogo.removeClass('logooos_loading'); 251 252 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 253 if((logooos_detailsarea_text.height()+logooos_detailsarea_title.height()) < logooos_detailsarea_img.height()) { 254 logooos_detailsarea_title.css('paddingTop', (logooos_detailsarea_img.height() - (logooos_detailsarea_text.height()+logooos_detailsarea_title.height()+15))/2) 255 } 256 } 257 258 }, 'json'); 259 }); 260 261 return false; 262 263 }); 264 265 } 266 267 268 if(logooos.hasClass('logooos_grid') && logooos.hasClass('logooos_showdetails')) { 269 270 logooos_items.click(function() { 271 272 var logooos_logoid = $(this).data('id'); 273 274 var logooos_loopindex = 1; 275 var logooos_selectedlogo = $(this); 276 var logooos_nextlogo = $(this).next('div'); 277 var logooos_detailsarea = $(this).parent().children('.logooos_detailsarea'); 278 var logooos_detailsarea_container = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container'); 279 var logooos_detailsarea_img = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_img'); 280 var logooos_detailsarea_title = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_title'); 281 var logooos_detailsarea_text = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_text'); 282 283 284 logooos_selectedlogo.parent().children('.logooos_item').removeClass('logooos_loading'); 285 logooos_selectedlogo.addClass('logooos_loading'); 286 287 logooos_detailsarea.slideUp('slow',function(){ 288 289 while(logooos_loopindex == 1 ) { 290 291 if(logooos_nextlogo.length == 1) { 292 293 if(logooos_selectedlogo.offset().top != logooos_nextlogo.offset().top) { 294 295 logooos_detailsarea.insertBefore( logooos_nextlogo ); 296 logooos_loopindex= 0; 297 298 } 299 else { 300 logooos_nextlogo = logooos_nextlogo.next('div'); 301 } 302 303 } 304 else if(logooos_nextlogo.length == 0) { 305 306 logooos_detailsarea.insertAfter( logooos_selectedlogo.parent().children('div:last-child') ); 307 logooos_loopindex= 0; 308 309 } 310 311 } 312 313 314 $.get(logooos_detailsarea_page_url, { logo_id: logooos_logoid } , function(data){ 315 316 logooos_detailsarea_img.css({'backgroundImage': 'url('+data.thumbnailsrc+')', 'backgroundSize': data.bgSize}); 317 logooos_detailsarea_title.text(data.title); 318 logooos_detailsarea_text.html(data.text); 319 320 logooos_detailsarea_title.css('paddingTop',0); 321 322 logooos_detailsarea.slideDown('slow'); 323 324 if(logooos_selectedlogo.parent().data('itemsheightpercentage')!='') { 325 logooos_item_height_percentage = logooos_selectedlogo.parent().data('itemsheightpercentage'); 326 } 327 328 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 329 logooos_detailsarea_img.height(logooos_detailsarea_img.width()*logooos_item_height_percentage); 330 } 331 332 logooos_selectedlogo.removeClass('logooos_loading'); 333 334 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 335 if((logooos_detailsarea_text.height()+logooos_detailsarea_t
335itle.height()) < logooos_detailsarea_img.height()) { 336 logooos_detailsarea_title.css('paddingTop', (logooos_detailsarea_img.height() - (logooos_detailsarea_text.height()+logooos_detailsarea_title.height()+15))/2) 337 } 338 } 339 340 }, 'json'); 341 342 }); 343 344 345 return false; 346 347 }); 348 } 349 350 351 if(logooos.hasClass('logooos_list') && logooos.hasClass('logooos_showdetails')) { 352 353 logooos_items.click(function() { 354 355 var logooos_logoid = $(this).data('id'); 356 var logooos_selectedlogo = $(this); 357 var logooos_detailsarea = $(this).parent().children('.logooos_detailsarea'); 358 var logooos_detailsarea_container = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container'); 359 var logooos_detailsarea_img = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_img'); 360 var logooos_detailsarea_title = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_title'); 361 var logooos_detailsarea_text = $(this).parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_text'); 362 363 364 logooos_selectedlogo.parent().children('.logooos_item').removeClass('logooos_loading'); 365 logooos_selectedlogo.addClass('logooos_loading'); 366 367 logooos_detailsarea.slideUp('slow',function(){ 368 369 370 logooos_selectedlogo.parent().children('div.logooos_item').fadeIn('slow'); 371 logooos_selectedlogo.parent().children('.logooos_textcontainer').children('.logooos_title, .logooos_text').slideDown('slow'); 372 logooos_selectedlogo.parent().children('.logooos_textcontainer').removeClass('logooos_withoutMinHeight'); 373 374 logooos_detailsarea.insertBefore( logooos_selectedlogo ); 375 376 $.get(logooos_detailsarea_page_url, { logo_id: logooos_logoid } , function(data){ 377 378 logooos_detailsarea_img.css({'backgroundImage': 'url('+data.thumbnailsrc+')', 'backgroundSize': data.bgSize}); 379 logooos_detailsarea_title.text(data.title); 380 logooos_detailsarea_text.html(data.text); 381 382 logooos_detailsarea_title.css('paddingTop',0); 383 384 385 logooos_selectedlogo.css('display','none'); 386 logooos_selectedlogo.next('div').children('.logooos_title, .logooos_text').css('display','none'); 387 logooos_selectedlogo.next('div').addClass('logooos_withoutMinHeight'); 388 389 390 logooos_detailsarea.slideDown('slow'); 391 392 if(logooos_selectedlogo.parent().data('itemsheightpercentage')!='') { 393 logooos_item_height_percentage = logooos_selectedlogo.parent().data('itemsheightpercentage'); 394 } 395 396 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 397 logooos_detailsarea_img.height(logooos_detailsarea_img.width()*logooos_item_height_percentage); 398 } 399 400 logooos_selectedlogo.removeClass('logooos_loading'); 401 402 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 403 if((logooos_detailsarea_text.height()+logooos_detailsarea_title.height()) < logooos_detailsarea_img.height()) { 404 logooos_detailsarea_title.css('paddingTop', (logooos_detailsarea_img.height() - (logooos_detailsarea_text.height()+logooos_detailsarea_title.height()+15))/2) 405 } 406 } 407 408 }, 'json'); 409 }); 410 411 return false; 412 }); 413 414 } 415 416 417 418 if(logooos.hasClass('logooos_list') && logooos.hasClass('logooos_showdetails')) { 419 420 logooos_morelink.click(function() { 421 422 var logooos_logoid = $(this).parent().parent().prev('.logooos_item').data('id'); 423 var logooos_selectedlogo = $(this).parent().parent().prev('.logooos_item'); 424 var logooos_detailsarea = $(this).parent().parent().parent().children('.logooos_detailsarea'); 425 var logooos_detailsarea_container = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container'); 426 var logooos_detailsarea_img = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_img');
427 var logooos_detailsarea_title = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_title'); 428 var logooos_detailsarea_text = $(this).parent().parent().parent().children('.logooos_detailsarea').children('.logooos_detailsarea_container').children('.logooos_detailsarea_text'); 429 430 431 logooos_selectedlogo.parent().children('.logooos_item').removeClass('logooos_loading'); 432 logooos_selectedlogo.addClass('logooos_loading'); 433 434 logooos_detailsarea.slideUp('slow',function(){ 435 436 437 logooos_selectedlogo.parent().children('div.logooos_item').fadeIn('slow'); 438 logooos_selectedlogo.parent().children('.logooos_textcontainer').children('.logooos_title, .logooos_text').slideDown('slow'); 439 logooos_selectedlogo.parent().children('.logooos_textcontainer').removeClass('logooos_withoutMinHeight'); 440 441 logooos_detailsarea.insertBefore( logooos_selectedlogo ); 442 443 $.get(logooos_detailsarea_page_url, { logo_id: logooos_logoid } , function(data){ 444 445 logooos_detailsarea_img.css({'backgroundImage': 'url('+data.thumbnailsrc+')', 'backgroundSize': data.bgSize}); 446 logooos_detailsarea_title.text(data.title); 447 logooos_detailsarea_text.html(data.text); 448 449 logooos_detailsarea_title.css('paddingTop',0); 450 451 452 logooos_selectedlogo.css('display','none'); 453 logooos_selectedlogo.next('div').children('.logooos_title, .logooos_text').css('display','none'); 454 logooos_selectedlogo.next('div').addClass('logooos_withoutMinHeight'); 455 456 457 logooos_detailsarea.slideDown('slow'); 458 459 if(logooos_selectedlogo.parent().data('itemsheightpercentage')!='') { 460 logooos_item_height_percentage = logooos_selectedlogo.parent().data('itemsheightpercentage'); 461 } 462 463 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 464 logooos_detailsarea_img.height(logooos_detailsarea_img.width()*logooos_item_height_percentage); 465 } 466 467 logooos_selectedlogo.removeClass('logooos_loading'); 468 469 if(logooos_detailsarea.hasClass('logooos_withoutLogo')==false) { 470 if((logooos_detailsarea_text.height()+logooos_detailsarea_title.height()) < logooos_detailsarea_img.height()) { 471 logooos_detailsarea_title.css('paddingTop', (logooos_detailsarea_img.height() - (logooos_detailsarea_text.height()+logooos_detailsarea_title.height()+15))/2) 472 } 473 } 474 475 }, 'json'); 476 }); 477 478 return false; 479 }); 480 481 } 482 483 484 485 486 487 if(logooos.hasClass('logooos_showdetails')) { 488 489 logooos_detailsarea_closeBtn.click(function() { 490 $(this).parent().stop().slideUp('slow', function(){ 491 492 if($(this).parent().hasClass('logooos_list')) { 493 $(this).parent().children('div.logooos_item, div.logooos_textcontainer .logooos_title, div.logooos_textcontainer .logooos_text').css('display','block'); 494 495 $(this).parent().children('div.logooos_item').fadeIn('slow'); 496 $(this).parent().children('.logooos_textcontainer').children('.logooos_title, .logooos_text').slideDown('slow'); 497 498 $(this).parent().children('.logooos_textcontainer').removeClass('logooos_withoutMinHeight'); 499 } 500 501 }); 502 503 return false; 504 }); 505 506 } 507 508 509} 510 511 512 513 514function logooos_calculateItemsWidthAndHight(list) { 515 516 if(list.data('itemsheightpercentage')!='') { 517 var logooos_item_height_percentage = list.data('itemsheightpercentage'); 518 } 519 else { 520 var logooos_item_height_percentage= 0.65; 521 } 522 523 var logooos_itemBorderLeftRight = parseInt(list.children('.logooos_item').css('borderLeftWidth').replace('px', ''))+parseInt(list.children('.logooos_item').css('borderRightWidth').replace('px', '')); 524 525 526 if(list.hasClass('logooos_grid') || list.hasClass('logooos_slider')) { 527 528 529 530 if(list.hasClass('logooos_grid')) { 531 list.parent().width('auto'); 532 533 if(list.hasClass('logooos_showdetails')) { 534 list.children('.logooos_detailsarea').css('display','none'); 535 list.children('.logooos_detailsarea').insertAfter(list.children('div:last-child')); 536 537 if(list.parent().width() < 481) { 538 list.children('.logooos_detailsarea').addClass('logooos_small_width'); 539 } 540 else { 541 list.children('.logooos_detailsarea').removeClass('logooos_small_width'); 542 } 543 } 544 } 545 546 if(list.hasClass('logooos_slider')) { 547 list.parents('.logooos_container').width('auto'); 548 549 if(list.hasClass('logooos_showdetails')) { 550 list.parents('.logooos_container').children('.logooos_detailsarea').css('display','none'); 551 552 if(list.parents('.logooos_container').width() < 481) { 553 list.parents('.logooos_container').children('.logooos_detailsarea').addClass('logooos_small_width'); 554 } 555 else { 556 list.parents('.logooos_container').children('.logooos_detailsarea').removeClass('logooos_small_width'); 557 } 558 } 559 } 560 561 if(list.data('marginBetweenItems')!='') { 562 list.children('.logooos_item').css('margin', Math.floor(parseFloat(list.data('marginbetweenitems'))/2)); 563 } 564 565 var logooos_itemMarginLeftRight = parseFloat(list.children('.logooos_item').css('marginLeft').replace('px', ''))+parseFloat(list.children('.logooos_item').css('marginRight').replace('px', '')); 566 567 if( $(window).width() >= 1024 || !list.hasClass('logooos_responsive') ) { 568 list.parent().width(Math.floor(list.width()/list.data('columnsnum'))*list.data('columnsnum')); 569 list.children('.logooos_item').width(Math.floor(list.width()/list.data('columnsnum'))-(logooos_itemMarginLeftRight+logooos_itemBorderLeftRight) ); 570 } 571 else if( $(window).width() < 1024 && $(window).width() >= 481) { 572 var windowHeight = $(window).height(); 573 var windowWidth = $(window).width(); 574 575 if(windowHeight < windowWidth && list.data('columnsnum') > 4) { 576 list.parent().width(Math.floor(list.width()/4)*4); 577 list.children('.logooos_item').width(Math.floor(list.width()/4)-(logooos_itemMarginLeftRight+logooos_itemBorderLeftRight) ); 578 } 579 else if(windowHeight > windowWidth && list.data('columnsnum') > 3) { 580 list.parent().width(Math.floor(list.width()/3)*3); 581 list.children('.logooos_item').width(Math.floor(list.width()/3)-(logooos_itemMarginLeftRight+logooos_itemBorderLeftRight) ); 582 } 583 else { 584 list.parent().width(Math.floor(list.width()/list.data('columnsnum'))*list.data('columnsnum')); 585 list.children('.logooos_item').width(Math.floor(list.width()/list.data('columnsnum'))-(logooos_itemMarginLeftRight+logooos_itemBorderLeftRight) ); 586 } 587 } 588 else if( $(window).width() < 481 && list.data('columnsnum') > 2 ) { 589 list.parent().width(Math.floor(list.width()/2)*2); 590 list.children('.logooos_item').width(Math.floor(list.width()/2)-(logooos_itemMarginLeftRight+logooos_itemBorderLeftRight) ); 591 } 592 else { 593 list.parent().width(Math.floor(list.width()/list.data('columnsnum'))*list.data('columnsnum')); 594 list.children('.logooos_item').width(Math.floor(list.width()/list.data('columnsnum'))-(logooos_itemMarginLeftRight+logooos_itemBorderLeftRight) ); 595 } 596 597 598 599 } 600 else if(list.hasClass('logooos_list')) { 601 602 if(list.hasClass('logooos_showdetails')) { 603 list.children('.logooos_detailsarea').css('display','none'); 604 list.find('.logooos_title, .logooos_text').css('display','block'); 605 list.find('.logooos_textcontainer.logooos_withoutMinHeight').removeClass('logooos_withoutMinHeight'); 606 607 if(list.parent().width() < 481) { 608 list.children('.logooos_detailsarea').addClass('logooos_small_width'); 609 } 610 else { 611 list.children('.logooos_detailsarea').removeClass('logooos_small_width'); 612 } 613 } 614 615 if( list.parent().width() < 481 ) { 616 list.children('.logooos_item').width(Math.floor(list.width())-logooos_itemBorderLeftRight ).css({'marginBottom':30, 'float':'none'}); 617 list.children('.logooos_item').height(parseInt(list.children('.logooos_item').width()*logooos_item_height_percentage)); 618 list.children('.logooos_textcontainer').css('min-height',0); 619 list.children('.logooos_textcontainer').children('.logooos_text, .logooos_title').css({'marginLeft':0}); 620 } 621 else { 622 list.children('.logooos_item').width(180).css({'marginBottom':0, 'float':'left'}); 623 list.children('.logooos_item').height(parseInt(list.children('.logooos_item').width()*logooos_item_height_percentage)); 624 list.children('.logooos_textcontainer').css('min-height',list.children('.logooos_item').height()+logooos_itemBorderLeftRight); 625 list.children('.logooos_textcontainer').children('.logooos_text, .logooos_title').css({'marginLeft':210}); 626 } 627 628 629 } 630 631 list.children('.logooos_item').height(parseInt(list.children('.logooos_item').width()*logooos_item_height_percentage)); 632 633 list.children('.logooos_item').css('display','inline-block'); 634 635} 636 637 638 639 640function logooos_runSlider(slider) { 641 642 643 var min=slider.data('columnsnum'); 644 var max=slider.data('columnsnum'); 645 var pauseOnHover = true; 646 647 if(slider.data('itemsheightpercentage')!='') { 648 var logooos_item_height_percentage = slider.data('itemsheightpercentage'); 649 } 650 else { 651 var logooos_item_height_percentage= 0.65; 652 } 653 654 if(slider.hasClass('logooos_responsive')) { 655 656 if( $(window).width() <= 480 ) { 657 min=1; 658 max=1; 659 } 660 else if($(window).width() > 480 && $(window).width() < 600 && slider.data('columnsnum') > 3 ) { 661 min=3; 662 max=3; 663 } 664 else if($(window).width() > 600 && $(window).width() < 1024 && slider.data('columnsnum') > 4 ) { 665 min=4; 666 max=4; 667 } 668 669 } 670 671 672 if(slider.data('pauseduration')=='0') { 673 pauseOnHover = 'immediate-resume'; 674 } 675 676 677 slider.carouFredSel({ 678 responsive: true, 679 width:'100%', 680 circular:slider.data('circular'), 681 infinite:true, 682 prev: { 683 button: function() { 684 if(slider.data('pauseduration')=='0') { 685 return null; 686 } 687 else { 688 $(this).parent().append('<a class="logooos_prev '+$(this).data('buttonsarrowscolor')+'" style="background-color:'+$(this).data('buttonsbgcolor')+';border-color:'+$(this).data('buttonsbordercolor')+';" href="#"></a>'); 689 return $(this).parents().children(".logooos_prev"); 690 } 691 } 692 }, 693 next: { 694 button: function() { 695 if(slider.data('pauseduration')=='0') { 696 return null; 697 } 698 else { 699 $(this).parent().append('<a class="logooos_next '+$(this).data('buttonsarrowscolor')+'" style="background-color:'+$(this).data('buttonsbgcolor')+';border-color:'+$(this).data('buttonsbordercolor')+';" href="#"></a>'); 700 return $(this).parents().children(".logooos_next"); 701 } 702 } 703 }, 704 pagination: { 705 container: function() { 706 if(slider.data('pagination')=='enabled' && slider.data('pauseduration')!='0') { 707 return $(this).parents().next(".logooos_slider_pagination"); 708 } 709 }, 710 anchorBuilder: function() { 711 return '<span style="background-color:'+slider.data('paginationcolor')+';border-color:'+slider.data('paginationcolor')+';"></span>'; 712 } 713 }, 714 scroll: { 715 items:function(num) { 716 if(num==1) { 717 return 1; 718 } 719 else if(num>=2 && num<=5) { 720 return 2; 721 } 722 else if(num>=6 && num<=7) { 723 return 3; 724 } 725 else if(num>=8 && num<=9) { 726 return 4; 727 } 728 else if(num>=10) { 729 return 5; 730 } 731 }, 732 easing:slider.data('easingfunction'), 733 duration: slider.data('scrollduration'), 734 fx: slider.data('transitioneffect') 735 }, 736 items: { 737 width: 200, 738 visible: { 739 min: min, 740 max: max 741 } 742 }, 743 auto: { 744 play: slider.data('autoplay'), 745 timeoutDuration: slider.data('pauseduration'), 746 pauseOnHover: pauseOnHover 747 }, 748 swipe: { 749 onMouse: false, 750 onTouch: true 751 } 752 }); 753 754 if( $(window).width() > 1024 && slider.data('pauseduration')!='0') { 755 slider.parents('.caroufredsel_wrapper').mouseenter(function(){ 756 $(this).children(".logooos_prev").fadeIn('slow'); 757 $(this).children(".logooos_next").fadeIn('slow'); 758 }); 759 760 slider.parents('.caroufredsel_wrapper').mouseleave(function(){ 761 $(this).children(".logooos_prev").fadeOut('slow'); 762 $(this).children(".logooos_next").fadeOut('slow'); 763 }); 764 } 765 766 var logooos_itemMarginTopBottom = parseFloat(slider.children('.logooos_item').css('marginLeft').replace('px', ''))+parseFloat(slider.children('.logooos_item').css('marginRight').replace('px', '')); 767 var logooos_itemBorderTopBottom = parseInt(slider.children('.logooos_item').css('borderLeftWidth').replace('px', ''))+parseInt(slider.children('.logooos_item').css('borderRightWidth').replace('px', '')); 768 769 slider.children('.logooos_item').height(parseInt(slider.children('.logooos_item').width()*logooos_item_height_percentage)); 770 771 if(logooos_itemBorderTopBottom >= 1) { 772 slider.parent().height(parseInt(slider.children('.logooos_item').width()*logooos_item_height_percentage + logooos_itemMarginTopBottom + logooos_itemBorderTopBottom +1)); 773 } 774 else { 775 slider.parent().height(parseInt(slider.children('.logooos_item').width()*logooos_item_height_percentage + logooos_itemMarginTopBottom + logooos_itemBorderTopBottom )); 776 } 777 778 slider.height(parseInt(slider.children('.logooos_item').height()+ logooos_itemMarginTopBottom + logooos_itemBorderTopBottom)); 779 780 if(logooos_itemBorderTopBottom >= 1) { 781 slider.parent().height(parseInt(slider.children('.logooos_item').height()+ logooos_itemMarginTopBottom + logooos_itemBorderTopBottom +1)); 782 slider.parent().width(slider.parent().width()+1); 783 } 784 else { 785 slider.parent().height(parseInt(slider.children('.logooos_item').height()+ logooos_itemMarginTopBottom + logooos_itemBorderTopBottom )); 786 slider.parent().width(slider.parent().width()); 787 } 788 789 if(slider.data('pauseduration')!='0') { 790 logooos_prev=slider.parents().children(".logooos_prev"); 791 logooos_prev.css('top',slider.parents().height()/2 - logooos_prev.height()/2 ); 792 logooos_prev.css('display','none'); 793 794 logooos_next=slider.parents().children(".logooos_next"); 795 logooos_next.css('top',slider.parents().height()/2 - logooos_next.height()/2 ); 796 logooos_next.css('display','none'); 797 } 798 799} 800 801})(jQuery);
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.