Skip to content

Commit

Permalink
Fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
chenglou committed Jul 4, 2023
1 parent f371af9 commit 86800f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="My Midjourney AI Art">
<title>My Midjourney AI Art</title>
<meta property="og:image" content="https://mj-gallery.com/28df4066-dc0c-4741-a3da-3120c0b547c1/grid_0_384_N.webp"/>
<meta property="og:image" content="https://cdn.midjourney.com/28df4066-dc0c-4741-a3da-3120c0b547c1/grid_0_384_N.webp"/>
<meta property="og:description" content="Gallery of art generated through Midjourney AI" />
<style>
html {
Expand Down Expand Up @@ -372,7 +372,7 @@
let node = document.createElement('div')
node.className = 'box'
// node.tabIndex = i + 1 // uncomment when dismiss focus isn't this ugly blue hue anymore
node.style.backgroundImage = `url(https://mj-gallery.com/${d.id}_384_N.webp)` // 128 is the next smallest. Too small for retina screens
node.style.backgroundImage = `url(https://cdn.midjourney.com/${d.id}_384_N.webp)` // 128 is the next smallest. Too small for retina screens
let img = document.createElement('img')
// img.decoding = 'async' // this sucks. It's slower _and_ still janks the UI. No point
let promptNode = document.createElement('figcaption')
Expand Down Expand Up @@ -635,7 +635,7 @@
prompt.style.height = `${prompt1DSizeY - promptPaddingBottom}px`
prompt.style.lineClamp = prompt.style.webkitLineClamp = 999
img.style.display = 'block'
let src = `https://mj-gallery.com/${d.id}.webp`
let src = `https://cdn.midjourney.com/${d.id}.webp`
if (!stillAnimating && img.src !== src) img.src = src // load the full res image
} else {
node.style.zIndex = i + 1 // simple proper z-index management
Expand Down

0 comments on commit 86800f0

Please sign in to comment.