Jump to content
CMSTOOLS.ru - форум поддержки и развития CMS

стили в зависимости от времени суток

Recommended Posts


Работа с библиотекой

Библиотека предельна проста в использовании. Следуйте всем шагам.


Шаг 1. Скачать библиотеку:


Шаг 2. Подключить скрипты:

2 <script src="stimed.min.js"></script>

Шаг 3. Настройка расписания:

1 var stimed = new $.stimed();
3 stimed.style.create([
4   {target:'body', time:'00:00', property:'background-color', value:'#fff'},
5   {target:'body', time:'18:00', property:'background-color', value:'#000'},
6   {target:'body', time:'24:00', property:'background-color', value:'#fff'}
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...