-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhome.php
33 lines (33 loc) · 806 Bytes
/
home.php
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
<script>
$('.main-carousel').flickity({
// options
cellAlign: 'left',
contain: true,
autoPlay: true
});
</script>
<div class="container" id="content">
<div class="row">
<div class="col-12">
<div class="main-carousel" data-flickity='{ "cellAlign": "left", "contain": true }'>
<?php include('charts.php'); ?>
</div>
</div>
<?php
error_reporting(0);
$json = file_get_contents('json/genres.json');
$data = json_decode($json);
foreach ($data->data as $mydata) {
echo '
<div class="col-4">
<div class="card ' . $mydata->color . '-box">
<div class="card-body">
<h5 class="bold">' . $mydata->attributes->name . '</h6>
</div>
</div>
</div>
';
}
?>
</div>
</div>