Skip to content

Commit a07fbef

Browse files
committed
use HTML character entity names
1 parent 17b1bc0 commit a07fbef

File tree

2 files changed

+84
-84
lines changed

2 files changed

+84
-84
lines changed

public/js/playingcards.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ SUITE =
3232
color: 'black'
3333
diamond:
3434
name: 'diamond'
35-
symbol: ''
35+
symbol: '♦'
3636
color: 'red'
3737
spade:
3838
name: 'spade'
39-
symbol: ''
39+
symbol: '♠'
4040
color: 'black'
4141
heart:
4242
name: 'heart'
43-
symbol: ''
43+
symbol: '♥'
4444
color: 'red'
4545

4646
SUITES = [

views/mixins/playingcards.jade

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -6,164 +6,164 @@ script#card-two(type='text/x-mustache-template')
66
.card-two
77
.corner.top
88
span.number 2
9-
span {{suite.symbol}}
10-
span.suit.top_center {{suite.symbol}}
11-
span.suit.bottom_center {{suite.symbol}}
9+
span {{{suite.symbol}}}
10+
span.suit.top_center {{{suite.symbol}}}
11+
span.suit.bottom_center {{{suite.symbol}}}
1212
.corner.bottom
1313
span.number 2
14-
span {{suite.symbol}}
14+
span {{{suite.symbol}}}
1515
script#card-three(type='text/x-mustache-template')
1616
.card-three
1717
.corner.top
1818
span.number 3
19-
span {{suite.symbol}}
20-
span.suit.top_center {{suite.symbol}}
21-
span.suit.middle_center {{suite.symbol}}
22-
span.suit.bottom_center {{suite.symbol}}
19+
span {{{suite.symbol}}}
20+
span.suit.top_center {{{suite.symbol}}}
21+
span.suit.middle_center {{{suite.symbol}}}
22+
span.suit.bottom_center {{{suite.symbol}}}
2323
.corner.bottom
2424
span.number 3
25-
span {{suite.symbol}}
25+
span {{{suite.symbol}}}
2626
script#card-four(type='text/x-mustache-template')
2727
.card-four
2828
.corner.top
2929
span.number 4
30-
span {{suite.symbol}}
31-
span.suit.top_left {{suite.symbol}}
32-
span.suit.top_right {{suite.symbol}}
33-
span.suit.bottom_left {{suite.symbol}}
34-
span.suit.bottom_right {{suite.symbol}}
30+
span {{{suite.symbol}}}
31+
span.suit.top_left {{{suite.symbol}}}
32+
span.suit.top_right {{{suite.symbol}}}
33+
span.suit.bottom_left {{{suite.symbol}}}
34+
span.suit.bottom_right {{{suite.symbol}}}
3535
.corner.bottom
3636
span.number 4
37-
span {{suite.symbol}}
37+
span {{{suite.symbol}}}
3838
script#card-five(type='text/x-mustache-template')
3939
.card-five
4040
.corner.top
4141
span.number 5
42-
span {{suite.symbol}}
43-
span.suit.top_left {{suite.symbol}}
44-
span.suit.top_right {{suite.symbol}}
45-
span.suit.middle_center {{suite.symbol}}
46-
span.suit.bottom_left {{suite.symbol}}
47-
span.suit.bottom_right {{suite.symbol}}
42+
span {{{suite.symbol}}}
43+
span.suit.top_left {{{suite.symbol}}}
44+
span.suit.top_right {{{suite.symbol}}}
45+
span.suit.middle_center {{{suite.symbol}}}
46+
span.suit.bottom_left {{{suite.symbol}}}
47+
span.suit.bottom_right {{{suite.symbol}}}
4848
.corner.bottom
4949
span.number 5
50-
span {{suite.symbol}}
50+
span {{{suite.symbol}}}
5151
script#card-six(type='text/x-mustache-template')
5252
.card-six
5353
.corner.top
5454
span.number 6
55-
span {{suite.symbol}}
56-
span.suit.top_left {{suite.symbol}}
57-
span.suit.top_right {{suite.symbol}}
58-
span.suit.middle_left {{suite.symbol}}
59-
span.suit.middle_right {{suite.symbol}}
60-
span.suit.bottom_left {{suite.symbol}}
61-
span.suit.bottom_right {{suite.symbol}}
55+
span {{{suite.symbol}}}
56+
span.suit.top_left {{{suite.symbol}}}
57+
span.suit.top_right {{{suite.symbol}}}
58+
span.suit.middle_left {{{suite.symbol}}}
59+
span.suit.middle_right {{{suite.symbol}}}
60+
span.suit.bottom_left {{{suite.symbol}}}
61+
span.suit.bottom_right {{{suite.symbol}}}
6262
.corner.bottom
6363
span.number 6
64-
span {{suite.symbol}}
64+
span {{{suite.symbol}}}
6565
script#card-seven(type='text/x-mustache-template')
6666
.card-seven
6767
.corner.top
6868
span.number 7
69-
span {{suite.symbol}}
70-
span.suit.top_left {{suite.symbol}}
71-
span.suit.top_right {{suite.symbol}}
72-
span.suit.middle_left {{suite.symbol}}
73-
span.suit.middle_top {{suite.symbol}}
74-
span.suit.middle_right {{suite.symbol}}
75-
span.suit.bottom_left {{suite.symbol}}
76-
span.suit.bottom_right {{suite.symbol}}
69+
span {{{suite.symbol}}}
70+
span.suit.top_left {{{suite.symbol}}}
71+
span.suit.top_right {{{suite.symbol}}}
72+
span.suit.middle_left {{{suite.symbol}}}
73+
span.suit.middle_top {{{suite.symbol}}}
74+
span.suit.middle_right {{{suite.symbol}}}
75+
span.suit.bottom_left {{{suite.symbol}}}
76+
span.suit.bottom_right {{{suite.symbol}}}
7777
.corner.bottom
7878
span.number 7
79-
span {{suite.symbol}}
79+
span {{{suite.symbol}}}
8080
script#card-eight(type='text/x-mustache-template')
8181
.card-eight
8282
.corner.top
8383
span.number 8
84-
span {{suite.symbol}}
85-
span.suit.top_left {{suite.symbol}}
86-
span.suit.top_right {{suite.symbol}}
87-
span.suit.middle_left {{suite.symbol}}
88-
span.suit.middle_top {{suite.symbol}}
89-
span.suit.middle_right {{suite.symbol}}
90-
span.suit.middle_bottom {{suite.symbol}}
91-
span.suit.bottom_left {{suite.symbol}}
92-
span.suit.bottom_right {{suite.symbol}}
84+
span {{{suite.symbol}}}
85+
span.suit.top_left {{{suite.symbol}}}
86+
span.suit.top_right {{{suite.symbol}}}
87+
span.suit.middle_left {{{suite.symbol}}}
88+
span.suit.middle_top {{{suite.symbol}}}
89+
span.suit.middle_right {{{suite.symbol}}}
90+
span.suit.middle_bottom {{{suite.symbol}}}
91+
span.suit.bottom_left {{{suite.symbol}}}
92+
span.suit.bottom_right {{{suite.symbol}}}
9393
.corner.bottom
9494
span.number 8
95-
span {{suite.symbol}}
95+
span {{{suite.symbol}}}
9696
script#card-nine(type='text/x-mustache-template')
9797
.card-nine
9898
.corner.top
9999
span.number 9
100-
span {{suite.symbol}}
101-
span.suit.top_left {{suite.symbol}}
102-
span.suit.top_right {{suite.symbol}}
103-
span.suit.middle_top_left {{suite.symbol}}
104-
span.suit.middle_center {{suite.symbol}}
105-
span.suit.middle_top_right {{suite.symbol}}
106-
span.suit.bottom_left {{suite.symbol}}
107-
span.suit.bottom_right {{suite.symbol}}
108-
span.suit.middle_bottom_left {{suite.symbol}}
109-
span.suit.middle_bottom_right {{suite.symbol}}
100+
span {{{suite.symbol}}}
101+
span.suit.top_left {{{suite.symbol}}}
102+
span.suit.top_right {{{suite.symbol}}}
103+
span.suit.middle_top_left {{{suite.symbol}}}
104+
span.suit.middle_center {{{suite.symbol}}}
105+
span.suit.middle_top_right {{{suite.symbol}}}
106+
span.suit.bottom_left {{{suite.symbol}}}
107+
span.suit.bottom_right {{{suite.symbol}}}
108+
span.suit.middle_bottom_left {{{suite.symbol}}}
109+
span.suit.middle_bottom_right {{{suite.symbol}}}
110110
.corner.bottom
111111
span.number 9
112-
span {{suite.symbol}}
112+
span {{{suite.symbol}}}
113113
script#card-ten(type='text/x-mustache-template')
114114
.card-ten
115115
.corner.top
116116
span.number 10
117-
span {{suite.symbol}}
118-
span.suit.top_left {{suite.symbol}}
119-
span.suit.top_right {{suite.symbol}}
120-
span.suit.middle_top_left {{suite.symbol}}
121-
span.suit.middle_top_center {{suite.symbol}}
122-
span.suit.middle_top_right {{suite.symbol}}
123-
span.suit.bottom_left {{suite.symbol}}
124-
span.suit.bottom_right {{suite.symbol}}
125-
span.suit.middle_bottom_center {{suite.symbol}}
126-
span.suit.middle_bottom_left {{suite.symbol}}
127-
span.suit.middle_bottom_right {{suite.symbol}}
117+
span {{{suite.symbol}}}
118+
span.suit.top_left {{{suite.symbol}}}
119+
span.suit.top_right {{{suite.symbol}}}
120+
span.suit.middle_top_left {{{suite.symbol}}}
121+
span.suit.middle_top_center {{{suite.symbol}}}
122+
span.suit.middle_top_right {{{suite.symbol}}}
123+
span.suit.bottom_left {{{suite.symbol}}}
124+
span.suit.bottom_right {{{suite.symbol}}}
125+
span.suit.middle_bottom_center {{{suite.symbol}}}
126+
span.suit.middle_bottom_left {{{suite.symbol}}}
127+
span.suit.middle_bottom_right {{{suite.symbol}}}
128128
.corner.bottom
129129
span.number 10
130-
span {{suite.symbol}}
130+
span {{{suite.symbol}}}
131131
script#card-jack(type='text/x-mustache-template')
132132
.card-jack
133133
.corner.top
134134
span.number J
135-
span {{suite.symbol}}
135+
span {{{suite.symbol}}}
136136
span.face.middle_center
137137
img(src='img/faces/face-jack-{{suite.name}}.png')
138138
.corner.bottom
139139
span.number J
140-
span {{suite.symbol}}
140+
span {{{suite.symbol}}}
141141
script#card-queen(type='text/x-mustache-template')
142142
.card-queen
143143
.corner.top
144144
span.number Q
145-
span {{suite.symbol}}
145+
span {{{suite.symbol}}}
146146
span.face.middle_center
147147
img(src='img/faces/face-queen-{{suite.name}}.png')
148148
.corner.bottom
149149
span.number Q
150-
span {{suite.symbol}}
150+
span {{{suite.symbol}}}
151151
script#card-king(type='text/x-mustache-template')
152152
.card-king
153153
.corner.top
154154
span.number K
155-
span {{suite.symbol}}
155+
span {{{suite.symbol}}}
156156
span.face.middle_center
157157
img(src='img/faces/face-king-{{suite.name}}.png')
158158
.corner.bottom
159159
span.number K
160-
span {{suite.symbol}}
160+
span {{{suite.symbol}}}
161161
script#card-ace(type='text/x-mustache-template')
162162
.card-ace
163163
.corner.top
164164
span.number A
165-
span {{suite.symbol}}
166-
span.suit.middle_center {{suite.symbol}}
165+
span {{{suite.symbol}}}
166+
span.suit.middle_center {{{suite.symbol}}}
167167
.corner.bottom
168168
span.number A
169-
span {{suite.symbol}}
169+
span {{{suite.symbol}}}

0 commit comments

Comments
 (0)