20 lines
775 B
Text
20 lines
775 B
Text
package metarefresh
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"git.sad.ovh/sophie/nuke"
|
|
"git.sad.ovh/sophie/nuke/lib/localization"
|
|
)
|
|
|
|
templ page(redir string, difficulty int, showMeta bool, loc *localization.SimpleLocalizer) {
|
|
<div class="centered-div">
|
|
<img id="image" style="width:100%;max-width:256px;" src={ nuke.BasePrefix + "/.within.website/x/cmd/nuke/static/img/pensive.webp?cacheBuster=" + nuke.Version }/>
|
|
<img style="display:none;" style="width:100%;max-width:256px;" src={ nuke.BasePrefix + "/.within.website/x/cmd/nuke/static/img/happy.webp?cacheBuster=" + nuke.Version }/>
|
|
<p id="status">{ loc.T("loading") }</p>
|
|
<p>{ loc.T("connection_security") }</p>
|
|
if showMeta {
|
|
<meta http-equiv="refresh" content={ fmt.Sprintf("%d; url=%s", difficulty+1, redir) }/>
|
|
}
|
|
</div>
|
|
}
|