1(function ($) { 2 $(function() { 3 //adding items to news accordion for mobile view 4 $("#news-press-releases-option").clone().appendTo("#headingOne button"); 5 $("#news-speeches-option").clone().appendTo("#headingTwo button"); 6 $("#news-blogs-option").clone().appendTo("#headingThree button"); 7 $(".press-releases-container ul").clone().appendTo("#collapseOne .card-body"); 8 $(".speech-container ul").clone().appendTo("#collapseTwo .card-body"); 9 $(".blog-container ul").clone().appendTo("#collapseThree .card-body"); 10 $(".news-press-release-main .more-link").clone().appendTo("#collapseOne .card-body"); 11 $(".news-speeches-main .more-link").clone().appendTo("#collapseTwo .card-body"); 12 $(".news-blogs-main .more-link").clone().appendTo("#collapseThree .card-body"); 13 14 //press release menu javascript 15 /*$( ".press-releases-container .press-releases>li:first-child" ).insertBefore( $( ".press-releases-container" ) ); 16 $( ".news-press-release-main>div>li" ).attr('class', 'featured-press-release col-lg-6'); 17 $( ".news-press-release-main>div>li .views-field-field-homepage-highlight-image" ).removeClass("col-3"); 18 $( ".news-press-release-main>div>li .views-field-title").removeClass("col-9"); 19 $( ".news-press-release-main>div>li.featured-press-release .views-field-field-homepage-highlight-image").prependTo(".featured-press-release"); 20 $( ".news-press-release-main .view-content" ).addClass( "row" );*/ 21 22 //speeches menu javascript 23 /*$('.news-subject-main').each(function() { 24 $(this).find( ".news-subject-container .news-subjects>li:first-child" ).insertBefore( $(this).find( ".news-subject-container" ) ); 25 }); 26 $( ".news-subject-main>div>li" ).attr('class', 'featured-news-subject col-lg-6'); 27 $( ".news-subject-main>div>li .views-field-field-homepage-highlight-image" ).removeClass("col-3"); 28 $( ".news-subject-main>div>li .views-field-title").removeClass("col-9"); 29 30 31 $('.news-subject-main').each(function() { 32 $(this).find('.featured-news-subject>.views-field-field-homepage-highlight-image').prependTo($(this).find(".featured-news-subject")); 33 $(this).find('.featured-news-subject>.views-field-field-homepage-highlight-image').css({paddingLeft:"0"}); 34 }); 35 36 $( ".news-subject-main .view-content" ).addClass( "row" );*/ 37 }); 38 39 $(function() { 40 //adding items to initiatives accordion for mobile view 41 $("#initiatives-initiatives-first-option").clone().appendTo("#initiativesHeadingOne button"); 42 $("#initiatives-initiatives-second-option").clone().appendTo("#initiativesHeadingTwo button"); 43 $(".initiatives-first-container ul").clone().appendTo("#initiativesCollapseOne .card-body"); 44 $(".initiatives-second-container ul").clone().appendTo("#initiativesCollapseTwo .card-body"); 45 46 //press release menu javascript 47 $( ".initiatives-first-container .initiatives-first>li:first-child" ).insertBefore( $( ".initiatives-first-container" ) ); 48 $( ".initiatives-initiative-first-main>div>li" ).attr('class', 'featured-initiative-first col-lg-6'); 49 $( ".initiatives-initiative-first-main>div>li .views-field-field-homepage-highlight-image" ).removeClass("col-3"); 50 $( ".initiatives-initiative-first-main>div>li .views-field-title").removeClass("col-9"); 51 52 $( ".initiatives-initiative-first-main .view-content" ).addClass( "row" ); 53 54 //speeches menu javascript 55 $( ".initiatives-subject-container .initiatives-subjects>li:first-child" ).insertBefore( $( ".initiatives-subject-container" ) ); 56 $( ".initiatives-subject-main>div>li" ).attr('class', 'featured-initiatives-subject col-lg-6'); 57 $( ".initiatives-subject-main>div>li .views-field-field-homepage-highlight-image" ).removeClass("col-3"); 58 $( ".initiatives-subject-main>div>li .views-field-title").removeClass("col-9"); 59 60 61 $('.initiatives-subject-main').each(function() { 62 $(this).find('.featured-initiatives-subject>.views-field-field-homepage-highlight-image').prependTo($(this).find(".featured-initiatives-subject")); 63 $(this).find('.featured-initiatives-subject>.views-field-field-homepage-highlight-image').css({paddingLeft:"0"}); 64 }); 65 66 $( ".initiatives-subject-main .view-content" ).addClass( "row" ); 67 68 //clean up layout for highlight items without images 69 $('.initiatives-subjects li').each(function() { 70 if($(this).find('.views-field-field-homepage-highlight-image').find('img').length==0){ 71 $(this).find('.views-field-field-date').css({position:"relative"}); 72 $(this).find('.views-field-title').css({display:"block"}); 73 $(this).find('.views-field-title').removeClass("col-sm-9"); 74 $(this).find('.views-field-title').addClass("col-sm-12"); 75 } 76 }); 77 $('.news-subjects li').each(function() { 78 if($(this).find('.views-field-field-homepage-highlight-image').find('img').length==0){ 79 $(this).find('.views-field-field-date').css({position:"relative"}); 80 $(this).find('.views-field-title').css({display:"block"}); 81 $(this).find('.views-field-title').removeClass("col-sm-9"); 82 $(this).find('.views-field-title').addClass("col-sm-12"); 83 } 84 }); 85 $('.featured-initiatives-subject').each(function() { 86 if($(this).find('.views-field-field-homepage-highlight-image').find('img').length==0){ 87 $(this).find('.views-field-title a').css({fontSize:"2rem"}); 88 $(this).find('.views-field-title').removeClass("col-sm-9"); 89 $(this).find('.views-field-title').addClass("col-sm-12"); 90 } 91 }); 92 $('.highlight-list li').each(function() { 93 if($(this).find('.views-field-field-homepage-highlight-image').find('img').length==0){ 94 $(this).find('.views-field-field-date').css({position:"relative"}); 95 $(this).find('.views-field-field-highlight-title').css({display:"block"}); 96 $(this).find('.views-field-field-highlight-title').removeClass("col-6"); 97 $(this).find('.views-field-field-highlight-title').addClass("col-12"); 98 } 99 }); 100 }); 101 102 //stop default href action 103 $(".news-menu-option-contanier>a").click(function(event){ 104 event.preventDefault(); 105 }); 106 $(".initiatives-menu-option-contanier>a").click(function(event){ 107 event.preventDefault(); 108 }); 109 110 //hide non-active menu options 111 $("#news-speeches-option").click(function(){ 112 $(".news-subject-main").hide(); 113 $(".news-menu-option").removeClass("active"); 114 $(this).addClass( "active" ); 115 $(".news-speeches-main").fadeIn(); 116 }); 117 $("#news-press-releases-option").click(function(){ 118 $(".news-subject-main").hide(); 119 $(".news-menu-option").removeClass("active"); 120 $(this).addClass( "active" ); 121 $(".news-press-release-main").fadeIn(); 122 }); 123 $("#news-blogs-option").click(function(){ 124 $(".news-subject-main").hide(); 125 $(".news-menu-option").removeClass("active"); 126 $(this).addClass( "active" ); 127 $(".news-blogs-main").fadeIn(); 128 }); 129 130 $("#newsAccordion button").click(function() { 131 $([document.documentElement, document.body]).animate({ 132 scrollTop: $("#newsAccordion").offset().top 133 }, 500); 134 }); 135 136 $("#initiatives-initiatives-second-option").click(function(){ 137 $(".initiatives-subject-main").hide(); 138 $(".initiatives-menu-option").removeClass("active"); 139 $(this).addClass( "active" ); 140 $(".initiatives-initiative-second-main").fadeIn(); 141 }); 142 $("#initiatives-initiatives-first-option").click(function(){ 143 $(".initiatives-subject-main").hide(); 144 $(".initiatives-menu-option").removeClass("active"); 145 $(this).addClass( "active" ); 146 $(".initiatives-initiative-first-main").fadeIn(); 147 }); 148 149 $("#initiativesAccordion button").click(function() { 150 $([document.documentElement, document.body]).animate({ 151 scrollTop: $("#initiativesAccordion").offset().top 152 }, 500); 153 }); 154 $(window).on('load resize', function() { 155 if($(window).width() < 991){ 156 $(".hero-text-container").insertAfter( $( ".masthead" ) ); 157 $(".hero-text-container").css({position:"relative"}); 158 $(".hero-text-container.lower").css({bottom:"5rem",borderTop:"#D7B300 2px solid", paddingBottom:"20px",paddingTop:"20px",backgroundColor:"#0d132d"}); 159 $(".ambassador-signature").css({marginTop:"-6rem",position: "inherit",width:"auto",borderBottom:"#D7B300 2px solid"}); 160 //$(".hero-text-container .hero-text, .hero-text-container .hero-text h2, .hero-text-container .hero-text h1").css({color:"#212529",textShadow:"1px 2px #ccc"}); 161 if ($(".hero-text-container button").hasClass('btn-light')){ 162 var buttonClass = 'btn-light';
163 $(".hero-text-container button").removeClass('btn-light'); 164 $(".hero-text-container button").addClass('btn-dark'); 165 } 166 /*$(".featured-news-subject .views-field-field-homepage-highlight-image").removeClass('col-md-3'); 167 $(".featured-news-subject .views-field-field-homepage-highlight-image").addClass('col-md-12'); 168 $(".featured-news-subject .views-field-title").removeClass('col-sm-9'); 169 $(".featured-news-subject .views-field-title").addClass('col-sm-12');*/ 170 $(".featured-initiatives-subject .views-field-field-homepage-highlight-image").removeClass('col-md-3'); 171 $(".featured-initiatives-subject .views-field-field-homepage-highlight-image").addClass('col-md-12'); 172 $(".featured-initiatives-subject .views-field-title").removeClass('col-sm-9'); 173 $(".featured-initiatives-subject .views-field-title").addClass('col-sm-12'); 174 }else{ 175 $(".hero-text-container").removeAttr("style"); 176 $(".hero-text-container .hero-text, .hero-text-container .hero-text h2, .hero-text-container .hero-text h1").removeAttr("style"); 177 $(".hero-text-container").insertAfter( $( ".hero-background" ) ); 178 $(".ambassador-signature").css({marginTop:"-2.5rem",position:"absolute",width:"35%",borderBottom:"none"}); 179 if ($(".hero-text-container button").hasClass('btn-dark') && buttonClass=='btn-light'){ 180 $(".hero-text-container button").removeClass('btn-dark'); 181 $(".hero-text-container button").addClass('btn-light'); 182 } 183 /*$(".featured-news-subject .views-field-field-homepage-highlight-image").removeClass('col-md-12'); 184 $(".featured-news-subject .views-field-field-homepage-highlight-image").addClass('col-md-3'); 185 $(".featured-news-subject .views-field-title").removeClass('col-sm-12'); 186 $(".featured-news-subject .views-field-title").addClass('col-sm-9');*/ 187 $(".featured-initiatives-subject .views-field-field-homepage-highlight-image").removeClass('col-md-12'); 188 $(".featured-initiatives-subject .views-field-field-homepage-highlight-image").addClass('col-md-3'); 189 $(".featured-initiatives-subject .views-field-title").removeClass('col-sm-12'); 190 $(".featured-initiatives-subject .views-field-title").addClass('col-sm-9'); 191 } 192 }); 193 194 195}(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.