-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuspresidents.html
119 lines (92 loc) · 2.05 KB
/
uspresidents.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/brython@3.10/brython.min.js">
</script>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/brython@3.10/brython_stdlib.js">
</script>
<link rel="stylesheet" href="./engmonarchs/style.css">
<style>
/* holds the cards */
div.rank-holder {
position: absolute;
left: 40px; /* LHS of Ranking slots */
top: 20px; /* Top of same */
width: 20px; /* Horizontal margin of same */
height: 20px; /* vertical margin of same */
}
div.rank {
width: 140px;
height: 200px;
margin: 10px;
background-color: #ff3bbd30;
border: 8px solid black;
border-radius: 10px;
}
div.card {
width: 120px;
height: 180px;
border-radius: 10px;
background-color: lightblue;
padding: 2px;
margin: 3px;
border: 5px solid white;
}
div.card-body {
width: inherit;
height: inherit;
margin: 2px;
border-radius: inherit;
}
div.card-text {
width: inherit;
height: inherit - 30px;
margin: 2px;
/* background-color: white; */
font-size: small;
font-family: sans-serif;
text-align: center;
}
div.date {
font-weight: bold;
font-size: large;
}
img {
width: 100%;
height: 140px;
/* height: 100%; */
}
button.button2 {
background-color: white;
border: 2px solid black;
border-radius: 10px;
}
span.button-text {
font-size: medium;
font-family: sans-serif;
text-align: center;
}
</style>
</head>
<body onload="brython()">
<!--
<script type="text/python" src="rainbow.py"> </script>
-->
<script type="text/python">
import sys,random,re
import presidentdata
import dragdrop
from browser import document, html
import presidents
import presidents
arrangement=list(range(len(presidentdata.presidentdata)))
random.shuffle(arrangement)
order=arrangement[:12]
deck=[presidentdata.presidentdata[p] for p in order]
presidents.DragDrop(deck,order).createLayout(4)
</script>
</body>
</html>