More minor UI adjustments

This commit is contained in:
da
2017-01-22 13:01:56 +01:00
parent b246523ca3
commit d230e92e59
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -7,6 +7,9 @@
};
$.post("/playsound", data, function(data, success) {});
}
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
</script>
<a href="/logout">Logout</a><br/>
{{ end }}
+1 -1
View File
@@ -1 +1 @@
<div class="col-sm-3 text-center"><div class="sounditem" style="background-image: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)), url(/static/img/{{ .Itemprefix }}.jpg); background-size: 100%;"><a href="#" data-toggle="tooltip" title="{{ .Itemtext }}">{{ .Itemcommand }} {{ .Itemsoundname }}</a><br/>{{ .Itemshorttext }}<br/><a class="btn btn-default" href="javascript:playSound('{{ .Itemcommand }}', '{{ .Itemsoundname }}')" role="button">Play!</a></div></div>
<div class="col-sm-3 text-center"><div class="sounditem" style="background-image: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)), url(/static/img/{{ .Itemprefix }}.jpg); background-size: 100%;"><div data-toggle="popover" data-placement="top" data-content="{{ .Itemtext }}">{{ .Itemcommand }} {{ .Itemsoundname }}<br/>{{ .Itemshorttext }}<br/><a class="btn btn-default" href="javascript:playSound('{{ .Itemcommand }}', '{{ .Itemsoundname }}')" role="button">Play!</a></div></div></div>