-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathindex.html
More file actions
230 lines (214 loc) · 8.5 KB
/
index.html
File metadata and controls
230 lines (214 loc) · 8.5 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<!-- Facebook Meta Tags -->
<meta property="og:url" content="http://talishar.net/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Talishar - Free Browser-Based Flesh & Blood Platform" />
<meta
property="og:description"
content="Play Flesh & Blood instantly in your browser. Join 10,000+ daily players in our free, unofficial community platform. No downloads required. Test decks and improve your skills."
/>
<meta
property="og:image"
content="https://talishar.net/talisharog.png"
/>
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="talishar.net" />
<meta property="twitter:url" content="http://talishar.net/" />
<meta name="twitter:title" content="Talishar - Free Browser-Based Flesh & Blood Platform" />
<meta
name="twitter:description"
content="Play Flesh & Blood instantly in your browser. Join 10,000+ daily players in our free, unofficial community platform."
/>
<meta
name="twitter:image"
content="https://talishar.net/talisharog.png"
/>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" id="favicon" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta property="image" content="https://talishar.net/talisharog.png" />
<meta
name="description"
content="Talishar is the free, browser-based community platform for Flesh & Blood. Join 10,000+ daily players, test your decks, and compete with players worldwide. No downloads required. Play instantly on desktop, tablet, or mobile."
/>
<meta name="keywords" content="Flesh and Blood TCG, online card game, Talishar, FAB, trading card game, digital TCG, browser game, free to play" />
<meta name="author" content="Talishar Community" />
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Security-Policy-Report-Only"
content="
default-src 'self';
script-src 'self' 'unsafe-inline' 'unsafe-eval'
https://static.cloudflareinsights.com
https://cdn.jsdelivr.net
https://www.googletagmanager.com
https://www.google-analytics.com
https://js.rev.iq;
style-src 'self' 'unsafe-inline';
img-src 'self' data: https:;
font-src 'self' data: https:;
connect-src 'self' https:;
frame-src 'self'
https://www.youtube.com
https://www.youtube-nocookie.com;
object-src 'none';
"
/>
<base href="/" />
<link rel="manifest" href="/manifest.json" />
<link rel="canonical" href="https://talishar.net/" />
<title>Talishar</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KGM3BB1R29"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-KGM3BB1R29');
</script>
<!-- Schema.org Structured Data - Organization -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Talishar",
"description": "Free browser-based platform for playing Flesh & Blood Trading Card Game",
"url": "https://talishar.net",
"applicationCategory": "GameApplication",
"screenshot": "https://talishar.net/talisharog.png",
"operatingSystem": "Web Browser",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"ratingCount": "1000"
},
"author": {
"@type": "Organization",
"name": "Talishar Community",
"url": "https://talishar.net"
}
}
</script>
<!-- Schema.org Structured Data - Game Content -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoGame",
"name": "Talishar",
"url": "https://talishar.net",
"description": "Browser-based community platform for Flesh & Blood Trading Card Game",
"genre": ["Trading Card Game", "Multiplayer Online"],
"gamePlatform": ["Web Browser"],
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"author": {
"@type": "Organization",
"name": "Talishar Community"
},
"publisher": {
"@type": "Organization",
"name": "Talishar Community"
}
}
</script>
<!-- Schema.org Structured Data - Local Business (Community) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Community",
"name": "Talishar Community",
"url": "https://talishar.net",
"description": "Community-driven platform for Flesh & Blood TCG enthusiasts",
"sameAs": [
"https://discord.gg/JykuRkdd5S",
"https://github.com/Talishar/Talishar"
]
}
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script>
function ShowDetail(e, imgSource) {
const imgSrcPath = 'https://images.talishar.net/public/cardimages/english/';
imgSource = imgSource.replace('_cropped', '');
imgSource = imgSource.replace('./crops/', imgSrcPath);
imgSource = imgSource.replace('_concat', '');
imgSource = imgSource.replace('./concat/', imgSrcPath);
imgSource = imgSource.replace('./undefined./WebpImages', imgSrcPath);
imgSource = imgSource.replace('./WebpImages/', imgSrcPath);
imgSource = imgSource.replace('.png', '.webp');
imgSource = imgSource.replaceAll(' ', '_');
var el = document.getElementById('cardDetail');
// Update the image src instead of innerHTML to avoid flashing
var img = el.querySelector('img');
if (!img) {
img = document.createElement('img');
img.style.height = '523px';
img.style.width = '375px';
el.innerHTML = '';
el.appendChild(img);
}
img.src = imgSource;
// Position near cursor with slight offset to avoid hiding it
// Use a smaller offset (15px) so card follows cursor more closely
var offsetX = 15;
var offsetY = 15;
el.style.left = (e.clientX + offsetX) + 'px';
el.style.top = (e.clientY + offsetY) + 'px';
// Check bounds and adjust if card goes off-screen
// After a small delay to account for image dimensions
setTimeout(function() {
var rect = el.getBoundingClientRect();
if (rect.right > window.innerWidth) {
el.style.left = (e.clientX - 375 - offsetX) + 'px';
}
if (rect.bottom > window.innerHeight) {
el.style.top = (e.clientY - 523 - offsetY) + 'px';
}
}, 0);
el.style.position = 'fixed';
el.style.zIndex = '100000';
el.style.display = 'block';
}
function HideCardDetail() {
var el = document.getElementById('cardDetail');
el.style.display = 'none';
}
// Block Google vignette/interstitial injected by ad network demand partners.
// The #google_vignette hash is appended by Google's script before showing
// a fullscreen interstitial. Strip it immediately to prevent the ad from rendering.
(function() {
function stripVignetteHash() {
if (window.location.hash === '#google_vignette' ||
window.location.hash.indexOf('google_vignette') !== -1) {
history.replaceState(null, '', window.location.pathname + window.location.search);
}
}
stripVignetteHash();
window.addEventListener('hashchange', stripVignetteHash);
})();
</script>
</body>
</html>