1var FrameLayer = { 2 width: 0, 3 height: 0, 4 src: 0, 5 scolling: "no", 6 parentReload : false, 7 open: function (src, width, height, scolling, parameter, parentReload) { 8 FrameLayer.src = src; //ê²½ë¡ 9 FrameLayer.width = width; //ê°ë¡ í¬ê¸° 10 FrameLayer.height = height; //ì¸ë¡ í¬ê¸° 11 FrameLayer.scolling = scolling; //ì¤í¬ë¡¤ë§ 12 //MOOK.2021.12.25.ë ì´ì´ ê°±ì ì ë¶ëª¨ì°½ ì ë³´ ë³ê²½ì ìí ì¶ê° 13 if( parentReload != undefined && parentReload != null ){ 14 FrameLayer.parentReload = parentReload; 15 } 16 //ë°°ê²½ ìì± 17 FrameLayer.setBackground(); 18 //Iframe ìì± 19 FrameLayer.setIframe(parameter); 20 }, 21 setBackground: function () { 22 var width = $(document).width(); 23 var height = $(document).height(); 24 var html = "<div id='frameLayer_bg' onclick='javascript:FrameLayer.close();' style='position:absolute; width: " + width + "px; height: " + height + "px; top:0; left:0; z-index:9999; background-color: #000; opacity: 0.5; filter: alpha(opacity=50);'></div>"; 25 26 $("body").append(html); 27 }, 28 setIframe: function ( parameter ) { 29 var scrollTop = $(document).scrollTop(); 30 var marginTop = (FrameLayer.height / 2) - scrollTop; 31 var marginLeft = (FrameLayer.width / 2); 32 if (marginTop >= 0) { 33 marginTop = "-" + marginTop; 34 } else { 35 marginTop = Math.abs(marginTop); 36 } 37 var flagName = "flag" + String(Math.floor(Math.random() * (9999 - 1000 + 1)) + 1000); 38 39 //var html = "<div id='frameLayer_layer' style='z-index:2000; position: absolute; top:10%; left:10%; overflow-x: hidden;'>"; 40 //html += "<iframe width='" + FrameLayer.width + "' height='" + FrameLayer.height + "' id='frameLayer_frame' src='" + FrameLayer.src + "' frameborder='0' marginwidth='0' marginheight='0' scrolling='no' allowTransparency='true'></iframe>"; 41 //html += "</div>"; 42 43 //var html = "<div id='frameLayer_layer' style='z-index:91; position: absolute; top: 50%; left:50%; margin-top:" + marginTop + "px; margin-left:-" + marginLeft + "px; width:" + FrameLayer.width + "px; max-height:800px; overflow: hidden;'>"; 44 //html += "<iframe onload='autoResize(this)' width='" + FrameLayer.width + "' height='" + FrameLayer.height + "' id='frameLayer_frame' src='" + FrameLayer.src + "' frameborder='0' marginwidth='0' marginheight='0' scrolling='" + FrameLayer.scolling + "' allowTransparency='true'></iframe>"; 45 //html += "</div>"; 46 47 var html = "<div id='frameLayer_layer' style='z-index:10000; position:absolute; top:50%; left:50%; border-radius:15px; margin-top:" + marginTop + "px; margin-left:-" + marginLeft + "px; width:" + FrameLayer.width + "px; max-height:800px; overflow:hidden; background:#fff;'>"; 48 html += "<iframe style='border:0; background-color: transparent; width:" + FrameLayer.width + "px; height:" + FrameLayer.height + "px;' width='" + FrameLayer.width + "' height='" + FrameLayer.height + "' name='frameLayer_frame' id='frameLayer_frame' src='#' frameborder='0' marginwidth='0' marginheight='0' scrolling='" + FrameLayer.scolling + "' allowTransparency='true'></iframe>"; 49 html += "</div>"; 50 51 // Post Temp Form 52 html += "<form id='" + flagName + "_form' action='" + FrameLayer.src + "' target='frameLayer_frame' method='post'>"; 53 54 if( parameter ){ 55 for(var k in parameter){ 56 html += "<input type='hidden' name='" + k + "' value='" + parameter[k] + "' />"; 57 } 58 } 59 html += "</form>"; 60 61 $("body").append(html); 62 $( "#" + flagName + "_form" ).get(0).submit(); 63 $( "#" + flagName + "_form" ).remove(); 64 }, 65 close: function () { 66 console.log("close["+FrameLayer.parentReload+"]"); 67 if( FrameLayer.parentReload ){ 68 console.log("parent.location.reload start"); 69 parent.location.reload(); 70 console.log("parent.location.reload end"); 71 } 72 parent.$("body").removeClass("overflow"); 73 parent.$(".body_wrapper").removeClass("overflow"); 74 75 if ($("#frameLayer_bg").length == 0) parent.$("#frameLayer_bg").remove(); 76 else $("#frameLayer_bg").remove(); 77 78 if ($("#frameLayer_layer").length == 0) parent.$("#frameLayer_layer").remove(); 79 else $("#frameLayer_layer").remove(); 80 81 82 } 83 84}
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.