-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
760 lines (685 loc) · 28.6 KB
/
index.html
File metadata and controls
760 lines (685 loc) · 28.6 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
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PREDICTOR-PRO</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./css/bootstrap.css">
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./owlcarousel/owl.carousel.min.css">
<link rel="stylesheet" href="./owlcarousel/owl.theme.default.min.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<header>
<nav id="navbar-scroll-boo" class="navbar fixed-top navbar-expand-lg navbar-dark nav-color text-uppercase">
<div class="container">
<a class="navbar-brand logo" href="#"><span>PREDICTOR</span> PRO</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse navbar-position" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item list-style">
<a class="nav-link active" aria-current="page" href="#home">Home</a>
</li>
<li class="nav-item dropdown list-style">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
about us
</a>
<ul class="dropdown-menu nav-color" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item dropdown-style" href="#whoWeAre">who we are?</a></li>
<li><a class="dropdown-item dropdown-style" href="#howItWork">how it works?</a></li>
</ul>
</li>
<li class="nav-item list-style">
<a class="nav-link" href="#courses">results</a>
</li>
<li class="nav-item list-style">
<a class="nav-link" href="#contact">contact</a>
</li>
<li class="nav-item list-style">
<a class="nav-link" href="#whatWeDo">predict</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- vidéo -->
<div id="home" class="overlay"></div>
<video playsinline="playsinline" autoplay="autoplay" muted="muted" loop="loop">
<source src="./images/header3.mp4" type="video/mp4">
</video>
<!-- Endvidéo -->
<div class="container description text-uppercase">
<p>
FOOTBALL MATCH PREDICTION
</p>
<h1>
<span>YOUR</span> BETTING ASSISTANT
</h1>
<button>Start Predicting</button>
</div>
</header>
<div data-bs-spy="scroll" data-bs-target="#navbar-scroll-boo" data-bs-offset="0" class="scrollspy-example"
tabindex="0">
<section class="features">
<div class="container">
<div class="row">
<!-- Feature 1 -->
<div class="col-lg-4 col-md-12 col-sm-12 col-12">
<div class="features-post">
<div class="features-content">
<div class="content-show">
<h4>
<i class="fas fa-chart-line"></i> AI Match Predictions
</h4>
</div>
<div class="content collapsed">
<p class="d-none d-lg-block d-md-block">
PREDICTOR-PRO uses advanced artificial intelligence algorithms to analyze team
performance, historical data, player form, and match statistics to generate
accurate football match predictions.
</p>
<p class="d-block d-lg-none d-md-none">
AI-powered analysis of teams, form, and statistics for accurate match predictions.
</p>
<a href="#">more info.</a>
</div>
</div>
</div>
</div>
<!-- Feature 2 -->
<div class="col-lg-4 col-md-12 col-sm-12 col-12">
<div class="features-post">
<div class="features-content">
<div class="content-show">
<h4>
<i class="fas fa-robot"></i> Smart Data Analysis
</h4>
</div>
<div class="content collapsed">
<p class="d-none d-lg-block d-md-block">
The system continuously processes real-time data including odds movement,
league trends, injuries, and team tactics to deliver intelligent and
data-driven football insights.
</p>
<p class="d-block d-lg-none d-md-none">
Real-time data processing for smarter football insights.
</p>
<a href="#">more info.</a>
</div>
</div>
</div>
</div>
<!-- Feature 3 -->
<div class="col-lg-4 col-md-12 col-sm-12 col-12">
<div class="features-post">
<div class="features-content">
<div class="content-show">
<h4>
<i class="fa fa-futbol"></i> Match Coverage
</h4>
</div>
<div class="content collapsed">
<p class="d-none d-lg-block d-md-block">
PREDICTOR-PRO covers multiple leagues and competitions worldwide, providing
predictions, win probabilities, and performance insights to help users make
informed football decisions.
</p>
<p class="d-block d-lg-none d-md-none">
Predictions and insights across multiple football leagues worldwide.
</p>
<a href="#">more info.</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="whoWeAre" class="whyUs">
<div class="container">
<div class="ligne"></div>
<div class="header">
Why choose PREDICTOR-PRO?
</div>
<div class="categorie">
<ul>
<li class="list-category best">
<span class="text-uppercase">
Accurate <br class="d-block d-lg-none d-md-none"> Predictions
</span>
<span>
<i class="fas fa-square-full icon"></i>
</span>
</li>
<li class="list-category top">
<span class="text-uppercase">
AI <br class="d-block d-lg-none d-md-none"> Intelligence
</span>
<span>
<i class="fas fa-square-full icon"></i>
</span>
</li>
<li class="list-category quality">
<span class="text-uppercase">
Smart <br class="d-block d-lg-none d-md-none"> Analysis
</span>
<span>
<i class="fas fa-square-full icon"></i>
</span>
</li>
</ul>
<div class="row">
<!-- Smart Analysis -->
<div class="col-12 why quality hide">
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12 col-12">
<div class="img">
<img src="./images/neon.jpg" width="90%" alt="">
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-12">
<div class="content">
<h4>Smart Match Analysis</h4>
<p>
PREDICTOR-PRO applies deep AI analysis on historical results, team form,
head-to-head statistics, and live match data to generate reliable football
insights that go beyond basic predictions.
<a href="#" class="link">Learn more</a> now.
</p>
</div>
</div>
</div>
</div>
<!-- Accurate Predictions -->
<div class="col-12 why best">
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12 col-12">
<div class="img">
<img src="./images/pap1.webp" width="90%" alt="">
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-12">
<div class="content">
<h4>Accurate Football Predictions</h4>
<p>
Using machine learning models trained on thousands of matches,
PREDICTOR-PRO delivers high-accuracy predictions for match outcomes,
goal markets, and performance trends across major football leagues.
<a href="#" class="link">Explore predictions</a> now.
</p>
</div>
</div>
</div>
</div>
<!-- AI Intelligence -->
<div class="col-12 why top hide">
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12 col-12">
<div class="img">
<img src="./images/yop2.jpg" width="90%" alt="">
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-12">
<div class="content">
<h4>AI-Powered Decision Engine</h4>
<p>
The PREDICTOR-PRO backend is powered by artificial intelligence that
continuously learns from new match data, odds movement, and team dynamics
to improve prediction accuracy over time.
<a href="#" class="link">See how it works</a> now.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="whatWeDo" class="timer">
<div class="container">
<div class="row">
<div class="col-lg-7 col-md-12 col-sm-12 col-12">
<div class="content">
<p class="big-text">
Take <a href="#" class="linko"> any online prediction </a> and win $326 for your next bet.
</p>
<div class="count">
<div class="row">
<div class="col-3">
<div class="days time">
<span class="number">92</span>
<span class="category text-uppercase">days</span>
</div>
</div>
<div class="col-3">
<div class="hours time">
<span class="number">92</span>
<span class="category text-uppercase">hours</span>
</div>
</div>
<div class="col-3">
<div class="minutes time">
<span class="number">92</span>
<span class="category text-uppercase">minutes</span>
</div>
</div>
<div class="col-3">
<div class="seconds time">
<span class="number">92</span>
<span class="category text-uppercase">seconds</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-5 col-md-12 col-sm-12 col-12">
<div class="register">
<div class="register-text">
<p>
Enter the teams and match date to get an AI-powered football prediction
</p>
</div>
<div class="register-form" >
<form id="predictForm" class="register-form">
<input type="text" name="home_team" placeholder="Home Team" required>
<input type="text" name="away_team" placeholder="Away Team" required>
<input type="date" name="match_day" required>
<button type="submit">PREDICT MATCH</button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="courses" class="lesson">
<div class="container">
<div style="margin-bottom: 3rem;">
<div class="ligne"></div>
<div class="header">
CHECK RESULTS
</div>
</div>
<section id="predictionResults">
<style>
.prediction-wrapper {
width: 100%;
margin-top: 25px;
padding: 15px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.filters {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 20px;
}
.filters input,
.filters select {
padding: 10px 12px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 14px;
outline: none;
transition: 0.3s;
}
.filters input:focus,
.filters select:focus {
border-color: #4CAF50;
box-shadow: 0 0 5px rgba(76,175,80,0.4);
}
.table-responsive {
overflow-x: auto;
}
.prediction-table {
width: 100%;
border-collapse: collapse;
font-size: 15px;
background: #fff;
}
.prediction-table th,
.prediction-table td {
padding: 12px;
border: 1px solid #e0e0e0;
text-align: center;
white-space: nowrap;
}
.prediction-table th {
background: #2c3e50;
color: #fff;
font-weight: 600;
text-transform: uppercase;
font-size: 13px;
}
.prediction-table tr:nth-child(even) {
background: #f9f9f9;
}
.prediction-table tr:hover {
background: #eef7ff;
transition: 0.2s;
}
/* Probability colors (more vibrant) */
.prob-high { color: #27ae60; font-weight: 700; }
.prob-mid { color: #f39c12; font-weight: 700; }
.prob-low { color: #e74c3c; font-weight: 700; }
/* Confidence badges (more visible) */
.conf-high {
background: #27ae60;
color: #fff;
padding: 5px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
.conf-medium {
background: #f1c40f;
color: #000;
padding: 5px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
.conf-low {
background: #e74c3c;
color: #fff;
padding: 5px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
/* Mobile optimized */
@media (max-width: 768px) {
.prediction-wrapper {
padding: 10px;
}
.prediction-table thead {
display: none;
}
.prediction-table tr {
display: block;
margin-bottom: 15px;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.prediction-table td {
display: flex;
justify-content: space-between;
padding: 10px;
font-size: 13px;
border-bottom: 1px solid #eee;
}
.prediction-table td::before {
content: attr(data-label);
font-weight: 600;
color: #555;
}
}
</style>
<div class="prediction-wrapper">
<!-- Filters -->
<div class="filters">
<input type="text" id="searchMatch" placeholder="Search teams">
<select id="leagueFilter">
<option value="">All Leagues</option>
<option value="EPL">Premier League</option>
<option value="LaLiga">La Liga</option>
<option value="SerieA">Serie A</option>
</select>
<input type="date" id="dateFilter">
<select id="confidenceFilter">
<option value="">All Confidence</option>
<option value="High">High</option>
<option value="Medium">Medium</option>
<option value="Low">Low</option>
</select>
</div>
<!-- Table -->
<div class="table-responsive">
<table class="prediction-table">
<thead>
<tr>
<th>Match</th>
<th>Date</th>
<th>League</th>
<th>Home</th>
<th>Draw</th>
<th>Away</th>
<th>O/U 2.5</th>
<th>BTTS</th>
<th>Score</th>
<th>Confidence</th>
</tr>
</thead>
<tbody id="predictionBody"></tbody>
</table>
</div>
</div>
<script>
let predictionData = [];
// Render predictions in table
function probClass(val) {
if (val >= 60) return "prob-high";
if (val >= 40) return "prob-mid";
return "prob-low";
}
function renderTable(data) {
const tbody = document.getElementById("predictionBody");
tbody.innerHTML = "";
data.forEach(row => {
tbody.innerHTML += `
<tr>
<td data-label="Match">${row.match}</td>
<td data-label="Date">${row.date}</td>
<td data-label="League">${row.league}</td>
<td data-label="Home" class="${probClass(row.home)}">${row.home}%</td>
<td data-label="Draw" class="${probClass(row.draw)}">${row.draw}%</td>
<td data-label="Away" class="${probClass(row.away)}">${row.away}%</td>
<td data-label="O/U 2.5">${row.over}</td>
<td data-label="BTTS">${row.btts}</td>
<td data-label="Score">${row.score}</td>
<td data-label="Confidence">
<span class="conf-${row.confidence.toLowerCase()}">${row.confidence}</span>
</td>
</tr>
`;
});
}
// Load existing predictions from DB
function loadPredictions() {
fetch('get_predictions.php')
.then(res => res.json())
.then(data => {
predictionData = data.map(row => ({
match: row.home_team + " vs " + row.away_team,
date: row.match_date,
league: row.league,
home: Math.round(parseFloat(row.home_prob) * 100),
draw: Math.round(parseFloat(row.draw_prob) * 100),
away: Math.round(parseFloat(row.away_prob) * 100),
over: row.over25 == 1 ? "Yes" : "No",
btts: row.btts == 1 ? "Yes" : "No",
score: row.score || "N/A",
confidence: row.confidence || "Medium"
}));
renderTable(predictionData);
})
.catch(err => console.error("Failed to load predictions:", err));
}
// Initial load
loadPredictions();
// Filters
function applyFilters() {
const search = document.getElementById("searchMatch").value.toLowerCase();
const league = document.getElementById("leagueFilter").value;
const date = document.getElementById("dateFilter").value;
const confidence = document.getElementById("confidenceFilter").value;
const filtered = predictionData.filter(row =>
row.match.toLowerCase().includes(search) &&
(!league || row.league === league) &&
(!date || row.date === date) &&
(!confidence || row.confidence === confidence)
);
renderTable(filtered);
}
document.querySelectorAll(".filters input, .filters select")
.forEach(el => el.addEventListener("input", applyFilters));
// Form submit
document.getElementById("predictForm").addEventListener("submit", function (e) {
e.preventDefault();
const payload = {
home_team: this.home_team.value.trim(),
away_team: this.away_team.value.trim(),
match_day: this.match_day.value
};
fetch("predict.php", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)
})
.then(res => res.json())
.then(data => {
console.log("API response:", data);
if (data.status !== "success") {
alert("Prediction failed: " + (data.message || "Unknown error"));
return;
}
const newPred = {
match: data.match,
date: data.date,
league: data.league,
home: Math.round(data.home * 100),
draw: Math.round(data.draw * 100),
away: Math.round(data.away * 100),
over: data.over25 === 1 ? "Yes" : "No",
btts: data.btts === 1 ? "Yes" : "No",
score: data.score,
confidence: data.confidence
};
predictionData.unshift(newPred);
renderTable(predictionData);
this.reset();
})
.catch(err => {
console.error("Fetch error:", err);
alert("Prediction failed: Network or server error");
});
});
</script>
</section>
</section>
<section id="howItWork" class="presentation">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-12">
<div class="pre-content">
<p class="smal-text text-uppercase">
how predictor-pro works
</p>
<h4>
See how our AI engine <span>predicts football matches</span>
</h4>
<p class="text">
PREDICTOR-PRO uses artificial intelligence and machine learning to analyze
historical match data, team performance, player statistics, and real-time
factors such as injuries and form to generate reliable football predictions.
</p>
<p class="text">
Simply enter the teams and match day, and the system processes thousands of
data points in the backend to provide outcome probabilities, goal predictions,
and performance insights within seconds.
</p>
<button class="btn url text-uppercase">
watch demo
</button>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">
<div class="pre-content">
<div class="video-des">
<div class="bgr">
<p class="h4 text-uppercase">
AI Prediction Engine
</p>
<p class="run">
<i class="fas fa-play"></i>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="contact" class="contact">
<div class="container">
<div class="ligne"></div>
<div class="header">
Why choose PREDICTOR-PRO?
</div>
<div class="contact-content">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-12 form">
<form>
<div class="row">
<div class="col-12">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-12">
<input type="text" class="form-control" placeholder="Your Name">
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">
<input type="email" class="form-control" placeholder="Your Email">
</div>
</div>
</div>
<div class="col-12">
<div class="form-group">
<textarea class="form-control" id="exampleFormControlTextarea1"
placeholder="Your message..." rows="5"></textarea>
</div>
</div>
<div class="col-12">
<button class="btn send text-uppercase">
SEND MESSAGE NOW
</button>
</div>
</div>
</form>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">
<iframe
src="https://www.google.com/maps?q=Nakuru,Kenya&output=embed"
width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy">
</iframe>
</div>
</div>
</div>
</div>
</section>
</div>
<footer>
<p>
<i class="fa fa-copyright"></i> COPYRIGHT <span id="date"></span> BY PREDICTOR-PRO build by <a
href="https://github.com/SIGEIV" target="_blank">BRIAN SIGEI</a>
</p>
</footer>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="./js/bootstrap.bundle.min.js"></script>
<script src="owlcarousel/owl.carousel.min.js"></script>
<script src="./js/js.js"></script>
</body>
</html>