Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
HTML & templates / Re: Introducing: The really fast Throwback (retro) template. Updated.
« Last post by dj on September 15, 2018, 08:34:40 PM »
Until then, a possible workaround solution

my modified addon, adapted to throwback1998

Code: [Select]
[+]
<script>  //formatmodified for mobil-light.tpl
//use ISO Date Format in hfs
var options={ year: '2-digit', month: '2-digit', day: 'numeric' }  //edit here
 //year, month, day, hour, minute, second  "numeric", "2-digit"; weekday  "narrow", "short", "long"
var locales=navigator.language

var ref=document.querySelectorAll('td:nth-child(3) font')  //addapted to throwback1998
if(!ref.length) ref=document.querySelectorAll('tr td:nth-child(3)')  //std-tpl
for (var i=0; i<ref.length; i++)  {
 var tmp=Date.parse(ref[i].textContent.slice(0,19))
 if(tmp) ref[i].textContent = new Date(tmp).toLocaleString(locales, options)
}

</script>
22
HFS ~ HTTP File Server / HFS behind Nginx reverse proxy
« Last post by finchy70 on September 15, 2018, 07:55:49 PM »
Hi. 
I have managed to set up HFS behind a reverse proxy.but HFS seems to lose its css.  How do I set the  /domain in HFS options as I think this may be the problem.
23
HTML & templates / Re: Introducing: The really fast Throwback (retro) template. Updated.
« Last post by Mars on September 15, 2018, 05:20:01 PM »
Quote
[+file]
<td>%item-size%B<td><script type="text/javascript" >mdy(%item-modified-dt%)</script><td>%item-dl-count%

[+folder]
<td class='nosize'>{.!folder-item|folder.}<td><script type="text/javascript" >mdy(%item-modified-dt%) </script><td>%item-dl-count%

Quote
[lib.js|no log]
// <script> // this is here for the syntax highlighter


function mdy(data) {
   var options={ year: '2-digit', month: '2-digit', day: 'numeric' }
   var locales=navigator.language;
   document.write( new Date((data*24-613658)*3600*1000).toLocaleString(locales, options));
}


function outsideV(e, additionalMargin) {
......
24
HFS ~ HTTP File Server / Re: New version: 2.3m
« Last post by danny on September 15, 2018, 02:49:35 PM »
...mobile friendly...
Those screens are small.  Can you add %item-modified-mdy% short format 12.25.18 file date?
25
HTML & templates / Re: Introducing: The really fast Throwback (retro) template. Updated.
« Last post by danny on September 15, 2018, 02:34:54 PM »
Solution is inside this post

http://rejetto.com/forum/index.php?topic=11546.msg1059974#msg1059974
Unfeasible with multiple users. If several users list files at the same time, server-side synchronous processing causes more dramatic loss of speed. With many files there's a long time to wait, as if broken. Inefficient workaround isn't a substitute for an efficient baked-in short date format.   If Rjetto makes that new standard template that works with phones; also, he will soon need %item-modified-mdy% short date (12.25.18) functionality, with better efficiency.

Until then, a possible workaround solution involves the Client's CPU (because there are many), not the server's CPU (only one--don't jam it).  Client side processing would be a script to reformat %item-modified%, preferably with async/non-blocking processing. 

I don't know how, but DJ does.
27
This, I tried for 3 hours with hfs 299-1/2 (the pre-release).  :) 
After upgrading to the official hfs 300, the remove headers command worked for cookies, not for etag.

Where is version 299 or official hfs 300?

Chris
29
HTML & templates / Re: Introducing: The really fast Throwback (retro) template. Updated.
« Last post by danny on September 13, 2018, 09:57:45 AM »
can you give some examples to reproduce in order to find a solution  ;)
This is useful: https://tools.pingdom.com

However, the solution that I really need is a built-in %item-modified-mdy% resulting in the format 09.14.18 since that much smaller format would be feasible with vertical displays (phones, tablets). 
30
HFS ~ HTTP File Server / Re: moving to another pc
« Last post by Jyicko on September 10, 2018, 08:59:57 AM »
I was running into the virtual folder problem too, seemed like a rookie mistake, but I'm glad someone else had the same problem lol
Pages: 1 2 [3] 4 5 ... 10