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 ... 19
1
Bug reports / Re: How to delete files.
« on: November 17, 2021, 04:54:04 AM »

3
HTML & templates / Re: Custom folder previews
« on: September 15, 2021, 07:41:42 AM »
for hfs2.4

Code: [Select]
[+]
<script>
function folderth(){
 [...document.querySelectorAll('#files a[href$="/"]')].forEach(item =>
 item.insertAdjacentHTML('afterend', '<img loading=lazy height=128 src='+item.href+'folder.jpg>')  //p.jpg
 )
}

if(!document.querySelector('main')) folderth()  //hfs2.4
else document.addEventListener('render', folderth)  //mobil-light_V5.6
</script>

4
HFS ~ HTTP File Server / Re: Two folders, two websites?
« on: September 14, 2021, 08:13:15 AM »
try something like this
Properties - Diff template

Code: [Select]
[+]
<script>
if (location.href=='http://192.168.137.1/') location.href+='/Folder1'; else console.log('todo')
</script>



6
So I'm working on a minimize template that works with thumbnail generating with FFmpeg.

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


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

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

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

9
welcome,

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.}:}.}

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

Code: [Select]
[+]
<script>
[...document.querySelectorAll('#files a[href$="/"]')].forEach(item =>
 item.insertAdjacentHTML('afterend', '<a href="http://example.site/view-2.php?name='+item.innerText.trim()+'"> Info </a>')
)
</script>

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

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


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

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

13
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]
[+]
<style>
header {order:1}
/* bottom: 0px; position: sticky */
</style>

14
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

15
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]
WEBVTT

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


Pages: 1 2 3 ... 19