Spaces:
Running
Running
국기: 캐나다(ca) 추가 + flagFor 캐나다 매핑
Browse files- index.html +3 -2
index.html
CHANGED
|
@@ -615,9 +615,10 @@ document.addEventListener('keydown', function(e){ if(e.key==='Escape') closeSpot
|
|
| 615 |
il:'<svg viewBox="0 0 22 15"><rect width="22" height="15" fill="#fff"/><rect y="2.2" width="22" height="1.9" fill="#0038B8"/><rect y="10.9" width="22" height="1.9" fill="#0038B8"/><path d="M11 4.7 12.8 7.8 9.2 7.8Z" fill="none" stroke="#0038B8" stroke-width=".7"/><path d="M11 10.3 9.2 7.2 12.8 7.2Z" fill="none" stroke="#0038B8" stroke-width=".7"/></svg>',
|
| 616 |
it:'<svg viewBox="0 0 22 15"><rect width="7.33" height="15" fill="#009246"/><rect x="7.33" width="7.34" height="15" fill="#fff"/><rect x="14.67" width="7.33" height="15" fill="#CE2B37"/></svg>',
|
| 617 |
gl:'<svg viewBox="0 0 22 15"><rect width="22" height="15" fill="#E9F1FB"/><g fill="none" stroke="#1C7293" stroke-width=".8"><circle cx="11" cy="7.5" r="4.2"/><ellipse cx="11" cy="7.5" rx="1.8" ry="4.2"/><line x1="6.8" y1="7.5" x2="15.2" y2="7.5"/></g></svg>',
|
| 618 |
-
us:'<svg viewBox="0 0 22 15"><rect width="22" height="15" fill="#fff"/><g fill="#B22234"><rect width="22" height="1.15"/><rect y="2.3" width="22" height="1.15"/><rect y="4.6" width="22" height="1.15"/><rect y="6.9" width="22" height="1.15"/><rect y="9.2" width="22" height="1.15"/><rect y="11.5" width="22" height="1.15"/><rect y="13.85" width="22" height="1.15"/></g><rect width="9" height="8.05" fill="#3C3B6E"/><g fill="#fff"><circle cx="1.7" cy="1.4" r=".42"/><circle cx="4.5" cy="1.4" r=".42"/><circle cx="7.3" cy="1.4" r=".42"/><circle cx="3.1" cy="2.9" r=".42"/><circle cx="5.9" cy="2.9" r=".42"/><circle cx="1.7" cy="4.4" r=".42"/><circle cx="4.5" cy="4.4" r=".42"/><circle cx="7.3" cy="4.4" r=".42"/><circle cx="3.1" cy="5.9" r=".42"/><circle cx="5.9" cy="5.9" r=".42"/></g></svg>'
|
|
|
|
| 619 |
};
|
| 620 |
-
function flagFor(s){ s=s||''; var M=[['미국','us'],['러시아','ru'],['우즈베키스탄','uz'],['우즈벡','uz'],['중국','cn'],['중화권','cn'],['대만','tw'],['일본','jp'],['브라질','br'],['포르투갈','br'],['스페인','es'],['이탈리아','it'],['이스라엘','il'],['영문','gl'],['글로벌','gl'],['배포','gl']]; for(var i=0;i<M.length;i++){ if(s.indexOf(M[i][0])>=0) return FLAG[M[i][1]]||FLAG.gl; } return FLAG.kr; }
|
| 621 |
function srcName(s){ return (s||'').replace(/\s*\([^)]*\)\s*$/,''); }
|
| 622 |
function item(a){
|
| 623 |
return '<a class="press-item" href="'+a.u+'" target="_blank" rel="noopener">'
|
|
|
|
| 615 |
il:'<svg viewBox="0 0 22 15"><rect width="22" height="15" fill="#fff"/><rect y="2.2" width="22" height="1.9" fill="#0038B8"/><rect y="10.9" width="22" height="1.9" fill="#0038B8"/><path d="M11 4.7 12.8 7.8 9.2 7.8Z" fill="none" stroke="#0038B8" stroke-width=".7"/><path d="M11 10.3 9.2 7.2 12.8 7.2Z" fill="none" stroke="#0038B8" stroke-width=".7"/></svg>',
|
| 616 |
it:'<svg viewBox="0 0 22 15"><rect width="7.33" height="15" fill="#009246"/><rect x="7.33" width="7.34" height="15" fill="#fff"/><rect x="14.67" width="7.33" height="15" fill="#CE2B37"/></svg>',
|
| 617 |
gl:'<svg viewBox="0 0 22 15"><rect width="22" height="15" fill="#E9F1FB"/><g fill="none" stroke="#1C7293" stroke-width=".8"><circle cx="11" cy="7.5" r="4.2"/><ellipse cx="11" cy="7.5" rx="1.8" ry="4.2"/><line x1="6.8" y1="7.5" x2="15.2" y2="7.5"/></g></svg>',
|
| 618 |
+
us:'<svg viewBox="0 0 22 15"><rect width="22" height="15" fill="#fff"/><g fill="#B22234"><rect width="22" height="1.15"/><rect y="2.3" width="22" height="1.15"/><rect y="4.6" width="22" height="1.15"/><rect y="6.9" width="22" height="1.15"/><rect y="9.2" width="22" height="1.15"/><rect y="11.5" width="22" height="1.15"/><rect y="13.85" width="22" height="1.15"/></g><rect width="9" height="8.05" fill="#3C3B6E"/><g fill="#fff"><circle cx="1.7" cy="1.4" r=".42"/><circle cx="4.5" cy="1.4" r=".42"/><circle cx="7.3" cy="1.4" r=".42"/><circle cx="3.1" cy="2.9" r=".42"/><circle cx="5.9" cy="2.9" r=".42"/><circle cx="1.7" cy="4.4" r=".42"/><circle cx="4.5" cy="4.4" r=".42"/><circle cx="7.3" cy="4.4" r=".42"/><circle cx="3.1" cy="5.9" r=".42"/><circle cx="5.9" cy="5.9" r=".42"/></g></svg>',
|
| 619 |
+
ca:'<svg viewBox="0 0 22 15"><rect width="22" height="15" fill="#fff"/><rect width="5.5" height="15" fill="#D52B1E"/><rect x="16.5" width="5.5" height="15" fill="#D52B1E"/><polygon points="11,3.7 11.42,5.35 12.55,5.02 12.28,6.05 13.55,6.28 12.92,6.95 14.05,7.92 11.98,7.78 12.35,9.65 11.45,9.08 11.3,11.25 10.7,11.25 10.55,9.08 9.65,9.65 10.02,7.78 7.95,7.92 9.08,6.95 8.45,6.28 9.72,6.05 9.45,5.02 10.58,5.35" fill="#D52B1E"/></svg>'
|
| 620 |
};
|
| 621 |
+
function flagFor(s){ s=s||''; var M=[['미국','us'],['캐나다','ca'],['러시아','ru'],['우즈베키스탄','uz'],['우즈벡','uz'],['중국','cn'],['중화권','cn'],['대만','tw'],['일본','jp'],['브라질','br'],['포르투갈','br'],['스페인','es'],['이탈리아','it'],['이스라엘','il'],['영문','gl'],['글로벌','gl'],['배포','gl']]; for(var i=0;i<M.length;i++){ if(s.indexOf(M[i][0])>=0) return FLAG[M[i][1]]||FLAG.gl; } return FLAG.kr; }
|
| 622 |
function srcName(s){ return (s||'').replace(/\s*\([^)]*\)\s*$/,''); }
|
| 623 |
function item(a){
|
| 624 |
return '<a class="press-item" href="'+a.u+'" target="_blank" rel="noopener">'
|