.logo {   margin-top: 60px; }
.logo { margin-top: 60px; }
.logo { margin-top: 60px; }
[368 lines collapsed] background: #E8E0D4; display: grid; place-items: center; position: relative; flex: none; } #ad-graph-app .ag-thumb svg { width: 44px; height: 44px; display: block; } #ad-graph-app .ag-thumb svg, #ad-graph-app .ag-thumb img { width: 44px; height: 44px; display: block; object-fit: cover; } #ad-graph-app .ag-thumb-up { cursor: pointer; } #ad-graph-app .ag-thumb-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; } #ad-graph-app .ag-set-photo { display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; } #ad-graph-app .ag-set-photo input { display: none; } #ad-graph-app .ag-set-photo em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--blue); } #ad-graph-app .ag-name a { color: var(--blue); font-weight: 700; [424 lines collapsed] ); } function isPhoto(v) { return v && String(v).indexOf("data:image") === 0; } function thumbHtml(v) { if (isPhoto(v)) return ''; return thumb(v); } function photoPicker(i, v) { return ( '" ); } function shrinkPhoto(src, done) { var img = new Image(); img.onload = function () { var max = 160; var w = img.width; var h = img.height; if (w > max || h > max) { if (w > h) { h = Math.round((h * max) / w); w = max; } else { w = Math.round((w * max) / h); h = max; } } var c = document.createElement("canvas"); c.width = w; c.height = h; c.getContext("2d").drawImage(img, 0, 0, w, h); done(c.toDataURL("image/jpeg", 0.82)); }; img.src = src; } function loadPhoto(file, index) { if (!file || file.type.indexOf("image/") !== 0) return; if (!CFG.table.rows[index]) return; var reader = new FileReader(); reader.onload = function () { shrinkPhoto(reader.result, function (url) { CFG.table.rows[index].image = url; save(); drawSet(); drawDash(); }); }; reader.readAsDataURL(file); } function bindPhoto(box) { box.querySelectorAll("[data-photo]").forEach(function (el) { el.onchange = function () { loadPhoto(this.files && this.files[0], Number(this.getAttribute("data-photo"))); }; }); } function metricSelect(side, selected) { var html = CFG.chart.series.map(function (s) { return '"; [73 lines collapsed] if (col.type === "toggle") { return ''; } if (col.type === "image") return '
' + thumb(v) + "
"; if (col.type === "image") { var idx = CFG.table.rows.indexOf(row); return ''; } if (col.type === "name") { return '
' + esc(row.name) + "" + esc(row.id) + "
"; } [44 lines collapsed] var tableRows = CFG.table.rows.map(function (r, i) { return ( "" + "" + photoPicker(i, r.image) + "" + "" + inp("row." + i + ".name", r.name) + "" + "" + inp("row." + i + ".id", r.id) + "" + "" + inp("row." + i + ".cost", r.cost, ' inputmode="numeric"') + "" + [34 lines collapsed] field("예산 금액", "group.5.money", g[5].money) + "
" + '

표 숫자

' + "" + "" + "" + tableRows + "
소재 이름ID총비용노출수클릭수결과대표 이미지소재 이름ID총비용노출수클릭수결과
" + '
' : ""); bindSet(); bindPhoto(setBox); } function applyInput(el) { [183 lines collapsed] '
' + size + " / 페이지
"; bindDash(); bindPhoto(dash); var plot = dash.querySelector(".ag-plot"); if (plot && plot.clientWidth) { plot.innerHTML = chartSvg(plot.clientWidth, plot.clientHeight || 210); [98 lines collapsed]