mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 13:13:55 +01:00
38 lines
954 B
HTML
38 lines
954 B
HTML
<script>
|
|
{{- $files := readDir "/static/data/abs" }}
|
|
{{- $list := slice }}
|
|
function getAbsFilesName(){
|
|
{{- range $files }}
|
|
{{- $ext := path.Ext .Name}}
|
|
{{- if eq $ext ".dat" }}
|
|
{{- $list = $list | append (print "abs/" .Name) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
var files=JSON.parse({{ jsonify $list }})
|
|
return files
|
|
}
|
|
{{- $files := readDir "/static/data/fluo" }}
|
|
{{- $list := slice }}
|
|
function getFluoFilesName(){
|
|
{{- range $files }}
|
|
{{- $ext := path.Ext .Name}}
|
|
{{- if eq $ext ".dat" }}
|
|
{{- $list = $list | append (print "fluo/" .Name) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
var files=JSON.parse({{ jsonify $list }})
|
|
return files
|
|
}
|
|
{{- $files := readDir "/static/data/zpe" }}
|
|
{{- $list := slice }}
|
|
function getZPEFilesName(){
|
|
{{- range $files }}
|
|
{{- $ext := path.Ext .Name}}
|
|
{{- if eq $ext ".dat" }}
|
|
{{- $list = $list | append (print "zpe/" .Name )}}
|
|
{{- end }}
|
|
{{- end }}
|
|
var files=JSON.parse({{ jsonify $list }})
|
|
return files
|
|
}
|
|
</script> |