if( window.console == undefined ){ console = { log : function(){} }; } $(document).ready(function(){ subQuick(); subCssControl(); change_height(".mptbox2_z",".mwbox_in"); change_height(".tali",".taltext"); }); function pagePrint(Obj) { //var browserAgent = navigator.appVersion; var W = 860; var H = Obj.offsetHeight; var features = "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=" + W + ",height=" + H + ",left=200,top=100"; var PrintPage = window.open("about:blank",Obj.id,features); PrintPage.document.open(); PrintPage.document.write(''); PrintPage.document.write(''); PrintPage.document.write(''); PrintPage.document.write(''); PrintPage.document.write(''); PrintPage.document.write(''); PrintPage.document.write("\n\n" + Obj.innerHTML + "\n"); PrintPage.document.close(); PrintPage.document.title = document.domain; /*if(browserAgent.indexOf("Trident") != -1){ PrintPage.print(); }*/ PrintPage.print(); //PrintPage.print(); } function subQuick(){ $(window).bind("resize.browsersize", function () { var $test = $('.sub_quick'); var test_offset = $test.offset(); $(window).scroll(function () { if($test.size()=="0"){return;}; if ($(window).scrollTop() >= test_offset.top) { $test.css({ position: 'fixed', top: '0' }); } else { $test.css({ position: 'absolute' , top: '175px' }); } }); }).trigger("resize.browsersize"); $(".qtop").on("click",function(){ $("html,body").animate({scrollTop:0},1000,"easeOutQuint"); }); }; function subCssControl(){ // ¸¸Á·µµ Á¶»ç var $contents = $(".contents"),$sati_check = $(".sati_check"); $contents.append($sati_check); $sati_check.show(); var $lnblilast = $("ul.lnb").find("li:last-child"); $lnblilast.css("padding-bottom","20px"); var $cleartarget = $(".tab_wrap,.docu_map_w,li.sel,.both_lib_wrap,.both_colm_wrap"); $cleartarget.append("
"); var $goldsq_list = $(".goldsq_list"); var $goldsq_listli = $goldsq_list.find("li"); //var $goldsq_listtit = $goldsq_listli.find(".tit"); var $data_tb = $(".data_tb").find("tr"); $data_tb.each(function(){ $(this).find("td:last-child").css("border-right",0); }); var $datalist_tr = $(".list_tb,.list_tb2").find("tr:last-child"); $datalist_tr.each(function(){ $(this).find("td").css({"border":0}); }); var $datalist_tr = $(".data_tb,.list_tb2").find("tr:last-child"); $datalist_tr.each(function(){ $(this).find("td").css({"border":0}); $(this).find(".tbline").css({"border":0}); }); var $datalist_trf = $(".list_tb2").find("tr"); $datalist_trf.each(function(){ $(this).find("td:first-child").css({"border-left":0}); }); $goldsq_listli.each(function(){ var $thistarget = $(this); //$thistarget.append(""); //$thistarget.find(".tit").height($thistarget.find(".txt").height()-12); }); var $textlist_tx = $(".textlist_w").find(".textz"); $textlist_tx.each(function(){ var $this = $(this); var $textlist_link = $this.find(".tit_ruf"); if($textlist_link.size()<2){ $this.css("background","none"); }; }); var $data_tb_tdd = $(".data_tb").find("td"); $.each($data_tb_tdd,function(){ if($(this).children().size()==0){ $(this).css("height",13); } }); var $list_tb2_tdd = $(".list_tb2").find("td"); $.each($data_tb_tdd,function(){ if($(this).children().size()==0){ $(this).css("height",13); } }); if($(".staf_dam_w").size() >= "1"){ $(".sati_check").css("margin","0"); } var $very_tbskin_last_tr = $(".very_tbskin").find("tr:last-child"); $very_tbskin_last_tr.find("td").css("border-bottom",0); $very_tbskin_last_tr.find("th").css("border-bottom",0); $(".rufone:last-child").css("border-bottom","0"); $(".ruf_gbox_w:last-child,.parag_e:last-child").css("margin-bottom","0"); var $titsel = $(".viewskin_tb").find(".titsel"); var $titsel2 = $(".viewskin_tb").find(".rigtel"); $titsel.css("border-top","0"); $titsel2.css("border-top","0"); //$viewskin_tb_trfirst.find("td").css("border-top","0"); $(".gctw1 .gct_w").each(function(){ var $this = $(this); var $tit = $this.find(".tit"); var $height = $this.find(".txt").height(); $this.css("height",$height+35); //$this.find(".tit").css("top",($height/2)-30); $tit.css("top",($height/2)-30); if($tit.height()<=22){ $tit.css("top",($height/2)-28); }else if($tit.height()==44 ){ $tit.css("top",($height/2)-40); } }); $(".gctw3 .gct_w").each(function(){ var $this = $(this); var $txt = $this.find(".txt"); var $height = $txt.height(); $txt.css("top",-17); $this.css("height",$height+35); $this.find(".tit").css("top",($height/2)-40); }); $(".gctw5 .gct_w").each(function(index){ var $this = $(this); var $txt = $this.find(".txt"); var $tit = $this.find(".tit"); var $height = $txt.height(); $txt.css("top",-16); $this.css("height",$height+35); $tit.css("top",($height/2)-40); if($tit.height()<=22){ $tit.css("top",($height/2)-28); }else if($tit.height()==66 ){ $tit.css("top",($height/2)-45); } //console.log($tit.height()); }); var $vpw = $(".viewPrint_w"); var $vimg = $vpw.find("img"); var $vpp = $vpw.find("p"); $.each($vpp,function(){ if($(this).find("img").length>0){ $(this).css("text-align","center"); }; }); $.each($vimg,function(){ if($vimg.width()<= 100){return;}; $vimg.css({ //"width":$vimg.width(), "margin": "0 auto", "display":"block" }); $vimg.wrapAll(""); }); var $inputText = $("input[type='text']"); $inputText.each(function(){ $(this).attr("AUTOCOMPLETE","off"); }); }; var change_height = function(div_parents, div_children){ var max_height = 0; $(div_parents).each(function () { var child = $(this).find(div_children); for ( var i = 0; child.length > i; i++){ child_height = $(child[i]).css("height"); var child_int = parseInt(child_height); if( max_height < child_int) max_height = child_int; } }); $(div_parents).find(div_children).css('height', max_height); };