generated from skills/github-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ad060a
commit 4586f9b
Showing
14 changed files
with
174 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
./about.html | ||
./bigasciiart.txt | ||
./index.html | ||
./style.css | ||
./index.js | ||
./archive.html | ||
./smallasciiart.txt | ||
./style.css | ||
./about.html |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_____ _ | ||
/ ____| | | | ||
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __ | ||
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__| | ||
| |___| (_) | (_| | __/ | | | | | | | | | | ||
\_____\___/ \__,_|\___|_| |_| |_| |_| |_| | ||
turbomaster95's site | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const preElement = document.querySelector('pre'); | ||
const isMobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); | ||
|
||
// Function to fetch ASCII art from a file | ||
async function fetchAsciiArt(filename) { | ||
try { | ||
const response = await fetch(filename); | ||
if (!response.ok) { | ||
throw new Error(`Failed to fetch ${filename}`); | ||
} | ||
return await response.text(); | ||
} catch (error) { | ||
console.error('Error loading ASCII art:', error); | ||
return ''; // Return an empty string on error | ||
} | ||
} | ||
|
||
// Load ASCII art and update <pre> | ||
async function displayAsciiArt() { | ||
const bigAsciiArt = await fetchAsciiArt('bigasciiart.txt'); | ||
const smallAsciiArt = await fetchAsciiArt('smallasciiart.txt'); | ||
|
||
if (isMobileDevice) { | ||
preElement.textContent = smallAsciiArt; | ||
} else { | ||
preElement.textContent = bigAsciiArt; | ||
} | ||
} | ||
|
||
// Call the function to display the art | ||
displayAsciiArt(); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
___ _ | ||
/ __|___ __| |___ _ _ _ _ _ _ _ _ _ _ | ||
| (__/ _ / _` / -_| '_| '_| '_| '_| '_| | ||
\___\___\__,_\___|_| |_| |_| |_| |_| | ||
turbomaster95's site |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
<i class="far fa-copyright"></i> 2024-2024 </p> | ||
</footer> | ||
</body> | ||
</html> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_____ _ | ||
/ ____| | | | ||
| | ___ __| | ___ _ __ _ __ _ __ _ __ _ __ | ||
| | / _ \ / _` |/ _ \ '__| '__| '__| '__| '__| | ||
| |___| (_) | (_| | __/ | | | | | | | | | | ||
\_____\___/ \__,_|\___|_| |_| |_| |_| |_| | ||
turbomaster95's site | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const preElement = document.querySelector('pre'); | ||
const isMobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); | ||
|
||
// Function to fetch ASCII art from a file | ||
async function fetchAsciiArt(filename) { | ||
try { | ||
const response = await fetch(filename); | ||
if (!response.ok) { | ||
throw new Error(`Failed to fetch ${filename}`); | ||
} | ||
return await response.text(); | ||
} catch (error) { | ||
console.error('Error loading ASCII art:', error); | ||
return ''; // Return an empty string on error | ||
} | ||
} | ||
|
||
// Load ASCII art and update <pre> | ||
async function displayAsciiArt() { | ||
const bigAsciiArt = await fetchAsciiArt('bigasciiart.txt'); | ||
const smallAsciiArt = await fetchAsciiArt('smallasciiart.txt'); | ||
|
||
if (isMobileDevice) { | ||
preElement.textContent = smallAsciiArt; | ||
} else { | ||
preElement.textContent = bigAsciiArt; | ||
} | ||
} | ||
|
||
// Call the function to display the art | ||
displayAsciiArt(); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
___ _ | ||
/ __|___ __| |___ _ _ _ _ _ _ _ _ _ _ | ||
| (__/ _ / _` / -_| '_| '_| '_| '_| '_| | ||
\___\___\__,_\___|_| |_| |_| |_| |_| | ||
turbomaster95's site |