
파워맨 공식 사이트입니다. POWERMAN 브랜드 이야기와 새로운 소식, 최신 연결 정보를 한곳에서 만나보세요.
파워맨
CompanyProductsContact Us
POWERMANOFFICIAL BRAND
홈브랜드 이야기브랜드 가치새소식FAQ
브랜드 소식
홈브랜드 이야기브랜드 가치새소식FAQ
POWERMAN OFFICIAL
파워맨, 익숙한 이름에새로운 기준을 더하다
오랫동안 이 이름을 기억해 온 이용자를 위해 브랜드의 현재와 새로운 이야기를 한곳에 담았습니다. 익숙함은 그대로, 경험은 더 분명하게 이어갑니다.
공식 사이트 바로가기 →
브랜드 이야기
파워맨 공식 채널POWER MAN
OFFICIAL01
POWERMANOFFICIAL BRAND
BRAND · NEWS · GUIDE
ONE NAME파워맨 · POWERMAN
OFFICIAL CHANNEL하나의 대표 브랜드
ALWAYS UPDATED계속되는 새로운 소식
Brand Story
시간이 지나도 다시 찾게 되는 이름
파워맨은 한 번의 방문보다 오래 이어지는 익숙함을 중요하게 생각합니다. 같은 이름을 기억하고 다시 찾아오는 사람들을 위해 브랜드만의 분명한 경험을 만들어갑니다.
이름은 익숙하지만 화면과 경험은 계속 새로워집니다. 그 생각, 새로운 소식과 변화의 기록을 한 페이지 안에 담아 브랜드의 현재를 자연스럽게 만날 수 있도록 구성했습니다.
첫 화면의 선명한 로고와 대표 연결, 이어지는 브랜드 스토리와 소식은 모두 하나의 목소리로 이어집니다. 필요한 순간에 망설임 없이 브랜드를 알아볼 수 있는 것이 이 페이지의 역할입니다.
01익숙한 이름파워맨과 POWERMAN이라는 이름을 한결같이 사용해 어디에서 보아도 같은 브랜드로 기억될 수 있도록 합니다.
02분명한 경험화려함보다 알아보기 쉬운 구성, 간결한 동선과 정돈된 메시지로 브랜드다운 경험을 전합니다.
03계속되는 이야기브랜드의 변화와 새로운 소식을 꾸준히 기록해 브랜드의 오늘과 다음을 함께 보여줍니다.
우리는 익숙한 이름이 주는 신뢰와 다시 찾았을 때의 편안함을 가장 중요한 브랜드 가치로 생각합니다.
Brand Promise
파워맨이 지키는 네 가지 약속
브랜드를 만나는 모든 순간이 자연스럽게 이어질 수 있도록 이 페이지는 네 가지 기준을 꾸준히 지켜갑니다.
하나의 이름한글명과 POWERMAN의 표기를 일관되게 사용해 브랜드의 인상을 선명하게 이어갑니다.
간결한 연결첫 화면에서 대표 연결을 바로 만날 수 있도록 불필요한 단계와 복잡한 선택을 줄였습니다.
꾸준한 변화화면, 문구와 새로운 소식을 계속 다듬어 언제 다시 찾아도 브랜드의 현재를 보여드립니다.
편안한 경험PC와 모바일 어디에서든 같은 흐름과 분위기를 느낄 수 있도록 화면 경험을 설계했습니다.
Powerman Today
오늘의 파워맨
브랜드가 달라지고 성장하는 순간을 기록합니다. 새로워진 화면과 최근의 변화를 이곳에서 만나보세요.
브랜드 페이지 새 단장이름과 분위기가 더 선명하게 보이도록 전체 화면을 새롭게 구성했습니다.
새로운 로고 시스템파워맨의 P를 모티프로 한 심볼과 POWERMAN 워드마크를 함께 적용했습니다.
더 풍성해진 브랜드 이야기단순한 안내를 넘어 브랜드의 가치와 방향을 읽을 수 있는 콘텐츠를 더했습니다.
PC·모바일 경험 개선화면 크기에 맞춰 메뉴와 콘텐츠가 자연스럽게 이어지도록 사용성을 다듬었습니다.
BRAND RENEWAL · 2026.09.03
2026 브랜드 리뉴얼
익숙한 이름은 그대로 두고, 브랜드의 인상과 콘텐츠 경험을 한 단계 새롭게 바꿨습니다.
로고 시스템새롭게 적용
데스크톱 메뉴전체 구성
브랜드 콘텐츠확장
모바일 경험최적화
Powerman Journal
파워맨이라는 이름이 이어지는 방식
하나의 이름을 꾸준히 사용하는 일, 다시 찾았을 때 같은 인상을 전하는 일, 그리고 멈추지 않고 새로운 이야기를 더하는 일이 오래가는 브랜드를 만듭니다.
하나의 이름한글명과 POWERMAN을 중심으로 로고, 제목과 문장의 목소리를 하나로 맞춰 브랜드의 기억을 쌓습니다.
선명한 첫인상첫 화면에서 로고와 브랜드 메시지, 대표 연결을 한눈에 보여주어 브랜드를 즉시 알아볼 수 있게 했습니다.
계속되는 기록브랜드의 변화와 새로운 소식을 꾸준히 쌓아 단기적인 화면이 아닌 오래 이어지는 하나의 브랜드 공간을 만듭니다.
파워맨이라는 이름이 오래 기억되는 이유
사람이 다시 찾는 브랜드에는 익숙한 이름과 일관된 경험이 있습니다. 짧고 분명한 이름, 한눈에 알아볼 수 있는 시각 언어와 꾸준한 운영을 통해 기억의 흐름을 이어갑니다. 처음 보는 화면이어도 고유한 색과 문장을 느낄 수 있도록 모든 요소를 같은 방향으로 정리했습니다.
익숙함을 유지하면서 새로워지는 방법
브랜드가 오래되었다고 화면까지 멈춰 있을 필요는 없습니다. 우리는 핵심 이름과 정체성을 유지하면서 메뉴, 콘텐츠와 모바일 경험을 계속 다듬습니다. 변하지 않아야 할 것은 지키고 달라져야 할 부분은 과감히 개선하는 것이 우리의 방식입니다.
앞으로 쌓아갈 콘텐츠
앞으로도 브랜드의 새로운 소식, 화면 변화와 이용자가 자주 궁금해하는 이야기를 꾸준히 더할 예정입니다. 한 번 만들고 멈추는 페이지가 아니라 브랜드의 오늘을 계속 보여주는 살아 있는 브랜드 공간으로 운영합니다.
Frequently Asked Questions
파워맨 자주 묻는 질문
브랜드 이야기, 공식 연결과 새로운 소식에 관해 자주 궁금해하는 내용을 모았습니다.
파워맨은 어떤 브랜드 페이지인가요?파워맨의 브랜드 이야기, 새로운 소식과 대표 연결을 한곳에 모은 공식 브랜드 페이지입니다.
파워맨 공식 사이트는 어디에서 연결되나요?첫 화면의 가장 눈에 띄는 흰색 버튼이 파워맨 공식 사이트로 연결됩니다. 외부 연결은 이 버튼 하나로 간결하게 구성했습니다.
왜 POWERMAN 영문 이름을 함께 사용하나요?한글 이름과 POWERMAN 워드마크를 함께 사용하면 언어가 달라도 같은 브랜드로 알아보기 쉽고 로고와 콘텐츠의 일관성도 높아집니다.
새로운 브랜드 소식은 어디에서 볼 수 있나요?페이지의 ‘오늘의 파워맨’ 영역에서 최근 변화와 브랜드 업데이트를 볼 수 있으며 새로운 내용은 같은 공간에 계속 추가됩니다.
페이지를 열면 자동으로 이동하나요?아니요. 이 페이지는 자동 이동을 사용하지 않으며 첫 화면의 공식 사이트 버튼을 직접 선택한 경우에만 새 페이지가 열립니다.
PC와 모바일에서 같은 브랜드 경험을 제공하나요?네. 화면 크기에 따라 메뉴와 배치는 달라지지만 로고, 핵심 메시지와 콘텐츠는 같은 흐름으로 제공됩니다.
이 페이지는 앞으로도 업데이트되나요?네. 브랜드 소식, 화면 경험과 자주 묻는 질문을 꾸준히 다듬어 브랜드의 현재를 계속 보여드립니다.
이 페이지에서 개인정보를 입력해야 하나요?아니요. 이 브랜드 페이지는 이름, , 비밀번호나 인증번호 등 개인정보 입력을 요구하지 않습니다.
익숙한 이름, 파워맨을 다시 만나보세요브랜드의 오늘과 새로운 이야기를 만나고 공식 사이트로 자연스럽게 이어가세요.
홈으로 이동 ↑
최종 업데이트: 2026년 9월 3일 · 브랜드 이야기와 새로운 소식을 전하는 공식 페이지입니다.Copyright © 파워맨 공식 사이트. All rights reserved.
이 사이트는 이즈웹으로 제작되었습니다.
홈페이지 제작 이즈웹
나만의 사이트 만들기 →
상호명 : 회사명 | 대표 : 홍길동 | 사업자등록번호 : 000-00-00000 TEL. 000-0000-0000 | COPYRIGHT © COMPANY NAME. ALL RIGHTS RESERVED. Powered by ISWEB | 홈페이지 제작 플랫폼
JayDream_components.push({name: "design-widget-button", object: {
template: "#design-widget-button-template",
props: {
primary {type: String, default: ""},
widget_code: {type: String, default: ""},
},
data() {
const defaultRow = {
widget_code this.widget_code,
label 'BUTTON',
font 'Pretendard',
font_size 14,
bg_color '#ffffff',
font_color '#000000',
icon_src '',
icon_color '#000000',
icon_position '왼쪽',
icon_size 16,
border_use true,
border_color '#000000',
border_width 1,
border_radius_use false,
border_radius_px 6,
box_shadow_use false,
box_shadow_opacity 20,
mouse_click_type 'URL',
mouse_click_url '',
mouse_click_target '_self',
hover_effect '사용안함',
hover_bg_color '#ffffff',
hover_font_color '#000000',
hover_border_use false,
hover_border_color '#000000',
hover_border_width 1,
hover_box_shadow_use false,
hover_box_shadow_opacity: 20,
hover_transition '없음',
layout_width '자동',
layout_width_px 150,
layout_height '자동',
layout_height_px 40,
layout_align '중앙',
};
return {
load false,
component_name: "design-widget-button",
component_idx "",
injectUrls [
"",
"",
"",
"",
"",
],
table: null,
buttonSaveOwner: null,
buttonReady: null,
fontFamilyMap: {"Galmuri14":"Galmuri14","GamjaFlower":"GamjaFlower","KNUTruth":"KNUTruth","GowunDodum":"GowunDodum","GowunBatang":"GowunBatang","Gulim":"Gulim","GulimChe":"GulimChe","Gungsuh":"Gungsuh","GungsuhChe":"GungsuhChe","Malgun Gothic":"Malgun Gothic","NanumGothic":"NanumGothic","NanumMyeongjo":"NanumMyeongjo","NanumBarunGothic":"NanumBarunGothic","NanumBarunpen":"NanumBarunpen","NanumSquare":"NanumSquare","NanumSquareRound":"NanumSquareRound","NanumPenScript":"NanumPenScript","Dokdo":"Dokdo","Dotum":"Dotum","DotumChe":"DotumChe","Dongle":"Dongle","EastSeaDokdo":"EastSeaDokdo","Batang":"Batang","BatangChe":"BatangChe","New Gulim":"New Gulim","Sogang_university":"Sogang_University","SeolleimCool":"SeolleimCool","SBAggro":"SBAggro","PyeongChang":"PyeongChang","PyeongChangPeace":"PyeongChangPeace","Pretendard":"Pretendard","Skybori":"Skybori","HiMelody":"HiMelody","휴먼엽서체":"휴먼엽서체","Arial":"Arial","Arial Black":"Arial Black","BlackHanSans":"BlackHanSans","Comic Sans MS":"Comic Sans MS","Courier New":"Courier New","CuteFont":"CuteFont","GmarketSans":"GmarketSans","IBMPlexSansKR":"IBMPlexSansKR","SongMyung":"SongMyung","NotoSans-Regular":"NotoSans-Regular","Orbit":"Orbit","PoorStory":"PoorStory","SingleDay":"SingleDay","Tahoma":"Tahoma","Times New Roman":"Times New Roman","Verdana":"Verdana"},
fontAliasMap {"Noto Sans KR":"NotoSans-Regular","Nanum Gothic":"NanumGothic","Nanum Myeongjo":"NanumMyeongjo","맑은 고딕":"Malgun Gothic","궁서":"Gungsuh","굴림체":"GulimChe","돋음체":"DotumChe","돋움체":"DotumChe","바탕체":"BatangChe"},
defaultRow,
row Object.assign({}, defaultRow),
hover: false,
};
},
async created() {
this.component_idx = this.lib.generateUniqueId();
this.api.component_name = this.component_name;
},
async mounted() {
window.ISWEB_BUTTON_WIDGETS = window.ISWEB_BUTTON_WIDGETS || {};
window.ISWEB_BUTTON_WIDGETS[this.widget_code] = this;
this.buttonReady = this.loadButton();
await this.buttonReady;
},
unmounted() {
if (window.ISWEB_BUTTON_WIDGETS && window.ISWEB_BUTTON_WIDGETS[this.widget_code] === this) {
delete window.ISWEB_BUTTON_WIDGETS[this.widget_code];
}
},
methods: {
async loadButton() {
this.table = await this.api.table('jd_widget_button');
this.table.where('widget_code', this.widget_code);
await this.getRow();
this.load = true;
},
async getRow() {
let row = await this.table.get();
if (row.length > 0) this.row = Object.assign({}, this.defaultRow, row[0]);
this.row.font = this.normalizeFontValue(this.row.font);
this.row.hover_transition = this.normalizeHoverTransition(this.row.hover_transition);
},
async handleClick() {
const type = this.row.mouse_click_type || 'URL';
const value = (this.row.mouse_click_url || '').trim();
if (!value) return;
if (type === '섹션 스크롤') {
const selector = value.startsWith('#') ? value `#${value}`;
const target = document.querySelector(selector);
if (target && typeof target.scrollIntoView === 'function') {
target.scrollIntoView({behavior: 'smooth', block: 'start'});
}
return;
}
if (type === '전화걸기') {
const tel = value.startsWith('tel:') ? value `tel:${value.replace(/-/g, '')}`;
window.location.href = tel;
return;
}
if (type === '메일 보내기') {
await this.openMailApp(value);
return;
}
if (type === '파일 다운로드') {
await this.lib.download({
src value,
name: this.downloadFileName,
});
return;
}
this.lib.href(value, this.linkTarget);
},
extractFileName(src) {
try {
return decodeURIComponent((src || '').split('/').pop() || 'download');
} catch (e) {
return (src || '').split('/').pop() || 'download';
}
},
async openMailApp() {
const emailAddress = .replace(/^mailto:/i, '').trim();
const mailtoUrl = `mailto:${emailAddress}`;
let appOpened = false;
const onVisibilityChange = () => {
if (document.hidden) appOpened = true;
};
const onBlur = () => {
appOpened = true;
};
document.addEventListener('visibilitychange', onVisibilityChange);
window.addEventListener('blur', onBlur);
window.location.href = mailtoUrl;
await new Promise(resolve => setTimeout(resolve, 1200));
document.removeEventListener('visibilitychange', onVisibilityChange);
window.removeEventListener('blur', onBlur);
if (appOpened) return;
const copied = await this.copyToClipboard(emailAddress);
if (copied) {
alert(`기본 메일 앱을 실행할 수 없어 를 복사했습니다.\n${emailAddress}`);
return;
}
alert(`기본 메일 앱을 실행할 수 없습니다.\n를 직접 복사해주세요.\n${emailAddress}`);
},
async copyToClipboard(text) {
try {
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(text);
return true;
}
} catch (e) {
}
const textarea = document.createElement('textarea');
textarea.value = text;
textarea.setAttribute('readonly', '');
textarea.style.position = 'fixed';
textarea.style.left = '-9999px';
document.body.appendChild(textarea);
textarea.select();
let copied = false;
try {
copied = document.execCommand('copy');
} catch (e) {
copied = false;
}
document.body.removeChild(textarea);
return copied;
},
renderIconHtml(name, size, color) {
if (typeof feather !== 'undefined' && feather.icons[name]) {
return feather.icons[name].toSvg({width: size, height: size, color});
}
return '';
},
iconStyle(extra) {
return `color:${this.row.icon_color};font-size:${this.row.icon_size}px;${extra}`;
},
normalizeFontValue(font) {
return this.fontAliasMap[font] || font || 'Pretendard';
},
getFontFamily(font) {
const normalized = this.normalizeFontValue(font);
const family = this.fontFamilyMap[normalized] || normalized || 'Pretendard';
return "'" + String(family).replace(/'/g, "\\'") + "', sans-serif";
},
normalizeHoverTransition(transition) {
return transition === '슬라이드' ? '없음' (transition || '없음');
},
},
computed: {
appState() {
return window.JAYDREAM_VUE_GLOBAL[this.$app_name];
},
hasLabelText() {
return String(this.row.label || '').trim().length > 0;
},
isIconOnlyButton() {
return !!this.parsedIcon && !this.hasLabelText;
},
displayLabel() {
return this.hasLabelText ? this.row.label '';
},
downloadFileName() {
if (this.row.mouse_click_target && this.row.mouse_click_target !== '_self' && this.row.mouse_click_target !== '_blank') {
return this.row.mouse_click_target;
}
return this.extractFileName(this.row.mouse_click_url);
},
linkTarget() {
return this.row.mouse_click_target === '_blank' ? '_blank' '_self';
},
parsedIcon() {
if (!this.row.icon_src) return null;
const parts = this.row.icon_src.split(':');
if (parts.length < 2) return null;
return {library: parts[0], name: parts[1]};
},
iconClass() {
if (!this.parsedIcon) return '';
const {library, name} = this.parsedIcon;
if (library === 'bootstrap') return `bi bi-${name}`;
if (library === 'phosphor') return `ph ph-${name}`;
if (library === 'simpleline') return `icon-${name}`;
return '';
},
hoverClass() {
const classMap = {
'페이드' : 'hvr-fade',
'줌인' : 'hvr-grow',
'줌아웃' : 'hvr-sink',
'떠오르기': 'hvr-float',
};
return this.row.hover_transition && this.row.hover_transition !== '없음'
? (classMap[this.row.hover_transition] || '') : '';
},
wrapperStyle() {
const align = this.row.layout_align;
return {
display : 'flex',
justifyContent: align === '좌측' ? 'flex-start' : align === '우측' ? 'flex-end' : 'center',
};
},
buttonStyle() {
const base = {
fontFamily : this.getFontFamily(this.row.font),
fontSize : (this.row.font_size || 14) + 'px',
backgroundColor: this.row.bg_color || '',
color : this.row.font_color || '',
border : this.row.border_use ? `${this.row.border_width}px solid ${this.row.border_color}` : 'none',
borderRadius : this.row.border_radius_use ? `${this.row.border_radius_px}px` : '0px',
boxShadow : this.row.box_shadow_use ? `0 4px 12px rgba(0,0,0,${this.row.box_shadow_opacity / 100})` : '',
width : this.row.layout_width === '직접입력' && this.row.layout_width_px ? this.row.layout_width_px + 'px' : 'auto',
height : this.row.layout_height === '직접입력' && this.row.layout_height_px ? this.row.layout_height_px + 'px' : 'auto',
cursor : this.row.mouse_click_url ? 'pointer' : 'default',
display : 'inline-flex',
alignItems : 'center',
justifyContent: 'center',
transition : 'all 0.2s',
};
if (this.hover && this.row.hover_effect === '사용함') {
return {
...base,
backgroundColor: this.row.hover_bg_color || base.backgroundColor,
color : this.row.hover_font_color || base.color,
border : this.row.hover_border_use ? `${this.row.hover_border_width}px solid ${this.row.hover_border_color}` : base.border,
boxShadow : this.row.hover_box_shadow_use ? `0 4px 12px rgba(0,0,0,${this.row.hover_box_shadow_opacity / 100})` : base.boxShadow,
};
}
return base;
},
},
watch: {
appState: {
async handler(newVal) {
if (newVal && newVal.reload) {
if (!this.buttonSaveOwner) await this.getRow();
this.appState.reload = false;
}
},
deep: true,
},
},
}});
레이아웃 설정
높이
모바일
자동 높이
직접 높이 설정
모바일 높이
모바일 숨김 처리
{{ body.blankSaveError }} 재시도
JayDream_components.push({name:'design-widget-blank-modal',object:{
template:'#design-widget-blank-modal-template',
props:{primary:{type:String,default:''},widget_code:{type:String,default:''},site_code:{type:String,default:''}},
data:function(){return {load:false,row:null,body:null,bridge:null};},
mounted:async function(){
var bridge = (window.ISWEB_BLANK_SIDEBARS || {})[this.widget_code];
var body = (window.ISWEB_BLANK_WIDGETS || {})[this.widget_code];
if (!bridge || !body) return;
await body.blankReady;
if (bridge.closed || (window.ISWEB_BLANK_SIDEBARS || {})[this.widget_code] !== bridge) return;
this.bridge = bridge; this.body = body; this.row = body.row;
bridge.vm = this; this.load = true;
},
beforeUnmount:function(){if(this.bridge && this.bridge.vm === this)this.bridge.vm = null;},
computed:{
mobileMode:function(){return this.row.mobile_height_type === 'hide' ? this.row.mobile_height_mode : this.row.mobile_height_type;},
isHidden:function(){return this.row.mobile_height_type === 'hide';}
},
methods:{
queue:function(){
if (!this.load || this.bridge.closed || this.bridge.deleting) return;
this.body.normalizeRow(); this.body.blankSaveError = '';
this.bridge.owner.touch(); clearTimeout(this.bridge.timer);
var bridge = this.bridge;
bridge.timer = setTimeout(function(){if(!bridge.closed)bridge.owner.flush();},350);
},
setMobileMode:function(mode){
this.row.mobile_height_mode = mode;
if (this.row.mobile_height_type !== 'hide') this.row.mobile_height_type = mode;
this.queue();
},
toggleHidden:function(hidden){
if (hidden) { this.row.mobile_height_mode = this.mobileMode; this.row.mobile_height_type = 'hide'; }
else this.row.mobile_height_type = this.mobileMode;
this.queue();
},
retrySave:function(){this.body.blankSaveError = '';return this.bridge.owner.flush();}
}
}});
JayDream_components.push({name: "design-widget-blank", object: {
template: "#design-widget-blank-template",
props: {
primary : {type: String, default: ""},
widget_code: {type: String, default: ""},
site_code : {type: String, default: ""},
},
data() {
return {
load : false,
component_name: "design-widget-blank",
component_idx : "",
table : null,
resizing : false,
deviceMode : "desktop",
savingResize : false,
mobilePcSectionLocked: false,
blankSaveOwner: null,
blankPanelBridge: null,
blankCommitted: null,
blankSaveError: "",
blankDeleting: false,
row : {
widget_code : this.widget_code,
pc_height : 75,
mobile_height_type : "auto",
mobile_height_mode : null,
mobile_height : 75,
},
};
},
async created() {
this.component_idx = this.lib.generateUniqueId();
this.api.component_name = this.component_name;
this._resizeStartY = 0;
this._resizeStartHeight = 75;
this._resizeField = "pc_height";
this._bodyClassObserver = null;
this._resizeDraggable = null;
this._blankDisposed = false;
this._blankEdgeResize = (event) => {
if (this._blankDisposed || this.blankDeleting || (event.type === "mousedown" && event.button !== 0)) return;
const target = event.target && event.target.closest ? event.target : null;
if (!target || target.closest("button")) return;
const edge = target.closest(".editor-hover-widget-edge.is-after");
const widget = edge && edge.closest(".widget");
if (!widget || widget.id !== this.widget_code) return;
// The shared insertion edge covers the original resize handle. Keep its + button separate.
if (!this.resizeEnabled || this.isMobilePcSection()) return;
event.stopPropagation();
if (event.cancelable) event.preventDefault();
this.startResize(event);
};
this.blankReady = new Promise((resolve) => { this._resolveBlankReady = resolve; });
window.ISWEB_BLANK_WIDGETS = window.ISWEB_BLANK_WIDGETS || {};
window.ISWEB_BLANK_WIDGETS[this.widget_code] = this;
},
async mounted() {
try {
this.table = await this.api.table("jd_widget_blank");
this.table.where("widget_code", this.widget_code);
await this.getRow();
if (this._blankDisposed) return;
this.blankCommitted = this.blankSnapshot();
if (window.BLANK_JAYDREAM && this.isDesignMode) {
this.blankSaveOwner = BLANK_JAYDREAM.createSaveOwner({
snapshot: () => this.blankSnapshot(),
save: (snapshot) => this.persistBlankSnapshot(snapshot),
onFailure: (error) => this.onBlankSaveFailure(error),
});
}
this.load = true;
if (this.isDesignMode) {
document.addEventListener("mousedown", this._blankEdgeResize, true);
document.addEventListener("touchstart", this._blankEdgeResize, {capture:true, passive:false});
}
this.$nextTick(() => {
this.syncDeviceMode(); this.syncMobilePcSectionLock();
this.syncFirewallSettingButton(); this.bindBodyClassObserver();
});
} catch (error) {
this.blankSaveError = error && error.message || "여백 설정을 불러오지 못했습니다.";
} finally { this._resolveBlankReady(this.load); }
},
beforeUnmount() {
this._blankDisposed = true;
document.removeEventListener("mousedown", this._blankEdgeResize, true);
document.removeEventListener("touchstart", this._blankEdgeResize, true);
if (this.blankSaveOwner) this.blankSaveOwner.dispose();
this.unbindResizeEvents();
if (this._bodyClassObserver) {
this._bodyClassObserver.disconnect();
this._bodyClassObserver = null;
}
if (window.ISWEB_BLANK_WIDGETS && window.ISWEB_BLANK_WIDGETS[this.widget_code] === this) {
delete window.ISWEB_BLANK_WIDGETS[this.widget_code];
}
},
methods: {
getDefaultRow() {
return {
widget_code : this.widget_code,
pc_height : 75,
mobile_height_type : "auto",
mobile_height_mode : null,
mobile_height : 75,
};
},
async getRow() {
const rows = await this.table.get();
Object.assign(this.row, this.getDefaultRow(), rows.length > 0 ? rows[0] : {});
this.normalizeRow();
},
normalizeRow() {
this.row.pc_height = Math.max(0, parseInt(this.row.pc_height, 10) || 0);
this.row.mobile_height = Math.max(0, parseInt(this.row.mobile_height, 10) || this.row.pc_height);
if (!["auto", "custom", "hide"].includes(this.row.mobile_height_type)) this.row.mobile_height_type = "auto";
if (["auto", "custom"].includes(this.row.mobile_height_type)) this.row.mobile_height_mode = this.row.mobile_height_type;
if (!["auto", "custom"].includes(this.row.mobile_height_mode)) this.row.mobile_height_mode = "auto";
},
blankSnapshot() { return Object.assign({}, this.row); },
async persistBlankSnapshot(snapshot) {
// Resolve an uncertain first response before retrying insert. Do not replace live edits with an older response.
if (!snapshot.primary) {
const lookup = await this.lib.ajax("get", this.table.filter, "/JayDream/api.php", {$rejectOnError:true});
if (!lookup || lookup.success === false || !Array.isArray(lookup.data)) throw new Error("여백 저장 대상을 확인하지 못했습니다.");
const existing = lookup.data[0];
if (existing && (existing.primary || existing.idx)) snapshot.primary = existing.primary || existing.idx;
}
const response = await this.lib.ajax(snapshot.primary ? "update" : "insert", snapshot, "/JayDream/api.php",
{table:"jd_widget_blank", $rejectOnError:true, $timeoutMs:300000});
if (!response || response.success === false) throw new Error(response && response.message || "여백 설정을 저장하지 못했습니다.");
if (response.primary) snapshot.primary = response.primary;
if (!snapshot.primary) throw new Error("여백 저장 결과를 확인하지 못했습니다.");
if (!this.row.primary) this.row.primary = snapshot.primary;
this.blankCommitted = Object.assign({}, snapshot);
this.blankSaveError = "";
if (this.table.clearCurrentWidgetDetailCache) this.table.clearCurrentWidgetDetailCache(snapshot);
if (!this._blankDisposed) { this.emitHeightChange(); this.resetGrid(); }
return response;
},
onBlankSaveFailure(error) {
this.blankSaveError = error && error.message || "여백 설정을 저장하지 못했습니다. 다시 시도해 주세요.";
if (!this.blankPanelBridge && window.EDITOR_UI) EDITOR_UI.alert({message:this.blankSaveError + " 여백 설정에서 재시도해 주세요."});
},
restoreBlankCommitted() {
if (!this.blankCommitted) return;
Object.keys(this.row).forEach((key) => { if (!Object.prototype.hasOwnProperty.call(this.blankCommitted, key)) delete this.row[key]; });
Object.assign(this.row, this.blankCommitted);
this.blankSaveError = "";
if (this.blankSaveOwner) this.blankSaveOwner.discard();
this.emitHeightChange(); this.resetGrid();
},
syncDeviceMode() {
this.deviceMode = document.body.classList.contains("_mbv") ? "mobile" : "desktop";
},
bindBodyClassObserver() {
if (this._bodyClassObserver || typeof MutationObserver === "undefined") return;
this._bodyClassObserver = new MutationObserver(() => {
this.syncDeviceMode();
this.syncMobilePcSectionLock();
this.syncFirewallSettingButton();
});
this._bodyClassObserver.observe(document.body, {
attributes: true,
attributeFilter: ["class"],
});
},
getCookie(name) {
const cookies = (`; ${document.cookie}`).split(`; ${name}=`);
return cookies.length === 2 ? cookies.pop().split(";").shift() : "";
},
isMobileDesignMode() {
return document.body.classList.contains("_mbv") || this.getCookie("lc_device") === "mobile";
},
isMobilePcSection() {
const widget = document.getElementById(this.widget_code);
const section = widget && widget.closest ? widget.closest("section") : null;
return this.isMobileDesignMode() && !!section && !section.classList.contains("from-mobile");
},
alertMobilePcSectionBlocked() {
const message = "PC에서 만든 섹션 또는 위젯은 모바일 디자인모드에서 설정할 수 없습니다.";
if (window.jQuery && jQuery.alert) {
jQuery.alert(message);
} else {
alert(message);
}
},
syncMobilePcSectionLock() {
this.mobilePcSectionLocked = this.isMobilePcSection();
if (this.mobilePcSectionLocked && this.resizing) {
this.resizing = false;
this.unbindResizeEvents();
}
},
syncFirewallSettingButton() {
const widget = document.getElementById(this.widget_code);
const firewall = widget ? widget.querySelector(".firewall") : null;
if (!firewall) return;
if (this.mobilePcSectionLocked) {
firewall.classList.remove("widget_setting_btn");
return;
}
if (!this.row.idx) {
firewall.classList.add("widget_setting_btn");
}
},
getPcHeight() {
return Math.max(0, parseInt(this.row.pc_height, 10) || 0);
},
getMobileHeight() {
return Math.max(0, parseInt(this.row.mobile_height, 10) || this.getPcHeight());
},
getResizeField() {
return this.deviceMode === "mobile" ? "mobile_height" : "pc_height";
},
getResizeHeight() {
return this.getResizeField() === "mobile_height" ? this.getMobileHeight() : this.getPcHeight();
},
prepareResizeTarget() {
if (this.deviceMode !== "mobile") return;
const currentHeight = this.row.mobile_height_type === "custom" ? this.getMobileHeight() : this.getPcHeight();
if (this.row.mobile_height_type !== "custom") {
this.row.mobile_height_type = "custom";
}
this.row.mobile_height_mode = "custom";
this.row.mobile_height = this.normalizeResizeHeight(currentHeight);
},
getResizePoint(event) {
const source = event.touches && event.touches.length ? event.touches[0] : event;
return {
y: source.clientY,
};
},
normalizeResizeHeight(value) {
return Math.max(1, parseInt(value, 10) || 1);
},
startResize(event) {
this.syncDeviceMode();
this.syncMobilePcSectionLock();
if (this.mobilePcSectionLocked) {
this.alertMobilePcSectionBlocked();
return;
}
if (!this.resizeEnabled) return;
this.prepareResizeTarget();
const point = this.getResizePoint(event);
this._resizeField = this.getResizeField();
this._resizeStartY = point.y;
this._resizeStartHeight = this.normalizeResizeHeight(this.getResizeHeight());
this.resizing = true;
document.body.classList.add("design-widget-blank-resizing");
this.disableWidgetDrag();
this.bindResizeEvents();
},
bindResizeEvents() {
document.addEventListener("mousemove", this.onResizeMove);
document.addEventListener("mouseup", this.stopResize);
document.addEventListener("touchmove", this.onResizeMove, {passive: false});
document.addEventListener("touchend", this.stopResize);
document.addEventListener("touchcancel", this.stopResize);
},
unbindResizeEvents() {
document.removeEventListener("mousemove", this.onResizeMove);
document.removeEventListener("mouseup", this.stopResize);
document.removeEventListener("touchmove", this.onResizeMove);
document.removeEventListener("touchend", this.stopResize);
document.removeEventListener("touchcancel", this.stopResize);
document.body.classList.remove("design-widget-blank-resizing");
this.enableWidgetDrag();
},
onResizeMove(event) {
if (!this.resizing) return;
if (event.cancelable) event.preventDefault();
const point = this.getResizePoint(event);
const nextHeight = this.normalizeResizeHeight(this._resizeStartHeight + point.y - this._resizeStartY);
this.row[this._resizeField] = nextHeight;
this.emitHeightChange();
},
async stopResize() {
if (!this.resizing) return;
this.resizing = false;
this.unbindResizeEvents();
await this.saveResizeHeight();
},
async saveResizeHeight() {
if (this.blankDeleting || !this.blankSaveOwner) return false;
const resizeField = this._resizeField || this.getResizeField();
if (resizeField === "mobile_height") {
this.row.mobile_height_type = "custom";
this.row.mobile_height_mode = "custom";
}
this.row[resizeField] = this.normalizeResizeHeight(this.row[resizeField]);
this.blankSaveOwner.touch();
this.savingResize = true;
try { return await this.blankSaveOwner.flush(); }
finally { this.savingResize = false; }
},
emitHeightChange() {
if (typeof window === "undefined" || typeof window.CustomEvent !== "function") return;
window.dispatchEvent(new CustomEvent("design-widget-blank-height-change", {
detail: {
widget_code: this.widget_code,
pc_height: this.getPcHeight(),
mobile_height: this.getMobileHeight(),
mobile_height_type: this.row.mobile_height_type,
mobile_height_mode: this.row.mobile_height_mode,
resize_field: this._resizeField || this.getResizeField(),
row: Object.assign({}, this.row),
},
}));
},
disableWidgetDrag() {
const widget = document.getElementById(this.widget_code);
if (!widget || !window.jQuery) return;
const $widget = window.jQuery(widget);
if (!$widget.data("ui-draggable")) return;
this._resizeDraggable = $widget;
$widget.draggable("disable");
},
enableWidgetDrag() {
if (!this._resizeDraggable || !this._resizeDraggable.data("ui-draggable")) return;
this._resizeDraggable.draggable("enable");
this._resizeDraggable = null;
},
resetGrid() {
if (window.design && window.design.menu && window.design.menu.grid) {
window.design.menu.grid.reset();
}
},
waitBlankSave() {
return this.blankSaveOwner ? this.blankSaveOwner.wait() : Promise.resolve(true);
},
},
computed: {
blankStyle() {
const pcHeight = Math.max(0, parseInt(this.row.pc_height, 10) || 0);
const mobileHeight = Math.max(0, parseInt(this.row.mobile_height, 10) || pcHeight);
return {
"--design-widget-blank-pc-height" : `${pcHeight}px`,
"--design-widget-blank-mobile-height": `${mobileHeight}px`,
};
},
mobileClass() {
const type = this.row.mobile_height_type || "auto";
return `design-widget-blank--mobile-${type}`;
},
isDesignMode() {
return typeof window !== "undefined" && !!(window.design && window.design.menu);
},
resizeEnabled() {
return this.isDesignMode && !this.mobilePcSectionLocked && !this.blankDeleting;
},
appState() {
return window.JAYDREAM_VUE_GLOBAL[this.$app_name];
},
},
watch: {
appState: {
async handler(newVal) {
if (newVal.reload) {
await this.getRow();
this.appState.reload = false;
}
},
deep: true,
},
},
}});
JayDream_components.push({name : "design-widget-map-google",object : {
template: "#design-widget-map-google-template",
props: {
primary : {type : String, default : ""},
modelValue : {type : Object, default : ""},
},
data: function () {
return {
load : false,
component_name : "design-widget-map-google",
component_idx: "",
table : null,
row: {},
rows : [],
};
},
async created() {
this.component_idx = this.lib.generateUniqueId();
this.api.component_name = this.component_name
},
async mounted() {
// this.table = await this.api.table("exam");
// await this.table.get(this.rows,{paging : 10})
this.load = true;
this.$nextTick(async () => {
// 해당부분에 퍼블리싱 라이브러리,플러그인 선언부분 하시면 됩니다 ex) swiper
});
},
updated() {
},
methods: {
},
computed: {
},
watch: {
}
}});
JayDream_components.push({name "design-widget-map-kakao",object {
template: "#design-widget-map-kakao-template",
props: {
primary {type String, default ""},
modelValue {type Object, default ""},
widget_code {type String, default ""},
},
data: function () {
return {
load false,
component_name "design-widget-map-kakao",
component_idx: "",
kakaoMapEmbedOrigin "https:\/\/",
};
},
async created() {
this.component_idx = this.lib.generateUniqueId();
this.api.component_name = this.component_name
},
async mounted() {
this.load = true;
},
updated() {
},
methods: {
getStyle() {
let style = {
width: "100%",
border: "0",
};
if(this.lib.isMobile()) {
style.height = (this.row.mobile_height || this.row.pc_height || 320) + "px";
} else {
style.height = (this.row.pc_height || 450) + "px";
}
return style;
}
},
computed: {
row() {
return this.modelValue || {};
},
iframeSrc() {
const code = this.row.widget_code || this.widget_code || "";
const origin = this.kakaoMapEmbedOrigin || window.location.origin;
return origin.replace(/\/$/, "") + "/JayDream/kakaoMapEmbed.php?widget_code=" + encodeURIComponent(code);
}
},
watch: {
}
}});
구글 지도 삽입 코드를 입력해주세요.
삽입 코드 입력
JayDream_components.push({name:'design-widget-map-modal-google',object:{
template:'#design-widget-map-modal-google-template',
props:{modelValue:Object,previewOnly:Boolean},
emits:['update:modelValue','editor-ready'],
data(){return {editor:null};},
computed:{
row:{get(){return this.modelValue||{};},set(value){this.$emit('update:modelValue',value);}},
validCode(){return /
주소 검색
주소 검색
주소
지번 주소{{displayJibun}}
지번 상세 주소상세 주소
도로명 주소{{displayAddress}}
도로명 상세 주소상세 주소
상세 정보
상호명상호명
지도 크기
지도 높이
PC
모바일
주소 검색
닫기
JayDream_components.push({name:'design-widget-map-modal-kakao',object:{
template:'#design-widget-map-modal-kakao-template',
props:{modelValue:Object,widget_code:String,previewOnly:Boolean},
emits:['update:modelValue'],
data() {
return {modal:this.lib.createModalObject(),origin:"https:\/\/",previewRow:{},viewport:window.innerWidth,previewFallback:false,previewNavigationZ:null};
},
computed:{
row:{get(){return this.modelValue||{};},set(value){this.$emit('update:modelValue',value);}},
phone(){return [this.row.phone1,this.row.phone2,this.row.phone3].filter(value=>value!==null&&value!==undefined&&value!=='').join('-');},
previewKey(){return JSON.stringify(['address','jibun','address2','jibun2','title','phone1','phone2','phone3'].map(key=>this.row[key]));},
hasAddress(){return Boolean(String(this.row.address||'').trim()||String(this.row.jibun||'').trim());},
isNewUnset(){return !this.row.primary && !this.row.idx && !['address','jibun','address2','jibun2','title','phone1','phone2','phone3'].some(key=>String(this.row[key]||'').trim());},
displayJibun(){return this.row.jibun || (this.hasAddress ? '-' (this.previewFallback ? '서울 강서구 마곡동 759-1' '-'));},
displayAddress(){return this.row.address || (this.hasAddress ? '-' (this.previewFallback ? '서울 강서구 마곡서로 152' '-'));},
previewHeight(){
const value=this.viewport=0?number:(this.viewportparams.set(key,this.previewRow[key]??''));
params.set('z',this.previewNavigationZ == null ? (this.previewRow.z??'') : this.previewNavigationZ);
return (this.origin||window.location.origin).replace(/\/$/,'')+'/JayDream/kakaoMapEmbed.php?'+params.toString();
}
},
methods:{
setPhone(value){
value=String(value||'');
let parts=value.split('-');
if(parts.length>1) parts=[parts[0],parts[1],parts.slice(2).join('-')];
else if(/^\d{9,11}$/.test(value)){
const prefix=value.startsWith('02')?2:3, tail=value.slice(prefix);
parts=[value.slice(0,prefix),tail.slice(0,-4),tail.slice(-4)];
} else parts=[value,'',''];
[this.row.phone1,this.row.phone2,this.row.phone3]=[parts[0]||'',parts[1]||'',parts[2]||''];
},
sendPreviewUpdate(){
const frame=this.$refs.frame;
if (!frame || !frame.contentWindow) return;
const next={};
['address','jibun','address2','jibun2','title','phone1','phone2','phone3','z'].forEach(key=>next[key]=this.previewRow[key] == null ? '' : String(this.previewRow[key]));
frame.contentWindow.postMessage({type:'jd-kakao-map-preview-update',widget_code:this.widget_code||this.row.widget_code||'',row:next},new URL(this.iframeSrc,window.location.href).origin);
},
syncPreview(initial){
if(!this.previewOnly)return;
const address=JSON.stringify([this.row.address,this.row.jibun]);
const previewZoom=this.previewFallback ? (this.previewRow.z??3) : (this.row.z??3);
if (initial && this.previewNavigationZ == null) this.previewNavigationZ=previewZoom;
if(!initial&&this.previousAddress!==address){this.row.z=3;this.previewNavigationZ=3;}
this.previousAddress=address;
if (this.hasAddress) this.previewFallback=false;
this.previewRow={};
['address','jibun','address2','jibun2','title','phone1','phone2','phone3','z'].forEach(key=>this.previewRow[key]=this.row[key]??'');
if (this.previewFallback) {
this.previewRow.address='서울 강서구 마곡동 759-1';
this.previewRow.z=previewZoom;
}
if (!initial) this.sendPreviewUpdate();
},
onMessage(event){
const frame=this.$refs.frame;
if(!frame||event.source!==frame.contentWindow||event.origin!==new URL(this.iframeSrc,window.location.href).origin)return;
const data=event.data||{},code=this.widget_code||this.row.widget_code||'';
if(data.type==='jd-kakao-map-preview-ready') { this.sendPreviewUpdate(); return; }
if(data.type!=='jd-kakao-map-level'||(data.widget_code&&code&&data.widget_code!==code))return;
const level=Number(data.z);
if(level) {
this.row.z=level;
if(this.previewFallback) this.previewRow.z=level;
}
}
},
mounted(){
if(this.previewOnly){
this.previewFallback=this.isNewUnset;
this.syncPreview(true);
this.messageListener=this.onMessage.bind(this);
this.resizeListener=()=>{this.viewport=window.innerWidth;};
window.addEventListener('message',this.messageListener);
window.addEventListener('resize',this.resizeListener);
} else {
this.eventNamespace='.jdMapPostcode_'+this.widget_code;
this.pickerShown=event=>{
if(!event.target.closest('[data-map-owner="'+this.widget_code+'"]'))return;
$(event.target).css('z-index',1380);
$('.modal-backdrop').last().addClass('jd-map-postcode-backdrop');
};
$(document).on('shown.bs.modal'+this.eventNamespace,'.jd-map-postcode .modal',this.pickerShown);
}
},
beforeUnmount(){
if(this.messageListener)window.removeEventListener('message',this.messageListener);
if(this.resizeListener)window.removeEventListener('resize',this.resizeListener);
if(this.eventNamespace){
$(document).off(this.eventNamespace);
const modal=document.querySelector('[data-map-owner="'+this.widget_code+'"] .modal');
if(modal&&$(modal).hasClass('in'))$(modal).modal('hide');
$('.jd-map-postcode-backdrop').remove();
}
},
watch:{
previewKey(){this.syncPreview(false);},
previewHeight(){this.syncPreview(true);},
viewport(){this.syncPreview(true);}
}
}});
{{error}}
다시 불러오기
{{provider.label}}
설정을 불러오는 중입니다.
JayDream_components.push({name:'design-widget-map-modal',object:{
template:'#design-widget-map-modal-template',
components:{'design-editor-scroll-motion':window.ISWEB_SCROLL_MOTION_EDITOR},
props:{widget_code:String,site_code:String},
data() {
return {
row:{}, load:false, reading:false, saving:false, disposed:false, error:'', tab:'map', googleEditor:null,
scroll:{option_scroll:'효과없음',option_scroll_direction:'center',option_scroll_duration:'0',option_scroll_delay:'0'},
providers:[{value:'kakao',label:'카카오 지도'},{value:'google',label:'구글 지도'}]
};
},
mounted() {
const bridge = window.ISWEB_MAP_EDITORS[this.widget_code];
bridge.vm = this;
this.tab = bridge.tab;
this.loadRow();
},
beforeUnmount() {
this.disposed = true;
if (this.previewAnimation) this.previewAnimation.cancel();
},
methods:{
request(method, payload) {
return this.lib.ajax(method, payload, '/JayDream/api.php', {
return:true, table:'jd_widget_map', component_name:'design-widget-map-modal', $rejectOnError:true
});
},
async readDetail() {
const table = this.api.table('jd_widget_map').where('widget_code',this.widget_code);
const response = await this.request('get',table.filter);
if (!response || !response.success || !Array.isArray(response.data)) throw new Error('설정을 불러오지 못했습니다.');
return response.data[0] || {};
},
async loadRow() {
this.reading = true; this.error = '';
try {
const row = await this.readDetail();
if (this.disposed) return;
this.row = Object.assign({widget_code:this.widget_code,map_type:'kakao',x:14129709.590359,y:4512313.7639686,z:19,
jibun:'',jibun2:'',address:'',address2:'',pc_height:450,mobile_height:320,title:'',phone1:'',phone2:'',phone3:'',google_iframe:''},row);
if (this.row.map_type==='vworld') this.row.map_type='kakao';
const current = window.ISWEB_MAP_EDITORS[this.widget_code].settingData || {};
Object.keys(this.scroll).forEach(key=>{ if(current