Author Topic: Responsive small screen template  (Read 24830 times)

0 Members and 1 Guest are viewing this topic.

Offline Fysack

  • Tireless poster
  • ****
  • Posts: 635
  • present picture
    • View Profile
    • Admin
Re: Responsive small screen template
« Reply #135 on: October 18, 2019, 09:59:43 PM »
dj.. danny.. Great work. Stay strong. Look forward  :
-*
GOD CAN READ YOUR MIND

Follow members gave a thank to your post:


Offline dj

  • Tireless poster
  • ****
  • Posts: 155
  • 👣 🐾
    • View Profile
    • PWAs
Re: Responsive small screen template - addon
« Reply #136 on: November 01, 2019, 08:28:22 AM »
halloween has enchanted the date  :-[
show relative date as yesterday

onerror="this.src='%item-url%'"
you should add this.onerror=null; otherwise you can get endless loops. Retry-After could help too

Menu > debug > run script to restore default settings (after switching from Throwback to Default tpl)
Code: [Select]
{.set ini|use-system-icons=yes.}{.set ini|tray-icon-for-each-download=yes.}{.set ini|max-ips=0.}{.set ini|max-connections=0.}{.set ini|max-ips-downloading=0.}{.set ini|max-contemporary-dls=0.}{.set ini|enable-fingerprints=yes.}{.set ini|send-hfs-identifier=yes.}{.set ini|support-descript.ion=yes.}{.set ini|tray-instead-of-quit=no.}{.set ini|load-single-comment-files=yes.}{.set ini|hints4newcomers=yes.}{.set ini|save-totals=yes.}{.set ini|tray-shows=download.}{.set ini|flash-on=download.}{.set ini|browse-localhost=yes.}{.set ini|max-connections-by-ip=0.}
autoban addon  "Uploaded by" add [upload completed] event with blue text and show comments

changelog: improved picviewer (hide header)
slideshowV2 repeats and reloads (photoframe)
« Last Edit: November 13, 2019, 11:34:57 AM by dj »

Offline danny

  • Tireless poster
  • ****
  • Posts: 194
    • View Profile
    • Startfetch
Re: Responsive small screen template - addon
« Reply #137 on: November 16, 2019, 04:49:04 PM »
...you should add this.onerror=null; otherwise you can get endless loops. Retry-After could help too...
The loop is desirable for queuing.  However, need a 157ms (any prime number) delay between retries. 
Something like  onerror="sleep=0.157;this.src='%item-url%'" 
But, how is that done? 
« Last Edit: November 16, 2019, 04:53:48 PM by danny »

Offline dj

  • Tireless poster
  • ****
  • Posts: 155
  • 👣 🐾
    • View Profile
    • PWAs
Re: Responsive small screen template
« Reply #138 on: November 17, 2019, 02:13:13 AM »
@danny: Edit: onerror="this.onerror=null; setTimeout(function(){this.src='%item-url%'}.bind(this),157)"
(to test endless loop: add .jpg to a textfile)

Santa clause will bring a photoframe with blured background (ambilight) on 1. Advent
« Last Edit: November 26, 2019, 04:31:20 AM by dj »

Offline danny

  • Tireless poster
  • ****
  • Posts: 194
    • View Profile
    • Startfetch
Re: Responsive small screen template
« Reply #139 on: November 19, 2019, 04:54:32 PM »
I had an idea to avoid loading script... until the user clicked on an icon/link for the function. 
(Especially efficient with thumbnails)

Attached, is the concept. 
The lazyloader script is fully functional if loaded by <script> but didn't work when loaded by an <a link. 
« Last Edit: November 19, 2019, 05:11:21 PM by danny »

Offline dj

  • Tireless poster
  • ****
  • Posts: 155
  • 👣 🐾
    • View Profile
    • PWAs
Re: Responsive small screen template - update
« Reply #140 on: December 01, 2019, 12:05:44 AM »
photoframe comes with play button, ambilight and more 🕯 

Edit: 🎅
add weather to slideshow (uncommend last line)
add remote control (space key)
add videoclips covert them to webp
« Last Edit: Today at 04:35:07 AM by dj »