1/* ================================= 2 LOADER 3=================================== */ 4// makes sure the whole site is loaded 5jQuery(window).load(function() { 6 // will first fade out the loading animation 7 jQuery(".status").fadeOut(); 8 // will fade out the whole DIV that covers the website. 9 jQuery(".preloader").delay(1000).fadeOut("slow"); 10}) 11 12/* ================================= 13=== RESPONSIVE VIDEO ==== 14=================================== */ 15 16$(".video-container").fitVids(); 17 18 19 20/* ================================= 21=== MAILCHIMP ==== 22=================================== */ 23 24$('.mailchimp').ajaxChimp({ 25 callback: mailchimpCallback, 26 url: "http://webdesign7.us6.list-manage.com/subscribe/post?u=9445a2e155b82208d73433060&id=16dc80e353" //Replace this with your own mailchimp post URL. Don't remove the "". Just paste the url inside "". 27}); 28 29function mailchimpCallback(resp) { 30 if (resp.result === 'success') { 31 $('.subscription-success').html('<i class="icon_check_alt2"></i><br/>' + resp.msg).fadeIn(1000); 32 $('.subscription-error').fadeOut(500); 33 34 } else if(resp.result === 'error') { 35 $('.subscription-error').html('<i class="icon_close_alt2"></i><br/>' + resp.msg).fadeIn(1000); 36 } 37} 38 39/* ================================= 40=== STICKY NAV ==== 41=================================== */ 42 43$(document).ready(function() { 44 $('.main-navigation').onePageNav({ 45 scrollThreshold: 0.2, // Adjust if Navigation highlights too early or too late 46 scrollOffset: 60 //Height of Navigation Bar 47 }); 48 49}); 50 51/* NAVIGATION VISIBLE ON SCROLL */ 52 53$(document).ready(function () { 54 mainNav(); 55}); 56 57$(window).scroll(function () { 58 mainNav(); 59}); 60 61if (matchMedia('(min-width: 992px), (max-width: 767px)').matches) { 62 function mainNav() { 63 var top = (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop; 64 if (top > 40) $('.sticky-navigation').stop().animate({"top": '0'}); 65 66 else $('.sticky-navigation').stop().animate({"top": '0'}); 67 } 68} 69 70if (matchMedia('(min-width: 768px) and (max-width: 991px)').matches) { 71 function mainNav() { 72 var top = (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop; 73 if (top > 40) $('.sticky-navigation').stop().animate({"top": '0'}); 74 75 else $('.sticky-navigation').stop().animate({"top": '0'}); 76 } 77} 78 79 80 81/* ================================= 82=== DOWNLOAD BUTTON CLICK SCROLL == 83=================================== */ 84jQuery(function( $ ){ 85 $('#download-button').localScroll({ 86 duration:1000 87 }); 88 }); 89 90/* ================================= 91=== VIDEO BACKGROUND ==== 92=================================== */ 93if (matchMedia('(min-width: 640px)').matches) { 94 95 $(document).ready(function() { 96 var videobackground = new $.backgroundVideo($('body'), { 97 "align": "centerXY", 98 "width": 1280, 99 "height": 720, 100 "path": "video/", 101 "filename": "video", 102 "types": ["mp4","ogg","webm"] 103 }); 104 }); 105 106} 107 108/* ================================= 109=== FULL SCREEN HEADER ==== 110=================================== */ 111function alturaMaxima() { 112 var altura = $(window).height(); 113 $(".full-screen").css('min-height',altura); 114 115} 116 117$(document).ready(function() { 118 alturaMaxima(); 119 $(window).bind('resize', alturaMaxima); 120}); 121 122 123/* ================================= 124=== SMOOTH SCROLL ==== 125=================================== */ 126var scrollAnimationTime = 1200, 127 scrollAnimation = 'easeInOutExpo'; 128$('a.scrollto').bind('click.smoothscroll', function (event) { 129 event.preventDefault(); 130 var target = this.hash; 131 $('html, body').stop().animate({ 132 'scrollTop': $(target).offset().top 133 }, scrollAnimationTime, scrollAnimation, function () { 134 window.location.hash = target; 135 }); 136}); 137 138 139/* ================================= 140=== WOW ANIMATION ==== 141=================================== */ 142 143wow = new WOW( 144 { 145 mobile: false 146 }); 147wow.init(); 148 149 150/* ================================= 151=== OWL CROUSEL ==== 152=================================== */ 153$(document).ready(function () { 154 155 $("#feedbacks").owlCarousel({ 156 157 navigation: false, // Show next and prev buttons
158 slideSpeed: 800, 159 paginationSpeed: 400, 160 autoPlay: 5000, 161 singleItem: true 162 }); 163 164 var owl = $("#screenshots"); 165 166 owl.owlCarousel({ 167 items: 4, //10 items above 1000px browser width 168 itemsDesktop: [1000, 4], //5 items between 1000px and 901px 169 itemsDesktopSmall: [900, 2], // betweem 900px and 601px 170 itemsTablet: [600, 1], //2 items between 600 and 0 171 itemsMobile: false // itemsMobile disabled - inherit from itemsTablet option 172 }); 173 174 175}); 176 177 178/* ================================= 179=== Nivo Lightbox ==== 180=================================== */ 181$(document).ready(function () { 182 183 $('#screenshots a').nivoLightbox({ 184 effect: 'fadeScale', 185 }); 186 187}); 188 189 190/* ================================= 191=== SUBSCRIPTION FORM ==== 192=================================== */ 193$("#subscribe").submit(function (e) { 194 e.preventDefault(); 195 var email = $("#subscriber-email").val(); 196 var dataString = 'email=' + email; 197 198 function isValidEmail(emailAddress) { 199 var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i); 200 return pattern.test(emailAddress); 201 }; 202 203 if (isValidEmail(email)) { 204 $.ajax({ 205 type: "POST", 206 url: "subscribe/subscribe.php", 207 data: dataString, 208 success: function () { 209 $('.subscription-success').fadeIn(1000); 210 $('.subscription-error').fadeOut(500); 211 $('.hide-after').fadeOut(500); 212 } 213 }); 214 } else { 215 $('.subscription-error').fadeIn(1000); 216 } 217 218 return false; 219}); 220 221 222/* ================================= 223=== CONTACT FORM ==== 224=================================== */ 225$("#contact").submit(function (e) { 226 e.preventDefault(); 227 var name = $("#name").val(); 228 var email = $("#email").val(); 229 var subject = $("#subject").val(); 230 var message = $("#message").val(); 231 var dataString = 'name=' + name + '&email=' + email + '&subject=' + subject + '&message=' + message; 232 233 function isValidEmail(emailAddress) { 234 var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i); 235 return pattern.test(emailAddress); 236 }; 237 238 if (isValidEmail(email) && (message.length > 1) && (name.length > 1)) { 239 $.ajax({ 240 type: "POST", 241 url: "sendmail.php", 242 data: dataString, 243 success: function () { 244 $('.success').fadeIn(1000); 245 $('.error').fadeOut(500); 246 } 247 }); 248 } else { 249 $('.error').fadeIn(1000); 250 $('.success').fadeOut(500); 251 } 252 253 return false;
254}); 255 256 257 258/* ================================= 259=== EXPAND COLLAPSE ==== 260=================================== */ 261$('.expand-form').simpleexpand({ 262 'defaultTarget': '.expanded-contact-form' 263}); 264 265 266 267/* ================================= 268=== STELLAR ==== 269=================================== */ 270$(window).stellar({ 271horizontalScrolling: false 272}); 273 274 275/* ================================= 276=== IE10 ON WINDOWS 8 FIX ==== 277=================================== */ 278if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 279 var msViewportStyle = document.createElement('style') 280 msViewportStyle.appendChild( 281 document.createTextNode( 282 '@-ms-viewport{width:auto!important}' 283 ) 284 ) 285 document.querySelector('head').appendChild(msViewportStyle) 286}
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.