mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Changed button styling
This commit is contained in:
parent
9014e5548e
commit
35cf37836d
1 changed files with 6 additions and 1 deletions
|
|
@ -76,5 +76,10 @@ func Login(config *Config, client *oauth.Client, provider *oidc.IdentityProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeButton(url string, text string) string {
|
func MakeButton(url string, text string) string {
|
||||||
return "<a href=\"" + url + "\"> " + text + "</a>"
|
html := "<input type=\"button\" "
|
||||||
|
html += "class=\"button\" "
|
||||||
|
html += fmt.Sprintf("onclick=\"window.location.href='%s';\" ", url)
|
||||||
|
html += fmt.Sprintf("value=\"%s\"", text)
|
||||||
|
return html
|
||||||
|
// return "<a href=\"" + url + "\"> " + text + "</a>"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue