Replace inline_json with postman
This commit is contained in:
parent
bbb3659a91
commit
0c713574e6
2 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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)}%`;
|
||||
|
|
Loading…
Reference in a new issue