mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-05 05:33:55 +01:00
29 lines
703 B
HTML
29 lines
703 B
HTML
<script>
|
|
{{- $dir := "/static/data/" }}
|
|
{{- $subdir := "abs" }}
|
|
{{- $files := readDir (path.Join $dir $subdir )}}
|
|
{{- $list := slice }}
|
|
function getAbsFilesName(){
|
|
{{- range $files }}
|
|
{{- $ext := path.Ext .Name}}
|
|
{{- if eq $ext ".dat" }}
|
|
{{- $list = $list | append (path.Join $subdir .Name) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
var files={{ $list }}
|
|
return files
|
|
}
|
|
{{- $subdir := "fluo" }}
|
|
{{- $files := readDir (path.Join $dir $subdir )}}
|
|
{{- $list := slice }}
|
|
function getFluoFilesName(){
|
|
{{- range $files }}
|
|
{{- $ext := path.Ext .Name}}
|
|
{{- if eq $ext ".dat" }}
|
|
{{- $list = $list | append (path.Join $subdir .Name) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
var files={{ $list }}
|
|
return files
|
|
}
|
|
</script> |