Jump to content
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?

Featured Replies

  • Author

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

Edited by 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>

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

Edited by egorea1999

  • Author
post-53045-0-87904900-1359490363_thumb.png
  • Author

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

поможете?

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

  • Author

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

 

<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>

Edited by Abuabidin

  • Author

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

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.