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
| javascript:(()=>{let e,t="",n;function i(e,t,n=!1){let i=document.createElement("div");i.style.marginBottom="10px",i.style.border="1px solid #ddd",i.style.borderRadius="4px";let o=document.createElement("div");o.style.padding="10px",o.style.backgroundColor="#f5f5f5",o.style.cursor="pointer",o.style.userSelect="none",o.innerHTML=`<span style="margin-right: 5px">${n?"▼":"▶"}</span>${e}`;let l=document.createElement("div");return l.style.padding="10px",l.style.display=n?"block":"none",l.appendChild(t),o.onclick=()=>{let e="block"===l.style.display;l.style.display=e?"none":"block",o.firstChild.textContent=e?"▶":"▼"},i.appendChild(o),i.appendChild(l),i}function o(e){let t=document.createElement("div"),n=document.createElement("div");n.innerHTML=` | |
| <div style="margin-bottom: 5px"><strong>Question ID:</strong> ${e.QuestionID}</div> | |
| <div style="margin-bottom: 5px"><strong>Type:</strong> ${e.QuestionType}</div> | |
| <div style="margin-bottom: 5px"><strong>Selector:</strong> ${e.Selector}</div> | |
| `,t.appendChild(i( |
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
| name: Deploy React Static to Cloudflare Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "path/to/project/**" | |
| pull_request: | |
| branches: ["main"] | |
| paths: |
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
| const ExampleComponent = () => { | |
| return <h1 className="bg-white dark:bg-black">Hello</h1>; | |
| }; | |
| export default ExampleComponent; |
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
| const DetectBreakpoint = () => { | |
| const getCurrentBreakpoint = (): string => { | |
| const breakpointUnknown: string = "unknown"; | |
| const breakpointSM: string | null = | |
| document.getElementById("breakpoint-sm")?.offsetParent === null | |
| ? null | |
| : "sm"; | |
| const breakpointMD: string | null = | |
| document.getElementById("breakpoint-md")?.offsetParent === null | |
| ? null |