Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
1447bits committed Oct 19, 2023
1 parent f913949 commit 1b496c3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions talebuddy/allStories.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"/stories/The_Gulliver's_Travels.json",
"/stories/A_KING.json",
"/stories/RUSTY_REBEL.json",
"/talebuddy/stories/luffy.json",
"/stories/stories/luffy.json",
"/stories/Sanatan.json",
"/stories/sabhya.json",
"/stories/HARE.json",
"/stories/SW.json",
"/stories/isha.json",
"/stories/DOREMON.json",
"/stories/NINJA_HATTORI.json",
"/stories/hi.json",
"/stories/hi.json"
]
}
13 changes: 7 additions & 6 deletions talebuddy/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang=en>
<html lang="en">

<head>
<meta charset=UTF-8>
<meta name=viewport content=width=device-width, initial-scale=1.0>
<title>tailbuddy</title>
<link rel=stylesheet href=./index.css>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./index.css">
<title>talebuddy</title>
</head>

<body>
Expand All @@ -16,6 +16,7 @@
</div>

</body>
<script src=./index.js></script>

<script type="module" src="./index.js"></script>

</html>
6 changes: 3 additions & 3 deletions talebuddy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ document.addEventListener("DOMContentLoaded", function () {
.then(data => {
// console.log(data.chapter_data_paths)
for (let i = 0; i < data.story_paths.length; i++) {
console.log("card path : ", data.story_paths[i])
// console.log("card path : ", data.story_paths[i])
rendercard(`.${data.story_paths[i]}`)
}
// let allchapter = JSON.parse(data)
Expand All @@ -25,12 +25,12 @@ document.addEventListener("DOMContentLoaded", function () {
//render Cards
async function rendercard(path) {

console.log(path)
// console.log(path)
let carddata;
await fetch(path)
.then(response => response.json())
.then(cardData => {
console.log("cardData : ", cardData)
// console.log("cardData : ", cardData)
carddata = cardData

});
Expand Down
5 changes: 0 additions & 5 deletions talebuddy/stories/HARE.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
}
],






"credits": [
{
"name": "",
Expand Down

0 comments on commit 1b496c3

Please sign in to comment.