Ver Fonte

move tease image to cdn

Leopoldthecoder há 7 anos atrás
pai
commit
aa40f5308d
2 ficheiros alterados com 5 adições e 3 exclusões
  1. 5 3
      examples/app.vue
  2. 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
examples/assets/images/carbon-teaser.png