-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Former-commit-id: ea70ebead79b5d558579ef8fd817ce5e4bae3886
- Loading branch information
Showing
15 changed files
with
608 additions
and
3,082 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
setTimeout(typing, 3000); | ||
|
||
// question detail 타이핑 모션// | ||
const content = "의학적 전문성이 아닌, 데이터 기반의 해석을 통해 식단을 제공 받을 수 있을까?"; | ||
const text = document.querySelector(".question_detail"); | ||
let i = 0; | ||
|
||
function sleep(delay){ | ||
const start = new Date().getTime(); | ||
while (new Date().getTime() < start + delay); | ||
function typing(){ | ||
text.textContent += content[i++]; | ||
if (i > content.length) { | ||
text.textContent = "" | ||
i = 0; | ||
time.sleep(3000); | ||
}; | ||
} | ||
setInterval(typing, 140) | ||
|
||
window.onload=function() { | ||
function typing(){ | ||
text.textContent += content[i++]; | ||
if (i > content.length) { | ||
text.textContent = "" | ||
i = 0; | ||
sleep(3000); | ||
} | ||
} | ||
setInterval(typing, 140) | ||
} | ||
|
||
// //diet, visual hover 효과 | ||
// $(".hover").mouseleave( | ||
// function() { | ||
// $(this).removeClass("hover"); | ||
// } | ||
// ); | ||
|
||
// function sleep(ms) { | ||
// return new Promise((r) => setTimeout(r, ms)); | ||
// } | ||
|
||
// async function test() { | ||
// console.log("typing"); | ||
// await sleep(3000); | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/aos.css"> | ||
<link rel="stylesheet" href="../static/css/diet_chart.css"> | ||
<link rel="stylesheet" href="../static/css/foodSearch.css"> | ||
<!-- <link rel="stylesheet" href="../static/css/food_direction.css"> --> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100;200;300;400;500;600;700;800&display=swap" rel="stylesheet"> | ||
<link href='//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css' rel='stylesheet' type='text/css'> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.