v4.0.0: 덱 UX·i18n·썸네일 저장 개선 및 413 수정
즐겨찾기·홀드 미리보기·페이지 도움말·3개국어 번역을 추가하고, 덱 저장 시 썸네일을 1200px로 통일하며 Nginx/API 업로드 제한을 상향했다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
20
script/ads.js
Normal file
20
script/ads.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Google AdSense 슬롯 초기화
|
||||
*/
|
||||
(function initAds() {
|
||||
function pushAds() {
|
||||
document.querySelectorAll('ins.adsbygoogle').forEach(() => {
|
||||
try {
|
||||
(window.adsbygoogle = window.adsbygoogle || []).push({});
|
||||
} catch (err) {
|
||||
console.warn('AdSense push failed:', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', pushAds);
|
||||
} else {
|
||||
pushAds();
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user