27<\\)"},{"id":439724471,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/28-439724471\/","title":"{\u00d7~28~\u00d7}"},{"id":440019676,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/28-5-440019676\/","title":"\u00a6-:\u00b028,5\u00b0:-\u00a6"},{"id":440035394,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/29-440035394\/","title":"{\u00d7~29~\u00d7}"},{"id":441002802,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/29-5-441002802\/","title":"\u00a6-:\u00b029,5\u00b0:-\u00a6"},{"id":441253833,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/30-441253833\/","title":"{\u00d7~30~\u00d7}"},{"id":441574194,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/30-5-441574194\/","title":"\u00a6-:\u00b030,5\u00b0:-\u00a6"},{"id":441596590,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/31-441596590\/","title":"{\u00d7~31~\u00d7}"},{"id":441664249,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/epilogue-441664249\/","title":"[>:Epilogue:<]"},{"id":491734194,"url":"https:\/\/truyen247.pro\/damn-fate-78751603\/a-n-491734194\/","title":"{A\/N}"}]; var currentChapterId = $(this).data('chapter'); var selectHtml = ''; if ($('.display-chapter').is(':hidden') || $('.display-chapter').is(':empty')) { $('.display-chapter').html(selectHtml).show(); } else { $('.display-chapter').toggle(); } }); $('body').on('change', '.jumpToChap', function() { var selectedChapter = $(this).val(); location.href = selectedChapter; });}); function saveReadingHistory(storyId, storyTitle, storyUrl, chapterId, chapterTitle, chapterUrl) { var historyItem = { story_id: storyId, story_title: storyTitle, story_url: storyUrl, chapter_id: chapterId, chapter_title: chapterTitle, chapter_url: chapterUrl }; var existingHistory = JSON.parse(localStorage.getItem('readingHistory')) || []; var existingIndex = existingHistory.findIndex(function(item) { return item.story_id === storyId; }); if (existingIndex !== -1) { existingHistory[existingIndex].story_url = storyUrl; existingHistory[existingIndex].chapter_id = chapterId; existingHistory[existingIndex].chapter_title = chapterTitle; existingHistory[existingIndex].chapter_url = chapterUrl; } else { existingHistory.unshift(historyItem); } existingHistory = existingHistory.slice(0, 10); localStorage.setItem('readingHistory', JSON.stringify(existingHistory)); } var storyId = 78751603; var storyTitle = 'Damn Fate | ✔️'; var storyUrl = 'https://truyen247.pro/damn-fate-78751603/'; var chapterId = 435087481; var chapterTitle = '{×~26~×}'; var chapterUrl = 'https://truyen247.pro/damn-fate-78751603/26-435087481/'; saveReadingHistory(storyId, storyTitle, storyUrl, chapterId, chapterTitle, chapterUrl);