### Stripe Payment Conversion Example Source: https://stripe.com/ Example showing different currency conversions and payment actions for a product. ```APIDOC Product: Wood Chair 001 Price USD: $149 Price EUR: €135.00 Price JPY: ¥199.00 Actions: - Pay $149 - €135.00 zahlen - 支付 ¥199.00 - Betaal €135.00 ``` -------------------------------- ### Stripe Order Details Example Source: https://stripe.com/ Example of order processing status and amounts, showing transaction details for customers. ```APIDOC Order ID: #9125 Customer: Hanako Yamada Status: Processing Amount: $150.00 ``` ```APIDOC Order ID: #9124 Customer: Jacques Muller Status: Processing Amount: $200.00 ``` ```APIDOC Order ID: #9123 Customer: John Appleseed Status: On Hold Amount: $178.00 ``` ```APIDOC Order ID: #9122 Customer: Jane Diaz Status: Completed Amount: $200.00 ``` ```APIDOC Order ID: #9121 Customer: Anna Nowak Status: Completed Amount: $200.00 ``` ```APIDOC Order ID: #9120 Customer: Wei Qing Status: Completed Amount: $156.00 ``` -------------------------------- ### Run Example Functionality Source: https://www.convertcsv.com/json-to-csv.htm This function, `runExample`, demonstrates how to trigger specific UI actions and load predefined data for testing or demonstration purposes. It simulates user interactions like clicking tabs, setting input values, and triggering button clicks, particularly for fetching data from a URL. ```javascript function runExample(n) { if (n == 7) { if (document.getElementById("urlTabLink")) document.getElementById("urlTabLink").click(); document.getElementById('chkBroke').checked = false; document.getElementById('url').value = 'https://jsonplaceholder.typicode.com/todos/1'; document.getElementById('btnUrl').click(); } else if (n == 6) { if (document.getElementById("defaultTabLink")) document.getElementById("defaultTabLink").click(); document.getElementById('chkBroke').checked = false; document.getElementById('txt1').value = "{\n \"id\":[1,2,3,4],\n" + " \"name\":[\"Johnson, Smith, and Jones Co.\",\"Sam \\\"Mad Dog\\\" Smith\",\"Barney & Company\",\"Johnson's Automotive\"],\n" // ... rest of the example data for txt1 } } ``` -------------------------------- ### API: Authentication and Site Endpoints Source: https://context7_llms Details Superblog API authentication using an 'x-superblog-access-key' header and provides an example for retrieving a list of sites. The API is RESTful and mirrors dashboard functionality. ```javascript const response = await fetch("https://write.superblog.ai/api/sites", { headers: { "x-superblog-access-key": "your-api-key" } }); const data = await response(); ``` -------------------------------- ### JavaScript Cookie Consent and Analytics Setup Source: https://superblog.ai/blog/blog-hosting-subdomain-vs-subfolder-cklto3qsr00101imuikysv7yd This JavaScript code implements a cookie consent mechanism and integrates Google Analytics (gtag.js) and Google AdSense (adsbygoogle.js) for Superblog AI sites. It handles setting and reading cookies for consent status, displaying a consent banner, and loading necessary scripts based on user interaction or initial page load. Dependencies include the browser's `document` and `Date` objects, and potentially external Google scripts. The code defines helper functions for cookie management and main functions for loading analytics and ads. ```javascript (() => { let n = "", s = "click", r = "cookie-consent", t = 365, q = "script", p = 60, o = Date; var i = (a => { document.cookie = a + `=; Max-Age=-99999999;`; }); var h = (a => { const b = document.cookie.match(new RegExp(`(^| )$` + a + `=([^;]+)`)); return b ? b[2] : null; }); var g = ((a, b, c) => { const d = new o(o.now() + c * 24 * p * p * 1000).toUTCString(); document.cookie = `${a}=${b}; expires=${d}; path=/; Secure; SameSite=Strict`; }); const a = n; const b = n; const c = `blogcontent_cookie_popup_accept`; let d = !1; const e = `true`; const f = `false`; const j = () => { function c() { window.dataLayer.push(arguments); } const b = document.createElement(q); b.src = `https://www.googletagmanager.com/gtag/js?id=${a}`; document.body.append(b); window.dataLayer = window.dataLayer || []; c(`js`, new o()); c(`config`, a); }; const k = () => { var a = document, c = a.createElement(q); c.src = `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js`; c.async = !0; c.setAttribute(`data-ad-client`, `ca-pub-${b}`); (a.head || a.body).appendChild(c); }; const l = () => { document.getElementById(r).style.display = `block`; }; const m = () => { document.getElementById(r).style.display = `none`; }; document.getElementById(`cookie-accept`).addEventListener(s, () => { if (a) { j(); } if (b) { k(); } d = !0; g(c, e, t); m(); }); document.getElementById(`cookie-decline`).addEventListener(s, () => { g(c, f, t); m(); }); document.addEventListener(`DOMContentLoaded`, () => { localStorage.removeItem(`superblog_cookie_popup_accept`); if (h(c) === e) { d = !0; if (a) { j(); } if (b) { k(); } } else { if (a || b) { l(); } } }); })(); ``` -------------------------------- ### Theme Initialization Script Source: https://superblog.ai/docs/get-started/create-your-superblog This JavaScript code snippet initializes the website's theme based on user preference stored in local storage. If no theme is found, it defaults to 'light'. ```javascript !function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}() ``` -------------------------------- ### Docusaurus Import Statement Source: https://context7_llms An example import statement commonly used in Docusaurus projects to access utility functions for managing base URLs. ```javascript import useBaseUrl from '@docusaurus/useBaseUrl'; ``` -------------------------------- ### Theme Initialization Script Source: https://superblog.ai/docs/dashboard/leadgen This JavaScript code initializes the website's theme by checking local storage for a saved theme preference or defaulting to 'light'. It applies the chosen theme to the document's data attribute. ```javascript !function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}() ``` -------------------------------- ### Google Analytics gtag.js Setup Source: https://www.convertcsv.com/json-to-csv.htm This JavaScript snippet initializes Google Analytics tracking for the page. It ensures the dataLayer is available and configures the gtag function with a specific tracking ID. ```javascript window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-110011798-1'); ``` -------------------------------- ### Create Post via Superblog API Source: https://context7_llms Demonstrates how to create a new blog post using the Superblog API. It includes setting up the request headers with an access key and constructing the JSON body with post details like title, content, and status. ```javascript const response = await fetch( "https://write.superblog.ai/api/sites/supername/your-supername/posts", { headers: { //..... //..... "x-superblog-access-key": "your-api-key", }, // Mandatory fields body: JSON.stringify({ post: { status: "PUBLISHED", hideSharingIcons: false, enableComments: false, title: "sample post title hola", tagIds: [], content: "

hello world

", }, }), } ); const data = await response(); ``` -------------------------------- ### Runtime Reporting Mechanism Setup Source: https://fonts.google.com/ Configures a reporting mechanism that uses `navigator.sendBeacon` or `XMLHttpRequest` to send data to a specified endpoint. This function is designed to handle reporting for product events and access patterns. ```javascript function t() { var a; if ((a = window.ppConfig) == null ? 0 : a.disableAllReporting) return function() {}; var b, c, d, e; return (e = (b = window) == null ? void 0 : (c = b.navigator) == null ? void 0 : (d = c.sendBeacon) == null ? void 0 : d.bind(navigator)) != null ? e : u; } function u(a, b) { var c = new XMLHttpRequest(); c.open("POST", a); c.send(b); } ``` -------------------------------- ### Stripe Pricing Plans - General Source: https://stripe.com/ Overview of different pricing tiers available for Stripe services, detailing user limits, data access, refresh rates, and integration counts. ```APIDOC Plan: Standard Target: Up to 5 users Price: $49/month Includes: - 12 months historical data - 4 hr data refresh - 500+ third party integrations ``` ```APIDOC Plan: Professional Target: Up to 25 users Price: $149/month Includes: - 24 months historical data - 1 hr data refresh - 1,000+ third party integrations - Simple reporting ``` ```APIDOC Plan: Enterprise Target: Unlimited users Price: $299/month Includes: - Unlimited historical data - 15 min data refresh - 2,000+ third party integrations - Advanced reporting - Priority support ``` -------------------------------- ### Fetch Superblog RSS JSON Feed Source: https://context7_llms Demonstrates how to retrieve blog post data from a Superblog RSS JSON feed using NodeJS and Python. It involves making a GET request to the feed URL and parsing the JSON response. ```javascript // replace it with your superblog rss json const url = "https://superblog.ai/blog/rss.json"; const res = await fetch(url); const data = await res.json(); ``` ```python import requests // replace it with your superblog rss json url = "https://superblog.ai/blog/rss.json" res = requests.get(url) data = res.json() ``` -------------------------------- ### Superblog Blog Post JSON Schema Example Source: https://context7_llms This JSON array represents a collection of blog post objects. Each object adheres to a defined schema, including fields for title, content, publication status, dates, categories, tags, SEO metadata, and featured image URLs. ```JSON [ { "title": "Understanding Zod for Schema Validation", "content": "

Zod is a powerful library that simplifies the process of validation in JavaScript applications...

", "isPublished": true, "isMarkdown": false, "createdAt": "2024-04-20T14:48:00.000Z", "publishedAt": "2024-04-21T00:00:00.000Z", "updatedAt": "2024-04-21T12:00:00.000Z", "category": "Programming", "tagNames": ["JavaScript", "Validation", "Zod"], "slug": "understanding-zod-validation", "metaTitle": "Understanding Zod for Schema Validation", "metaDescription": "An in-depth guide on how to use Zod for schema validation in JavaScript.", "customFeaturedImageUrl": "https://example.com/images/zod.png" }, { "title": "Advanced Techniques in React", "content": "# What is React? React offers a plethora of advanced techniques that can help developers optimize their applications...", "isPublished": false, "isMarkdown": true, "createdAt": "2024-04-19T09:30:00.000Z", "updatedAt": "2024-04-20T08:45:00.000Z", "publishedAt": "2024-04-20T08:45:00.000Z", "category": "Web Development", "tagNames": ["React", "Web Development", "Frontend"], "slug": "advanced-react-techniques", "metaTitle": "Advanced Techniques in React", "metaDescription": "Learn about advanced techniques in React to improve your web development skills.", "customFeaturedImageUrl": "https://example.com/images/react.png" }, { "title": "Introduction to Svelte", "content": "

Svelte is a radical new approach to building user interfaces. Unlike traditional frameworks...

", "isPublished": true, "createdAt": "2024-04-18T07:20:00.000Z", "publishedAt": "2024-04-20T10:15:00.000Z", "updatedAt": "2024-04-20T11:30:00.000Z", "category": "Frontend Technologies", "tagNames": ["Svelte", "JavaScript", "UI"], "slug": "intro-to-svelte", "metaTitle": "Introduction to Svelte", "metaDescription": "Discover Svelte, a new way to build efficient, fast, and reactive web interfaces.", "customFeaturedImageUrl": "https://example.com/images/svelte.png" } ] ``` -------------------------------- ### Superblog AI LLMs Core Stylesheet Source: https://superblog.ai/blog/blog-hosting-subdomain-vs-subfolder-cklto3qsr00101imuikysv7yd This snippet contains the main CSS rules for the Superblog AI LLMs project. It defines styles for various components including cards, inputs, menus, avatars, and checkboxes, utilizing CSS variables for theming and color-mix for advanced color manipulation. It also includes media queries and focus states for accessibility and interactivity. ```css .select:focus,.select:focus-within{box-shadow:0 1px color-mix(in oklab,var(--input-color)calc(var(--depth)*10%),#0000)}.select:focus,.select:focus-within{outline:2px solid var(--input-color);outline-offset:2px;isolation:isolate;z-index:1}.select:has(>select[disabled]),.select:is(:disabled,[disabled]){cursor:not-allowed;border-color:var(--color-base-200);background-color:var(--color-base-200);color:var(--color-base-content)}@supports (color:color-mix(in lab, red, red)){.select:has(>select[disabled]),.select:is(:disabled,[disabled]){color:color-mix(in oklab,var(--color-base-content)40%,transparent)}}:is(.select:has(>select[disabled]),.select:is(:disabled,[disabled]))::placeholder{color:var(--color-base-content)}@supports (color:color-mix(in lab, red, red)){:is(.select:has(>select[disabled]),.select:is(:disabled,[disabled]))::placeholder{color:color-mix(in oklab,var(--color-base-content)20%,transparent)}}.select:has(>select[disabled])>select[disabled]{cursor:not-allowed}.card{border-radius:var(--radius-box);outline-offset:2px;outline:0 solid #0000;flex-direction:column;transition:outline .2s ease-in-out;display:flex;position:relative}.card:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.card:focus{outline-offset:2px;outline:2px solid #0000}}.card:focus-visible{outline-color:currentColor}.card :where(figure:first-child){border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-end-radius:unset;border-end-start-radius:unset;overflow:hidden}.card :where(figure:last-child){border-start-start-radius:unset;border-start-end-radius:unset;border-end-end-radius:inherit;border-end-start-radius:inherit;overflow:hidden}.card:where(.card-border){border:var(--border)solid var(--color-base-200)}.card:where(.card-dash){border:var(--border)dashed var(--color-base-200)}.card.image-full{display:grid}.card.image-full>*{grid-row-start:1;grid-column-start:1}.card.image-full>.card-body{color:var(--color-neutral-content);position:relative}.card.image-full :where(figure){border-radius:inherit;overflow:hidden}.card.image-full>figure img{object-fit:cover;filter:brightness(28%);height:100%}.card figure{justify-content:center;align-items:center;display:flex}.card:has(>input:is(input[type=checkbox],input[type=radio])){cursor:pointer;-webkit-user-select:none;user-select:none}.card:has(>:checked){outline:2px solid}.collapse-title{grid-row-start:1;grid-column-start:1;width:100%;min-height:1lh;padding:1rem;padding-inline-end:3rem;transition:background-color .2s ease-out;position:relative}.menu-horizontal{flex-direction:row;display:inline-flex}.menu-horizontal>li:not(.menu-title)>details>ul{margin-inline-start:0;margin-top:1rem;padding-block:.5rem;padding-inline-end:.5rem;position:absolute}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){border-radius:var(--radius-box);background-color:var(--color-base-100);box-shadow:0 1px 3px oklch(0% 0 0/.1),0 1px 2px -1px oklch(0% 0 0/.1)}.avatar{vertical-align:middle;display:inline-flex;position:relative}.avatar>div{aspect-ratio:1;display:block;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.checkbox{border:var(--border)solid var(--input-color,var(--color-base-content))}@supports (color:color-mix(in lab, red, red)){.checkbox{border:var(--border)solid var(--input-color,color-mix(in oklab,var(--color-base-content)20%,#0000))}}.checkbox{cursor:pointer;appearance:none;border-radius:var(--radius-selector);vertical-align:middle;color:var(--color-base-content);box-shadow:0 1px oklch(0% 0 0/calc(var(--depth)*.1))inset,0 0 #0000 inset,0 0 #0000;--size:calc(var(--size-selector,.25rem)*6);width:var(--size);height:var(--size);background-size:auto,calc(var(--noise)*100%);background-image:none,var(--fx-noise);flex-shrink:0;padding:.25rem;transition:background-color .2s,box-shadow .2s;display:inline-block;position:relative}.checkbox:before{--tw-content:"";content:var(--tw-content);opacity:0;clip-path:polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%);width:100%;height:100%;box-shadow:0px 3px 0 0px oklch(100% 0 0/calc(var(--depth)*.1))inset;background-color:currentColor;font-size:1rem;line-height:.75;transition:clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s;display:block;rotate:45deg}.checkbox:focus-visible{outline:2px solid var(--input-color,currentColor);outline-offset:2px}.checkbox:checked,.checkbox[aria-checked=true]{background-color:var(--input-color,#0000);box-shadow:0 0 #0000 inset,0 8px 0 -4px oklch(100% 0 0/calc(var(--depth)*.1))inset,0 1px oklch(0% 0 0/calc(var(--depth)*.1))}:is(.checkbox:checked,.checkbox[aria-checked=true]):before{clip-path:polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%);opacity:1}@media (forced-colors:active){:is(.checkbox:checked,.checkbox[aria-checked=true]):before{--tw-content:"✔︎";clip-path:none;background-color:#0000;rot ``` -------------------------------- ### Responsive Layout and Spacing Utilities Source: https://superblog.ai/blog/blog-hosting-subdomain-vs-subfolder-cklto3qsr00101imuikysv7yd Contains CSS classes for controlling display properties, margins, and specific layout configurations based on screen size breakpoints. ```CSS @media not all and (min-width: 48rem) { .max-md\:flex { display: flex } } @media (min-width: 40rem) { .sm\:mt-8 { margin-top: calc(var(--spacing) * 8) } .sm\:mb-4 { margin-bottom: calc(var(--spacing) * 4) } .sm\:mb-8 { margin-bottom: calc(var(--spacing) * 8) } .sm\:mb-12 { margin-bottom: calc(var(--spacing) * 12) } .sm\:modal-middle { place-items: center } .sm\:modal-middle :where(.modal-box) { --modal-tl: var(--radius-box); --modal-tr: var(--radius-box); --modal-bl: var(--radius-box); --modal-br: var(--radius-box); width: 91.6667%; max-width: 32rem; height: auto; max-height: calc(100vh - 5em); translate: 0 2%; scale: 98% } .sm\:w-auto { width: auto } .sm\:footer-horizontal { grid-auto-flow: column } .sm\:footer-horizontal.fo { /* Content truncated */ } } ``` -------------------------------- ### CSS Layout and Z-index Utilities Source: https://superblog.ai/blog/blog-hosting-subdomain-vs-subfolder-cklto3qsr00101imuikysv7yd Includes utility classes for basic layout like flexbox alignment and display properties, as well as z-index management for layering elements. ```css .hero-content { isolation: isolate; justify-content: center; align-items: center; gap: 1rem; max-width: 80rem; padding: 1rem; display: flex; } .modal-backdrop { color: #0000; z-index: -1; grid-row-start: 1; grid-column-start: 1; place-self: stretch stretch; display: grid; } .modal-backdrop button { cursor: pointer; } .z-50 { z-index: 50; } .z-\[var\(--z-index-menu-items\]) { z-index: var(--z-index-menu-items); } ``` -------------------------------- ### Superblog Public Lead Submission API Source: https://superblog.ai/blog/blog-hosting-subdomain-vs-subfolder-cklto3qsr00101imuikysv7yd This API documentation describes the endpoints used by Superblog's lead generation forms to submit user data. It covers the various lead types (popup, sidebar, main) and the common request body structure for lead submission, including email, post/site CUIDs, and custom fields. ```APIDOC POST /api/public/leads POST /api/public/leads-sidebar POST /api/public/popup Description: Submits lead information from various Superblog lead generation forms. Request Body (application/json): { "lead": { "email": "string", // User's email address (required for EMAIL leadType) "postCuid": "string", // CUID of the post where the lead form is displayed (e.g., "cklto3qsr00101imuikysv7yd"). Can be "site-level". "siteCuid": "string", // CUID of the site where the lead form is displayed (e.g., "ckox4in4f002nl8lhcib41g2u") "customFieldsData": { // Object containing key-value pairs for custom form fields "fieldName": "string" } } } Response (Status 200 OK): - If `ctaLink` is configured, the client is redirected. - Otherwise, a success message is implied, and form fields are cleared. Response (Status non-200 Error): - The response body may contain a JSON object with an error message. Example: `{"error":{"message":"Unable to submit the form. Please try again."}}` - If JSON parsing fails, a generic error message is displayed. ``` -------------------------------- ### Superblog AI LLMs Core Stylesheet Source: https://superblog.ai/blog/how-to-update-a-website-link-preview-on-social-media-cksptmtol00121zlep5hlxa6z This snippet contains the main CSS rules for the Superblog AI LLMs project. It defines styles for various components including cards, inputs, menus, avatars, and checkboxes, utilizing CSS variables for theming and color-mix for advanced color manipulation. It also includes media queries and focus states for accessibility and interactivity. ```css .select:focus,.select:focus-within{box-shadow:0 1px color-mix(in oklab,var(--input-color)calc(var(--depth)*10%),#0000)}.select:focus,.select:focus-within{outline:2px solid var(--input-color);outline-offset:2px;isolation:isolate;z-index:1}.select:has(>select[disabled]),.select:is(:disabled,[disabled]){cursor:not-allowed;border-color:var(--color-base-200);background-color:var(--color-base-200);color:var(--color-base-content)}@supports (color:color-mix(in lab, red, red)){.select:has(>select[disabled]),.select:is(:disabled,[disabled]){color:color-mix(in oklab,var(--color-base-content)40%,transparent)}}:is(.select:has(>select[disabled]),.select:is(:disabled,[disabled]))::placeholder{color:var(--color-base-content)}@supports (color:color-mix(in lab, red, red)){:is(.select:has(>select[disabled]),.select:is(:disabled,[disabled]))::placeholder{color:color-mix(in oklab,var(--color-base-content)20%,transparent)}}.select:has(>select[disabled])>select[disabled]{cursor:not-allowed}.card{border-radius:var(--radius-box);outline-offset:2px;outline:0 solid #0000;flex-direction:column;transition:outline .2s ease-in-out;display:flex;position:relative}.card:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.card:focus{outline-offset:2px;outline:2px solid #0000}}.card:focus-visible{outline-color:currentColor}.card :where(figure:first-child){border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-end-radius:unset;border-end-start-radius:unset;overflow:hidden}.card :where(figure:last-child){border-start-start-radius:unset;border-start-end-radius:unset;border-end-end-radius:inherit;border-end-start-radius:inherit;overflow:hidden}.card:where(.card-border){border:var(--border)solid var(--color-base-200)}.card:where(.card-dash){border:var(--border)dashed var(--color-base-200)}.card.image-full{display:grid}.card.image-full>*{grid-row-start:1;grid-column-start:1}.card.image-full>.card-body{color:var(--color-neutral-content);position:relative}.card.image-full :where(figure){border-radius:inherit;overflow:hidden}.card.image-full>figure img{object-fit:cover;filter:brightness(28%);height:100%}.card figure{justify-content:center;align-items:center;display:flex}.card:has(>input:is(input[type=checkbox],input[type=radio])){cursor:pointer;-webkit-user-select:none;user-select:none}.card:has(>:checked){outline:2px solid}.collapse-title{grid-row-start:1;grid-column-start:1;width:100%;min-height:1lh;padding:1rem;padding-inline-end:3rem;transition:background-color .2s ease-out;position:relative}.menu-horizontal{flex-direction:row;display:inline-flex}.menu-horizontal>li:not(.menu-title)>details>ul{margin-inline-start:0;margin-top:1rem;padding-block:.5rem;padding-inline-end:.5rem;position:absolute}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){border-radius:var(--radius-box);background-color:var(--color-base-100);box-shadow:0 1px 3px oklch(0% 0 0/.1),0 1px 2px -1px oklch(0% 0 0/.1)}.avatar{vertical-align:middle;display:inline-flex;position:relative}.avatar>div{aspect-ratio:1;display:block;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.checkbox{border:var(--border)solid var(--input-color,var(--color-base-content))}@supports (color:color-mix(in lab, red, red)){.checkbox{border:var(--border)solid var(--input-color,color-mix(in oklab,var(--color-base-content)20%,#0000))}}.checkbox{cursor:pointer;appearance:none;border-radius:var(--radius-selector);vertical-align:middle;color:var(--color-base-content);box-shadow:0 1px oklch(0% 0 0/calc(var(--depth)*.1))inset,0 0 #0000 inset,0 0 #0000;--size:calc(var(--size-selector,.25rem)*6);width:var(--size);height:var(--size);background-size:auto,calc(var(--noise)*100%);background-image:none,var(--fx-noise);flex-shrink:0;padding:.25rem;transition:background-color .2s,box-shadow .2s;display:inline-block;position:relative}.checkbox:before{--tw-content:"";content:var(--tw-content);opacity:0;clip-path:polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%);width:100%;height:100%;box-shadow:0px 3px 0 0px oklch(100% 0 0/calc(var(--depth)*.1))inset;background-color:currentColor;font-size:1rem;line-height:.75;transition:clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s;display:block;rotate:45deg}.checkbox:focus-visible{outline:2px solid var(--input-color,currentColor);outline-offset:2px}.checkbox:checked,.checkbox[aria-checked=true]{background-color:var(--input-color,#0000);box-shadow:0 0 #0000 inset,0 8px 0 -4px oklch(100% 0 0/calc(var(--depth)*.1))inset,0 1px oklch(0% 0 0/calc(var(--depth)*.1))}:is(.checkbox:checked,.checkbox[aria-checked=true]):before{clip-path:polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%);opacity:1}@media (forced-colors:active){:is(.checkbox:checked,.checkbox[aria-checked=true]):before{--tw-content:"✔︎";clip-path:none;background-color:#0000;rot ``` -------------------------------- ### Blog Posting Schema Source: https://superblog.ai/blog/how-to-update-a-website-link-preview-on-social-media-cksptmtol00121zlep5hlxa6z Defines a structured data schema for a blog post using JSON-LD. It includes metadata such as headline, author, publisher, publication dates, and a description, intended for SEO enhancement and machine readability by search engines. ```APIDOC { "@context": "https://schema.org", "@type": "BlogPosting", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://superblog.ai/blog/how-to-update-a-website-link-preview-on-social-media-cksptmtol00121zlep5hlxa6z" }, "headline": "How to update a website link preview on social media", "image": "https://superblog.supercdn.cloud/site_cuid_ckox4in4f002nl8lhcib41g2u/images/supershot-1-1629798440599-compressed.png", "author": { "@type": "Person", "name": "Sai Krishna", "url": "https://superblog.ai/blog/author/sai-krishna" }, "publisher": { "@type": "Organization", "name": "superblog", "logo": { "@type": "ImageObject", "url": "https://superblog.supercdn.cloud/site_cuid_ckox4in4f002nl8lhcib41g2u/images/logo-blogcontent-1659712875669.jpg" } }, "datePublished": "2021-08-24T08:43:35.492Z", "dateModified": "2021-09-05T10:13:47.028Z", "description": "You might have seen that social media networks like twitter, facebook, Linkedin generate a card preview of your website link whenever you share it on their plat.." } ``` -------------------------------- ### Superblog Public Lead Submission API Source: https://superblog.ai/blog/font-combinations-for-blog This API documentation describes the endpoints used by Superblog's lead generation forms to submit user data. It covers the different endpoints for various form types (main, sidebar, popup), the expected JSON request body structure, and potential responses. ```APIDOC Endpoint(s): POST /api/public/leads - Used for the main lead generation form. POST /api/public/leads-sidebar - Used for sidebar lead forms. POST /api/public/popup - Used for exit-intent popup forms. Headers: Content-Type: application/json Request Body (JSON): { "lead": { "email": "string", // The email address provided by the user. // Required if leadType is 'EMAIL'. "postCuid": "string", // The CUID (Content Unique Identifier) of the associated post. // Example: "clmka2dd5146413um3cfmizl3k" "siteCuid": "string", // The CUID of the associated site. // Example: "ckox4in4f002nl8lhcib41g2u" "customFieldsData": { // An object containing key-value pairs for any custom fields defined for the form. // Keys are custom field names, values are user inputs. "fieldName": "string" } } } Responses: 200 OK: - Indicates successful lead submission. - No specific response body is typically returned for success, or it might be an empty JSON object. Non-200 Status (e.g., 4xx, 5xx): - Indicates an error during submission. - Response body may contain an error message. - Example error structure: { "error": { "message": "string" } } - Common errors include invalid input (e.g., malformed email) or server-side issues. ``` -------------------------------- ### Responsive Layout and Spacing Utilities Source: https://superblog.ai/blog/how-to-update-a-website-link-preview-on-social-media-cksptmtol00121zlep5hlxa6z Contains CSS classes for controlling display properties, margins, and specific layout configurations based on screen size breakpoints. ```CSS @media not all and (min-width: 48rem) { .max-md\:flex { display: flex } } @media (min-width: 40rem) { .sm\:mt-8 { margin-top: calc(var(--spacing) * 8) } .sm\:mb-4 { margin-bottom: calc(var(--spacing) * 4) } .sm\:mb-8 { margin-bottom: calc(var(--spacing) * 8) } .sm\:mb-12 { margin-bottom: calc(var(--spacing) * 12) } .sm\:modal-middle { place-items: center } .sm\:modal-middle :where(.modal-box) { --modal-tl: var(--radius-box); --modal-tr: var(--radius-box); --modal-bl: var(--radius-box); --modal-br: var(--radius-box); width: 91.6667%; max-width: 32rem; height: auto; max-height: calc(100vh - 5em); translate: 0 2%; scale: 98% } .sm\:w-auto { width: auto } .sm\:footer-horizontal { grid-auto-flow: column } .sm\:footer-horizontal.fo { /* Content truncated */ } } ``` -------------------------------- ### JavaScript Analytics and Configuration Source: https://stripe.com/ Contains configuration settings for Google Tag Manager (GTM) and initializes a MutationObserver to dynamically apply 'all' media to lazily loaded CSS links upon loading. ```javascript {"GTM_ID":"GTM-WK8882T","GTM_FRAME_URL":"https://b.stripecdn.com/stripethirdparty-srv/assets/","patchMismatchedCids":true,"environment":"production"} new MutationObserver(e=>{ for(const d of e) if(d.addedNodes) for(const e of d.addedNodes) e instanceof HTMLLinkElement && void 0!==e.dataset.jsLazyStyle && e.addEventListener("load",function(){this.media="all"}) }).observe(document.head,{ childList:!0 }), document.addEventListener("DOMContentLoaded",()=>{ for(const e of document.querySelectorAll("link[data-js-lazy-style]")) "all"!==e.media && (e.media="all") }); ```