23 lines
1.6 KiB
HTML
23 lines
1.6 KiB
HTML
<form action="/share" method="GET" class="share-buttons {{.type}}" target="_blank">
|
|
<input name="popup" id="no-share-popup-{{.type}}" type="radio" />
|
|
<input name="ref" value="pmpc-{{.type}}" type="hidden" />
|
|
<input name="url" value="{{ .url }}" type="hidden" />
|
|
<input id="sharetitle-{{.type}}" name="title" value="{{ .defaultSocialText }}" type="hidden" />
|
|
<input class="n" name="website" placeholder="Please do not put anything here" />
|
|
|
|
{{ range .data }}
|
|
{{ if eq .userinput true }}
|
|
<label class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" for="{{ .id }}-share-{{$.type}}">{{if eq $.type "side" }} {{else}}{{.name}}{{end}}</label>
|
|
<input name="popup" id="{{ .id }}-share-{{$.type}}" type="radio" />
|
|
<span class="popup {{ .id }}">
|
|
<label for="no-share-popup-{{$.type}}"></label>
|
|
<input name="{{ .id }}pod" value="" placeholder="{{ .name }} URL ({{ .id }}.tld)" type="text" />
|
|
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitle_{{$.type | safeJS }}('{{if isset . "customText"}}{{.customText}}{{else}}{{$.defaultSocialText}}{{end}}')">OK</button>
|
|
</span>
|
|
{{ end }}
|
|
{{ if ne .userinput true }}
|
|
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" onclick="return changeTitle{{$.type | safeJS}}('{{if isset . "customText"}}{{.customText}}{{else}}{{$.defaultSocialText}}{{end}}')">{{if eq $.type "side" }} {{else}}{{.name}}{{end}}</button>
|
|
{{ end }}
|
|
{{ end }}
|
|
</form>
|