From 3ba83e4cd6972a84f407d6762c7290014f578714 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Wed, 15 May 2024 23:48:57 +0000 Subject: [PATCH] Add files via upload --- LICENSE | 19 +++++++++++ README.md | 4 ++- index.html | 79 ++++++++++++++++++++++++++++++++++++++++++++ script.js | 32 ++++++++++++++++++ styling.css | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 228 insertions(+), 1 deletion(-) create mode 100644 LICENSE create mode 100644 index.html create mode 100644 script.js create mode 100644 styling.css diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4aab131 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +The Samuel Public License Revision 5 (SPL-R5) + +Copyright (c) 2024 Samuel Lord + +This document grants permission, without charge, to any individual acquiring a copy of the software and its associated documentation files (hereinafter referred to as the "Software"). Such individuals are authorized to engage in activities related to the Software with certain restrictions (listed below), including, but not limited to, the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. These permissions extend to persons to whom the Software is furnished, subject to compliance with the specified conditions outlined below. + +THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +In making contributions to the Software, contributors irrevocably assign, transfer, and convey all rights, titles, and interests in and to their contributions to the project owner(s). This assignment is absolute and encompasses all intellectual property rights, including, but not limited to, copyrights, patents, trademarks, and trade secrets. Contributors acknowledge and consent that they have no further claim, right, or interest in their contributions and agree to relinquish any moral rights associated with the contributed content. This assignment is effective upon the act of contributing to the Software, and contributors affirm that they have the authority to make such an assignment. However, contributors retain the right to modify their contributions. + +Furthermore, this document permits the reuse and redistribution of both executable binaries and source code, contingent upon the inclusion of the previously mentioned copyright notice and permission notice in all copies or substantial portions of the Software. It is imperative that you explicitly acknowledge and agree that the owner(s) retain ownership rights over the aforementioned source code. + +Moreover, companies using the Software are encouraged to contribute upstream. Fortune 500 companies are required to make an annual contribution of at least 20,000 USD or an equivalent amount to support the project's sustainability unless no donation option is provided. + +Additionally, note that the use of AI-assisted tools, including but not limited to GitHub Copilot and ChatGPT, is expressly permitted in conjunction with this software. Users are encouraged to leverage these AI tools to enhance their experience in developing, modifying, and interacting with the Software. The permission granted herein extends to the integration and utilization of AI-generated content for coding and communication purposes. The owners(s) of the Software acknowledge and embrace the collaborative nature of AI-assisted development. + +In addition, the owner of the code is granted the authority to update their copy of The Samuel Public License (SPL) to the latest revision. This update may be undertaken at the discretion of the owner to ensure alignment with any subsequent revisions made to The Samuel Public License. + +The aforementioned copyright notice and this permission notice must be included in all copies or substantial portions of the Software. \ No newline at end of file diff --git a/README.md b/README.md index ed3fe4c..a336560 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# homepage \ No newline at end of file +# homepage + +My Personal Homepage \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..8551e23 --- /dev/null +++ b/index.html @@ -0,0 +1,79 @@ + + + + + + Sam's Homepage + + + + +
+

"Hello, World!" --some computer

+

+ + +

Nifty Links

+ +

AI/Social

+

+ Gemini + ChatGPT + Discord + Sparksammy's Linktree +

+ +

Learning & Education

+

+ Udemy + freeCodeCamp.org + The Coding Train +

+ +

Documentation

+

+ Mozilla Developer Docs + ROBLOX Developer Wiki + JavaScript MDN Docs + HTML MDN Docs + CSS MDN Docs + Windows Documentation + Die.net - Linux Man Pages + W3Schools +

+ +

News & Security

+

+ The Verge + Ars Technica + Engadget + MIT Technology Review + Wired + Krebs on Security +

+ +

More Coding YouTube Channels

+

+ The Coding Train + Traversy Media + Frontend Masters + Codecademy + The TechLead + Fireship + No Boilerplate +

+ +

Great Stuff

+

+ Sneed Group Git + NodeMixaholic.com +

+ +
+
+ + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..1b74bc3 --- /dev/null +++ b/script.js @@ -0,0 +1,32 @@ +let codingMode = false; // Set to true for coding mode (no api calls to bible passage) + +//https://labs.bible.org/api/?passage=random&formatting=plain&type=text +async function fetchBiblePassage() { + try { + let textData; + if (codingMode == true) { + textData = 'Samuel 16:9 “And he said, "I now know de wae" in zimbabwe.'; + } else { + const response = await fetch('https://labs.bible.org/api/?passage=random&formatting=plain&type=text'); + textData = await response.text(); + } + document.getElementById('biblepassage').textContent = `${textData}`; + } catch (error) { + console.error('Error fetching Bible passage:', error); + // Handle the error gracefully, e.g., display an error message to the user + } +} + + fetchBiblePassage(); + +const searchButton = document.getElementById('search-button'); +const searchInput = document.getElementById('search-input'); + +searchButton.addEventListener('click', () => { + const searchTerm = searchInput.value; + if (searchTerm) { + window.location.href = `https://search.sparksammy.com/search.php?q=${searchTerm}&p=0&t=0`; + } else { + alert('Please enter a search term.'); + } +}); diff --git a/styling.css b/styling.css new file mode 100644 index 0000000..2245338 --- /dev/null +++ b/styling.css @@ -0,0 +1,95 @@ +/* Basic styles */ + body { + font-family: Arial, sans-serif; + margin: 0; + padding: 0; + background-color: white; + color: black; + } + + /* With dark mode */ + @media (prefers-color-scheme: dark) { + body { + background-color: black; + color: white; + } + + /* Apply dark mode styles to other elements as needed */ + } + + + h1 { + text-align: center; + margin-top: 20px; + } + + p { + text-align: center; + margin-bottom: 10px; + } + + a { + text-decoration: none; + color: #007bff; + border: 1px solid #ddd; + border-radius: 5px; + font-size: 1.2rem; + padding-left: 1.2rem; + padding-right: 1.2rem; + margin-top: 0; + margin-bottom: 0; + } + + a:hover { + background-color: #ddd; + } + + #search-bar { + display: flex; + justify-content: center; + align-items: center; + margin: 20px auto; + width: 60%; + } + + #search-input { + padding: 5px; + border: 1px solid #ccc; + flex: 1; + } + + #search-button { + padding: 5px 10px; + border: 1px solid #ccc; + cursor: pointer; + background-color: #007bff; + color: white; + } + + /* Media queries for responsiveness */ + + @media only screen and (max-width: 768px) { + /* Styles for screens smaller than 768px (mobile devices) */ + h1 { + font-size: 1.5rem; /* Adjust font size for smaller screens */ + } + + p { + font-size: 1rem; /* Adjust font size for smaller screens */ + } + + a { + font-size: 0.8rem; /* Adjust font size for smaller screens */ + } + + #search-bar { + width: 80%; /* Adjust width for smaller screens */ + } + } + + @media only screen and (min-width: 768px) { + /* Styles for screens wider than 768px (desktop) */ + #search-bar { + width: 40%; /* Adjust width for larger screens */ + } + } \ No newline at end of file