Replace inline_json with postman

This commit is contained in:
0x1eef 2024-05-31 02:15:57 -03:00
parent bbb3659a91
commit 0c713574e6
2 changed files with 3 additions and 1 deletions

View file

@ -22,7 +22,6 @@
<body>
<%= erb("_postman.html.erb", {locale:}) %>
<div class="root" data-surah-id="<%= surah.id %>"></div>
<%= inline_json("/json/durations/alafasy/#{surah.id}.json", class_name: 'durations') %>
<script src="/js/loaders/surah-stream-loader.js"></script>
</body>
</html>

View file

@ -19,6 +19,9 @@ import postman, { item } from "postman";
item.json(`/json/${locale}/${surahId}/surah.json`, {
className: "json surah",
}),
item.json(`/json/durations/alafasy/${surahId}.json`, {
className: 'json durations'
}),
item.progress((percent: number) => {
progressBar.value = percent;
progressNumber.innerText = `${percent.toFixed(0)}%`;