rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - dj

Pages: 1 2 3 4 ... 20
So I'm working on a minimize template that works with thumbnail generating with FFmpeg.

create thumbs on upload only with javascript (add thumbsize=128, doesn't work with psd files)

you can try to show build-in thumbnails (normally for jpeg)

HTML & templates / Re: Responsive small screen template
« on: April 15, 2021, 04:21:29 AM »
Adding an i before the closing bracket causes the value to be compared case-insensitively
a[href$=".mp3" i]

HTML & templates / Re: Responsive small screen template
« on: April 14, 2021, 04:55:46 AM »
Audioplayer(srt) shows srt subtitles (srt to vtt on-the-fly)


something like this in events

Code: [Select]
[request completed]
{.add to log|%item-resource%.}
{.if|{.%item-resource%=\dj\apps\hfs2\test\changelog.txt.}|{:{.add to log|exec.}:}.}

HTML & templates / Re: How can I implement thing on image attached?
« on: March 17, 2021, 01:17:11 PM »
alt. without macros

Code: [Select]
[...document.querySelectorAll('#files a[href$="/"]')].forEach(item =>
 item.insertAdjacentHTML('afterend', '<a href="'+item.innerText.trim()+'"> Info </a>')

HFS ~ HTTP File Server / Re: How to show thumbnail of JPG image file?
« on: March 17, 2021, 07:38:43 AM »

There are several ways.
When I have time, I'll write it again detailed.

I think the easiest way to show build-in thumbnails with photos is with hfs2.4 and mobil-light template.

Alt. for the hfs2.4 default tpl you can add Jpgimgthumb_S.diff.tpl

ThumbsV5.6 (hidden in mobil-lightV5.6.3betabundle) show thumbs of subfolder thumb
create thumbs on upload

HTML & templates / Re: Responsive small screen template
« on: March 14, 2021, 07:55:50 AM »
I think that the most efficient way to load ... scripts is: ...

yes, it's the old way before modules:
Code: [Select]
<span onclick="import('/~audiopl.js').then(obj => obj.audiop())">👁</span>

HTML & templates / Re: Responsive small screen template
« on: March 10, 2021, 04:20:00 PM »
I have noticed that templates with server-management top menu causes all users to expect that they Should be doing server-management
try mobil-light ≥ 5.6.2 (opt. stick navigation)
Note the differences when scrolling before and after selecting an item

alt. menu after files:
Code: [Select]
header {order:1}
/* bottom: 0px; position: sticky */

HTML & templates / Re: Responsive small screen template
« on: March 04, 2021, 05:09:21 PM »
1. todo
2. not necessary (press MediaKeys on keyboard or lockscreen on cell phone to see title(filename))
   mozGetMetadata works with FF and ogg files (Chrome shows duration instead)
3. remove function art
4. plays all kind of possible audio, when you select it first

HTML & templates / Re: Responsive small screen template
« on: March 04, 2021, 04:35:54 AM »
Now let's sing karaoke 🤷
(only sad songs at the moment)

Code: [Select]

00:01.000 --> 00:07.000
<c>Never drink</c> <00:03.000><c>liquid</c><00:05.000> <c>nitrogen.</c>

00:08.000 --> 00:09.000
Ever drink banana nitrogen.

Audioplayer(cover) shows embeded cover of ogg files (FF only)

P.S. to play videos with subtitle: a mp3 file must be in folder (to trigger videoplayer), select a mp4 and click it

it seems a problem of curl
searching in google I find:

-H "Content-Type: application/x-www-form-urlencoded; charset=utf-8"


try hfs2.4 beta

HTML & templates / Re: Responsive small screen template
« on: March 02, 2021, 05:28:59 AM »
Add querystring ?shuffle=true or
set var shuffle=true

HTML & templates / Re: Responsive small screen template
« on: February 24, 2021, 06:59:20 PM »
For your 'classic' audioplayer in Stripes.tpl, how do I....?
When I have time, I'll try to write a module version of the classic audioplayer.

In the meantime you can use Audioplayer5(module).
It works also with hfs2.4 default and Stripes.tpl.

Code: [Select]
if(!document.querySelector('a[href$=".mp3"], a[href$=".ogg"], a[href$=".m4a"]')) return  //add fileext here
 .then(obj => obj.audiop())
 .catch(error => console.log("err"))  //do error handling here  // setTimeout(ap, 509)

yes, the classic audio player seems loading just fine.
modules are deferred automatically

version7 will show subtitles (set vtt=true)

Pages: 1 2 3 4 ... 20