var _thisSite = {}; var _thisPage = {}; var _isMobile_ = false; var _isLowBr_ = false if('onorientationchange' in window){window.addEventListener('onorientationchange', setWindowRotation, false);} $(document).ready(function(){ try{initPageCssFiles();}catch(e){} try{initPageJavascript();}catch(e){} try{getWindowSize();}catch(e){ alert(e);} try{getPageSize();}catch(e){} try{setLowBrowser();}catch(e){ } try{initPageLayout();}catch(e){ } try{setMediaObjectFunc();}catch(e){ } try{_thisLayout_style = getPageStyle(); }catch(e){} docLoading(function(){ }); }); $(window).load(function(){ try{initImgSizeInfo();}catch(e){ } setPageLayout(); }); $(window).resize(function(e){ var resizeTimeGap = 10; if(_isLowBr_) resizeTimeGap=100; clearTimeout(window.resizeEvt); window.resizeEvt = setTimeout(function() { getWindowSize();getPageSize(); try{ if(old_wsize.win== undefined || wsize.win.w!=old_wsize.win.w){ resetPageLayout(); }else{ resizePageLayoutHeight(); } }catch(e){ resetPageLayout(); } try{ $(msgPopArr).each(function(k,pp){ pp._resize(); }); }catch(e){} }, resizeTimeGap); }); $(window).scroll(function(){ var scrTimeGap = 10; if(_isLowBr_) scrTimeGap=100; clearTimeout(window.scrollEvt); window.scrollEvt = setTimeout(function() { try{ setScrollEndLayout();}catch(e){} }, scrTimeGap); clearTimeout(window.scrollAfterEvt); window.scrollAfterEvt = setTimeout(function() { try{ setScrollAfertLayout();}catch(e){} }, 5000); }); function initPageLayout(){ initNavigation(); //svimgH() if(_thisPage.initAction!=undefined && _thisPage.initAction.length>0){ $(_thisPage.initAction).each(function(i,func){try{func();}catch(e){ alert(e);}}); } } function setPageLayout(){ //forwarding(); if(_thisPage.initAction!=undefined && _thisPage.initAction.length>0){ $(_thisPage.initAction).each(function(i,func){try{func();}catch(e){ alert(e);}}); } try{ thisPageResizeAction(); }catch(e){} } function resetPageLayout(){ mainNavi._reset(); //forwarding(); if(_thisPage.resizeAction!=undefined && _thisPage.resizeAction.length>0){ $(_thisPage.resizeAction).each(function(i,func){try{func();}catch(e){ alert(e);}}); } try{ thisPageResizeAction(); }catch(e){} } function resizePageLayoutHeight(){} function setScrollEndLayout(){ var scrTop = $(window).scrollTop(); if(_thisPage.scrollAction!=undefined && _thisPage.scrollAction.length>0){$(_thisPage.scrollAction).each(function(i,func){try{func();}catch(e){ alert(e);}});} } function setScrollAfertLayout(){} function setWindowRotation(){ if(typeof(thisPageRotation)=="function" && thisPageRotation!=undefined){ thisPageRotation();} else { } } $(function(){ //depth4-tab var $depth4frame = $('.depth4-tab'); $depth4frame.sly({ horizontal: 1, itemNav: 'basic', smart: 1, activateOn: 'click', mouseDragging: 1, touchDragging: 1, releaseSwing: 1, //startAt: 0, scrollBy: 1, activatePageOn: 'click', speed: 600, elasticBounds: 1, easing: 'easeOutExpo', dragHandle: 1, dynamicHandle: 1, clickBar: 1, //prev: $('.depth4-tab').find('.prev'), //next:$('.depth4-tab').find('.next'), }); }); function sizeControl(width) { width = parseInt(width); $('.depth4-tab').sly('reload'); } jQuery(function($){ sizeControl($(this).width()); $(window).resize(function() { if(this.resizeTO) { clearTimeout(this.resizeTO); } this.resizeTO = setTimeout(function() { $(this).trigger('resizeEnd'); }, 50); }); }); $(window).on('resizeEnd', function() { sizeControl($(this).width()); }); $(window).load( function() { sizeControl($(this).width()); }); //table height check function forwarding(){ var tdHeight = $('.certi-list').find('.btxt'); var liListArray = tdHeight.map(function(){ return $(this).outerHeight(); }) var resH = Math.max.apply(Math , liListArray); $('.certi-list').find('.btxt').css({'height':resH}); } $(document).ready(function() { var uploadFile = $('.filebox .uploadBtn'); uploadFile.on('change', function(){ if(window.FileReader){ var filename = $(this)[0].files[0].name; } else { var filename = $(this).val().split('/').pop().split('\\').pop(); } $(this).siblings('.filename').val(filename); }); });