Ranunculales, Johann Sinnhuber, WAMZ & Peter Weinberg
This commit is contained in:
parent
f4b932f3e5
commit
ce6d0dd7a3
3 changed files with 2 additions and 10 deletions
|
@ -41,6 +41,7 @@ body {
|
||||||
background-color: #334d41;
|
background-color: #334d41;
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
#topbar button {
|
#topbar button {
|
||||||
background: none;
|
background: none;
|
||||||
|
@ -53,6 +54,7 @@ body {
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
#topbar button:hover {
|
#topbar button:hover {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
|
@ -10,26 +10,17 @@ var translate = Deck.translate
|
||||||
var $container = document.getElementById('container')
|
var $container = document.getElementById('container')
|
||||||
var $topbar = document.getElementById('topbar')
|
var $topbar = document.getElementById('topbar')
|
||||||
|
|
||||||
var $sort = document.createElement('button')
|
|
||||||
var $shuffle = document.createElement('button')
|
var $shuffle = document.createElement('button')
|
||||||
var $bysuit = document.createElement('button')
|
var $bysuit = document.createElement('button')
|
||||||
var $fan = document.createElement('button')
|
var $fan = document.createElement('button')
|
||||||
var $poker = document.createElement('button')
|
|
||||||
var $flip = document.createElement('button')
|
|
||||||
|
|
||||||
$shuffle.textContent = 'Shuffle'
|
$shuffle.textContent = 'Shuffle'
|
||||||
$sort.textContent = 'Sort'
|
|
||||||
$bysuit.textContent = 'By suit'
|
$bysuit.textContent = 'By suit'
|
||||||
$fan.textContent = 'Fan'
|
$fan.textContent = 'Fan'
|
||||||
$poker.textContent = 'Poker'
|
|
||||||
$flip.textContent = 'Flip'
|
|
||||||
|
|
||||||
$topbar.appendChild($flip)
|
|
||||||
$topbar.appendChild($shuffle)
|
$topbar.appendChild($shuffle)
|
||||||
$topbar.appendChild($bysuit)
|
$topbar.appendChild($bysuit)
|
||||||
$topbar.appendChild($fan)
|
$topbar.appendChild($fan)
|
||||||
$topbar.appendChild($poker)
|
|
||||||
$topbar.appendChild($sort)
|
|
||||||
|
|
||||||
var deck = Deck()
|
var deck = Deck()
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,6 @@
|
||||||
|
|
||||||
<canvas id="canvas-image"></canvas>
|
<canvas id="canvas-image"></canvas>
|
||||||
|
|
||||||
<script src="deck.js"></script>
|
|
||||||
<script src="deck.js"></script>
|
<script src="deck.js"></script>
|
||||||
|
|
||||||
<script src="example.js"></script>
|
<script src="example.js"></script>
|
||||||
|
|
Loading…
Reference in a new issue