-
Notifications
You must be signed in to change notification settings - Fork 0
/
kk.txt
222 lines (187 loc) · 11.1 KB
/
kk.txt
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
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 gap-y-6">
<!-- <?php foreach ($charactersAndStaff->getCharacters() as $char) : ?>
<div class="max-w-sm">
<img src="<?= $char->getCharacter()->getImages()->getWebp()->getImageUrl(); ?>" class="object-cover w-full h-96 md:h-auto md:w-52" alt="">
<p><?= $char->getCharacter()->getName() ?></p>
</div>
<?php endforeach; ?> -->
</div>
bg-[center_62%]
<img src="<?= $anim->getImages()->getWebp()->getLargeImageUrl(); ?>" class="object-cover w-full h-96 md:h-auto md:w-52">
<div class="container">
<div class="mb-4 border-b border-gray-200 dark:border-gray-700">
<ul class="flex flex-wrap -mb-px text-sm font-medium text-center" id="myTab" data-tabs-toggle="#myTabContent" role="tablist">
<li class="mr-2" role="presentation">
<button class="inline-block p-4 border-b-2 rounded-t-lg" id="profile-tab" data-tabs-target="#profile" type="button" role="tab" aria-controls="profile" aria-selected="false">Profile</button>
</li>
<li class="mr-2" role="presentation">
<button class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300" id="dashboard-tab" data-tabs-target="#dashboard" type="button" role="tab" aria-controls="dashboard" aria-selected="false">Dashboard</button>
</li>
</ul>
</div>
<div id="myTabContent">
<div class="hidden p-4 rounded-lg bg-gray-50 dark:bg-gray-800" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<p class="text-sm text-gray-500 dark:text-gray-400">This is some placeholder content the <strong class="font-medium text-gray-800 dark:text-white">Profile tab's associated content</strong>. Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling.</p>
</div>
<div class="hidden p-4 rounded-lg bg-gray-50 dark:bg-gray-800" id="dashboard" role="tabpanel" aria-labelledby="dashboard-tab">
<p class="text-sm text-gray-500 dark:text-gray-400">This is some placeholder content the <strong class="font-medium text-gray-800 dark:text-white">Dashboard tab's associated content</strong>. Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling.</p>
</div>
</div>
</div>
/////////////////////////////////////////////////////////////////////////
// foreach ($eps->getResults() as $ep) {
// var_dump($ep->getTitle() . ' \ ' . $ep->getMalId());
// $aired = $ep->getAired();
// if ($aired !== null) {
// $date = $aired->format('Y-m-d');
// echo 'Aired Date: ' . $date . "\n";
// } else {
// echo 'Aired information is not available.' . "\n";
// }
// }
// foreach ($charactersAndStaff->getCharacters() as $char) {
// foreach ($char->getVoiceActors() as $key => $item) {
// if ($item->getLanguage() == 'Japanese') {
// $img = $item->getPerson()->getImages();
// $img = $img->getJpg()->getImageUrl();
// echo "<img src='$img'>";
// var_dump($item->getPerson()->getName());
// }
// }
// }
// foreach ($charactersAndStaff->getStaff() as $staff) {
// var_dump($staff->getPositions());
// var_dump($staff->getPerson()->getName());
// foreach ($staff->getPositions() as $pos => $position) {
// echo $position;
// if ($pos < count($staff->getPositions()) - 1) {
// echo ', ';
// }
// }
// }
/////////////////////////////////////////////////////////////////////////
// foreach ($videos->getEpisodes() as $preview) {
// var_dump($preview->getTitle());
// $prev = $preview->getImages()->getJpg()->getImageUrl();
// echo "<img src='$prev'>";
// }
// foreach ($videos->getMusicVideos() as $mv) {
// var_dump($mv->getMeta()->getAuthor());
// var_dump($mv->getTitle());
// $mv = $mv->getVideo()->getImages()->getImageUrl();
// echo "<img src='$mv'>";
// }
// foreach ($videos->getPromos() as $promo) {
// var_dump($promo->getTitle());
// $pro = $promo->getTrailer()->getImages()->getLargeImageUrl();
// echo "<img src='$pro'>";
// }
// var_dump($videos->getEpisodes());
// var_dump($videos->getPromos());
////////////////////////////////////////////////////////////////////////////
<?php echo ($eps->getUrl() != null) ? $eps->getUrl() : '#' ?>
///////////////////////////////////////////////////////////////////////////
<div class="grid md:grid-cols-2 col-span-4 gap-3 content-start">
///////////////////////////////////////////////////////////////////////////
<footer class="bg-white dark:bg-[#121212]">
<div class="mx-auto w-full max-w-screen-xl">
<div class="grid grid-cols-2 gap-8 px-4 py-6 lg:py-8 md:grid-cols-4">
<div>
<h2 class="mb-6 text-sm font-semibold text-gray-900 uppercase dark:text-white">Help center</h2>
<ul class="text-gray-500 dark:text-gray-400 font-medium">
<li class="mb-4">
<a href="#" class="hover:underline">Discord Server</a>
</li>
<li class="mb-4">
<a href="#" class="hover:underline">Twitter</a>
</li>
<li class="mb-4">
<a href="#" class="hover:underline">Facebook</a>
</li>
<li class="mb-4">
<a href="#" class="hover:underline">Contact Us</a>
</li>
</ul>
</div>
</div>
</div>
<div class="py-6 bg-gray-100 dark:bg-[#181818] md:flex md:items-center md:justify-center">
<span class="max-w-screen-xl mx-auto text-sm text-gray-500 dark:text-gray-300 sm:text-center">© 2023 <a href="https://flowbite.com/">Flowbite™</a>. All Rights Reserved.
</span>
</div>
</footer>
/////////////////////////////////////////////////////////////////////////
<script>
const btnMore = document.getElementById('more')
const moreWrap = document.getElementById('moree')
const moreContent = document.getElementById('seasonContent')
let hFull = true
btnMore.addEventListener('click', () => {
if (hFull) {
moreContent.classList.remove('max-h-[27rem]')
moreWrap.classList.remove('pt-32')
moreWrap.classList.remove('bottom-0')
moreWrap.classList.add('-bottom-24')
btnMore.textContent = "Show less..."
hFull = false
} else {
moreContent.classList.add('max-h-[27rem]')
moreWrap.classList.add('pt-32')
moreWrap.classList.remove('-bottom-24')
moreWrap.classList.add('bottom-0')
btnMore.textContent = "Show more..."
hFull = true
}
})
</script>
/////////////////////////////////////////////////////////////////////////
<h4 class="text-xl mb-3 font-bold capitalize dark:text-white my-2"><?= $seasonNow; ?></h4>
<div class="grid grid-cols-1 gap-6 lg:gap-8 sm:grid-cols-2 lg:grid-cols-7 max-h-[27rem] overflow-hidden" id="seasonContent">
<?php foreach (array_slice($season->getAnime(), 0, 19) as $seasonal) : ?>
<a href="http://ev.jikan.eva/view/anime/anime.php?mal=<?= $seasonal->getMalId(); ?>" class="group flex w-[160px] h-[220px] flex-col items-center overflow-hidden rounded-lg shadow hover:bg-gray-100 dark:bg-gray-900 relative">
<img class="group-hover:scale-105 transition-transform object-cover w-full h-full bg-gray-900" src="<?= $seasonal->getImages()->getWebp()->getLargeImageUrl() ?>" alt="">
<p class="absolute bottom-2 left-2 font-normal z-10 text-gray-700 dark:text-gray-200 text-sm"><?= $seasonal->getTitle(); ?></p>
<div class="bg-gradient-to-t absolute inset-0 from-black/90"></div>
</a>
<?php endforeach; ?>
</div>
<div id="moree" class="inset-x-0 bottom-0 flex justify-center bg-gradient-to-t from-white pt-32 pb-8 pointer-events-none dark:from-[#121212] z-10 absolute"><button type="button" id="more" class="relative bg-[#202020] hover:bg-slate-700 focus:outline-none focus:ring-2 focus:ring-gray-700 focus:ring-offset-2 text-sm text-white font-semibold h-12 px-6 rounded-lg flex items-center dark:hover:bg-[#181818] pointer-events-auto">Show more...</button></div>
/////////////////////////////////////////////////////////////////////////
for ($m = 1; $m <= 12; ++$m) {
var_dump(date('F', mktime(0, 0, 0, $m, 1)));
}
/////////////////////////////////////////////////////////////////////////
<div id="default-carousel" class="relative w-full" data-carousel="static">
<!-- Carousel wrapper -->
<div class="relative overflow-hidden py-52 px-16">
<!-- Item 1 -->
<?php foreach (array_slice($topAiring->getResults(), 0, 5) as $top) : ?>
<div class="hidden duration-700 ease-in-out" data-carousel-item>
<a href="view/anime/?mal=<?= $top->getMalId(); ?>" class="group">
<img src="<?= $top->getImages()->getWebp()->getLargeImageUrl() ?>" class="bg-gray-900 bg-cover absolute block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2" alt="...">
<div class="bg-gradient-to-t dark:from-[#121212]/75 w-full h-full absolute top-0 left-0 z-10"></div>
<h1 class="text-5xl font-bold dark:text-white absolute bottom-14 group-hover:underline decoration-2 decoration-blue-600 left-14 md:left-16 z-20 2xl:left-32">
<?= $top->getTitle() ?>
</h1>
</a>
</div>
<?php endforeach; ?>
</div>
<!-- Slider controls -->
<button type="button" class="absolute top-0 left-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-prev>
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-none">
<svg class="w-4 h-4 text-white dark:text-gray-800" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 1 1 5l4 4" />
</svg>
<span class="sr-only">Previous</span>
</span>
</button>
<button type="button" class="absolute top-0 right-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-next>
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-none">
<svg class="w-4 h-4 text-white dark:text-gray-800" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4" />
</svg>
<span class="sr-only">Next</span>
</span>
</button>
</div>