Compare commits
No commits in common. "00851d37b87ff6db41a84ed17c219887803c9f67" and "c2e01dd1e8b023d156df402ecb201fe3f1a0c6cb" have entirely different histories.
00851d37b8
...
c2e01dd1e8
5
dist/api/blog/blogData.php
vendored
5
dist/api/blog/blogData.php
vendored
@ -673,6 +673,11 @@ EOD;
|
|||||||
*/
|
*/
|
||||||
public function changeHTMLSrc(string $body, string $to, string $from): string
|
public function changeHTMLSrc(string $body, string $to, string $from): string
|
||||||
{
|
{
|
||||||
|
// $body = preg_replace_callback('/>([^<]+)</', function($matches) {
|
||||||
|
// // Convert special characters to HTML entities
|
||||||
|
// return '>' . htmlentities(trim($matches[1]), ENT_QUOTES | ENT_HTML5, 'UTF-8') . '<';
|
||||||
|
// }, $body);
|
||||||
|
|
||||||
$htmlDoc = new DOMDocument();
|
$htmlDoc = new DOMDocument();
|
||||||
|
|
||||||
// Load the raw HTML content into DOMDocument
|
// Load the raw HTML content into DOMDocument
|
||||||
|
2
dist/blog/js/index.js
vendored
2
dist/blog/js/index.js
vendored
File diff suppressed because one or more lines are too long
@ -376,14 +376,6 @@ function carouselLoop(carouselInner, allItems)
|
|||||||
visibleCards.push(cards[i]);
|
visibleCards.push(cards[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allItems.children.length === 0)
|
|
||||||
{
|
|
||||||
// if there are no cards in the carousel, don't show the arrows
|
|
||||||
prev.style.visibility = 'hidden';
|
|
||||||
next.style.visibility = 'hidden';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
next.addEventListener('click', () =>
|
next.addEventListener('click', () =>
|
||||||
{
|
{
|
||||||
const firstCard = visibleCards.shift();
|
const firstCard = visibleCards.shift();
|
||||||
|
Loading…
Reference in New Issue
Block a user