This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Find all elements with click handlers that aren't properly marked as interactive | |
| const allElements = document.querySelectorAll('*'); | |
| const problematicElements = Array.from(allElements).filter(el => { | |
| // Get click event listeners if any | |
| const eventListeners = getEventListeners(el); | |
| const hasClickListener = eventListeners && eventListeners.click && eventListeners.click.length > 0; | |
| if (!hasClickListener) return false; | |
| // Check if element is already an interactive element |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a role="button" | |
| id="userway-trigger" | |
| aria-label="Customize Accessibility Options" | |
| onclick="UserWay.widgetOpen();" | |
| style="cursor: pointer"> | |
| Accessibility | |
| </a> | |
| <script> | |
| (function(d) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !-- HTML --> | |
| <a href="#main-content" class="skip-link">Skip to main content</a> | |
| <nav> | |
| <!-- Your navigation content --> | |
| </nav> | |
| <main id="main-content" tabindex="-1"> | |
| <!-- Your main content --> | |
| </main> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NextResponse } from 'next/server'; | |
| export const config = { | |
| matcher: ['/'], | |
| }; | |
| const THRESHOLD = 0.5; | |
| const COOKIE_NAME = 'tm_var'; | |
| export function middleware(req) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# | |
| Relies mostly on a meta array containing appropriate values. | |
| site_name is a parameter set as a Twig Global | |
| default_share_image is a fallback parameter set as a Twig Global | |
| #} | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="robots" content="index, follow" /> | |
| <meta property="og:type" content="website" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NextResponse } from 'next/server'; | |
| export const config = { | |
| matcher: ['/'], | |
| }; | |
| const THRESHOLD = 0.5; | |
| const COOKIE_NAME = 'tm_var'; | |
| export function middleware(req) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Common\ContentBundle\Entity; | |
| ... | |
| use Gedmo\Mapping\Annotation as Gedmo; | |
| class ProductCategory | |
| { | |
| ... | |
| /** | |
| * @var integer $position |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace MyBundle\Form\Extension; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\OptionsResolver\OptionsResolver; | |
| use Symfony\Component\Form\Extension\Core\Type\DateTimeType; | |
| /** | |
| * Class FlatpickrDateTimeType | |
| * @package MyBundle\Form\Extension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Recaptcha HTML: <div class="g-recaptcha" data-sitekey="{{ site_key }}" data-theme="dark" id="recaptcha"></div> | |
| // MapKit HTML: <div id="map" class="h-full"></div> | |
| // (also requires installation of mapkit.js and recaptcha.js scripts) | |
| var recpatcha = document.getElementById('recaptcha') | |
| var mapKitColorMode = "light"; | |
| if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { | |
| recpatcha.setAttribute('data-theme', 'dark'); | |
| mapKitColorMode = "dark" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| }, | |
| "require": { | |
| "aws/aws-sdk-php": "3.*" | |
| } | |
| } |
NewerOlder