CINXE.COM
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Pragma" content="no-cache, no-store, must-revalidate"> <meta http-equiv="Expires" content="-1"> <!-- base --> <link type="text/css" rel="stylesheet" href="/mcs/css/lib.css"> <link type="text/css" rel="stylesheet" href="/mcs/css/style.css"> <link type="text/css" rel="stylesheet" href="/mcs/css/partners/app.css"> <link rel="import" href="/mcs/html/common/introMcs.html"> <link rel="import" href="/mcs/html/common/introWallet.html"> <link rel="import" href="/mcs/html/common/introWalletMktg.html"> <script type="text/javascript" src="/mcs/js/jquery-3.4.0.min.js"></script> <script type="text/javascript"> function headerCompleted() { if(window.location.origin.indexOf("walletsvc") === -1) { $("#mcsIntro").html(); } else if (window.location.origin.indexOf("partner") === -1) { $("#walletIntro").html(); // wallet mktg } else { $("#partners").html(); } } </script> </head> <body> <!-- "include-html" 태그의 "target" 속성에 대치시킬 파일을 지정해준다. --> <include-html completed="headerCompleted"></include-html> <script> function includeHtml() { $("include-html").each(function() { element = $(this); target = ""; if(window.location.origin.indexOf("walletsvc") === -1) { target = "/mcs/html/common/introMcs.html"; } else if (window.location.origin.indexOf("partner") === -1) { target = "/mcs/html/common/introWallet.html"; // wallet mktg } else { target = "/mcs/html/common/introWalletMktg.html"; document.body.id = "partners"; } element.attr("target", target); element.load(element.attr("target"), eval(element.attr("completed"))); }); } includeHtml(); </script> </body> </html>