Compare commits
No commits in common. "main" and "0.4.99" have entirely different histories.
2 changed files with 3 additions and 13 deletions
|
@ -1,13 +1,10 @@
|
|||
// Sparkle effect on mouse move
|
||||
document.addEventListener('mousemove', function (e) {
|
||||
const htmlElement = document.documentElement;
|
||||
if (htmlElement.getAttribute('data-website-mode') === 'normal') {
|
||||
return;
|
||||
}
|
||||
let emojis = ['✨', '💖', '🌟', '💅', '🦄', '🎉', '🌈'];
|
||||
const htmlElement = document.documentElement;
|
||||
|
||||
if (htmlElement.getAttribute('data-website-mode') === 'mono') {
|
||||
emojis = ['🦇', '🦉', '🦔', '🦡', '🐺', '', '', '', '', '', '', '', '', '', ''];
|
||||
emojis = ['🦇', '🦹', '🌙', '⚰️', '🕯️'];
|
||||
}
|
||||
const sparkle = document.createElement('div');
|
||||
sparkle.className = 'emoji-footprint';
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
namespace App\Controller;
|
||||
|
||||
use App\Form\UserNameFormType;
|
||||
use DateTimeImmutable;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Cookie;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
|
@ -34,13 +33,7 @@ final class HomeController extends AbstractController
|
|||
$response->headers->clearCookie('username');
|
||||
return $response;
|
||||
}
|
||||
$response->headers->setCookie(
|
||||
new Cookie(
|
||||
name: 'username',
|
||||
value: $username,
|
||||
expire: new DateTimeImmutable('+1 year'),
|
||||
)
|
||||
);
|
||||
$response->headers->setCookie(new Cookie('username', $username));
|
||||
return $response;
|
||||
}
|
||||
$username = $request->cookies->get('username', self::DEFAULT_USERNAME);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue