JSFiddle - React, Tailwind, and code Playground

by Snaptik

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Font Example</title>
    <link rel="stylesheet" href="https://easyweb360.com/dev/cdn/fonts.css">
    <style>
        body {
            font-family: 'ext', sans-serif;
        }

        h1, p {
            font-family: 'ext', sans-serif; /* Ensure font is applied to specific elements */
        }

        /* Debugging Styles */
        .debug {
            border: 2px solid red; /* Visual border to indicate element */
            background-color: yellow; /* Background color to highlight element */
        }
    </style>
</head>
<body>
    <h1 class="debug">This text uses the 'ext' font</h1>
    <p class="debug">Here is a paragraph demonstrating the 'ext' font.</p>

    <!-- Debugging Information -->
    <script>
        // Check if the CSS file is loaded correctly
        fetch('https://easyweb360.com/dev/cdn/fonts.css')
            .then(response => {
                if (response.ok) {
                    console.log('CSS file loaded successfully.');
                } else {
                    console.log('CSS file failed to load:', response.status, response.statusText);
                }
            })
            .catch(error => console.error('Error loading CSS file:', error));

        // Check if font files are accessible
        const fontUrls = [
            'https://easyweb360.com/dev/wp-content/plugins/geofonts2/fonts/ext.ttf',
        ];

        fontUrls.forEach(url => {
            fetch(url)
                .then(response => {
                    if (response.ok) {
                        console.log(`Font file ${url} is accessible.`);
                    } else {
                        console.log(`Font file ${url} failed to load:`, response.status, response.statusText);
                    }
                })
                .catch(error => console.error(`Error loading font file ${url}:`,...