1//======================================================== Animation for POP to TOP 2$(function(){ 3 4 $(window).scroll(function(){ 5 6 var y = $(this).scrollTop(); 7 8 if(y >= 100){ 9 $('.btn_top').fadeIn(); 10 } 11 else { 12 $('.btn_top').fadeOut(); 13 } 14 }); 15 16}); 17 18function goToByScroll() { 19 $('html, body').animate({ 20 scrollTop: $('body').offset().top 21 },400); 22} 23 24//======================================================== Input Clear 25$(function($){ 26 27 var i_text = $('.i_label').next('.i_text'); 28 29 $('.i_label').css('position','absolute'); 30 31 i_text 32 .focus(function(){ 33 $(this).prev('.i_label').css('visibility','hidden'); 34 }) 35 .blur(function(){ 36 if($(this).val() == ''){ 37 $(this).prev('.i_label').css('visibility','visible'); 38 } else { 39 $(this).prev('.i_label').css('visibility','hidden'); 40 } 41 }) 42 .change(function(){ 43 if($(this).val() == ''){ 44 $(this).prev('.i_label').css('visibility','visible'); 45 } else { 46 $(this).prev('.i_label').css('visibility','hidden'); 47 } 48 }) 49 .blur(); 50}); 51 52//======================================================== height LAYOUT 53$(document).ready(function() { 54 55 $(window).bind('resize', function (event) { 56 var header_height = $('#header').height(), 57 footer_height = $('#footer').height(), 58 top_height = $('.top_nav').height(), 59 container_height = $('#container').height(), 60 window_height = $(window).height(), 61 total_height = window_height - top_height - header_height - footer_height, 62 page_height = header_height + container_height + footer_height + top_height; 63 64 $('#container').css('min-height', total_height - 50 + 'px'); 65 $('.mask').css('height', page_height + 'px'); 66 67 68 }).trigger('resize'); 69}); 70 71//======================================================== Selectbox Control 72$(function(){ 73 var select = $(".select_box select"); 74 75 select.each(function () { 76 var select_name = $(this).children("option:selected").text(); 77 $(this).siblings("label").text(select_name); 78 }); 79 80 select.change(function(){ 81 var select_name = $(this).children("option:selected").text(); 82 $(this).siblings("label").text(select_name); 83 }); 84}); 85
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.