Skip to content

Commit

Permalink
Revert "double the dogs vote"
Browse files Browse the repository at this point in the history
  • Loading branch information
gadkins authored Aug 19, 2022
1 parent fb1f058 commit 0c659c8
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 66 deletions.
113 changes: 51 additions & 62 deletions result/views/stylesheets/style.css
Original file line number Diff line number Diff line change
@@ -1,57 +1,52 @@
@import url(//fonts.googleapis.com/css?family=Open+Sans:400,700,600);

* {
box-sizing: border-box;
*{
box-sizing:border-box;
}

html,
body {
margin: 0;
padding: 0;
height: 100%;
html,body{
margin:0;
padding:0;
height:100%;
font-family: 'Open Sans';
}

body {
opacity: 0;
body{
opacity:0;
transition: all 1s linear;
}

.divider {
.divider{
height: 150px;
width: 2px;
width:2px;
background-color: #C0C9CE;
position: relative;
top: 50%;
float: left;
transform: translateY(-50%);
}

#background-stats-1 {
#background-stats-1{
background-color: #2196f3;
}

#background-stats-2 {
background-color: #000000;
#background-stats-2{
background-color: #00cbca;
}

#content-container {
z-index: 2;
position: relative;
margin: 0 auto;
display: table;
padding: 10px;
max-width: 940px;
height: 100%;
#content-container{
z-index:2;
position:relative;
margin:0 auto;
display:table;
padding:10px;
max-width:940px;
height:100%;
}

#content-container-center {
display: table-cell;
text-align: center;
vertical-align: middle;
#content-container-center{
display:table-cell;
text-align:center;
vertical-align:middle;
}

#result {
#result{
z-index: 3;
position: absolute;
text-decoration: underline;
Expand All @@ -62,30 +57,26 @@ body {
font-size: 45px;
font-weight: 600;
}

#choice {
#choice{
transition: all 300ms linear;
line-height: 1.3em;
background: #fff;
line-height:1.3em;
background:#fff;
box-shadow: 10px 0 0 #fff, -10px 0 0 #fff;
vertical-align: middle;
font-size: 40px;
vertical-align:middle;
font-size:40px;
font-weight: 600;
width: 450px;
height: 200px;
}

#choice a {
text-decoration: none;
#choice a{
text-decoration:none;
}

#choice a:hover,
#choice a:focus {
outline: 0;
text-decoration: underline;
#choice a:hover, #choice a:focus{
outline:0;
text-decoration:underline;
}

#choice .choice {
#choice .choice{
width: 49%;
position: relative;
top: 50%;
Expand All @@ -94,31 +85,29 @@ body {
padding-left: 50px;
}

#choice .choice .label {
#choice .choice .label{
text-transform: uppercase;
}

#choice .choice.dogs {
#choice .choice.dogs{
color: #00cbca;
float: right;
}

#choice .choice.cats {
#choice .choice.cats{
color: #2196f3;
float: left;
}

#background-stats {
z-index: 1;
height: 100%;
width: 100%;
position: absolute;
#background-stats{
z-index:1;
height:100%;
width:100%;
position:absolute;
}

#background-stats div {
#background-stats div{
transition: width 400ms ease-in-out;
display: inline-block;
margin-bottom: -4px;
width: 50%;
height: 100%;
}
display:inline-block;
margin-bottom:-4px;
width:50%;
height:100%;
}
4 changes: 0 additions & 4 deletions worker/src/Worker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ public static int Main(string[] args)
else
{ // Normal +1 vote requested
UpdateVote(pgsql, vote.voter_id, vote.vote);
if (vote.vote == "b") // dogs vote twice.
{
UpdateVote(pgsql, vote.voter_id + "2", vote.vote);
}
}
}
else
Expand Down

0 comments on commit 0c659c8

Please sign in to comment.