2019-09-14 19:37:18 +02:00
|
|
|
<script>
|
2019-09-26 09:32:03 +02:00
|
|
|
{{- $files := readDir "/static/data/abs" }}
|
2019-09-14 20:09:54 +02:00
|
|
|
{{- $list := slice }}
|
2019-09-26 09:32:03 +02:00
|
|
|
function getAbsFilesName(){
|
2019-09-14 19:37:18 +02:00
|
|
|
{{- 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
|
|
|
|
}
|
|
|
|
{{- $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 )}}
|
2019-09-17 17:18:45 +02:00
|
|
|
{{- end }}
|
2019-09-14 19:37:18 +02:00
|
|
|
{{- end }}
|
2019-09-14 20:09:54 +02:00
|
|
|
var files=JSON.parse({{ jsonify $list }})
|
2019-09-14 19:37:18 +02:00
|
|
|
return files
|
|
|
|
}
|
|
|
|
</script>
|