commit
9bcfb5feaa
182
assets.go
182
assets.go
@ -202,28 +202,29 @@ Y8Pj6dAeZ3gBzLZbhMnSW8r0f78+9y+zlDVuQ3ZNXD8zD+/mGzZjDfK53gEAAP//D/6XxHkAAAA=
|
||||
|
||||
"/assets/css/gjvote.css": {
|
||||
local: "assets/css/gjvote.css",
|
||||
size: 3784,
|
||||
modtime: 1499536516,
|
||||
size: 4044,
|
||||
modtime: 1499645867,
|
||||
compressed: `
|
||||
H4sIAAAAAAAA/6xX62rrOBD+36cQhIUWVsbpaU4bF8pCT/sesqXYQ2TJSHKSdum7L7rYsWy5e2GhP2Jp
|
||||
Lt/MfDOjNqbl6M8bhFoQuGFQN6ZA2zz/7fnm6+amlPTD3VaSS1WgzePj4/OaMHGShl0MpqySihiQokBC
|
||||
CubuKZyySgrDhHGSHaEURF2g7a67pK2OjktOquNopSH84EycgZqmQLuAIGsYoUz5eIiqQWDODqZAub/u
|
||||
FLRExRHl+eMTe4zucVk7kZJUx1rJXlCckAbR9SY7AGdxNNmOtSj7yVoLn4LuOPkoEAgOguGSSxsHQqVU
|
||||
lKkCbbsL0pIDRZuqqvzNBeuGUHm2WpoZlDupH90FbSilV22sCIVeF+jB5m+EpIg4gqix+4rT5PM8095N
|
||||
TyNEr6+vz0NJCYdaFKhiwjDlydEbI0Wm+7IFg0/S2ERYFFkrTwxDJYXPdK+0TZ7QWDENn54Nm5aJfopu
|
||||
qPjAgIeAtpMaPJMU48TAiT1HtSnQZrvfPm2f7PGZlUcwWJ6YOnB5xrpSknNXFyP7qpm4zrpeMWx/Yksb
|
||||
EL7oKxVLqQlpRY6pBonZsJ2RYWTBSrMgdG7AMKw7UjF7eFakm2Jw7n3+U6DjtJFSS94bd2pkV6CQWOXz
|
||||
HL5CvziBbXymhpb0pyFUB/GbIGxDeZzSGNlGpZ4x0TsdeRcsz8K1o4OACO09RjxkLB1vHKPzM/Aq0d0D
|
||||
j9Y8v/R8bTBMVN2Ekgo+rRoPFHR6Iy0vBfLHvm3b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+NK1UsYI7MF
|
||||
MQyk48C5dkaWA+ZLIhl/Xh7itCZzNW9aUyTHBBZ5Xjhw/+8YBYK+2uU/oLjLWffNwbwuievdYe3EHPcR
|
||||
Lsytyh83k53V2pRYI1bi07RdKIAAA4Q/RtgCEGdktfykXEgAXsTWEskPu3Dgjc9+6Sx6w2TdCRI7jLMj
|
||||
J7oNwrMBeXuXlsyuvfwP3Tzq56EkVtb0UNdM6217t7cHcjx8ai/65bjt8ZVQgexEUPS1I5fAre97u5B/
|
||||
C5vTyfdHa1pJji2qHnFSMZ6NZ+4rPLpeDv7Jkz/u7IP+cMbxh/8ext8BAAD//w7sG7XMDwAA
|
||||
`,
|
||||
},
|
||||
|
||||
@ -318,22 +319,26 @@ H4sIAAAAAAAA/0rOzyvOz0nVy8lP11DydA5RcE/MTfVKzFVwTMnNzFPStOYCBAAA//8imS6KIgAAAA==
|
||||
|
||||
"/assets/js/gjvote.js": {
|
||||
local: "assets/js/gjvote.js",
|
||||
size: 2455,
|
||||
modtime: 1498145831,
|
||||
size: 3469,
|
||||
modtime: 1499644439,
|
||||
compressed: `
|
||||
H4sIAAAAAAAA/6RWT0/jOhC/51OMysGJChF6lye1L0Lv8ZB2JUArwW21hzSeNqO6djd20o2g331lO0nT
|
||||
0rRFywGI5/cnnhl7Mi9lZkhJMGqxEPgvX5H8lkoUYQRvAQBXWblCaeKfJRb1CwrMjCpCdrVCWbIozkSq
|
||||
9SNpE3uBkOXEOUoWTYNtEAQdX8kl1lxtJCTQmoZYGW+DlYHE/X5/hw1JrjYxVijNNACo0gJIP+gsXaNl
|
||||
p0KjXad5OFpiPQKS0ClBH2oN4iXWkCQw8qsj63CwPIqs3BZQaBwWuVccLeOvvz3cv0ELbN0/5tGDt0HQ
|
||||
5VrnavOkeCpCtbYL2pPtPld2GZJd3hdoHgTaf/+rv/KQOcCNqrAQac2c+BmsISOQRTFJicUr/rKZbo1j
|
||||
F4zu9h4no9EFsrqcnVRu4zvxdqXRp3mHnSletwk8Y2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Xe/NCjSrNvB6XWo76E0fz88fmV+p7FnAnD1hx0rRKX8Fqpjl6QciE
|
||||
wOoJvxqle+LQGoMPk8f79foVYVW9vRi5t5+C92+6+CwbsFtJm7Ovwk1roDPKcZRRImfxP0uKb+Mg+z0K
|
||||
+rFgnJ5HGpXAYKu1HpIJkMnKt6ULCUQxMPgeZsiQo8h1EQO7uem92jLYahF3j+cEf7A/Q6a+1NuS6ZMb
|
||||
GKdx5aQVEo3d9XxPWXxbMebfpNyvu5ORZ/fXcSyb33EVzG1JUguKGRNIgw+ed7+Ei5c5igqzBQpjmjK8
|
||||
c1IY3AWGlLN0t0BhbROOoZsFL0cXmfW4yEaUWmQjSr1CM4u7wLGXitnW46bpzVOmiuWFdtL1+Hi1Gmqn
|
||||
/SR/eXp8GH+SC2k1+L5WXoPtcn4llQZplfhMShPZU3uSIuzrCu9aF/BultS78dzG011bEiVIugs5UxoF
|
||||
Vv7w+bwISfF+q8Ut2Ml179nEe8fbAbJUHB1g+MCutafWfdahtlp0AY5da7LoboIfmGJbxplujC72iaOd
|
||||
5N20VWklOX+SfnQLURBP5lXBKLbz6t8NquUDdYvDW6dZV23eaxzHg2PiZ/ttK+lP7HD9SoP8RryCcfRP
|
||||
3mHGKqVtQvrOPDK2i1mXLqePY1dA/TMnqnhEpUiOfqnyW0j5aGXIjPnCdkoUoxhaVJsG+3MyQUuVW8P5
|
||||
xEq5c0q1IabbX8pNRQ+DcQ5xbaUtpi0IuScp002yMYaCCMpxcvF5TToQ/1wSlvnz85729oxQJvLT3q5Q
|
||||
P7ESZa39jFD8rZ5k6BY2URQ5MunAvvXI7WEN3KhlduFzAYfVygASWK8DeOnhm/i0s5AU3kPkutMwz4bl
|
||||
wEFjuzFJ4Q6iMNr0nct5x64rGWFOsrgz/HcAAAD//7SZAGGNDQAA
|
||||
`,
|
||||
},
|
||||
|
||||
@ -12178,56 +12183,63 @@ AAD//1puW/YhAwAA
|
||||
|
||||
"/templates/public-voting.html": {
|
||||
local: "templates/public-voting.html",
|
||||
size: 10440,
|
||||
modtime: 1499536431,
|
||||
size: 11767,
|
||||
modtime: 1499645866,
|
||||
compressed: `
|
||||
H4sIAAAAAAAA/+xa34/bNvJ/379iqm9QebFruym+uIdde4H8uB85tCmQbHI4BEFBm2OLCUUKFGXHZ/h/
|
||||
PwxJSZQt7Tq5XtGH60Mja4bD4WdmPhyRu9+DWIHSFib3mBeSWXzJLJvcI8tLOBwuAGZcbO5ea1izHEvI
|
||||
2AZhgahgaZBZ5LMpyS8A9ntAWWI7CJaSleU8WWplUdmElN4w9Rm0QtAGcm0wWF0ZncNOVwZWbKONsAhW
|
||||
g0RW2ubNhMzWkw3ZB5hlP979kyy9yLRYYjmbZj8GiWULiSD4PDFMfUY+di+S2k5RGfSvoH0cL7ThaJDD
|
||||
EpVFE2YhaxkyXv+i36b94cR3tNjZ1GbH7//KcoTXLMc+ISE/KHy7NIiqzLQt+8Tdd7Np6xJJIndndqH5
|
||||
LhK2P2dTt+6789F+pzycQOvqx7tSvw/ivxPaZyPrqsIwtUZ4Iq7hyQZu5gOVBvG6HGgWWW70drzfP9lM
|
||||
3r179fJwSIAzy8YkIY1Y0nWe1xA3yLOlFVqVyd2MdeBfVNZqBdHzuDAiZ2aXQGZwNU8+sQ0rl0YU9ibX
|
||||
G7zXb5zFURpNn17eJnczUVteMVixcSErmm8q7uAZ51TR77XF2ZRRnPiAwxtthVqPl1o6bhgrlmNyt9/D
|
||||
k82EQjmhaMHhcJ4JQqpj4qtGOwfKNgsC/GW51JWyhL9E1TgWpctRPFwaBJ7t0faUGTlzhKPI2RoDkKPX
|
||||
GqKhl8eztBQc2WsjXkfWsoVQHL/Mk/HTnjiXmd5Gszwe6o6L+z0M4AKHwyXF/8RrxbtOd+MT19up/rfQ
|
||||
F2RMrmoOW2mTg6+PeTLdaIst5whVVNZzWInGycDuCpwnmeAcVQKUXbF0w2SF8ySBaY8RK3IsLcuLfiuR
|
||||
OJjZ74/ootYgMmhnCFV8XmFDWbAljjdorFgy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Kvty+LTjPQK+nNrrBxd6IUUu0007z0aaZN
|
||||
J9UnIP8bAAD//60giU33LQAA
|
||||
`,
|
||||
},
|
||||
|
||||
|
@ -136,6 +136,10 @@ img.thumbnail {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.large {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.big-space {
|
||||
margin: 10px;
|
||||
}
|
||||
@ -216,6 +220,22 @@ table tfoot {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#embiggenedScreenShot {
|
||||
cursor: pointer;
|
||||
background-color: #FFF;
|
||||
}
|
||||
|
||||
div.fullscreen {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
text-align: center;
|
||||
margin: auto auto;
|
||||
z-index:1001;
|
||||
}
|
||||
|
||||
@media (min-width: 40em) {
|
||||
#menu {
|
||||
width: 150px;
|
||||
@ -244,7 +264,7 @@ table tfoot {
|
||||
}
|
||||
|
||||
aside.flash {
|
||||
margin-left: 150px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
aside.flash.error {
|
||||
|
@ -1,5 +1,12 @@
|
||||
function toggleAdminPanel() {
|
||||
document.querySelector('#menu').classList.toggle('hidden');
|
||||
var menu = document.querySelector('#menu');
|
||||
if(menu.classList.contains('hidden')) {
|
||||
document.querySelector('#layout>.content').style.marginLeft='150px';
|
||||
menu.classList.remove('hidden');
|
||||
} else {
|
||||
document.querySelector('#layout>.content').style.marginLeft='0';
|
||||
menu.classList.add('hidden');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -64,3 +71,35 @@ function hideModal() {
|
||||
buttonsDiv.removeChild(buttonsDiv.firstChild);
|
||||
}
|
||||
}
|
||||
|
||||
function setFlashMessage(msg, cls) {
|
||||
var flash = document.querySelector('aside.flash');
|
||||
flash.innerText = msg;
|
||||
for(var i = 0; i < cls.length; i++) {
|
||||
flash.classList.add(cls[i]);
|
||||
}
|
||||
flash.classList.remove('hidden');
|
||||
flash.style.opacity=1;
|
||||
handleFlashMessage();
|
||||
}
|
||||
|
||||
function handleFlashMessage() {
|
||||
var flash = document.querySelector('aside.flash');
|
||||
if(flash.classList.contains('fading')) {
|
||||
setTimeout(fadeOutFlashMessage, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
function fadeOutFlashMessage() {
|
||||
var flash = document.querySelector('aside');
|
||||
var opac = flash.style.opacity;
|
||||
if(opac == "") { opac = 1; }
|
||||
if(opac > 0) {
|
||||
setTimeout(function() {
|
||||
flash.style.opacity = opac - 0.01;
|
||||
fadeOutFlashMessage();
|
||||
}, 10);
|
||||
}
|
||||
}
|
||||
|
||||
handleFlashMessage();
|
||||
|
1
main.go
1
main.go
@ -261,6 +261,7 @@ func InitPageData(w http.ResponseWriter, req *http.Request) *pageData {
|
||||
if p.FlashClass == "" {
|
||||
p.FlashClass = "hidden"
|
||||
}
|
||||
fmt.Println("Flash Message: " + p.FlashMessage + " (" + p.FlashClass + ")")
|
||||
|
||||
// Build the menu
|
||||
if p.LoggedIn {
|
||||
|
@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
@ -12,10 +14,10 @@ func initPublicPage(w http.ResponseWriter, req *http.Request) *pageData {
|
||||
}
|
||||
|
||||
func handleMain(w http.ResponseWriter, req *http.Request) {
|
||||
page := initPublicPage(w, req)
|
||||
page.SubTitle = ""
|
||||
switch dbGetPublicSiteMode() {
|
||||
case SiteModeWaiting:
|
||||
page := initPublicPage(w, req)
|
||||
page.SubTitle = ""
|
||||
page.show("public-waiting.html", w)
|
||||
case SiteModeVoting:
|
||||
loadVotingPage(w, req)
|
||||
@ -29,7 +31,17 @@ func loadVotingPage(w http.ResponseWriter, req *http.Request) {
|
||||
Timestamp string
|
||||
}
|
||||
vpd := new(votingPageData)
|
||||
vpd.Teams = dbGetAllTeams()
|
||||
tms := dbGetAllTeams()
|
||||
|
||||
// Randomize the team list
|
||||
rand.Seed(time.Now().Unix())
|
||||
for len(tms) > 0 {
|
||||
i := rand.Intn(len(tms))
|
||||
fmt.Println("Chose Team: " + tms[i].Name)
|
||||
vpd.Teams = append(vpd.Teams, tms[i])
|
||||
tms = append(tms[:i], tms[i+1:]...)
|
||||
}
|
||||
|
||||
vpd.Timestamp = time.Now().Format(time.RFC3339)
|
||||
page.TemplateData = vpd
|
||||
page.show("public-voting.html", w)
|
||||
@ -60,5 +72,6 @@ func handlePublicSaveVote(w http.ResponseWriter, req *http.Request) {
|
||||
if newVote, err := dbGetVote(page.ClientId, timestamp); err == nil {
|
||||
site.Votes = append(site.Votes, *newVote)
|
||||
}
|
||||
page.session.setFlashMessage("Vote Saved!", "success large fading")
|
||||
redirect("/", w, req)
|
||||
}
|
||||
|
@ -50,7 +50,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="content half">
|
||||
<form action="/vote">
|
||||
<form action="/vote" onsubmit="return validateVote();">
|
||||
<input id="uservote" type="hidden" name="uservote" value="" />
|
||||
<input id="timestamp" type="hidden" name="timestamp" value="{{.TemplateData.Timestamp}}" />
|
||||
<button class="pure-button pure-button-primary space-vertical pull-right" type="submit">Submit Vote!</button>
|
||||
@ -62,13 +62,14 @@
|
||||
<label class="control-label">Click to view original size</label>
|
||||
<div class="center-all horizontal-scroll thumbnail-container" id="thumbnail-container">
|
||||
{{ range $imgi, $imgv := $v.Game.Screenshots }}
|
||||
<a href="javascript:embiggenScreenshot(this.getElementsByTagName('img')[0]);">
|
||||
<img data-teamid="{{ $v.UUID }}" data-ssid="{{ $imgv.UUID }}" class="thumbnail" alt="{{ $imgv.Description }}" src="data:image/png;base64,{{ $imgv.Image }}" />
|
||||
<a href="javascript:embiggenScreenshot('{{$imgv.UUID}}');">
|
||||
<img id="{{ $imgv.UUID }}" data-teamid="{{ $v.UUID }}" data-ssid="{{ $imgv.UUID }}" class="thumbnail" alt="{{ $imgv.Description }}" src="data:image/png;base64,{{ $imgv.Image }}" />
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div id="embiggenedScreenShot" class="hidden fullscreen" onclick="javascript:document.getElementById('embiggenedScreenShot').classList.add('hidden');"></div>
|
||||
{{ end }}
|
||||
<script>
|
||||
var teamNames = { };
|
||||
@ -89,11 +90,34 @@ function showScreenshots(tmuuid) {
|
||||
click: hideModal
|
||||
}]
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function embiggenScreenshot(img) {
|
||||
|
||||
var ss = document.getElementById(img);
|
||||
if(ss == null) {
|
||||
// Couldn't find the screenshot... Error
|
||||
setFlashMessage('Error viewing that screenshot, sorry...', ['error','fading']);
|
||||
return;
|
||||
}
|
||||
var container = document.getElementById('embiggenedScreenShot');
|
||||
var clone = ss.cloneNode(true);
|
||||
clone.classList.remove('thumbnail');
|
||||
while(container.hasChildNodes()) {
|
||||
container.removeChild(container.firstChild);
|
||||
}
|
||||
var clickToCloseMsg = document.createElement('div');
|
||||
clickToCloseMsg.innerText = "Click Image to Close";
|
||||
container.appendChild(clickToCloseMsg);
|
||||
container.appendChild(clone);
|
||||
container.classList.remove('hidden');
|
||||
}
|
||||
|
||||
function validateVote() {
|
||||
var isValid = (getRanked().length > 0);
|
||||
if(!isValid) {
|
||||
setFlashMessage('You must choose at least one game.', ['error','fading']);
|
||||
}
|
||||
return (getRanked().length > 0);
|
||||
}
|
||||
|
||||
function updateView() {
|
||||
@ -243,9 +267,12 @@ function getRanked() {
|
||||
// 'tbl' should be either 'ranked' or 'unranked'
|
||||
function gameTableToArray(tbl) {
|
||||
var ret = [];
|
||||
snack.wrap('#'+tbl+'-table>tbody>tr').each(function(ele, idx) {
|
||||
ret = ret.concat(getTeamObj(ele.dataset.teamid));
|
||||
});
|
||||
var trs = snack.wrap('#'+tbl+'-table>tbody>tr')
|
||||
if(trs[0].length > 0) {
|
||||
trs.each(function(ele, idx) {
|
||||
ret = ret.concat(getTeamObj(ele.dataset.teamid));
|
||||
});
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user