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

0 Members and 1 Guest are viewing this topic.

Offline dj

  • Tireless poster
  • ****
  • Posts: 131
  • 👣 🐾
    • View Profile
    • PWAs
Re: Responsive small screen template
« Reply #75 on: July 15, 2019, 08:21:47 PM »
The double-download problem is intermittent.  Also the number of get requests varies.
I don't know. I think, theres no double-download, the browser downloads parts (can see in browser network analysis) (it's the filesize of your song 2M?)
stackoverflow don't help really
the multiple requests have status 206 (partial content load)


update: yes, you make a mistake in the editing (changing the play button is not nessary)
« Last Edit: July 16, 2019, 03:04:09 PM by dj »

Follow members gave a thank to your post:


Offline danny

  • Tireless poster
  • ****
  • Posts: 109
    • View Profile
    • Startfetch
Re: Responsive small screen template
« Reply #76 on: July 17, 2019, 03:11:35 PM »
In case the wifi blinked (mp3 unavailable), or In case the server was up against the download/connection limit (mp3 unavailable), or
perhaps I've renamed/moved an mp3 file (unavailable), then,  Is it possible to have it go to the next file in the playlist, instead of stop? 
@danny replace audio.onerror
Code: [Select]
audio.onerror=function(){audio.onended()}
Awesome!
P.S.
Also, it can play the apple and aac too:  '.mp3','.ogg','.m4a','.aac'
« Last Edit: July 17, 2019, 06:19:49 PM by danny »

Offline dj

  • Tireless poster
  • ****
  • Posts: 131
  • 👣 🐾
    • View Profile
    • PWAs
Re: Responsive small screen template
« Reply #77 on: July 17, 2019, 04:35:39 PM »
@danny replace audio.onerror

Code: [Select]
audio.onerror=function(){audio.onended()}
P.S.
Also, it can play playlists (m3u) and webradio


I'm on holidays next week's
latest template+audioplayer+pictureviewer


« Last Edit: July 19, 2019, 03:19:10 AM by dj »

Follow members gave a thank to your post:


Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 861
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Re: Responsive small screen template
« Reply #78 on: July 23, 2019, 08:21:41 PM »
i like the new html content and template desing, but i'm having a hard time following where the current version for the template are and go.

can you link the attachment or tell me what post on the thread to download them at?
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline dj

  • Tireless poster
  • ****
  • Posts: 131
  • 👣 🐾
    • View Profile
    • PWAs
Re: Responsive small screen template - pictureviewer
« Reply #79 on: July 24, 2019, 03:01:44 AM »
time to present your vacation photos

update: v2.2 swipe to next image
update: v3 works with mobil-light_4.6 & viewthumbs|audioplayer

@bmartino1 latest template here
changelog: fixed multiple urlvars

update: videoplayer_addon only useful if you want to show subtitles
subtitle must have the same name (tuxi9.ogg.vtt)
you also need video5.htm
« Last Edit: August 03, 2019, 07:21:45 AM by dj »

Follow members gave a thank to your post:


Offline danny

  • Tireless poster
  • ****
  • Posts: 109
    • View Profile
    • Startfetch
Re: Responsive small screen template
« Reply #80 on: August 03, 2019, 06:11:06 AM »
DJ,
I was wondering how to add mp3 play function to a many file icons, such as 🔊 after the %list% finished drawing? 

Edit: Oh my gosh.  LOLZ!!!  Yes, it does already exist.  Thank you!
« Last Edit: August 05, 2019, 08:01:08 PM by danny »

Offline dj

  • Tireless poster
  • ****
  • Posts: 131
  • 👣 🐾
    • View Profile
    • PWAs
Re: Responsive small screen template - audioplayer
« Reply #81 on: August 03, 2019, 07:37:44 AM »
@danny
code from audioplayer:
Code: [Select]
  //audioplayer for all (click on audio icon)
if I understand the question, have you tryed to click on any audio file icon?
it already exists

Follow members gave a thank to your post:


Offline danny

  • Tireless poster
  • ****
  • Posts: 109
    • View Profile
    • Startfetch
Re: Responsive small screen template
« Reply #82 on: August 20, 2019, 05:44:02 PM »
@DJ
I need some help with a modification of search results.
Code: [Select]
<script type="text/javascript">function searchQuery() {frm = document.searchForm;if(frm.query.value.length < 3) {alert("Search requires 3 or more characters");} else {frm.recursive.checked ? recursive ="&recursive" : recursive ="";for(x=0; x<frm.choice.length; x++) {if(frm.choice[x].checked ==1) {if(frm.choice[x].value =="file") {searchMode ="?files-filter=";filter="&folders-filter=%5C";} else if(frm.choice[x].value =="folder") {searchMode ="?folders-filter=";filter="&files-filter=%5C";} else {searchMode ="?filter=";filter="";}}}for(c=0; c<frm.root.length; c++) {if(frm.root[c].checked ==1) {frm.root[c].value =="current" ? searchFrom ="http://%host%%folder%": searchFrom = "http://%host%";}}document.location.href = searchFrom+searchMode+"*"+frm.query.value+"*"+recursive+filter;}}</script>The modification that I need is:  If no file found, refresh to ordinary list in 1 second or less.  Or, prompt 'not found', without changing/doing any file list.

Purpose:  I want to put a Folder Delete function in the [nofiles] section, because I think it fine to delete empty folders.  However, this is not quite safe because negative search results also lands on the nofiles page, and thus user might think there are no files, but there is a surprise instead.
« Last Edit: August 21, 2019, 10:02:52 AM by danny »