1/* -------------------------------------------- 2 MAIN FUNCTION 3-------------------------------------------- */ 4$(document).ready(function() { 5 6 /* -------------------------------------------------------- 7 8 <script> 9$(document).ready(function(e) { 10 11 12}); 13</script> 14 ANIMATED PAGE ON REVEALED 15 ----------------------------------------------------------- */ 16 $(function($) { 17 "use strict"; 18 $(".detay img").addClass("img-responsive"); 19 $(".detay img").attr("style",""); 20 $('.animated').appear(function() { 21 var elem = $(this); 22 var animation = elem.data('animation'); 23 if ( !elem.hasClass('visible') ) { 24 var animationDelay = elem.data('animation-delay'); 25 if ( animationDelay ) { 26 27 setTimeout(function(){ 28 elem.addClass( animation + " visible" ); 29 }, animationDelay); 30 31 } else { 32 elem.addClass( animation + " visible" ); 33 } 34 } 35 }); 36 }); 37 38 39 /* -------------------------------------------- 40 CLOSE COLLAPSE MENU ON MOBILE VIEW EXCEPT DROPDOWN 41 -------------------------------------------- */ 42 $(function () { 43 "use strict"; 44 $('.navbar-collapse ul li a:not(.dropdown-toggle)').on('click',function (event) { 45 $('.navbar-toggle:visible').click(); 46 }); 47 }); 48 49 /* -------------------------------------------- 50 STICKY SETTING 51 -------------------------------------------- */ 52 $(function () { 53 "use strict"; 54 if( $(".navbar-sticky").length > 0){ 55 $(".navbar-sticky").sticky({ topSpacing: 0 }); 56 $(".navbar-sticky").css('z-index','100'); 57 $(".navbar-sticky").addClass('bg-light'); 58 $(".navbar-sticky").addClass("top-nav-collapse"); 59 }; 60 }); 61 62 63 /* -------------------------------------------------------- 64 ANIMATED SCROLL PAGE WITH ACTIVE MENU - BOOTSTRAP SROLLSPY 65 ----------------------------------------------------------- */ 66 $(function(){ 67 "use strict"; 68 $(".navbar-op ul li a, .navbar-op a.navbar-brand, .intro-direction a").on('click', function(event) { 69 event.preventDefault(); 70 var hash = this.hash; 71 72 $('html, body').animate({ 73 scrollTop: $(hash).offset().top 74 }, 900, function(){ 75 window.location.hash = hash; 76 }); 77 }); 78 }); 79 80 81 /* -------------------------------------------------------- 82 NAVBAR FIXED TOP ON SCROLL 83 ----------------------------------------------------------- */ 84 $(function(){ 85 "use strict"; 86 if( $(".navbar-standart").length > 0 ){ 87 $(".navbar-pasific").addClass("top-nav-collapse"); 88 } else { 89 $(window).scroll(function() { 90 if ($(".navbar").offset().top > 10) { 91 $(".navbar-pasific").addClass("top-nav-collapse"); 92 93 } else { 94 $(".navbar-pasific").removeClass("top-nav-collapse"); 95 } 96 }); 97 }; 98 }); 99 100 /* -------------------------------------------------------- 101 NAVBAR-INVERSE FIXED TOP ON SCROLL 102 ----------------------------------------------------------- */ 103 $(function(){ 104 "use strict"; 105 if( $(".navbar-pasific-inverse").length > 0 ){ 106 $(window).scroll(function() { 107 if ($(".navbar").offset().top > 10) { 108 $(".navbar-pasific").addClass("top-nav-collapse-inverse"); 109 110 } else { 111 $(".navbar-pasific").removeClass("top-nav-collapse-inverse"); 112 } 113 }); 114 }; 115 }); 116 117 118 119 120 /* -------------------------------------------------------- 121 BOOTSTRAP TOGGLE TOOLTIP 122 ----------------------------------------------------------- */ 123 $(function(){ 124 "use strict"; 125 $('[data-toggle="tooltip"]').tooltip(); 126 }); 127 128 129 /* -------------------------------------------------------- 130 TEAM HOVER 131 ----------------------------------------------------------- */ 132 $(function () { 133 "use strict" 134 $('.team-seven').hover( 135 function () {
136 var overlay = $(this).find('.team-seven-overlay'); 137 overlay.removeClass(overlay.data('return')).addClass(overlay.data('hover')); 138 }, 139 function () { 140 var overlay = $(this).find('.team-seven-overlay'); 141 overlay.removeClass(overlay.data('hover')).addClass(overlay.data('return')); 142 143 } 144 ); 145 }); 146 147 148 /* -------------------------------------------------------- 149 COUNT TO 150 ----------------------------------------------------------- */ 151 $(function() { 152 "use strict"; 153 $(".fact-number").appear(function(){ 154 var dataperc = $(this).attr('data-perc'); 155 $(this).each(function(){ 156 $(this).find('.factor').delay(6000).countTo({ 157 from: 10, 158 to: dataperc, 159 speed: 3000, 160 refreshInterval: 50, 161 }); 162 }); 163 }); 164 }); 165 166 167 /* -------------------------------------------------------- 168 OWL CAROUSEL FOR TESTIMONIAL 169 ----------------------------------------------------------- */ 170 $(function() { 171 "use strict"; 172 var owlSectionOneItem = $("#owlSectionOneItem"); 173 owlSectionOneItem.owlCarousel({ 174 autoPlay: 5000, 175 items : 1, 176 itemsDesktop : [1000,1], 177 itemsDesktopSmall : [900,1], 178 itemsTablet: [600,1], 179 itemsMobile : false 180 }); 181 182 var owlSectionTwoItem = $("#owlSectionTwoItem"); 183 owlSectionTwoItem.owlCarousel({ 184 autoPlay: 5000, 185 items : 2, 186 itemsDesktop : [1000,2], 187 itemsDesktopSmall : [900,2], 188 itemsTablet: [600,2], 189 itemsMobile : false 190 }); 191 192 var owlSectionThreeItem = $("#owlSectionThreeItem"); 193 owlSectionThreeItem.owlCarousel({ 194 autoPlay: 5000, 195 items : 3, 196 itemsDesktop : [1000,3], 197 itemsDesktopSmall : [900,3], 198 itemsTablet: [600,1], 199 itemsMobile : false 200 }); 201 202 var owlSectionFourItem = $("#owlSectionFourItem"); 203 owlSectionFourItem.owlCarousel({ 204 autoPlay: 5000, 205 items : 4, 206 itemsDesktop : [1000,4], 207 itemsDesktopSmall : [900,2], 208 itemsTablet: [600,2], 209 itemsMobile : false 210 }); 211 212 var owlSectionFiveItem = $("#owlSectionFiveItem"); 213 owlSectionFiveItem.owlCarousel({ 214 autoPlay: 5000, 215 items : 5, 216 itemsDesktop : [1000,5], 217 itemsDesktopSmall : [900,3], 218 itemsTablet: [600,3], 219 itemsMobile : false 220 }); 221 222 var owlSectionSixItem = $("#owlSectionSixItem"); 223 owlSectionSixItem.owlCarousel({ 224 autoPlay: 5000, 225 items : 6, 226 itemsDesktop : [1000,6], 227 itemsDesktopSmall : [900,3], 228 itemsTablet: [600,3], 229 itemsMobile : false 230 }); 231 232 233 }); 234 235 /* -------------------------------------------------------- 236 OWL CAROUSEL FOR SHOP 237 ----------------------------------------------------------- */ 238 $(function() { 239 "use strict"; 240 var owlShop = $("#owlShop"); 241 242 owlShop.owlCarousel({ 243 slideSpeed : 1000, 244 autoPlay : true, 245 pagination: false, 246 items : 4, 247 }); 248 249 $(".shop-control-next").on('click', function(){ 250 owlShop.trigger('owl.next'); 251 }) 252 $(".shop-control-prev").on('click', function(){ 253 owlShop.trigger('owl.prev'); 254 }); 255 256 }); 257 258 259 /* -------------------------------------------------------- 260 PAGE LOADER 261 ----------------------------------------------------------- */ 262 $(function() { 263 "use strict"; 264 $("body").imagesLoaded(function(){ 265 $(".loader-item").delay(700).fadeOut(); 266 $("#pageloader").delay(800).fadeOut("slow"); 267 }); 268 }); 269 270 /* -------------------------------------------------------- 271 JQUERY TYPED 272 ----------------------------------------------------------- */ 273 $(function(){ 274 "use strict"; 275 if($("#typed").length > 0 ) { 276 $("#typed").typed({
277 stringsElement: $('#typed-strings'), 278 startDelay: 1000, 279 typeSpeed: 10, 280 backDelay: 3000, 281 loop: true, 282 contentType: 'html', 283 loopCount: false, 284 }); 285 }; 286 }); 287 288 /* -------------------------------------------------------- 289 JQUERY TYPED#2 290 ----------------------------------------------------------- */ 291 $(function(){ 292 "use strict"; 293 if($("#typed-2").length > 0 ) { 294 $("#typed-2").typed({ 295 stringsElement: $('#typed-strings-2'), 296 startDelay: 100, 297 typeSpeed: 50, 298 backDelay: 500, 299 loop: false, 300 contentType: 'html', 301 }); 302 }; 303 }); 304 305 /* -------------------------------------------------------- 306 JQUERY TEXTILLATE 307 ----------------------------------------------------------- */ 308 $(function(){ 309 "use strict"; 310 if($(".tlt").length > 0 ) { 311 $('.tlt').textillate({ 312 loop: true, 313 minDisplayTime: 5000, 314 out: { 315 effect: 'hinge', 316 delayScale: 1.5, 317 delay: 50, 318 sync: false, 319 shuffle: false, 320 reverse: false, 321 callback: function () {} 322 }, 323 }); 324 }; 325 }); 326 327 /* -------------------------------------------------------- 328 JQUERY ROTATE 329 ----------------------------------------------------------- */ 330 $(function(){ 331 "use strict"; 332 if($(".rotate").length > 0 ) { 333 $(".rotate").textrotator({ 334 animation: "fade", 335 separator: ",", 336 speed: 2000 337 }); 338 }; 339 }); 340 341 /* -------------------------------------------------------- 342 SHOP RANGE SLIDER 343 ----------------------------------------------------------- */ 344 $(function() { 345 "use strict"; 346 if($("#shop-range-price").length > 0 ) { 347 var $rangePrice = $("#shop-range-price"); 348 $rangePrice.ionRangeSlider({ 349 type: "double", 350 grid: true, 351 min: 0, 352 max: 250, 353 from: 45, 354 to: 200, 355 prefix: "$" 356 }); 357 }; 358 }); 359 360 361}(jQuery)); 362 363$(window).load(function() { 364 365 /* -------------------------------------------------------- 366 ISOTOPE MASONRY GRID 367 ----------------------------------------------------------- */ 368 $( function() { 369 "use strict"; 370 371 var $portfolioMasonryOne = $('.portfolio-masonry-one').isotope({ 372 itemSelector: '.portfolio-masonry-one-item', 373 masonry: { 374 columnWidth: 180, 375 gutter: 10 376 } 377 }); 378 379 var $portfolioMasonryOneFullwidth = $('.portfolio-masonry-one-fullwidth').isotope({ 380 itemSelector: '.portfolio-masonry-one-item', 381 masonry: { 382 columnWidth: 180, 383 gutter: 10 384 } 385 }); 386 387 var $portfolioMasonryTwo = $('.portfolio-masonry-two').isotope({ 388 itemSelector: '.portfolio-masonry-two-item', 389 masonry: { 390 columnWidth: 250, 391 gutter: 10 392 } 393 }); 394 395 var $portfolioMasonryTwoFullwidth = $('.portfolio-masonry-two-fullwidth').isotope({ 396 itemSelector: '.portfolio-masonry-two-item', 397 masonry: { 398 columnWidth: 250, 399 gutter: 10 400 } 401 }); 402 403 var $portfolio = $('.portfolio').isotope({ 404 itemSelector: '.portfolio-item', 405 masonry: { 406 rowHeight: 280 407 } 408 }); 409 410 var $blogMasonry6col = $('.blog-masonry-6col').isotope({ 411 itemSelector: '.blog-masonry-item', 412 masonry: { 413 columnWidth: '.col-lg-2', 414 gutter: 0 415 } 416 }); 417 418 var $blogMasonry4Col = $('.blog-masonry-4col').isotope({ 419 itemSelector: '.blog-masonry-item', 420 masonry: { 421 columnWidth: '.col-md-3', 422 gutter: 0 423 } 424 }); 425 426 var $blogMasonry3Col = $('.blog-masonry-3col').isotope({ 427 itemSelector: '.blog-masonry-item', 428 masonry: { 429 columnWidth: '.col-md-4', 430 gutter: 0 431 } 432 }); 433 434 var $blogMasonry2Col = $('.blog-masonry-2col').isotope({ 435 itemSelector: '.blog-masonry-item', 436 masonry: { 437 columnWidth: '.col-md-6', 438 gutter: 0 439 } 440 }); 441 442 $('ul.filters li a').on('click', function() { 443 var filterValue = $( this ).attr('data-filter'); 444 $portfolioMasonryOne.isotope({ filter: filterValue }); 445 $portfolioMasonryOneFullwidth.isotope({ filter: filterValue }); 446 $portfolioMasonryTwo.isotope({ filter: filterValue }); 447 $portfolioMasonryTwoFullwidth.isotope({ filter: filterValue }); 448 $portfolio.isotope({ filter: filterValue }); 449 }); 450 451 452 $('ul.filters li a').on('click', function(){ 453 $('ul.filters li a').removeClass('active'); 454 $(this).addClass('active'); 455 }); 456 457 }); 458 459 /* -------------------------------------------- 460 SECURITY CHECK HUMAN 461 -------------------------------------------- */ 462 if($("#senderHuman").length > 0 ) { 463 var a = Math.ceil(Math.random() * 10) + 1;
464 var b = Math.ceil(Math.random() * 10) + 1; 465 document.getElementById("senderHuman").placeholder = a +" + "+ b +" = ?"; 466 document.getElementById("checkHuman_a").value = a; 467 document.getElementById("checkHuman_b").value = b; 468 } 469 470 /* -------------------------------------------- 471 CONTACT FORM 472 -------------------------------------------- */ 473 var messageDelay = 2000; 474 $(init); 475 476 function init() { 477 $('#contactForm').show().submit( submitForm ).addClass( 'positioned' ); 478 } 479 480 // Submit the form via Ajax 481 function submitForm() { 482 var contactForm = $(this); 483 484 // Are all the fields filled in? 485 486 if ( !$('#senderName').val() || !$('#senderEmail').val() || !$('#message').val() ) { 487 488 // No; display a warning message and return to the form 489 $('#incompleteMessage').fadeIn().delay(messageDelay).fadeOut(); 490 contactForm.fadeOut().delay(messageDelay).fadeIn(); 491 492 } else { 493 494 // Yes; submit the form to the PHP script via Ajax 495 496 $('#sendingMessage').fadeIn(); 497 contactForm.show(); 498 499 $.ajax( {
500 url: contactForm.attr( 'action' ) + "?ajax=true", 501 type: contactForm.attr( 'method' ), 502 data: contactForm.serialize(), 503 success: submitFinished 504 } ); 505 } 506 507 // Prevent the default form submission occurring 508 return false; 509 } 510 511 512 // Handle the Ajax response 513 function submitFinished( response ) { 514 response = $.trim( response ); 515 $('#sendingMessage').fadeOut(); 516 517 if ( response == "success" ) { 518 519 // Form submitted successfully: 520 // 1. Display the success message 521 // 2. Clear the form fields 522 // 3. Fade the content back in 523 524 $('#successMessage').fadeIn().delay(messageDelay).fadeOut(); 525 $('#senderName').val( "" ); 526 $('#senderEmail').val( "" ); 527 $('#message').val( "" ); 528 529 $('#content').delay(messageDelay+500).fadeTo( 'slow', 1 ); 530 531 } else { 532 533 // Form submission failed: Display the failure message, 534 // then redisplay the form 535 $('#failureMessage').fadeIn().delay(messageDelay).fadeOut(); 536 $('#contactForm').delay(messageDelay+500).fadeIn(); 537 } 538 } 539 540});
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.