Ron Au commited on
Commit
950041a
1 Parent(s): dfd3d09

style: Visual/copy tweaks

Browse files
static/blacky.png CHANGED
static/bluey.png CHANGED
static/index.html CHANGED
@@ -36,7 +36,7 @@
36
  <p>
37
  Each illustration is <strong>generated with AI</strong> using a <a href="https://rudalle.ru/en/">ruDALL-E</a>
38
  model <a href="https://huggingface.co/minimaxir/ai-generated-pokemon-rudalle"
39
- >fine-tuned by Max Woolf.</a> More than
40
  <a href="https://huggingface.co/models">30,000 such models</a> are hosted on Hugging Face for immediate use.</a
41
  >
42
  </p>
 
36
  <p>
37
  Each illustration is <strong>generated with AI</strong> using a <a href="https://rudalle.ru/en/">ruDALL-E</a>
38
  model <a href="https://huggingface.co/minimaxir/ai-generated-pokemon-rudalle"
39
+ >fine-tuned by Max Woolf.</a> Over
40
  <a href="https://huggingface.co/models">30,000 such models</a> are hosted on Hugging Face for immediate use.</a
41
  >
42
  </p>
static/js/dom-manipulation.js CHANGED
@@ -107,13 +107,10 @@ const setOutput = (mode, state) => {
107
 
108
  const screenshotCard = async () => {
109
  const card = document.querySelector('.pokecard');
110
- console.log({ card });
111
- console.log(card.querySelector('img.picture'));
112
- console.log(card.querySelector('img.picture').src);
113
 
114
- let imageUrl = await toPng(card);
115
 
116
- /* Repeat for Safari bug */
117
 
118
  imageUrl = await toPng(card, {
119
  width: 400,
@@ -124,8 +121,6 @@ const screenshotCard = async () => {
124
  },
125
  });
126
 
127
- console.log(imageUrl);
128
-
129
  return imageUrl;
130
  };
131
 
 
107
 
108
  const screenshotCard = async () => {
109
  const card = document.querySelector('.pokecard');
 
 
 
110
 
111
+ /* Load twice for Safari bug */
112
 
113
+ let imageUrl = await toPng(card);
114
 
115
  imageUrl = await toPng(card, {
116
  width: 400,
 
121
  },
122
  });
123
 
 
 
124
  return imageUrl;
125
  };
126
 
static/whitey.png CHANGED