1/** 2 * jQuery.browser.mobile (http://detectmobilebrowser.com/) 3 * jQuery.browser.mobile will be true if the browser is a mobile device 4 **/ 5 6jQuery(document).ready(function() { 7 jQuery(window).resize(); 8 jQuery('.main-container > div:not(".preloader")').each(function() { 9 jQuery(this).css({ visibility: 'visible' }); 10 }); 11 if (jQuery('#btn-open-login-form').length > 0) { 12 jQuery('#btn-open-login-form').on('click', function() { 13 jQuery('body').toggleClass('open-login-form'); 14 15 if ( 16 jQuery(this) 17 .find('i') 18 .hasClass('fi-lock') 19 ) { 20 jQuery(this) 21 .find('i') 22 .removeClass(); 23 jQuery(this) 24 .find('i') 25 .addClass('fi-unlock'); 26 } else { 27 jQuery(this) 28 .find('i') 29 .removeClass(); 30 jQuery(this) 31 .find('i') 32 .addClass('fi-lock'); 33 } 34 }); 35 } 36}); 37 38jQuery(window).on('load', function() { 39 jQuery('#content').center(); 40 41 jQuery('.main-container > div:not(".preloader")').each(function() { 42 jQuery(this).css({ visibility: 'visible' }); 43 }); 44 45 setTimeout(function() { 46 jQuery('.main-container > .preloader').fadeOut(300, function() { 47 jQuery('.login-form-container').fadeIn(600); 48 }); 49 }, 1000); 50}); 51 52jQuery(window).resize(function() { 53 jQuery('#content').center(); 54 var window_w = jQuery('.logotype').width(); 55 jQuery('.logo').css('max-width', window_w + 'px'); 56 jQuery('.logo-retina').css('max-width', window_w + 'px'); 57}); 58 59jQuery.fn.center = function() { 60 var window_h = Math.max(0, (jQuery(window).height() - jQuery(this).outerHeight()) / 2 + jQuery(window).scrollTop()); 61 var content_h = jQuery('.logotype').height(); 62 if (window_h > content_h) { 63 this.css('position', 'absolute'); 64 this.css('top', window_h + 'px'); 65 } else { 66 this.css('position', 'relative'); 67 this.css('top', '0'); 68 } 69 return this; 70};
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.