_c.config = {

// choose what function to trigger when clicking items in the list
click: 'popup', // 'popup' | 'modal' | 'download' | 'window' | 'menu'

// choose window _target for click_window[] and .url files
click_target: '_blank', // '_blank' | '_self'

// array of file extensions that should open directly in new window on click
click_window: [], // ['pdf', 'html']

// open browser in popup window for `click_window` items
click_window_popup: true, // true | false

// maximum file size for text/code files to load and preview in the code editor / 1000000 (1mb) default
code_max_load: 1000000, // bytes

// enable context-menu button and right-click menu with options
context_menu: true, // true | false

// folder action buttons to display in the topbabr right
// ['rename', 'new_file', 'new_folder', 'upload', 'download', 'reload', 'contextmenu']
folder_buttons: ['new_file', 'new_folder', 'upload', 'reload', 'contextmenu'],

// allow browser history ?path/to/folder on navigation / allows deep-linking to files and dirs
history: true, // true | false

// load and preview PDF documents in modal if browser supports inline PDF embed
load_inline_pdf: true, // true | false

// default PDF thumbnail preview ratio for layout items / may adjust after thumbs load if `previews_update` is enabled
pdf_preview_ratio: .7727272727, // default US-Letter 8.5 in x 11 in

// block user right-click on sensitive items (images, video, links) / also disables right-click contextmenu
prevent_right_click: false, // true | false

// update layout after loading video and PDF thumbnails / may cause layout adjustments
previews_update: true, // true | false

// allow OS `prefers_reduced_motion` to dictate transitions disabled
respect_prefers_reduced_motion: false, // true | false

// automatically refresh page after x seconds / 0 disabled
refresh: 0, // seconds

// set url to refresh when `refresh` options triggers / default false will reload current page
refresh_url: false, // false | 'nohash' | '{custom url}'

// custom page <title> / defaults to "foldername [file count]"
title: '%name% [%count%]', // string with available vars %name%, %path% and %count%

// set how the topbar attaches itself to screen
topbar_sticky: 'scroll', // true | 'scroll' | false

// enable transitions when navigating between pages (incomplete)
transitions: true, // true | false

// attributes to add to <video> elements in popup and modal / https://www.w3schools.com/tags/tag_video.asp
video_attributes: ['controls', 'disablepictureinpicture', 'controlslist="nodownload"', 'autoplay', 'loop'],

// open videos in popup / when disabled, videos will open in plain modal
video_popup: true,

// default video thumbnail preview ratio for layout items / may adjust after thumbs load if `previews_update` is enabled
video_preview_ratio: 1.5, // default video layout ratio

// exposes the CodeMirror config object for customization / https://codemirror.net/5/doc/manual.html#config
codemirror: {},

// exposes the filesize.js config options / https://github.com/avoidwork/filesize.js
filesize: {
standard: 'iec' // 'jedec'
},

// left sidebar menu options / moved from config.php
menu: {
hidden: false, // start with menu hidden
expanded: false, // expand all recursive menu items on load
localStorage: true, // browser localStorage remembers menu hidden and expanded from user activity
},

// popup options
popup: {
autoplay: false, // autoplay slideshow on popup open
fullscreen: false, // enter fullscreen on popup open, and exit fullscreen on popup close (only works on user click)
open: false, // automatically opens first image on initial page load (only if first item is image)
},

// sort options (moved from config.php)
sort: {
default: 'name_asc', // 'name_asc' | 'name_desc' | 'kind_asc' | 'kind_desc' | 'size_asc' | 'size_desc' | 'date_asc' | 'date_desc' | 'shuffle'
dirs_first: true, // sort dirs first
function: 'locale', // 'locale' | 'basic' | '{ custom locale }' / https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare
},
}