1 2/* 3 * BCBF custom function and basic command 4 * October 2019 SM@Archimedia 5 */ 6 7 8$(function() { 9 10 11 // applica un iframe responsivo ai video esterni 12 if($('iframe').length > 0){ 13 14 var iframes = $('iframe'); 15 16 $.each(iframes, function(i,vx){ 17 18 var v = $(vx); 19 20 if(v.attr('src') && (v.attr('src').indexOf('you') !== -1 || v.attr('src').indexOf('vimeo') !== -1)){ 21 //console.log('yes video responsive now!') 22 v.addClass('embed-responsive-item'); 23 v.attr('allowfullscreen', true); 24 v.removeAttr('width'); 25 v.removeAttr('height'); 26 v.wrap('<div class="embed-responsive embed-responsive-16by9"></div>'); 27 } 28 }); 29 } 30 31 // tooltip init 32 $('[data-toggle="tooltip"]').tooltip(); 33 // popover init 34 $('[data-toggle="popover"]').popover(); 35 36 // setup menu 2 liv 37 $('#navbar1').bootnavbar(); 38 39 /* llightbox gallery */ 40 $(document).on('click', '[data-toggle="lightbox"]', function(event) { 41 event.preventDefault(); 42 43 var me = $(this); 44 45 if($('#modifica-lightbox').length == 1){ 46 // SM@10-11-2020 modificato per la dashboard illustratori a_id 10508 47 var id_anagrafica = me.data('gallery').split('-')[2]; 48 49 $(this).ekkoLightbox({ 50 alwaysShowClose: false, 51 onShown: function() { 52 modifica_lightBox_illustratori_jury(id_anagrafica); 53 } 54 }); 55 } 56 else{ 57 // tutto il sito 58 $(this).ekkoLightbox(); 59 } 60 }); 61 62 /* template _premi_giuria */ 63 $('.blocco-testo-and-cta .p-read-more a').on('click', function(e){ 64 e.preventDefault(); 65 $(this).closest('div.blocco-testo-and-cta').find('.testo-corto').removeClass('testo-corto'); 66 $(this).hide(); 67 }); 68 69 $('#owl_hltoday').owlCarousel({ 70 nav: true, 71 //rtl:true, 72 navText: frecceNere, 73 dots: true, 74 margin: 20, 75 loop: true, 76 item:1, 77 slideBy: 1, 78 autoplay:true, 79 autoplayTimeout:4000, 80 autoplayHoverPause:true, 81 stagePadding: 4, 82 animateOut: 'slideOutLeft', 83 animateIn: 'slideInRight', 84 responsive: { 85 0: { 86 items: 1 87 }, 88 480: { 89 items: 1 90 }, 91 768: { 92 items: 1 93 }, 94 980: { 95 items: 1 96 } 97 } 98 }); 99 100 $('#owl_shopcarousel').owlCarousel({ 101 nav: true, 102 //rtl:true, 103 //navText: false, 104 dots: true, 105 margin: 20, 106 loop: true, 107 item:3, 108 slideBy: 1, 109 autoplay:true, 110 autoplayTimeout:4000, 111 autoplayHoverPause:true, 112 stagePadding: 3, 113 animateOut: 'slideOutLeft', 114 animateIn: 'slideInRight', 115 responsive: { 116 0: { 117 items: 1 118 }, 119 480: { 120 items: 2 121 }, 122 768: { 123 items: 2 124 }, 125 980: { 126 items: 3 127 } 128 } 129 }); 130 131 $('#programma_1').owlCarousel({ 132 nav: true, 133 //rtl:true, 134 navText: frecceNere, 135 dots: false, 136 margin: 20, 137 loop: true, 138 item:3, 139 slideBy: 1, 140 autoplay:true, 141 autoplayTimeout:4000, 142 autoplayHoverPause:true, 143 stagePadding: 3, 144 animateOut: 'slideOutLeft', 145 animateIn: 'slideInRight', 146 responsive: { 147 0: { 148 items: 1 149 }, 150 480: { 151 items: 2 152 }, 153 768: { 154 items: 2 155 }, 156 980: { 157 items: 2 158 } 159 } 160 }); 161 162 $('#programma_2').owlCarousel({ 163 nav: true, 164 //rtl:true, 165 navText: frecceNere, 166 dots: false, 167 margin: 20, 168 loop: true, 169 item:3, 170 slideBy: 1, 171 autoplay:true, 172 autoplayTimeout:4000, 173 autoplayHoverPause:true, 174 stagePadding: 3, 175 animateOut: 'slideOutLeft', 176 animateIn: 'slideInRight', 177 responsive: { 178 0: { 179 items: 1 180 }, 181 480: { 182 items: 2 183 }, 184 768: { 185 items: 2 186 }, 187 980: { 188 items: 2 189 } 190 } 191 }); 192 193 $('#programma_3').owlCarousel({ 194 nav: true, 195 //rtl:true, 196 navText: frecceNere, 197 dots: false, 198 margin: 20, 199 loop: true, 200 item:3, 201 slideBy: 1, 202 autoplay:true, 203 autoplayTimeout:4000, 204 autoplayHoverPause:true, 205 stagePadding: 3, 206 animateOut: 'slideOutLeft', 207 animateIn: 'slideInRight', 208 responsive: { 209 0: { 210 items: 1 211 }, 212 480: { 213 items: 2 214 }, 215 768: { 216 items: 2 217 }, 218 980: { 219 items: 3 220 } 221 } 222 }); 223 224 $('#programma_4').owlCarousel({ 225 nav: true, 226 //rtl:true, 227 navText: frecceNere, 228 dots: false, 229 margin: 20, 230 loop: true, 231 item:3, 232 slideBy: 1, 233 autoplay:true, 234 autoplayTimeout:4000, 235 autoplayHoverPause:true, 236 stagePadding: 3, 237 animateOut: 'slideOutLeft', 238 animateIn: 'slideInRight', 239 responsive: { 240 0: { 241 items: 1 242 }, 243 480: { 244 items: 2 245 }, 246 768: { 247 items: 2 248 }, 249 980: { 250 items: 2 251 } 252 } 253 }); 254 255 $('#programma_5').owlCarousel({ 256 nav: true, 257 //rtl:true, 258 navText: frecceNere, 259 dots: false, 260 margin: 20, 261 loop: true, 262 item:3, 263 slideBy: 1, 264 autoplay:true, 265 autoplayTimeout:4000, 266 autoplayHoverPause:true, 267 stagePadding: 3, 268 animateOut: 'slideOutLeft', 269 animateIn: 'slideInRight', 270 responsive: { 271 0: { 272 items: 1 273 }, 274 480: { 275 items: 2 276 }, 277 768: { 278 items: 2 279 }, 280 980: { 281 items: 2 282 } 283 } 284 }); 285 286 $('#owl_breakingnews').owlCarousel({ 287 nav: true, 288 //rtl:true, 289 navText: ["",""], 290 dots: true, 291 margin: 15, 292 loop: true, 293 item:3, 294 slideBy: 3, 295 autoplay:true, 296 autoplayTimeout:4000, 297 autoplayHoverPause:true, 298 stagePadding: 3, 299 animateOut: 'slideOutLeft', 300 animateIn: 'slideInRight', 301 responsive: { 302 0: { 303 items: 1 304 }, 305 480: { 306 items: 1 307 }, 308 768: { 309 items: 2 310 }, 311 980: { 312 items: 2 313 } 314 } 315 }); 316 317 318 $('#owl_letters').owlCarousel({ 319 nav: true, 320 //rtl:true, 321 navText: frecceNere, 322 dots: true, 323 margin: 15, 324 loop: true, 325 item:1, 326 slideBy: 1, 327 autoplay:true, 328 autoplayTimeout:4000, 329 autoplayHoverPause:true, 330 stagePadding: 3, 331 animateOut: 'slideOutLeft', 332 animateIn: 'slideInRight', 333 responsive: { 334 0: { 335 items: 1 336 }, 337 480: { 338 items: 1 339 }, 340 768: { 341 items: 3 342 }, 343 1025: { 344 items: 6 345 } 346 } 347 }); 348 349 $('#owl_highlights').owlCarousel({ 350 nav: true, 351 //rtl:true, 352 navText: frecceNere, 353 dots: true, 354 margin: 15, 355 loop: true, 356 item:3, 357 slideBy: 3, 358 autoplay:true, 359 autoplayTimeout:4000, 360 autoplayHoverPause:true, 361 stagePadding: 3, 362 animateOut: 'slideOutLeft', 363 animateIn: 'slideInRight', 364 responsive: { 365 0: { 366 items: 1 367 }, 368 480: { 369 items: 2 370 }, 371 768: { 372 items: 3 373 }, 374 980: { 375 items: 3 376 } 377 } 378 }); 379 $('#owl_programme').owlCarousel({ 380 nav: true, 381 //rtl:true, 382 navText: frecceNere, 383 dots: true, 384 margin: 15, 385 loop: true, 386 item:2, 387 slideBy: 1, 388 animateOut: 'slideOutLeft', 389 animateIn: 'slideInRight', 390 smartSpeed:1000, 391 autoplay:true, 392 autoplayTimeout:2000, 393 autoplayHoverPause:true, 394 stagePadding: 3, 395 responsive: { 396 0: { 397 items: 1 398 }, 399 480: { 400 items: 1 401 }, 402 768: { 403 items: 2 404 }, 405 980: { 406 items: 2 407 } 408 } 409 }); 410 411 $('#owl_reviewer').owlCarousel({ 412 nav: true, 413 //rtl:true, 414 navText: frecceNere, 415 dots: true, 416 margin: 15, 417 loop: true, 418 item:5, 419 slideBy: 1, 420 animateOut: 'slideOutLeft', 421 animateIn: 'slideInRight', 422 smartSpeed:1300, 423 autoplay:true, 424 autoplayTimeout:4000, 425 autoplayHoverPause:true, 426 stagePadding: 3, 427 responsive: { 428 0: { 429 items: 1 430 }, 431 480: { 432 items: 2 433 }, 434 768: { 435 items: 4 436 }, 437 980: { 438 items: 5 439 } 440 } 441 }); 442 443 $('#owl_videogallery').owlCarousel({ 444 nav: true, 445 //rtl:true, 446 navText: ["",""], 447 dots: true, 448 margin: 15, 449 loop: true, 450 item:5, 451 slideBy: 1, 452 animateOut: 'slideOutLeft', 453 animateIn: 'slideInRight', 454 smartSpeed:1300, 455 autoplay:true, 456 autoplayTimeout:4000, 457 autoplayHoverPause:true, 458 stagePadding: 3, 459 responsive: { 460 0: { 461 items: 1 462 }, 463 480: { 464 items: 2 465 }, 466 768: { 467 items: 3 468 }, 469 980: { 470 items: 3 471 } 472 } 473 }); 474 475 $('#owl_special').owlCarousel({ 476 nav: false, 477 //rtl:true, 478 //navText: false, 479 dots: true, 480 margin: 20, 481 loop: true, 482 item:3, 483 slideBy: 1, 484 autoplay:true, 485 autoplayTimeout:4000, 486 autoplayHoverPause:true, 487 stagePadding: 3, 488 animateOut: 'slideOutLeft', 489 animateIn: 'slideInRight', 490 responsive: { 491 0: { 492 items: 1 493 }, 494 480: { 495 items: 2 496 }, 497 768: { 498 items: 3 499 }, 500 980: { 501 items: 5 502 } 503 } 504 }); 505 $('#owl_special2').owlCarousel({ 506 nav: false, 507 //rtl:true, 508 //navText: false, 509 dots: true, 510 margin: 20, 511 loop: true, 512 item:3, 513 slideBy: 1, 514 autoplay:true, 515 autoplayTimeout:4000, 516 autoplayHoverPause:true, 517 stagePadding: 3, 518 animateOut: 'slideOutLeft', 519 animateIn: 'slideInRight', 520 responsive: { 521 0: { 522 items: 1 523 }, 524 480: { 525 items: 2 526 }, 527 768: { 528 items: 3 529 }, 530 980: { 531 items: 5 532 } 533 } 534 }); 535 $('#owl_gre_loghi').owlCarousel({ 536 nav: true, 537 //rtl:true, 538 navText: ["",""], 539 dots: false, 540 margin: 15, 541 loop: true, 542 item:1, 543 slideBy: 1, 544 animateOut: 'slideOutLeft', 545 animateIn: 'slideInRight', 546 smartSpeed:1300, 547 autoplay:true, 548 autoplayTimeout:4000, 549 autoplayHoverPause:true, 550 stagePadding: 3, 551 responsive: { 552 0: { 553 items: 2 554 }, 555 480: { 556 items: 2 557 }, 558 768: { 559 items: 4 560 }, 561 980: { 562 items: 5 563 } 564 } 565 }); 566 567 $('#owl_galleries_ft').owlCarousel({ 568 nav: true, 569 //rtl:true, 570 navText: ["",""], 571 dots: false, 572 margin: 15, 573 loop: true, 574 item:1, 575 slideBy: 1, 576 animateOut: 'slideOutLeft', 577 animateIn: 'slideInRight', 578 smartSpeed:1300, 579 autoplay:true, 580 autoplayTimeout:4000, 581 autoplayHoverPause:true, 582 stagePadding: 3, 583 responsive: { 584 0: { 585 items: 1 586 }, 587 480: { 588 items: 1 589 }, 590 768: { 591 items: 1 592 }, 593 980: { 594 items: 1 595 } 596 } 597 }); 598 599 $('#owl_galleries').owlCarousel({ 600 nav: true, 601 //rtl:true, 602 navText: ["",""], 603 dots: false, 604 margin: 15, 605 loop: true, 606 item:3, 607 slideBy: 1, 608 animateOut: 'slideOutLeft', 609 animateIn: 'slideInRight', 610 smartSpeed:1300, 611 autoplay:true, 612 autoplayTimeout:4000, 613 autoplayHoverPause:true, 614 stagePadding: 3, 615 responsive: { 616 0: { 617 items: 1 618 }, 619 480: { 620 items: 1 621 }, 622 768: { 623 items: 1 624 }, 625 980: { 626 items: 1 627 } 628 } 629 }); 630 631 $('#owl_openup').owlCarousel({ 632 nav: true, 633 //rtl:true, 634 navText: ["",""], 635 dots: false, 636 margin: 15, 637 loop: true, 638 item:3, 639 slideBy: 1, 640 animateOut: 'slideOutLeft', 641 animateIn: 'slideInRight', 642 smartSpeed:1300, 643 autoplay:true, 644 autoplayTimeout:4000, 645 autoplayHoverPause:true, 646 stagePadding: 3, 647 responsive: { 648 0: { 649 items: 1 650 }, 651 480: { 652 items: 1 653 }, 654 768: { 655 items: 1 656 }, 657 980: { 658 items: 1 659 } 660 } 661 }); 662 663 $('#owl_thejury').owlCarousel({ 664 nav: true, 665 //rtl:true, 666 navText: ["",""], 667 dots: false, 668 margin: 15, 669 loop: true, 670 item:5, 671 slideBy: 1, 672 autoplay:true, 673 autoplayTimeout:4000, 674 autoplayHoverPause:true, 675 stagePadding: 3, 676 responsive: { 677 0: { 678 items: 1 679 }, 680 480: { 681 items: 2 682 }, 683 768: { 684 items: 4 685 }, 686 980: { 687 items: 5 688 } 689 } 690 }); 691 692 $('#owl_prize').owlCarousel({ 693 nav: true, 694 //rtl:true, 695 navText: ["",""], 696 dots: false, 697 margin: 15, 698 loop: true, 699 item:5, 700 slideBy: 1, 701 autoplay:true, 702 autoplayTimeout:4000, 703 autoplayHoverPause:true, 704 stagePadding: 3, 705 responsive: { 706 0: { 707 items: 1 708 }, 709 480: { 710 items: 2 711 }, 712 768: { 713 items: 4 714 }, 715 980: { 716 items: 5 717 } 718 } 719 }); 720 721 $('#owl_mostre').owlCarousel({ 722 nav: true, 723 //rtl:true, 724 navText: ["",""], 725 dots: false, 726 margin: 15, 727 loop: true, 728 item:5, 729 slideBy: 1, 730 autoplay:true, 731 autoplayTimeout:4000, 732 autoplayHoverPause:true, 733 stagePadding: 3, 734 responsive: { 735 0: { 736 items: 1 737 }, 738 480: { 739 items: 2 740 }, 741 768: { 742 items: 4 743 }, 744 980: { 745 items: 5 746 } 747 } 748 }); 749 750 $('#owl_slider_evidenza').owlCarousel({ 751 nav: true, 752 //rtl:true, 753 navText: frecceNere, 754 dots: true, 755 margin: 15, 756 loop: true, 757 item:1, 758 slideBy: 1, 759 autoplay:true, 760 autoplayTimeout:4000, 761 autoplayHoverPause:true, 762 animateOut: 'fadeOut', 763 stagePadding: 3, 764 responsive: { 765 0: { 766 items: 1 767 }, 768 480: { 769 items: 1 770 }, 771 768: { 772 items: 1 773 }, 774 980: { 775 items: 1 776 } 777 } 778 }); 779 780 $('#owl_slider_header').owlCarousel({ 781 nav: false, 782 //rtl:true, 783 navText: frecceNere, 784 dots: true, 785 margin: 18, 786 loop: true, 787 item:1, 788 slideBy: 1, 789 autoplay:true, 790 autoplayTimeout:3500, 791 autoplayHoverPause:false, 792 animateOut: 'fadeOut', 793 stagePadding: 3, 794 responsive: { 795 0: { 796 items: 1 797 }, 798 480: { 799 items: 1 800 }, 801 768: { 802 items: 1 803 }, 804 980: { 805 items: 1 806 } 807 } 808 }); 809 810 $('#owl_slider_jean').owlCarousel({ 811 nav: true, 812 //rtl:true, 813 navText: frecceNere, 814 dots: true, 815 margin: 15, 816 loop: true, 817 item:1, 818 slideBy: 1, 819 autoplay:true, 820 autoplayTimeout:3500, 821 autoplayHoverPause:true, 822 animateOut: 'fadeOut', 823 stagePadding: 3, 824 responsive: { 825 0: { 826 items: 1 827 }, 828 480: { 829 items: 1 830 }, 831 768: { 832 items: 1 833 }, 834 980: { 835 items: 1 836 } 837 } 838 }); 839 840 $('#owl_event_network').owlCarousel({ 841 nav: true, 842 //rtl:true, 843 navText: frecceNere, 844 dots: true, 845 margin: 15, 846 loop: true, 847 item:3, 848 slideBy: 3, 849 autoplay:true, 850 autoplayTimeout:7000, 851 autoplayHoverPause:true, 852 stagePadding: 3, 853 responsive: { 854 0: { 855 items: 1 856 }, 857 480: { 858 items: 3 859 }, 860 768: { 861 items: 3 862 }, 863 980: { 864 items: 3 865 } 866 } 867 }); 868 869 870 871 // /bookplus-form/10641.html 872 $('#newsletter1').on('click', function(){ 873 $('#privacyC1').trigger('click'); 874 }); 875 $('#privacyC2').on('click', function(){ 876 $('#newsletter2').trigger('click'); 877 }); 878 //------------------------------------------------------ 879 880 881 882 // invio form newsletter dal footer 883 /* 884 $('#send_newsletter_request').on('click', function(){ 885 $('#form_newsletter_footer').submit(); 886 }); 887 */ 888
889 890 // SHOP dettaglio prodotto 891 $('.open__detail').on('click', function(e){ 892 e.preventDefault(); 893 var id = $(this).attr('id').split('_')[2]; 894 895 apriModalSpeaker(id); 896 }); 897 898 $('#speaker-bookplus').owlCarousel({ 899 nav: true, 900 navText: frecceNere, 901 dots: true, 902 margin: 20, 903 loop: false, 904 item:1, 905 slideBy: 5, 906 autoplay:true, 907 autoplayTimeout:3000, 908 autoplayHoverPause:true, 909 stagePadding: 3, 910 responsive: { 911 0: { 912 items: 1 913 }, 914 480: { 915 items: 1 916 }, 917 768: { 918 items: 3 919 }, 920 980: { 921 items: 5 922 } 923 } 924 }); 925 926 927 928 $('#owl_carousel_partner_bookplus').owlCarousel({ 929 nav: true, 930 navText: ["",""], 931 dots: true, 932 margin: 20, 933 loop: false, 934 item:1, 935 slideBy: 5, 936 autoplay:true, 937 autoplayTimeout:3000, 938 autoplayHoverPause:true, 939 stagePadding: 3, 940 responsive: { 941 0: { 942 items: 1 943 }, 944 480: { 945 items: 1 946 }, 947 768: { 948 items: 3 949 }, 950 980: { 951 items: 5 952 } 953 } 954 }); 955 956 $('#owl_carousel_partner_bookplus_2').owlCarousel({ 957 nav: true, 958 navText: ["",""], 959 dots: true, 960 margin: 20, 961 loop: false, 962 item:1, 963 slideBy: 5, 964 autoplay:true, 965 autoplayTimeout:3000, 966 autoplayHoverPause:true, 967 stagePadding: 3, 968 responsive: { 969 0: { 970 items: 1 971 }, 972 480: { 973 items: 1 974 }, 975 768: { 976 items: 3 977 }, 978 980: { 979 items: 5 980 } 981 } 982 }); 983 984 $('#owl_carousel_partner_bookplus_3').owlCarousel({ 985 nav: true, 986 navText: ["",""], 987 dots: true, 988 margin: 20, 989 loop: false, 990 item:1, 991 slideBy: 5, 992 autoplay:true, 993 autoplayTimeout:3000, 994 autoplayHoverPause:true, 995 stagePadding: 3, 996 responsive: { 997 0: { 998 items: 1 999 }, 1000 480: { 1001 items: 1 1002 }, 1003 768: { 1004 items: 3 1005 }, 1006 980: { 1007 items: 5 1008 } 1009 } 1010 }); 1011 1012 $('#owl_carousel_partner_bookplus_4').owlCarousel({ 1013 nav: true, 1014 navText: ["",""], 1015 dots: true, 1016 margin: 20, 1017 loop: false, 1018 item:1, 1019 slideBy: 5, 1020 autoplay:true, 1021 autoplayTimeout:3000, 1022 autoplayHoverPause:true, 1023 stagePadding: 3, 1024 responsive: { 1025 0: { 1026 items: 1 1027 }, 1028 480: { 1029 items: 1 1030 }, 1031 768: { 1032 items: 3 1033 }, 1034 980: { 1035 items: 5 1036 } 1037 } 1038 }); 1039 1040 $('#owl_carousel_partner_bookplus_5').owlCarousel({ 1041 nav: true, 1042 navText: ["",""], 1043 dots: true, 1044 margin: 20, 1045 loop: false, 1046 item:1, 1047 slideBy: 5, 1048 autoplay:true, 1049 autoplayTimeout:3000, 1050 autoplayHoverPause:true, 1051 stagePadding: 3, 1052 responsive: { 1053 0: { 1054 items: 1 1055 }, 1056 480: { 1057 items: 1 1058 }, 1059 768: { 1060 items: 3 1061 }, 1062 980: { 1063 items: 5 1064 } 1065 } 1066 }); 1067}); 1068 1069 1070function apriModalSpeaker(id){ 1071 1072 var contenutoBox = $('#block__detail_' + id).html(); 1073 var titleBox = $('#open_detail_' + id + ' h4').html(); 1074 1075 $('#speakerModalDetail .modal-body').html(contenutoBox); 1076 $('#speakerModalDetail .modal-header h4').html(titleBox); 1077 1078 $('#speakerModalDetail').modal('show'); 1079} 1080 1081 1082 1083 1084 1085 1086 1087
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.