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 ... 16 17 18 19 20
256
HFS ~ HTTP File Server / Re: set expiry to delete content
« on: September 12, 2016, 05:36:20 PM »
pseudocode:

if Sunday then 3
else if Saturday then 2
else 1

Code: [Select]
{. if |{.{.time|ddd.}=Sun.} | 3 | {:{.if|{.{.time|ddd.}=Sat.}|2|1.}:} .}
remind to replace Mon to Sun by their translations

257
HFS ~ HTTP File Server / Re: set expiry to delete content
« on: September 10, 2016, 06:27:55 AM »
I wonder how difficult it would be to have it not delete on a ... Sunday?

replace 1 (number of days) with
Code: [Select]
{. if |{.{.time|ddd.}=Sun.} | 2 | 1 .}

258
you can use the standard template for the supported formats

http://www.rejetto.com/forum/beta/downloaded-files/msg1052766/#msg1052766

Menu > Other options > MIME types...   and open directly in browser
*.mp4   |video/mp4    (H.264 1 2)
*.ogg    |video/ogg     (Theora)
*.webm |video/webm (VP9)
*.mp3   |audio/mpeg
*.m3u8 |    3

update:  1H.265 in Edge 2in mkv in Chrome 3in Edge (HLS)


259
HTML & templates / Re: Capture and upload images from your webcam
« on: June 27, 2016, 03:24:12 PM »
Update: select webcam. Tested with FF, chrome (use localhost) and Edge

260
HTML & templates / Re: Responsive small screen template
« on: June 20, 2016, 08:14:50 AM »
Corrected

261
HTML & templates / Re: Responsive small screen template
« on: June 20, 2016, 05:02:44 AM »
the template without pictureviewer

Code: [Select]
[file=folder]
{.set|mask|{:{.match|jpg;png;gif|%item-ext%.}:}.}
<tr id="%item-url%" {.if|{.^mask.}|class="media".}><td style="width:72px">
<img src= {.if|{.^mask.}|"thumb/%item-url%" style="width:64px;height:64px;object-fit:cover" onclick='show|"%item-icon%" onclick='location=.}("%item-url%")' alt="&#x1f304;" title="%item-name%" /></td>

[+file=+folder]
<td style="text-align:initial">
<div><a href="%item-url%" style="color:black; font-size:16px">%item-name%</a></div>
<div style="width:200px" title="%item-comment%">%item-modified% {.if|{.get|is new.}|&#x1F195;.}</div>
<div style="width:100px" title="%item-dl-count%">{.or|%item-size%|.}</div>
</td>
<td style="width:72px;text-align:center">
<input type="checkbox" class='selector' name='selection' value="%item-url%" {.if not|{.or|{.get|can delete.}|{.get|can access.}|{.get|can archive item.}.}|disabled='disabled'.} ></td>
</tr>

[list]
<div id='files_outer'>
<div style='height:1.6em;'></div>

{.if not| %number% |{: <div style='font-size:200%; padding:1em;'>{.!No {.if|{.length|{.?search.}.}|results|files.}.}</div> :}|{:
        <form method='post'>
<table id='files' style="width:100%; border-spacing:0px 1px; font-family:Helvetica">
<tr>
<th><a id="menu">&#x2261;</a>
<th><select onchange='location=this.value'>
<option {.if|{.=|{.urlvar|sort.}|n.}|selected.} value="{.get|url|sort=n|rev={.?sort=n.}.}">Name</option>
<option {.if|{.=|{.urlvar|sort.}|s.}|selected.} value="{.get|url|sort=s|rev={.?sort=s.}.}">Size</option>
<option {.if|{.=|{.urlvar|sort.}|t.}|selected.} value="{.get|url|sort=t|rev={.?sort=t.}.}">Timestamp</option>
<option value="{.get|url|rev={.not|{.?rev.}.}.}">order &{.if|{.?rev.}|u|d.}arr;</option>
</select><th>
</tr>
%list%
</table>
        </form>
:}.}
</div>

<script>
(function() {
  var menu = document.getElementById("menu")
  menu.onclick = function() {
    var pan = document.getElementById("panel");
    pan.style.display = pan.style.display ? "" : "none";
    document.getElementById("files_outer").style.overflow = pan.style.display ? "initial" : "auto"
  }
  if (window.innerWidth < 640) menu.click()  //if template is slow remove this line
})();
</script>

[box panel]
<script>
(function() {
//add viewport to head
 var tmp = document.createElement("meta");
  tmp.name = 'viewport';
  tmp.content = 'width=device-width';
  document.head.appendChild(tmp)

  var tmp = document.createElement('style');
  tmp.innerHTML = 'tr:hover td {background: #EEE} \ntd div[title] {opacity:.54; font-size:14px; display:inline-block}';
  document.head.appendChild(tmp)

})();
</script>

<div id='panel'>
    {.$box messages.}
    {.$box login.}
    {.$box folder.}
    {.$box search.}
    {.$box selection.}
    {.$box upload.}
    {.$box actions.}
    {.$box server info.}
</div>

Perhaps it's faster

264
HFS ~ HTTP File Server / Re: HFS very slow response on some clients
« on: June 11, 2016, 01:09:26 PM »
If you use images, but no thumbnails, you could try to replace "thumb/%item-url%" with "%item-icon%" or "" (line 4)

update: try to load the script earlier
add [box panel] before the script and the content of box panel of the hfs.tpl after the script block

265
HTML & templates / Re: Responsive small screen template
« on: June 07, 2016, 11:03:14 AM »
To change the sort direction

add before </select> (line 27 33)
Code: [Select]
<option value="{.get|url|rev={.not|{.?rev.}.}.}">order &{.if|{.?rev.}|u|d.}arr;</option>

266
HTML & templates / Re: Responsive small screen template
« on: June 06, 2016, 02:52:56 PM »
My bad.
In hfs Add a new real folder. In explorer Add the file hfs.diff.tpl to this folder.
Or If you wan't use in the root, select /, Properties, Diff template and copy the text of the hfs.diff.tpl to it.
Don't change template file.
http://www.rejetto.com/wiki/index.php?title=HFS:_Hidden_things

267
HTML & templates / Re: Responsive small screen template
« on: June 06, 2016, 09:41:10 AM »
rename mobil-ligh.tpl to hfs.diff.tpl and add it.

268
HTML & templates / Re: Responsive small screen template
« on: June 06, 2016, 05:33:36 AM »
you can try mobil-light http://www.rejetto.com/forum/html-templates/file-upload-with-drag-and-drop/msg1061004/#msg1061004.
The dialogs are not located below the file list, but you can show/hide them.


Edit: latest version

Features:
never reloads the page
logout(Edge)
searchcategorie
web-app-capable
generate thumbnails on upload
build-in pictureviewer(chrome77)
build-in audioplayer
only 10k

269
try rename .mkv to .mkv.webm and open it with chrome
WebM is a variant of Matroska Container

270
HTML & templates / Re: Jpg-image Template - Thumbs.db
« on: January 28, 2016, 11:04:09 AM »
Hi Leo,

it's not possible for me (thumb.db is centralized)
what i can do, is show the Folder.jpg (add Folder.jpg to hfs file system)

Code: [Select]
[folder]
<tr><td style="display:flex"><input type='checkbox' class='selector' name='selection' value="%item-url%" {.if not|{.or|{.get|can delete.}|{.get|can access.}|{.get|can archive item.}.}|disabled='disabled'.} />
%new% %protected% <img src="%item-url%Folder.jpg" style="width:64px;height:64px; object-fit:cover"/>
<a href="%item-url%"> %item-name%</a>%item-comment%
<td>%item-size%<td>%item-modified%<td>%item-dl-count%

Update: show image in xspf-playlist:

Code: [Select]
[file.xspf]
{.load|%item-folder%%item-name%|var=x.}
<tr><td style="display:flex" title="{.regexp|<title>(.+?)<|var=x.}">
<input type='checkbox' class='selector' name='selection' value="%item-url%" {.if not|{.or|{.get|can delete.}|{.get|can access.}|{.get|can archive item.}.}|disabled='disabled'.} />
%new% %protected% <a href="{.regexp|([^>]+?)<\/(link{:|:}info)>|var=x.}"><img src="{.regexp|<image>(.+?)<|var=x.}" style="width:64px;height:64px; object-fit:cover"/></a>
<a href="%item-url%"> %item-name%</a> %item-comment%
<td>%item-size%<td>%item-modified%<td>%item-dl-count%

Pages: 1 ... 16 17 18 19 20