Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Kak добавить javascript?

Рекомендованные сообщения

Опубликовано:
  • Автор

не уже ли кто то не сможет?

Изменено пользователем Abuabidin

Опубликовано:

Создай отдельный блок и попробуй добавить туда это:

<script type="text/javascript" src="http://praytimes.org/code/v2/js/PrayTimes.js"></script>

<br>
<p align="center">Waterloo, ON, Canada<p>
<div align="center" id="table"></div>

<script type="text/javascript">

var date = new Date(); // today
var times = prayTimes.getTimes(date, [43, -80], -5);
var list = ['Fajr', 'Sunrise', 'Dhuhr', 'Asr', 'Maghrib', 'Isha', 'Midnight'];

var html = '<table id="timetable">';
html += '<tr><th colspan="2">'+ date.toLocaleDateString()+ '</th></tr>';
for(var i in list)	{
	html += '<tr><td>'+ list[i]+ '</td>';
	html += '<td>'+ times[list[i].toLowerCase()]+ '</td></tr>';
}
html += '</table>';
document.getElementById('table').innerHTML = html;

</script>

может быть заработает)

Изменено пользователем egorea1999

Опубликовано:
  • Автор
post-53045-0-87904900-1359490363_thumb.png
Опубликовано:
  • Автор

решил проблему но в этот раз появился другое проблема ))

поможете?

post-53045-0-85079800-1359491630_thumb.png

Опубликовано:
  • Автор

решил проблему заменив код на:

 

<script type="text/javascript" src="http://praytimes.org/code/v2/js/PrayTimes.js"></script>

<br>
<p align="center">Waterloo, ON, Canada<p>
<div align="center" id="table"></div>

<script type="text/javascript">

   var date = new Date(); // today
   var times = prayTimes.getTimes(date, [43, -80], -5);
  var list = ['Fajr', 
'Sunrise', 
'Dhuhr', 
'Asr', 
'Maghrib', 
'Isha', 
'Midnight'];

   var html = '<table id="timetable">';
   html += '<tr><th colspan="2">'+ date.toLocaleDateString()+ '</th></tr>';
   for(var i in list)  {
       html += '<tr><td>'+ list[i]+ '</td>';
       html += '<td>'+ times[list[i].toLowerCase()]+ '</td></tr>';
   }
   html += '</table>';
   document.getElementById('table').innerHTML = html;

</script>

Изменено пользователем Abuabidin

Опубликовано:
  • Автор

можно ли вставить дату по центру ?

post-53045-0-27811600-1359517805_thumb.png

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.