fixed bomb img
This commit is contained in:
parent
c9b8588c4f
commit
1e6a843292
2 changed files with 1 additions and 11 deletions
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
||||||
<title>Bomb</title>
|
|
||||||
<g fill="none" stroke="none">
|
|
||||||
<circle cx="30" cy="34" r="16" fill="#111" />
|
|
||||||
<rect x="38" y="14" width="12" height="8" rx="2" ry="2" fill="#333" transform="rotate(-15 44 18)" />
|
|
||||||
<path d="M44 12c0-3 6-6 6-6" stroke="#f5d742" stroke-width="3" stroke-linecap="round" fill="none" />
|
|
||||||
<circle cx="30" cy="34" r="2" fill="#fff" opacity="0.06" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 492 B |
|
|
@ -575,7 +575,7 @@
|
||||||
const img = document.createElement('img');
|
const img = document.createElement('img');
|
||||||
img.className = 'mine-img';
|
img.className = 'mine-img';
|
||||||
// use a project asset (SVG) that has a transparent background
|
// use a project asset (SVG) that has a transparent background
|
||||||
img.src = '/assets/img/mine.svg';
|
img.src = '/assets/img/bomb.jpg';
|
||||||
img.alt = 'mine';
|
img.alt = 'mine';
|
||||||
img.onerror = function(){
|
img.onerror = function(){
|
||||||
try{ if(this.src && this.src.indexOf('bomb.jpg') === -1) this.src = '/assets/img/bomb.jpg'; }
|
try{ if(this.src && this.src.indexOf('bomb.jpg') === -1) this.src = '/assets/img/bomb.jpg'; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue