-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathindex.html
More file actions
377 lines (354 loc) · 14.2 KB
/
Copy pathindex.html
File metadata and controls
377 lines (354 loc) · 14.2 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<!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 - Play FaB (Flesh & Blood) Free Online" />
<meta
property="og:description"
content="Play Flesh & Blood instantly in your browser. Join 10,000+ daily players in our free, unofficial community platform. Test decks and improve your skills. Help us keep the platform free: https://metafy.gg/@talishar"
/>
<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 - Play FaB (Flesh & Blood) Free Online" />
<meta
name="twitter:description"
content="Play Flesh & Blood instantly in your browser. Join 10,000+ daily players in our free, unofficial community platform. Help us keep the platform free: https://metafy.gg/@talishar"
/>
<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="Play FaB (Flesh & Blood) free online at Talishar, the community platform for the TCG. Join 10,000+ daily players, test your decks, and compete worldwide. No downloads required. Play instantly on desktop, tablet, or mobile."
/>
<meta name="keywords" content="play FaB for free online, FaB free online, play FaB online, Flesh and Blood TCG, play Flesh and Blood free, FAB online free, play FaB no download, online card game, Talishar, FAB, FaB, trading card game, digital TCG, browser card game, free to play, no download, browser game" />
<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;
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 - Play FaB (Flesh & Blood) Online</title>
<!-- 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 - FAQ -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Can I play FaB online for free?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Talishar is a free, browser-based platform for playing Flesh and Blood (FaB) online. No account required to spectate; free account to play."
}
},
{
"@type": "Question",
"name": "Do I need to download anything to play FaB online?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No downloads needed. Talishar runs entirely in your browser on desktop, tablet, and mobile."
}
},
{
"@type": "Question",
"name": "What is Talishar?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Talishar is the community-built platform for playing Flesh and Blood (FaB) online for free. It lets you find opponents, test decks, and play from any browser."
}
},
{
"@type": "Question",
"name": "How do I start playing FaB online?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Create a free account at talishar.net, then join or create a game from the lobby. You can be in a game within minutes."
}
}
]
}
</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>
<script type="module">
import { MELD_CARDS } from '/src/constants/meldCards.ts';
window.__MELD_CARDS__ = MELD_CARDS;
</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() {
var _origAddEL = EventTarget.prototype.addEventListener;
EventTarget.prototype.addEventListener = function(type, listener, opts) {
if (type === 'click' && this.nodeType === 1) {
var root = document.getElementById('root');
if (root && this !== root && root.contains(this)) return;
}
return _origAddEL.call(this, type, listener, opts);
};
})();
(function() {
var _origSP = Event.prototype.stopPropagation;
var _origSIP = Event.prototype.stopImmediatePropagation;
function isTalisharElement(el) {
if (!el) return false;
var root = document.getElementById('root');
if (root && root.contains(el)) return true;
var keys = Object.keys(el);
for (var i = 0; i < keys.length; i++) {
if (keys[i].indexOf('__reactFiber') === 0 || keys[i].indexOf('__reactProps') === 0) return true;
}
return false;
}
function isExternalInterception(evt) {
if (evt.type !== 'click') return false;
if (!isTalisharElement(evt.target)) return false;
var current = evt.currentTarget;
var root = document.getElementById('root');
return !current || !root.contains(current);
}
Event.prototype.stopPropagation = function() {
if (isExternalInterception(this)) return;
return _origSP.call(this);
};
Event.prototype.stopImmediatePropagation = function() {
if (isExternalInterception(this)) return;
return _origSIP.call(this);
};
})();
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');
el.innerHTML = '';
el.appendChild(img);
}
img.src = imgSource;
var fileName = imgSource.split('/').pop().replace('.webp', '');
var isMeld = !!(window.__MELD_CARDS__ && window.__MELD_CARDS__.has(fileName));
var boxWidth = isMeld ? 523 : 375;
var boxHeight = isMeld ? 375 : 523;
img.style.width = boxWidth + 'px';
img.style.height = boxHeight + 'px';
img.style.transform = 'none';
el.style.width = boxWidth + 'px';
el.style.height = boxHeight + 'px';
el.style.display = 'block';
// 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 - boxWidth - offsetX) + 'px';
}
if (rect.bottom > window.innerHeight) {
el.style.top = (e.clientY - boxHeight - offsetY) + 'px';
}
}, 0);
el.style.position = 'fixed';
el.style.zIndex = '100000';
}
function HideCardDetail() {
var el = document.getElementById('cardDetail');
el.style.display = 'none';
}
(function() {
var BLOCKED_HASHES = ['google_vignette', 'goog_rewarded'];
function isBlockedHash(hash) {
return hash && BLOCKED_HASHES.some(function(h) { return hash.indexOf(h) !== -1; });
}
function stripBlockedHash() {
if (isBlockedHash(window.location.hash)) {
history.replaceState(null, '', window.location.pathname + window.location.search);
}
}
stripBlockedHash();
window.addEventListener('hashchange', stripBlockedHash);
var origPushState = history.pushState.bind(history);
history.pushState = function(state, title, url) {
if (url && isBlockedHash(String(url))) return;
return origPushState(state, title, url);
};
var origReplaceState = history.replaceState.bind(history);
history.replaceState = function(state, title, url) {
if (url && isBlockedHash(String(url))) return;
return origReplaceState(state, title, url);
};
})();
(function() {
window.googletag = window.googletag || { cmd: [] };
var _pendingMakeVisible = null;
var _rewardGranted = false;
function setAdReady(ready) {
window._talishar_rewardedAdReady = ready;
window.dispatchEvent(
new CustomEvent('talishar:rewardedAdReady', { detail: { ready: ready } })
);
}
setAdReady(false);
window.googletag.cmd.push(function() {
var pubads = window.googletag.pubads();
var origOn = pubads.addEventListener.bind(pubads);
pubads.addEventListener = function(type, handler) {
if (type !== 'rewardedSlotReady') return origOn(type, handler);
return origOn(type, function(event) {
_pendingMakeVisible = event.makeRewardedVisible.bind(event);
setAdReady(true);
});
};
// Only fires once the viewer has watched enough of the ad to earn the reward.
origOn('rewardedSlotGranted', function() {
window._talishar_lockOverlays?.();
_rewardGranted = true;
});
origOn('rewardedSlotClosed', function() {
window._talishar_lockOverlays?.();
_pendingMakeVisible = null;
setAdReady(false);
if (_rewardGranted) {
_rewardGranted = false;
window._talishar_onRewardedAdGranted?.();
}
});
});
window._talishar_showRewarded = function() {
if (_pendingMakeVisible) {
window._talishar_unlockOverlays?.();
var show = _pendingMakeVisible;
_pendingMakeVisible = null;
setAdReady(false);
show();
return true;
}
return false;
};
})();
</script>
</body>
</html>