10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-27 06:43:47 +01:00
QUESTDB_website/layouts/shortcodes/getDataFilesName.html

26 lines
643 B
HTML
Raw Normal View History

<script>
2019-09-26 09:32:03 +02:00
{{- $files := readDir "/static/data/abs" }}
{{- $list := slice }}
2019-09-26 09:32:03 +02:00
function getAbsFilesName(){
{{- range $files }}
2019-09-17 17:18:45 +02:00
{{- $ext := path.Ext .Name}}
{{- if eq $ext ".dat" }}
2019-09-26 09:32:03 +02:00
{{- $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
}
</script>