{"id":14587,"date":"2019-01-03T19:36:46","date_gmt":"2019-01-03T10:36:46","guid":{"rendered":"http:\/\/koreabuild.co.kr\/kintex\/?page_id=14587"},"modified":"2025-03-31T18:53:11","modified_gmt":"2025-03-31T09:53:11","slug":"send-invitation","status":"publish","type":"page","link":"https:\/\/koreabuild.co.kr\/kintex\/send-invitation\/","title":{"rendered":"\uce5c\uad6c\ucd08\ub300\ud558\uae30"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-margin-top:4%;--awb-margin-bottom:3%;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1456px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-title title fusion-title-1 fusion-sep-none fusion-title-center fusion-title-text fusion-title-size-div\" style=\"--awb-text-color:var(--awb-color8);--awb-margin-bottom:2%;--awb-margin-top-small:0px;--awb-margin-right-small:0px;--awb-margin-bottom-small:31px;--awb-margin-left-small:0px;--awb-font-size:48px;\"><div class=\"fusion-title-heading title-heading-center title-heading-tag fusion-responsive-typography-calculated\" style=\"font-family:&quot;Pretendard Variable&quot;;font-style:normal;font-weight:400;margin:0;font-size:1em;--fontSize:48;line-height:1.3;\"><div class=\"fw700\">\ubb34\ub8cc\ucd08\uccad\uc7a5 \ubc1c\uc1a1<\/div><\/div><\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\">\n<style>\n  .notice_text {\n    text-align: center;\n    font-size: 20px;\n  }\n\n  .btn.btn_silhouette {\n    border-radius: 35px;\n    padding: 17px 40px;\n    width: 100%;\n  }\n\n  .complete_info {\n    font-size: 16px;\n    border: 5px solid #ededed;\n    padding: 20px;\n    text-align: center;\n    color: var(--messe-font-color) !important;\n    width: calc(100% - 30px);\n  }\n\n  .one_btn_container {\n    display: flex;\n    justify-content: center;\n  }\n\n  #prereg_complete .btn.btn-block,\n  #prereg_not_complete .btn.btn-block {\n    padding: var(--messe-btn-check-prereg-complete-padding) !important;\n    font-size: var(--messe-btn-check-prereg-complete-font-size) !important;\n  }\n\n  .mobileNum input[type=number] {\n    appearance: textfield;\n  }\n\n  .btn.confirm_btn_font {\n    font-size: 17px;\n    font-weight: bold;\n  }\n\n  .btn_box {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: space-between;\n    gap: 10px;\n  }\n\n  .btn_box>div {\n    flex: 1 1 calc(50% - 10px);\n    box-sizing: border-box;\n    max-width: calc(50% - 10px);\n  }\n\n  .one_btn_container #checkPreRegistration,\n  .one_btn_container button {\n    width: 33%;\n    border-radius: 35px;\n    padding: 17px 40px;\n  }\n\n  @media (max-width: 640px) {\n\n    .one_btn_container #checkPreRegistration,\n    .one_btn_container button {\n      width: 100%;\n    }\n\n    .btn_box {\n      flex-direction: column;\n    }\n\n    .btn_box>div {\n      flex: 1 1 100%;\n      max-width: 100%;\n    }\n  }\n\n<\/style>\n\n<div class=\"form-parents\" style=\"\">\n  <p class=\"notice_text\">\ucf54\ub9ac\uc544\ube4c\ub4dc \uc0ac\uc804\ub4f1\ub85d\uc790\ub9cc\uc744 \uc704\ud55c \ud61c\ud0dd!<br>\uc0ac\uc804\ub4f1\ub85d \uc2dc \ubb34\uc81c\ud55c\uc73c\ub85c \ubb34\ub8cc \ucd08\uccad\uc7a5 \ubc1c\uc1a1\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n  <div class=\" form-horizontal\">\n    <div>\n      <div class=\"col-xs-4 mobileNum\">\n        <input type=\"number\" name=\"txtMobileNo1\" class=\"form-control text-center\" id=\"txtMobileNo1\" placeholder=\"010\"\n          onkeyup=\"return fnOnlyNumber(event,'false',jQuery(this));\" size=\"4\" maxlength=\"3\">\n      <\/div>\n      <div class=\"col-xs-4 mobileNum\">\n        <input type=\"number\" name=\"txtMobileNo2\" class=\"form-control text-center\" id=\"txtMobileNo2\" placeholder=\"1234\"\n          onkeyup=\"return fnOnlyNumber(event,'false',jQuery(this));\" size=\"4\" maxlength=\"4\">\n      <\/div>\n      <div class=\"col-xs-4 mobileNum\">\n        <input type=\"number\" name=\"txtMobileNo3\" class=\"form-control text-center\" id=\"txtMobileNo3\" placeholder=\"5678\"\n          onkeyup=\"return fnOnlyNumber(event, 'true',jQuery(this));\" size=\"4\" maxlength=\"4\">\n      <\/div>\n    <\/div>\n    <div>\n      <div>\n        <div class=\"col-xs-12 pt20\">\n          <div>\n            <div class=\"mb-3 one_btn_container\">\n              <button id=\"checkPreRegistration\" class=\"btn btn-primary confirm_btn_font\"\n                onclick=\"submitForm();\">\ub4f1\ub85d \uc5ec\ubd80 \ud655\uc778 <i class='fa-long-arrow-alt-right fas button-icon-right' aria-hidden='true'><\/i><\/button>\n            <\/div>\n            <div id=\"prereg_info\">\n              \u203b \uc774\uc6a9\ubc29\ubc95<br>\n              - \uc0ac\uc804\ub4f1\ub85d\uc790\uc758 \ud734\ub300\uc804\ud654\ubc88\ud638\ub97c \uc785\ub825\ud558\uc138\uc694\n            <\/div>\n            <div class=\"col-xs-12 complete_info\" style=\"display:none;\"><\/div>\n          <\/div>\n        <\/div>\n        <div id=\"prereg_complete\" style=\"display:none;\">\n          <div class=\"col-xs-12 pt20 btn_box\">\n            <div class=\"mb-3\">\n              <button class=\"btn btn-primary confirm_btn_font btn_silhouette\" onclick=\"sendInvite();\">\ubb34\ub8cc \ucd08\uccad\uc7a5 \ubcf4\ub0b4\uae30<\/button>\n            <\/div>\n            <div class=\"mb-3\">\n              <button class=\"btn btn-default confirm_btn_font btn_silhouette\"\n                onclick=\"document.location.href='https:\/\/koreabuild.co.kr\/kintex';\">\uba54\uc778\ud398\uc774\uc9c0\ub85c\n                \uac00\uae30<\/button>\n            <\/div>\n          <\/div>\n        <\/div>\n        <div id=\"prereg_not_complete\" style=\"display:none;\">\n                                <div class=\"col-xs-12 pt20\">\n              <div class=\"mb-3 one_btn_container\">\n                <button class=\"btn btn-default confirm_btn_font btn_silhouette\"\n                  onclick=\"document.location.href='https:\/\/koreabuild.co.kr\/kintex';\">\uba54\uc778\ud398\uc774\uc9c0\ub85c\n                  \uac00\uae30<\/button>\n              <\/div>\n            <\/div>\n                  <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n<input type=\"hidden\" id='visitor_id' value=\"\">\n<input type=\"hidden\" id='fair_visitor_id' value=\"\">\n\n<script>\n  var fair_id = \"737\";\n\n  jQuery('input[maxlength]').keyup(function() {\n    var input = jQuery(this);\n\n    if (input.val().length == input.attr('maxlength')) {\n      if (input.attr('id') == 'txtMobileNo1') {\n        jQuery('#txtMobileNo2').focus();\n      }\n      if (input.attr('id') == 'txtMobileNo2') {\n        jQuery('#txtMobileNo3').focus();\n      }\n      input.parents().first().focus();\n    }\n    if (input.val().length > input.attr('maxlength')) {\n      var str = input.val().slice(0, input.attr('maxlength'));\n      input.val(str);\n    }\n  });\n\n  function fnOnlyNumber() {\n\n    event = event || window.event;\n    var keyID = (event.which) ? event.which : event.keyCode;\n\n    if (keyID >= 48 && keyID <= 57) {\n      return true;\n    } else {\n      event.target.value = event.target.value.replace(\/[^0-9]\/g, \"\");\n      if (event.preventDefault) {\n        event.preventDefault();\n      } else {\n        event.returnValue = false;\n      }\n    }\n  }\n\n  \/\/\ud578\ub4dc\ud3f0\ubc88\ud638 \uae38\uc774chk\n  function fnMobilechk() {\n    if (jQuery('[id$=txtMobileNo1]').val().length < 3 || jQuery('[id$=txtMobileNo2]').val().length < 3 || jQuery('[id$=txtMobileNo3]').val()\n      .length < 4) {\n      alert(\"\ud578\ub4dc\ud3f0 \ubc88\ud638\ub97c \uc815\ud655\ud558\uac8c \uc785\ub825\ud558\uc5ec \uc8fc\uc2ed\uc2dc\uc624.\");\n      return false;\n    }\n    return true;\n  }\n\n  function submitForm() {\n    if (event.preventDefault) {\n      event.preventDefault();\n    }\n    var phoneNo = jQuery('[id$=txtMobileNo1]').val() + jQuery('[id$=txtMobileNo2]').val() + jQuery('[id$=txtMobileNo3]').val();\n    if (fnMobilechk() === true) {\n      fnregistChkEsMember();\n    }\n  }\n\n  function fnregistChkEsMember() {\n    var _mobile = jQuery('#txtMobileNo1').val() + jQuery('#txtMobileNo2').val() + jQuery('#txtMobileNo3').val();\n    jQuery.ajax({\n      type: \"POST\",\n      url: ESMEMBER_API_URL + '\/visitor\/VST_sr_VisitorReqRegistCheck',\n      data: {\n        mobile: _mobile,\n        fair_id: fair_id\n      },\n      dataType: \"json\",\n      async: false,\n      success: function(data) {\n\n        jQuery('#prereg_info').text('');\n        jQuery('.complete_info').text('');\n\n        if (data != '' && data != null) {\n          jQuery.each(data, function(key, val) {\n            var VISITOR_ID = encodeURIComponent(window.btoa(val.VISITOR_ID));\n            var NAME = val.VISITOR_NAME;\n            var FAIR_VISITOR_ID = val.FAIR_VISITOR_ID;\n            var CREATE_DATE = val.CREATE_DATE;\n            var REG_TYPE = val.REG_TYPE;\n\n            if (FAIR_VISITOR_ID) {\n              jQuery('#prereg_not_complete').hide();\n              jQuery('#prereg_complete').show();\n              jQuery('#visitor_id').val(VISITOR_ID);\n              jQuery('#fair_visitor_id').val(FAIR_VISITOR_ID);\n\n              var confirm_messege = '';\n\n                              if (REG_TYPE == 16) {\n                  confirm_messege = ' <strong style=\"color:red\">\ud604\uc7a5\ub4f1\ub85d<\/strong>';\n                } else {\n                  jQuery('#barcode').show();\n                  confirm_messege = ' <strong style=\"color:red\">\ucc38\uad00\uc2e0\uccad<\/strong>';\n                }\n              \n              var formattedDate = CREATE_DATE.split('.')[0].split(':').slice(0, 2).join(':')\n              var reg_msg = '<span id=\"ConfirmReg\">' + NAME + '\ub2d8\uaed8\uc11c\ub294 ' + formattedDate + '\uc5d0 ' + confirm_messege +\n                '\uc744 \ud574\uc8fc\uc168\uc2b5\ub2c8\ub2e4.<br>\uc804\uc2dc \uae30\uac04\uc5d0 \uc804\uc2dc\uc7a5 \uc785\uad6c\uc5d0\uc11c \ubcf8\uc778 \ud655\uc778 \ud6c4 \uc785\uc7a5\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br>\uac10\uc0ac\ud569\ub2c8\ub2e4.<\/span>';\n              jQuery('.complete_info').show().html(reg_msg);\n            } else {\n              jQuery('#prereg_complete').hide();\n              jQuery('#prereg_not_complete').show();\n              jQuery('#prereg_info').hide();\n              var regmsg = '<span id =\"ConfirmReg\">\uc0ac\uc804\ub4f1\ub85d\uc774 \uc548 \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<br>\uc0ac\uc804\ub4f1\ub85d \ud6c4 \uc0ac\uc6a9\ud574 \uc8fc\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/span>';\n              jQuery('.complete_info').show().html(regmsg);\n            }\n          });\n        } else {\n          jQuery('#prereg_complete').hide();\n          jQuery('#prereg_not_complete').show();\n          jQuery('#prereg_info').hide();\n          var regmsg = '<span id =\"ConfirmReg\">\uc0ac\uc804\ub4f1\ub85d\uc774 \uc548 \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<br>\uc0ac\uc804\ub4f1\ub85d \ud6c4 \uc0ac\uc6a9\ud574 \uc8fc\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/span>'; \/\/ TODO: \ubb38\uad6c\uac00 \uc774\uc0c1\ud558\uac8c \ub290\uaef4\uc9d0\n          jQuery('.complete_info').show().html(regmsg);\n        }\n      },\n      error: function(XMLHttpRequest, status, err) {\n        console.log(XMLHttpRequest.status + \"\\\\n\" + err);\n      }\n    });\n  }\n\n  function sendInvite() {\n    var homeUrl = \"https:\/\/koreabuild.co.kr\/kintex\";\n    var visitor_id = jQuery('#visitor_id').val();\n    location.href = homeUrl + '\/member\/?c=INVITE&a=EsMemberInviteSend&fair_id=' + fair_id + '&visitor_id=' + visitor_id;\n  }\n\n  function barcordConfirm() {\n    var fair_master_cd = 'KLILA';\n    var fair_visitor_id = jQuery('#fair_visitor_id').val();\n    var reg = 'Y';\n    location.href = \"https:\/\/ent.esfair.kr\/complete\/complete.aspx?c=\" + fair_master_cd + \"&q=\" + fair_visitor_id + '&_reg=' + reg;\n  }\n\n<\/script>\n<\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14587","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/koreabuild.co.kr\/kintex\/wp-json\/wp\/v2\/pages\/14587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/koreabuild.co.kr\/kintex\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/koreabuild.co.kr\/kintex\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/koreabuild.co.kr\/kintex\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/koreabuild.co.kr\/kintex\/wp-json\/wp\/v2\/comments?post=14587"}],"version-history":[{"count":0,"href":"https:\/\/koreabuild.co.kr\/kintex\/wp-json\/wp\/v2\/pages\/14587\/revisions"}],"wp:attachment":[{"href":"https:\/\/koreabuild.co.kr\/kintex\/wp-json\/wp\/v2\/media?parent=14587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}