Changes to brandcheck1.scroll.pub

ffff:99.156.178.38
ffff:99.156.178.38
21 days ago
updated script.js
script.js
Changed around line 21: document.addEventListener("DOMContentLoaded", () => {
- resultContainer.textContent = "";
+ resultContainer.innerHTML = "";
- resultMessage.style.color = isAvailable
- ? "var(--success-color)"
- : "var(--error-color)";
+ resultMessage.className = isAvailable ? "success" : "error";
Changed around line 39: document.addEventListener("DOMContentLoaded", () => {
- resultContainer.style.color = "var(--error-color)";
+ resultContainer.className = "error";
- resultContainer.style.color = "var(--error-color)";
+ resultContainer.className = "error";
ffff:99.156.178.38
ffff:99.156.178.38
21 days ago
updated style.css
style.css
Changed around line 1
- :root {
- --primary-color: #2563eb;
- --secondary-color: #1e40af;
- --background-color: #f8fafc;
- --text-color: #1e293b;
- --success-color: #16a34a;
- --error-color: #dc2626;
- }
-
+ /* General Reset */
+ /* Body Styles */
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- background-color: var(--background-color);
- color: var(--text-color);
- line-height: 1.6;
- min-height: 100vh;
+ font-family: "Inter", sans-serif;
+ background-color: #f8f9fa;
- flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ color: #333;
- header {
- background: var(--primary-color);
- color: white;
- padding: 2rem 1rem;
+ /* Container Styles */
+ .container {
+ background: white;
+ padding: 2.5rem;
+ border-radius: 12px;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- }
-
- header h1 {
- font-size: 2.5rem;
- margin-bottom: 0.5rem;
- }
-
- main {
- flex: 1;
- padding: 2rem 1rem;
- max-width: 800px;
- margin: 0 auto;
+ max-width: 450px;
+ animation: fadeIn 0.8s ease-in-out;
- .search-section {
- margin-bottom: 3rem;
+ /* Heading Styles */
+ h1 {
+ font-size: 1.8rem;
+ font-weight: 600;
+ margin-bottom: 1.5rem;
+ color: #2c3e50;
- .search-container {
+ /* Search Box Styles */
+ .search-box {
- gap: 1rem;
- margin-bottom: 1rem;
+ gap: 0.5rem;
+ margin-bottom: 1.5rem;
- #brandInput {
- flex: 1;
- padding: 0.75rem;
- border: 2px solid var(--primary-color);
+ .search-input {
+ padding: 0.75rem 1rem;
+ border: 1px solid #ddd;
+ width: 100%;
+ outline: none;
+ transition:
+ border-color 0.3s ease,
+ box-shadow 0.3s ease;
+ }
+
+ .search-input:focus {
+ border-color: #007bff;
+ box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
- #searchButton {
- background: var(--primary-color);
+ .search-button {
+ padding: 0.75rem 1.5rem;
+ background-color: #007bff;
- padding: 0.75rem 1.5rem;
- transition: background 0.3s ease;
- }
-
- #searchButton:hover {
- background: var(--secondary-color);
+ font-weight: 500;
+ transition:
+ background-color 0.3s ease,
+ transform 0.2s ease;
- .result-container {
- padding: 1rem;
- border-radius: 8px;
- text-align: center;
- font-size: 1.2rem;
- font-weight: 500;
+ .search-button:hover {
+ background-color: #0056b3;
+ transform: translateY(-2px);
- .info-section {
- margin-top: 3rem;
+ .search-button:active {
+ transform: translateY(0);
- .info-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
- gap: 1.5rem;
+ /* Result Container Styles */
+ .result-container {
+ font-size: 1.1rem;
+ animation: fadeIn 0.5s ease-in-out;
- .info-card {
- background: white;
- padding: 1.5rem;
+ .result-container p {
+ padding: 0.75rem;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ background-color: #f8f9fa;
+ margin: 0;
- footer {
- background: var(--primary-color);
- color: white;
- text-align: center;
- padding: 1rem;
- margin-top: auto;
+ .result-container .success {
+ color: #28a745;
- @media (max-width: 600px) {
- .search-container {
- flex-direction: column;
- }
+ .result-container .error {
+ color: #dc3545;
+ }
- #searchButton {
- width: 100%;
+ /* Animations */
+ @keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(-10px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
- }
+ }
ffff:99.156.178.38
ffff:99.156.178.38
21 days ago
updated body.html
body.html
Changed around line 4
-
+
-
-
-
+
+
+ type="text"
+ id="brandInput"
+ placeholder="Enter a brand name"
+ class="search-input"
+ />
+
+
+
ffff:99.156.178.38
ffff:99.156.178.38
21 days ago
updated body.html
body.html
Changed around line 1
-
-

BrandCheck

-

Verify if your dream brand name is available

-
-
-
-
-
-
-
+
+
+
+
+
+ Brand Availability Checker
+
+
+
+
+

Brand Availability Checker

+
+
+
-
-
-
-
-

Why BrandCheck?

-
-
-

Instant Results

-

Get immediate feedback on brand name availability

-
-
-

Simple Interface

-

Clean and intuitive design for effortless use

-
-
-

Mobile Friendly

-

Works seamlessly on all devices

-
-
-
-
-
-
-

Empowering your brand journey

-
+
+
+
ffff:99.156.178.38
ffff:99.156.178.38
21 days ago
updated script.js
script.js
Changed around line 1
- document.addEventListener('DOMContentLoaded', () => {
- const brandInput = document.getElementById('brandInput');
- const searchButton = document.getElementById('searchButton');
- const resultContainer = document.getElementById('resultContainer');
+ document.addEventListener("DOMContentLoaded", () => {
+ const brandInput = document.getElementById("brandInput");
+ const searchButton = document.getElementById("searchButton");
+ const resultContainer = document.getElementById("resultContainer");
- // Simulate API call with random result
- return new Promise((resolve) => {
- setTimeout(() => {
- const isAvailable = Math.random() > 0.5;
- resolve(isAvailable);
- }, 800);
- });
+ try {
+ // Fetch data from DuckDuckGo API
+ const response = await fetch(
+ `https://api.duckduckgo.com/?q=${encodeURIComponent(brandName)}&format=json&no_html=1`,
+ );
+ const data = await response.json();
+
+ // If the API returns an abstract, assume the brand is in use
+ const isAvailable = !data.AbstractText;
+ return isAvailable;
+ } catch (error) {
+ console.error("Error fetching data:", error);
+ throw new Error("An error occurred while checking availability.");
+ }
- resultContainer.textContent = '';
- const resultMessage = document.createElement('p');
- resultMessage.textContent = isAvailable
- ? '✅ Brand name is available!'
- : '❌ Brand name is already in use';
- resultMessage.style.color = isAvailable ? 'var(--success-color)' : 'var(--error-color)';
+ resultContainer.textContent = "";
+ const resultMessage = document.createElement("p");
+ resultMessage.textContent = isAvailable
+ ? "✅ Brand name is available!"
+ : "❌ Brand name is already in use";
+ resultMessage.style.color = isAvailable
+ ? "var(--success-color)"
+ : "var(--error-color)";
- searchButton.addEventListener('click', async () => {
+ searchButton.addEventListener("click", async () => {
- resultContainer.textContent = 'Checking availability...';
- const isAvailable = await checkBrandAvailability(brandName);
- displayResult(isAvailable);
+ resultContainer.textContent = "Checking availability...";
+ try {
+ const isAvailable = await checkBrandAvailability(brandName);
+ displayResult(isAvailable);
+ } catch (error) {
+ resultContainer.textContent = error.message;
+ resultContainer.style.color = "var(--error-color)";
+ }
- resultContainer.textContent = 'Please enter a brand name';
- resultContainer.style.color = 'var(--error-color)';
+ resultContainer.textContent = "Please enter a brand name";
+ resultContainer.style.color = "var(--error-color)";
- brandInput.addEventListener('keypress', (e) => {
- if (e.key === 'Enter') {
+ brandInput.addEventListener("keypress", (e) => {
+ if (e.key === "Enter") {
- });
+ });
root
root
21 days ago
Initial commit
body.html
Changed around line 1
+
+

BrandCheck

+

Verify if your dream brand name is available

+
+
+
+
+
+
+
+
+
+
+
+
+

Why BrandCheck?

+
+
+

Instant Results

+

Get immediate feedback on brand name availability

+
+
+

Simple Interface

+

Clean and intuitive design for effortless use

+
+
+

Mobile Friendly

+

Works seamlessly on all devices

+
+
+
+
+
+
+

Empowering your brand journey

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://brandcheck.scroll.pub
+ metaTags
+ editButton /edit.html
+ title BrandCheck - Verify Brand Name Availability
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "54adde92-1c97-46c0-962c-9dac9f219ed1",
+ "object": "chat.completion",
+ "created": 1735742564,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nbrandcheck.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://brandcheck.scroll.pub\nmetaTags\neditButton /edit.html\ntitle BrandCheck - Verify Brand Name Availability\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

BrandCheck

\n

Verify if your dream brand name is available

\n
\n\n
\n
\n
\n \n \n
\n
\n
\n\n
\n

Why BrandCheck?

\n
\n
\n

Instant Results

\n

Get immediate feedback on brand name availability

\n
\n
\n

Simple Interface

\n

Clean and intuitive design for effortless use

\n
\n
\n

Mobile Friendly

\n

Works seamlessly on all devices

\n
\n
\n
\n
\n\n
\n

Empowering your brand journey

\n
\n---style.css---\n:root {\n --primary-color: #2563eb;\n --secondary-color: #1e40af;\n --background-color: #f8fafc;\n --text-color: #1e293b;\n --success-color: #16a34a;\n --error-color: #dc2626;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n}\n\nheader h1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\nmain {\n flex: 1;\n padding: 2rem 1rem;\n max-width: 800px;\n margin: 0 auto;\n width: 100%;\n}\n\n.search-section {\n margin-bottom: 3rem;\n}\n\n.search-container {\n display: flex;\n gap: 1rem;\n margin-bottom: 1rem;\n}\n\n#brandInput {\n flex: 1;\n padding: 0.75rem;\n border: 2px solid var(--primary-color);\n border-radius: 8px;\n font-size: 1rem;\n}\n\n#searchButton {\n background: var(--primary-color);\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 8px;\n cursor: pointer;\n font-size: 1rem;\n transition: background 0.3s ease;\n}\n\n#searchButton:hover {\n background: var(--secondary-color);\n}\n\n.result-container {\n padding: 1rem;\n border-radius: 8px;\n text-align: center;\n font-size: 1.2rem;\n font-weight: 500;\n}\n\n.info-section {\n margin-top: 3rem;\n}\n\n.info-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 1.5rem;\n margin-top: 1.5rem;\n}\n\n.info-card {\n background: white;\n padding: 1.5rem;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n text-align: center;\n padding: 1rem;\n margin-top: auto;\n}\n\n@media (max-width: 600px) {\n .search-container {\n flex-direction: column;\n }\n\n #searchButton {\n width: 100%;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const brandInput = document.getElementById('brandInput');\n const searchButton = document.getElementById('searchButton');\n const resultContainer = document.getElementById('resultContainer');\n\n const checkBrandAvailability = async (brandName) => {\n // Simulate API call with random result\n return new Promise((resolve) => {\n setTimeout(() => {\n const isAvailable = Math.random() > 0.5;\n resolve(isAvailable);\n }, 800);\n });\n };\n\n const displayResult = (isAvailable) => {\n resultContainer.textContent = '';\n const resultMessage = document.createElement('p');\n resultMessage.textContent = isAvailable \n ? '✅ Brand name is available!' \n : '❌ Brand name is already in use';\n resultMessage.style.color = isAvailable ? 'var(--success-color)' : 'var(--error-color)';\n resultContainer.appendChild(resultMessage);\n };\n\n searchButton.addEventListener('click', async () => {\n const brandName = brandInput.value.trim();\n if (brandName) {\n resultContainer.textContent = 'Checking availability...';\n const isAvailable = await checkBrandAvailability(brandName);\n displayResult(isAvailable);\n } else {\n resultContainer.textContent = 'Please enter a brand name';\n resultContainer.style.color = 'var(--error-color)';\n }\n });\n\n brandInput.addEventListener('keypress', (e) => {\n if (e.key === 'Enter') {\n searchButton.click();\n }\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 259,
+ "completion_tokens": 1360,
+ "total_tokens": 1619,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 259
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # brandcheck1.scroll.pub
+ Website generated by DeepSeek from prompt: create a fully functioning web search app that tells the user if a brand name is already in use and make it user interface focused
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ const brandInput = document.getElementById('brandInput');
+ const searchButton = document.getElementById('searchButton');
+ const resultContainer = document.getElementById('resultContainer');
+
+ const checkBrandAvailability = async (brandName) => {
+ // Simulate API call with random result
+ return new Promise((resolve) => {
+ setTimeout(() => {
+ const isAvailable = Math.random() > 0.5;
+ resolve(isAvailable);
+ }, 800);
+ });
+ };
+
+ const displayResult = (isAvailable) => {
+ resultContainer.textContent = '';
+ const resultMessage = document.createElement('p');
+ resultMessage.textContent = isAvailable
+ ? '✅ Brand name is available!'
+ : '❌ Brand name is already in use';
+ resultMessage.style.color = isAvailable ? 'var(--success-color)' : 'var(--error-color)';
+ resultContainer.appendChild(resultMessage);
+ };
+
+ searchButton.addEventListener('click', async () => {
+ const brandName = brandInput.value.trim();
+ if (brandName) {
+ resultContainer.textContent = 'Checking availability...';
+ const isAvailable = await checkBrandAvailability(brandName);
+ displayResult(isAvailable);
+ } else {
+ resultContainer.textContent = 'Please enter a brand name';
+ resultContainer.style.color = 'var(--error-color)';
+ }
+ });
+
+ brandInput.addEventListener('keypress', (e) => {
+ if (e.key === 'Enter') {
+ searchButton.click();
+ }
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #2563eb;
+ --secondary-color: #1e40af;
+ --background-color: #f8fafc;
+ --text-color: #1e293b;
+ --success-color: #16a34a;
+ --error-color: #dc2626;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ line-height: 1.6;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ header {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem 1rem;
+ text-align: center;
+ }
+
+ header h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+ }
+
+ main {
+ flex: 1;
+ padding: 2rem 1rem;
+ max-width: 800px;
+ margin: 0 auto;
+ width: 100%;
+ }
+
+ .search-section {
+ margin-bottom: 3rem;
+ }
+
+ .search-container {
+ display: flex;
+ gap: 1rem;
+ margin-bottom: 1rem;
+ }
+
+ #brandInput {
+ flex: 1;
+ padding: 0.75rem;
+ border: 2px solid var(--primary-color);
+ border-radius: 8px;
+ font-size: 1rem;
+ }
+
+ #searchButton {
+ background: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: 8px;
+ cursor: pointer;
+ font-size: 1rem;
+ transition: background 0.3s ease;
+ }
+
+ #searchButton:hover {
+ background: var(--secondary-color);
+ }
+
+ .result-container {
+ padding: 1rem;
+ border-radius: 8px;
+ text-align: center;
+ font-size: 1.2rem;
+ font-weight: 500;
+ }
+
+ .info-section {
+ margin-top: 3rem;
+ }
+
+ .info-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 1.5rem;
+ margin-top: 1.5rem;
+ }
+
+ .info-card {
+ background: white;
+ padding: 1.5rem;
+ border-radius: 8px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ }
+
+ footer {
+ background: var(--primary-color);
+ color: white;
+ text-align: center;
+ padding: 1rem;
+ margin-top: auto;
+ }
+
+ @media (max-width: 600px) {
+ .search-container {
+ flex-direction: column;
+ }
+
+ #searchButton {
+ width: 100%;
+ }
+ }