1// NAVBAR 2 3$(document).ready( function($) { 4 $('#nav-main ul.sub-menu').hide(); 5 $('#nav-main li.current-menu-item').children().show(); 6 $('#nav-main li.current-menu-item').parents().show(); 7 8 9 $('#nav-main ul ul li a').click( 10 function() { 11 var checkElement = $(this).next(); 12 if((checkElement.is('ul')) && (checkElement.is(':visible'))) { 13 return false; 14 } 15 if((checkElement.is('ul')) && (!checkElement.is(':visible'))) { 16 // $('#nav-main ul ul').slideUp('normal'); 17 $('#nav-main ul ul li ul:visible').slideUp('normal'); 18 checkElement.slideDown('normal'); 19 return false; 20 } 21 } 22 ); 23 24}); 25 26 27function goBack() { 28 window.history.back(); 29} 30 31// NAVBAR 32 33 // TOOGLE NAVBAR 34 $('.click_toogle').click(function(){ 35 $('.mobile-btn').toggleClass('active') 36 $('.menu-mobile, #sidebar, #content').toggleClass('active') 37 }); 38 39$(document).ready(function(){ 40 if($('#nav-main .sub-menu li').hasClass('active')){ 41 $('.voltar').show(); 42 $("#nav-main .sub-menu li .active").parents("#nav-main li").css("background-color", "#0D5794"); 43 $("#nav-main li .active").parents("#nav-main li").css("background-color", "#0D5794"); 44 $('#nav-main .sub-menu li').children().css('textDecoration','none') 45 } else { 46 $('.voltar').hide(); 47 } 48}); 49 50$(document).ready(function(e) { 51 $('#easy-newsletter-submit').attr("disabled", true); 52 $('#easy-newsletter-submit').text("Subscrever"); 53 $('#easy-newsletter-submit').css('opacity', '0.6'); 54 55 $('input[name="privacy"]').change(function() { 56 if ($('input[name="privacy"]').is(':checked')) { 57 $('#easy-newsletter-submit').attr("disabled", false); 58 $('#easy-newsletter-submit').css('opacity', '1'); 59 } else { 60 $('#easy-newsletter-submit').attr("disabled", true); 61 $('#easy-newsletter-submit').css('opacity', '0.6'); 62 } 63 }); 64}); 65 66// PLAY AND STOP Video 67var vid = document.getElementById("video_banner"); 68 $(".play").hide(); 69 $(".pause").show(); 70 71function playVid() { 72 vid.play(); 73 $(".play").hide(); 74 $(".pause").show() 75 $(".items_playing").hide(); 76} 77 78function pauseVid() { 79 vid.pause(); 80 $(".play").show(); 81 $(".pause").hide(); 82 $(".items_playing").show(); 83} 84 85$(vid).click(function() { 86 $('#vid').get(0).play() 87}); 88 89 90$(document).ready(function(e) { 91 $('img[usemap]').rwdImageMaps(); 92}); 93 94$(document).ready(function() { 95 $('.sound-on').click(function(){ 96 vid.muted = !vid.muted; 97 $(this).hide(); 98 $(this).siblings('.mute').show(); 99 }); 100 $('.mute').click(function(){ 101 vid.muted = !vid.muted; 102 $(this).hide(); 103 $(this).siblings('.sound-on').show(); 104 }); 105}); 106 107// OWL-CAROUSEL BANNER 108$(document).ready(function(){ 109 var owl = $('#owl-banner'); // cria uma váriável para o elemento 110 owl.owlCarousel({ 111 loop:true, 112 margin:0, 113 nav:false, 114 navText: [" ", " "], 115 dots:false, 116 items: 1, 117 autoplay:false, 118 autoplayTimeout:5000, 119 autoplayHoverPause:false, 120 videoWidth: false, 121 videoHeight: false, 122 video:true, 123 onInitialized: function(){ 124 $("#banner_but .button_banner") // seleciona os botões 125 .click(function(){ 126 var idx = $(this).parent().children().index(this); // pega o Ãndice do botão clicado 127 owl.trigger( (idx == 1 ? 'next' : 'prev') + '.owl.carousel'); // atribui o evento ao devido botão 128 }); 129 } 130 }); 131 setTimeout(function(){ 132 if($('.owl-item.active').find('#video_banner').length == 0){ 133 owl.trigger('next.owl.carousel'); 134 } 135 }, 5000); 136 137 owl.on('changed.owl.carousel', function() { 138 setTimeout(function(){ 139 if($('.owl-item.active').find('#video_banner').length == 0){ 140 console.log('sim'); 141 pauseVid(); 142 } 143 }, 100); 144 }); 145 146}); 147 148$(document).ready(function(){ 149 var owl = $('#owl-one'); // cria uma váriável para o elemento 150 owl.owlCarousel({ 151 loop:false, 152 margin:25, 153 nav:false, 154 navText: [" ", " "], 155 dots:false, 156 responsiveClass:true, 157 responsive:{ 158 0:{ 159 items:1, 160 nav:true 161 }, 162 800:{ 163 items:2, 164 nav:true 165 }, 166 1440:{ 167 items:3, 168 nav:true 169 }, 170 }, 171 onInitialized: function(){ 172 $("#navContainer .button_one") // seleciona os botões 173 .click(function(){ 174 var idx = $(this).parent().children().index(this); // pega o Ãndice do botão clicado 175 owl.trigger( (idx == 1 ? 'next' : 'prev') + '.owl.carousel'); // atribui o evento ao devido botão 176 }); 177 } 178 }); 179}); 180 181// OWL-CAROUSEL ULTIMAS NOTICIAS 182 183$(document).ready(function(){ 184 var owl = $('#owl-two'); // cria uma váriável para o elemento 185 owl.owlCarousel({ 186 nav : false, 187 dots:false, 188 loop:false, 189 margin:25, 190 responsive: { 191 0:{ 192 items : 1.5, 193 loop: true, 194 }, 195 768:{ 196 items:3, 197 nav : false, 198 }, 199 }, 200 onInitialized: function(){ 201 $("#navContainer .button_two") // seleciona os botões 202 .click(function(){ 203 var idx = $(this).parent().children().index(this); // pega o Ãndice do botão clicado 204 owl.trigger( (idx == 1 ? 'next' : 'prev') + '.owl.carousel'); // atribui o evento ao devido botão 205 }); 206 } 207 }); 208}); 209 210var owl = $('#owl-three').owlCarousel({ 211 loop:false, 212 margin:25, 213 nav:true, 214 navText: ["<img src='https://cm-seia.pt/wp-content/themes/seia/img/icons/left_blue.png'>","<img src='https://cm-seia.pt/wp-content/themes/seia/img/icons/right_blue.png'>"], 215 dots:false, 216 touchDrag : true, 217 mouseDrag : true, 218 responsiveClass:true, 219 responsive:{ 220 0:{ 221 items:1, 222 nav:true 223 }, 224 800:{ 225 items:3, 226 nav:true 227 } 228 } 229}) 230 231$(document).ready(function(){ 232 var owl = $('#owl-obras'); // cria uma váriável para o elemento 233 owl.owlCarousel({ 234 loop:false, 235 margin:25, 236 nav:true, 237 navText: ["<img src='https://cm-seia.pt/wp-content/themes/seia/img/icons/left_blue.png'>","<img src='https://cm-seia.pt/wp-content/themes/seia/img/icons/right_blue.png'>"], 238 dots:false, 239 responsiveClass:true, 240 responsive:{ 241 0:{ 242 items:1, 243 nav:true 244 }, 245 800:{ 246 items:3, 247 nav:true 248 }, 249 }, 250 onInitialized: function(){ 251 $("#navContainer .button_one") // seleciona os botões 252 .click(function(){ 253 var idx = $(this).parent().children().index(this); // pega o Ãndice do botão clicado 254 owl.trigger( (idx == 1 ? 'next' : 'prev') + '.owl.carousel'); // atribui o evento ao devido botão 255 }); 256 } 257 }); 258}); 259 260$( '.owl-filter-bar' ).on( 'click', '.item', function() { 261 262 var $item = $(this); 263 var filter = $item.data( 'owl-filter' ) 264 265 owl.owlcarousel2_filter( filter ); 266 267}) 268 269// OWL-CAROUSEL ALERTS 270 271var owl_alert = $('#owl-alerts').owlCarousel({ 272 loop:true, 273 margin:25, 274 nav:false, 275 navText: [" ", " "], 276 items: 3, 277 dots:false, 278 autoplay:true, 279 autoplayTimeout:10000, 280 autoplayHoverPause:false, 281 responsiveClass:true, 282 responsive:{ 283 0:{ 284 items:1, 285 nav:true 286 }, 287 800:{ 288 items:3, 289 nav:true 290 } 291 } 292}) 293 294// MODAL 295$(document).ready(function () { 296 $('img').on('click', function () { 297 var image = $(this).attr('src');
298 $('#myModal').on('show.bs.modal', function () { 299 $(".img-responsive").attr("src", image); 300 }); 301 }); 302}); 303 304var acc = document.getElementsByClassName("accordion"); 305var i; 306 307for (i = 0; i < acc.length; i++) { 308 acc[i].addEventListener("click", function() { 309 /* Toggle between adding and removing the "active" class, 310 to highlight the button that controls the panel */ 311 this.classList.toggle("active"); 312 313 /* Toggle between hiding and showing the active panel */ 314 var panel = this.nextElementSibling; 315 if (panel.style.display === "block") { 316 panel.style.display = "none"; 317 } else { 318 panel.style.display = "block"; 319 } 320 }); 321}
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.