Explorar o código

move tease image to cdn

Leopoldthecoder %!s(int64=7) %!d(string=hai) anos
pai
achega
aa40f5308d
Modificáronse 2 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      examples/app.vue
  2. BIN=BIN
      examples/assets/images/carbon-teaser.png

+ 5 - 3
examples/app.vue

@@ -169,7 +169,7 @@
       :close-on-press-escape="false"
       :close-on-click-modal="false">
       <img
-        src="~examples/assets/images/carbon-teaser.png"
+        src="https://i.loli.net/2017/09/24/59c75f601d52b.png"
         class="carbon-teaser__main">
       <img
         @click="dialogVisible = false"
@@ -247,9 +247,11 @@
 
       const intrigued = localStorage.getItem('CARBON_TEASER');
       if (!intrigued) {
-        setTimeout(() => {
+        const img = new Image();
+        img.onload = () => {
           this.dialogVisible = true;
-        }, 2000);
+        };
+        img.src = 'https://i.loli.net/2017/09/24/59c75f601d52b.png';
       }
     },
 

BIN=BIN
examples/assets/images/carbon-teaser.png