1$(document).ready(function () { 2 $(window).scroll(function () { 3 if ($(document).scrollTop() > 60) { 4 $('.mobile-header').addClass('mobile-navigation-scroll'); 5 } else { 6 $('.mobile-header').removeClass('mobile-navigation-scroll'); 7 } 8 }); 9 10 $('body').scroll(function () { 11 if ($('body').scrollTop() > 60) { 12 $('.top-banner-trian1').addClass('hidden'); 13 } else { 14 $('.top-banner-trian1').removeClass('hidden'); 15 } 16 }); 17 18 // Mobile navbar list slide 19 $('.hamburger').click(function () { 20 $('.second-state-mobile-header').slideToggle(); 21 $('.mobile-header').toggleClass('mobile-navigation-background'); 22 $('.hamburger').toggleClass('is-active'); 23 $('#smartcity-owl').removeClass('heightAuto'); 24 }); 25 26 $(document).mouseup((e) => { 27 if ( 28 !$('.mobile-header').is(e.target) && // if the target of the click isn't the container... 29 $('.mobile-header').has(e.target).length === 0 30 ) { 31 // ... nor a descendant of the container 32 $('.second-state-mobile-header').slideUp(); 33 $('.hamburger').removeClass('is-active'); 34 } 35 }); 36 37 $('#nav-apps').click(function () { 38 $(this).addClass('active'); 39 $('.nav-item').not($(this)).removeClass('active'); 40 if ($('.header_dropdown-holder').hasClass('header_dropdown-holder-expanded')) { 41 $('.header-apps-content').css('display', 'block'); 42 $('.header-smartcity-content').css('display', 'none'); 43 } else { 44 $('.header_dropdown-holder').addClass('header_dropdown-holder-expanded'); 45 $('.header-apps-content').css('display', 'block'); 46 $('.header-smartcity-content').css('display', 'none'); 47 } 48 }); 49 50 $('#nav-smartcity').click(function () { 51 $(this).addClass('active'); 52 $('.nav-item').not($(this)).removeClass('active'); 53 if ($('.header_dropdown-holder').hasClass('header_dropdown-holder-expanded')) { 54 $('.header-smartcity-content').css('display', 'flex'); 55 $('.header-apps-content').css('display', 'none'); 56 } else { 57 $('.header_dropdown-holder').slideDown(); 58 $('.header_dropdown-holder').addClass('header_dropdown-holder-expanded'); 59 $('.header-smartcity-content').css('display', 'flex'); 60 $('.header-apps-content').css('display', 'none'); 61 } 62 }); 63 64 $('.nav-item') 65 .not('#nav-apps') 66 .not('#nav-smartcity') 67 .click(function () { 68 $('.header_dropdown-holder').removeClass('header_dropdown-holder-expanded'); 69 $('.header-apps-content').css('display', 'none'); 70 $('.header-smartcity-content').css('display', 'none'); 71 }); 72 73 $(document).on('click', function (e) { 74 if ($(e.target).closest('.header').length === 0) { 75 $('.header_dropdown-holder').removeClass('header_dropdown-holder-expanded'); 76 $('.header-apps-content').css('display', 'none'); 77 $('.header-smartcity-content').css('display', 'none'); 78 } 79 }); 80 81 /*$( '.smartcity-card-icon' ).each(function() { 82 var smartCityCard_h = $(this).height(); 83 console.log(smartCityCard_h); 84});*/ 85 86 $('.nav-item').each(function (index) { 87 $(this).on('click', function () { 88 $(this).addClass('active'); 89 $('.nav-item').not($(this)).removeClass('active'); 90 }); 91 }); 92 93 /* Home carousel*/ 94 $('#owl-carousel-home').owlCarousel({ 95 margin: 10, 96 loop: true, 97 autoplay: false, 98 autoplayTimeout: 5000, 99 autoWidth: true, 100 nav: true, 101 navText: ["<img src='../assets/images/goplatforma-prev.svg'>", "<img src='../assets/images/goplatforma-next.svg'>"], 102 items: 8, 103 dots: false, 104 }); 105 106 /* Mobile navigation - carousel*/ 107 108 /* Smartcity owl */ 109 $('#smartcity-owl').owlCarousel({ 110 stagePadding: 20, 111 loop: true, 112 margin: 0, 113 autoplay: false, 114 autoplayTimeout: 5000, 115 dots: false, 116 responsive: { 117 0: { 118 items: 1, 119 }, 120 600: { 121 items: 2, 122 }, 123 1200: { 124 items: 4, 125 }, 126 }, 127 }); 128 129 $('#nav-smartcity-mobile').click(function () { 130 $('.smart-city-slide').toggleClass('active-show'); 131 if ($(this).next().hasClass('active-show')) { 132 $(this).parent().removeClass('collapsed'); 133 } else { 134 $(this).parent().addClass('collapsed'); 135 } 136 }); 137 138 /* Apps owl */ 139 $('#apps-owl').owlCarousel({ 140 loop: true, 141 margin: 0, 142 autoplay: false, 143 autoplayTimeout: 5000, 144 dots: false, 145 responsive: { 146 0: { 147 items: 2, 148 }, 149 600: { 150 items: 4, 151 }, 152 }, 153 }); 154 155 $('#nav-apps-mobile').click(function () { 156 $('.apps-mobile-wrapper').toggleClass('heightAuto'); 157 $('#smartcity-owl').removeClass('heightAuto'); 158 }); 159 160 if (localStorage.getItem('cookie') == 'accepted') { 161 $('.cookie').remove(); 162 } 163 164 setTimeout(function () { 165 $('.cookie').css('bottom', '0%'); 166 }, 1000); 167 168 $('.cookie_button').click(function () { 169 $('.cookie').css('bottom', '-100%'); 170 localStorage.setItem('cookie', 'accepted'); 171 }); 172 173 function popupMobile() { 174 if (!localStorage.getItem('popupMobileBanner', 'shown')) { 175 $(`<div class="popup-container container"> 176 <div class="popup-content"> 177 <div class="close-popup"><i class="lnc lnc-x"></i></div> 178 <div class="logo">
179 <img src="../assets/images/logo-purple.svg" alt=""> 180 </div> 181 <p>Mobile app for Parents and Students. Available on stores:</p> 182 <div class="buttons_container"> 183 <div class="store_button"> 184 <a href="https://play.google.com/store/apps/details?id=com.lanaco.eduisandroidapp&hl=en&gl=US" target="_blank"><img src="assets/images/google_play.png" alt="google-play"></a> 185 </div> 186 <div class="store_button"> 187 <a href="https://apps.apple.com/us/app/eduis-global/id1572236792#?platform=ipad" target="_blank"><img src="assets/images/apple_store.png" alt="app-store"></a> 188 </div> 189 </div> 190 <img class="popup-cylindar" src="assets/images/small_elements/white_cylinder_small.png" alt=""></img> 191 <img class="popup-ball" src="assets/images/popup-ball.png" alt=""></img> 192 <img class="popup-cone" src="assets/images/small_elements/purple_cone_small.png" alt=""></img> 193 </div> 194 </div> 195 `).appendTo('body'); 196 197 localStorage.setItem('popupMobileBanner', 'shown'); 198 199 // setTimeout(function() { 200 // $(".popup-container").fadeIn(2000); 201 // }, 2000); 202 } 203 } 204 205 // -------------------------------------------------------------------------- 206 207 $('.planet-button').click(function () { 208 $('.language').toggleClass('slideIsOn'); 209 }); 210 211 $('.info-button').click(function () { 212 $('.info').toggleClass('slideIsOn'); 213 }); 214 215 $('.mail-button').click(function () { 216 $('.mail').toggleClass('slideIsOn'); 217 }); 218 219 $('.adress-button').click(function () { 220 $('.adress').removeClass('slideIsOn'); 221 }); 222}); 223 224$(document).on('click', function (e) { 225 if ($(e.target).closest('.language.slideIsOn').length === 0) { 226 $('.language').removeClass('slideIsOn'); 227 } 228}); 229 230$(document).ready(function () { 231 $('.tab-list').each(function () { 232 // For each set of tabs, we want to keep track of 233 // which tab is active and its associated content 234 var $active, 235 $content, 236 $links = $(this).find('a:not(.add)'); 237 238 // If the location.hash matches one of the links, use that as the active tab. 239 // If no match is found, use the first link as the initial active tab. 240 $active = $($links.filter('[href="' + location.hash + '"]')[0] || $links[0]); 241 $active.addClass('active'); 242 243 $content = $($active[0].hash); 244 245 // Hide the remaining content 246 $links.not($active).each(function () { 247 $(this.hash).hide(); 248 }); 249 250 // Bind the click event handler 251 $(this).on('click', 'a:not(.add)', function (e) { 252 // Make the old tab inactive. 253 $active.removeClass('active'); 254 $content.hide(); 255 256 // Update the variables with the new link and content 257 $active = $(this); 258 $content = $(this.hash); 259 260 // Make the tab active. 261 $active.addClass('active'); 262 $content.show(); 263 264 // Prevent the anchor's default click action 265 e.preventDefault(); 266 }); 267 }); 268 269 //provjera viewporta 270 $.fn.isInViewport = function () { 271 var elementTop = $(this).offset().top; 272 var elementBottom = elementTop + $(this).outerHeight(); 273 var viewportTop = $(window).scrollTop(); 274 var viewportBottom = viewportTop + $(window).height(); 275 return elementBottom > viewportTop && elementTop < viewportBottom; 276 }; 277 278 var page = window.location.href; 279 page = page.split('?')[0]; 280 var ekran = window.innerWidth; 281 var main_checker = 0; 282 var tab_checker = 0; 283 284 // if ((page == 'https://www.goplatforma.com/index.php') || (page == 'https://www.goplatforma.com/index-ba.php') || (page == 'https://www.goplatforma.com/index-sr.php') || (page == 'https://www.goplatforma.com/') || (page == 'https://www.goplatforma.com') || (page == 'https://www.goplatforma.com/index') || (page == 'https://www.goplatforma.com/index-ba') || (page == 'https://www.goplatforma.com/index-sr')) { 285 286 $('body').scroll(function () { 287 //glavna animacija 288 if (ekran > 768) { 289 if ($('.desktop-platform-lottie').isInViewport() && main_checker == 0) { 290 main_checker = 1; 291 setTimeout(function () { 292 main_desktop.play(); 293 }, 500); 294 } else { 295 // do nothing 296 } 297 } else { 298 if ($('.mobile-platform-lottie').isInViewport() && main_checker == 0) { 299 checker = 1; 300 setTimeout(function () { 301 main_mobile.play(); 302 }, 500); 303 } else { 304 // do nothing 305 } 306 } 307 }); 308}); 309 310if ($('#lottie').hasClass('desktop-city-lottie') && window.screen.width > 768) { 311 main_checker = 1; 312 setTimeout(function () { 313 main_desktop.play(); 314 }, 500); 315} else if ($('#mobile').hasClass('mobile-city-lottie') && window.screen.width < 768) { 316 checker = 1; 317 setTimeout(function () { 318 main_mobile.play(); 319 }, 500); 320} 321 322/*animacija za aktivni tab*/ 323$('.tab-nav, .color-box').click(function () { 324 var aktivni_element = $(this).attr('data-element'); 325 326 switch (aktivni_element) { 327 case 'community': 328 anim_community.play(); 329 anim_nature.stop(); 330 anim_farm.stop(); 331 anim_living.stop(); 332 anim_market.stop(); 333 anim_industry.stop(); 334 anim_secure.stop(); 335 break; 336 case 'nature': 337 anim_community.stop(); 338 anim_nature.play(); 339 anim_farm.stop(); 340 anim_living.stop(); 341 anim_market.stop(); 342 anim_industry.stop(); 343 anim_secure.stop(); 344 break; 345 case 'farm': 346 anim_community.stop(); 347 anim_nature.stop(); 348 anim_farm.play(); 349 anim_living.stop(); 350 anim_market.stop(); 351 anim_industry.stop(); 352 anim_secure.stop(); 353 break; 354 case 'living': 355 anim_community.stop(); 356 anim_nature.stop(); 357 anim_farm.stop(); 358 anim_living.play(); 359 anim_market.stop(); 360 anim_industry.stop(); 361 anim_secure.stop(); 362 break; 363 case 'market': 364 anim_community.stop(); 365 anim_nature.stop(); 366 anim_farm.stop(); 367 anim_living.stop(); 368 anim_market.play(); 369 anim_industry.stop(); 370 anim_secure.stop(); 371 break; 372 case 'industry': 373 anim_community.stop(); 374 anim_nature.stop(); 375 anim_farm.stop(); 376 anim_living.stop(); 377 anim_market.stop(); 378 anim_industry.play(); 379 anim_secure.stop(); 380 break; 381 case 'secure': 382 anim_community.stop(); 383 anim_nature.stop(); 384 anim_farm.stop(); 385 anim_living.stop(); 386 anim_market.stop(); 387 anim_industry.stop(); 388 anim_secure.play(); 389 break; 390 default: 391 anim_community.stop(); 392 anim_nature.stop(); 393 anim_farm.stop(); 394 anim_living.stop(); 395 anim_market.stop(); 396 anim_industry.stop(); 397 anim_secure.stop(); 398 break; 399 } 400}); 401 402$('.details-title').click(function () { 403 if ($(this).parent().hasClass('expanded')) { 404 $(this).parent().removeClass('expanded'); 405 $(this).siblings('.details-content').slideUp(); 406 $(this).find('.minus-icon').hide(); 407 $(this).find('.minus-icon').fadeIn(); 408 } else { 409 $(this).parent().addClass('expanded'); 410 $($(this).parent()).siblings().removeClass('expanded'); 411 $($(this).parent()).siblings().children('.details-content').slideUp(); 412 $(this).siblings('.details-content').slideDown(); 413 $(this).find('.minus-icon').fadeIn(); 414 $(this).find('.plus-icon').hide(); 415 } 416}); 417 418/* Accordion & images */ 419 420function accordionImg() { 421 $('#save-registrationID, #card-templatesID, #sms-creditcardID, #trackingID, #parking-historyID, #subscriptionID, #monitoringID, #controllerID, #userID, #issuanceID, #warrantsID, #reportingID').click(function () { 422 let thisID = $(this).attr('id'); 423 let thisSiblingImg = `#${thisID}-img`; 424 $(thisSiblingImg).animate({ opacity: 1 }).addClass('img-show'); 425 $(thisSiblingImg).siblings().not(thisSiblingImg).animate({ opacity: 0 }); 426 $(thisSiblingImg).siblings().not(thisSiblingImg).removeClass('img-show') 427 428 setTimeout(function(){ 429 if(!$(`#${thisID}`).hasClass('expanded')) { 430 $(thisSiblingImg).removeClass('img-show'); 431 $(thisSiblingImg).removeAttr('style'); 432 } 433 },100) 434 435 checkPrimaryImg(); 436 }); 437} 438 439function checkPrimaryImg() { 440 $('.accordion-img-wrapper').each(function() { 441 if (!$(this).children().siblings().hasClass('img-show')) { 442 $(this).children().siblings('.primary').addClass('primary-expanded'); 443 } else { 444 $(this).children().siblings('.primary').removeClass('primary-expanded'); 445 } 446 }) 447} 448 449accordionImg(); 450checkPrimaryImg(); 451 452// $('#save-registrationID').click(function () { 453// $('#save-registrationID-img').animate({ opacity: 1 }); 454// $('.ticket-accordion-img').not('#save-registrationID-img').animate({ opacity: 0 }); 455// }); 456 457// $('#card-templatesID').click(function () { 458// $('#card-templatesID-img').animate({ opacity: 1 }); 459// $('.ticket-accordion-img').not('#card-templatesID-img').animate({ opacity: 0 }); 460// }); 461 462// $('#sms-creditcardID').click(function () { 463// $('#sms-creditcardID-img').animate({ opacity: 1 }); 464// $('.ticket-accordion-img').not('#sms-creditcardID-img').animate({ opacity: 0 }); 465// }); 466 467// $('#trackingID').click(function () { 468// $('#trackingID-img').animate({ opacity: 1 }); 469// $('.ticket-accordion-img').not('#trackingID-img').animate({ opacity: 0 }); 470// }); 471 472// $('#parking-historyID').click(function () { 473// $('#parking-historyID-img').animate({ opacity: 1 }); 474// $('.ticket-accordion-img').not('#parking-historyID-img').animate({ opacity: 0 }); 475// }); 476 477// $('#subscriptionID').click(function () { 478// $('#subscriptionID-img').animate({ opacity: 1 }); 479// $('.ticket-accordion-img').not('#subscriptionID-img').animate({ opacity: 0 }); 480// }); 481 482// $('#monitoringID').click(function () { 483// $('#monitoringID-img').animate({ opacity: 1 }); 484// $('.ticket-accordion-img').not('#monitoringID-img').animate({ opacity: 0 }); 485// }); 486 487// $('#controllerID').click(function () { 488// $('#controllerID-img').animate({ opacity: 1 }); 489// $('.ticket-accordion-img').not('#controllerID-img').animate({ opacity: 0 }); 490// }); 491 492// $('#userID').click(function () { 493// $('#userID-img').animate({ opacity: 1 }); 494// $('.ticket-accordion-img').not('#userID-img').animate({ opacity: 0 }); 495// }); 496 497// $('#issuanceID').click(function () { 498// $('#issuanceID-img').animate({ opacity: 1 }); 499// $('.ticket-accordion-img').not('#issuanceID-img').animate({ opacity: 0 }); 500// }); 501 502// $('#warrantsID').click(function () { 503// $('#warrantsID-img').animate({ opacity: 1 }); 504// $('.ticket-accordion-img').not('#warrantsID-img').animate({ opacity: 0 }); 505// }); 506 507// $('#reportingID').click(function () { 508// $('#reportingID-img').animate({ opacity: 1 }); 509// $('.ticket-accordion-img').not('#reportingID-img').animate({ opacity: 0 }); 510// }); 511
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.