Skip to content

Commit

Permalink
repair
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafYeeXYZ committed Mar 28, 2024
1 parent 770e719 commit bd77fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
</div>
</div>
</div>
<script>
const swiper = new Swiper(".imgContainer", {
effect: "cards",
grabCursor: true,
})
</script>

<form action="#">
<textarea name="prompt" id="prompt" cols="30" rows="10" placeholder="请描述你想生成的图像"></textarea>
Expand Down
6 changes: 5 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
// 定义服务端地址
const server = 'https://painter.leafyee.xyz'
// 初始化 swiper
const swiper = new Swiper('.imgContainer', {
effect: "cards",
grabCursor: true,
})
// 获取元素
const textarea = document.querySelector('#prompt')
const submit = document.querySelector('#submit')
const imgContainer = document.querySelector('.swiper-wrapper')
const dialog = document.querySelector('dialog')
const container = document.querySelector('.container')

// 提交函数
async function generateImage() {
Expand Down

0 comments on commit bd77fac

Please sign in to comment.