From b3a862c21cc30fc297eda499265d36f5caddd5fe Mon Sep 17 00:00:00 2001 From: maxiwee69 Date: Wed, 24 Jan 2024 20:20:30 +0100 Subject: [PATCH] removed the footer from the website because it was not needed and it was bugged and i was too lazy to fix it and it looked bad anyway(except for the footer on the / page that one is good but i didnt keep it anyway) modified: index.html modified: learntotweak/aarch64/index.html modified: learntotweak/aarch64/style.css modified: learntotweak/index.html modified: learntotweak/step1/index.html modified: learntotweak/step1/style.css modified: learntotweak/step2/index.html modified: learntotweak/step2/style.css modified: learntotweak/step3/index.html modified: learntotweak/step3/style.css modified: learntotweak/style.css modified: projects/index.html modified: projects/style.css modified: style.css --- footer.py | 44 +++++++++++++++------------------ index.html | 3 --- learntotweak/aarch64/index.html | 4 +-- learntotweak/aarch64/style.css | 9 ------- learntotweak/index.html | 4 +-- learntotweak/step1/index.html | 4 +-- learntotweak/step1/style.css | 9 ------- learntotweak/step2/index.html | 4 +-- learntotweak/step2/style.css | 9 ------- learntotweak/step3/index.html | 4 +-- learntotweak/step3/style.css | 9 ------- learntotweak/style.css | 11 +-------- projects/index.html | 4 +-- projects/style.css | 11 +-------- style.css | 11 +-------- 15 files changed, 29 insertions(+), 111 deletions(-) diff --git a/footer.py b/footer.py index e85af1c..fcf7928 100644 --- a/footer.py +++ b/footer.py @@ -4,33 +4,29 @@ # Specify the directory you want to start from root_dir = r'C:\Users\maxi\maxiwee69.github.io' -# Define the footer CSS you want to add -footer_css = """.footer { - background-color: #0a0a15; /* Darker blue */ - color: #e0e0e0; /* Lighter color for the footer text */ - font-family: Arial, sans-serif; - text-align: center; - padding: 20px; - width: 100%; - flex-shrink: 0; -}""" - # Walk through all subdirectories for dirpath, dirnames, filenames in os.walk(root_dir): for filename in filenames: - # Check if the file is a CSS file - if filename.endswith('.css'): - filepath = os.path.join(dirpath, filename) + filepath = os.path.join(dirpath, filename) + if filename.endswith('.html'): + with open(filepath, 'r+') as file: + # Read the existing content + content = file.read() + # Remove the footer + content = re.sub(r'', '', content, flags=re.DOTALL) + # Write the new content back to the file + file.seek(0) + file.write(content) + file.truncate() + print(f'Removed footer from: {filepath}') + elif filename.endswith('.css'): with open(filepath, 'r+') as file: # Read the existing content content = file.read() - # Check if the footer background-color is set to #0a0a15 - if re.search(r'\.footer\s*{\s*background-color:\s*#0a0a15;', content): - print(f'Found matching file: {filepath}') - # If yes, replace the entire .footer CSS with the new one - content = re.sub(r'(\.footer\s*{[^}]*})', footer_css, content) - # Write the new content back to the file - file.seek(0) - file.write(content) - file.truncate() - print(f'Updated file: {filepath}') + # Remove the .footer CSS rules + content = re.sub(r'\.footer\s*{[^}]*}', '', content) + # Write the new content back to the file + file.seek(0) + file.write(content) + file.truncate() + print(f'Removed .footer CSS from: {filepath}') diff --git a/index.html b/index.html index c55f6c3..4ec01e6 100644 --- a/index.html +++ b/index.html @@ -41,9 +41,6 @@

About Me

you can contact me via Twitter or Email.

- diff --git a/learntotweak/aarch64/index.html b/learntotweak/aarch64/index.html index 78ba14f..7e0761c 100644 --- a/learntotweak/aarch64/index.html +++ b/learntotweak/aarch64/index.html @@ -68,9 +68,7 @@

Go back to the overview - + diff --git a/learntotweak/aarch64/style.css b/learntotweak/aarch64/style.css index 9c77a40..ca4d455 100644 --- a/learntotweak/aarch64/style.css +++ b/learntotweak/aarch64/style.css @@ -122,12 +122,3 @@ html { } /* Footer Styles */ -.footer { - background-color: #0a0a15; /* Darker blue */ - color: #e0e0e0; /* Lighter color for the footer text */ - font-family: Arial, sans-serif; - text-align: center; - padding: 20px; - width: 100%; - flex-shrink: 0; -} \ No newline at end of file diff --git a/learntotweak/index.html b/learntotweak/index.html index c54add1..0bde0c1 100644 --- a/learntotweak/index.html +++ b/learntotweak/index.html @@ -57,9 +57,7 @@

Learn to create your own iOS tweaks

Special - ARM64 devices like raspberry pi - + diff --git a/learntotweak/step1/index.html b/learntotweak/step1/index.html index 71cb2f7..ef08547 100644 --- a/learntotweak/step1/index.html +++ b/learntotweak/step1/index.html @@ -154,9 +154,7 @@

Go to Step 2 - + diff --git a/learntotweak/step1/style.css b/learntotweak/step1/style.css index 5ba82f4..d54755f 100644 --- a/learntotweak/step1/style.css +++ b/learntotweak/step1/style.css @@ -111,12 +111,3 @@ html { } /* Footer Styles */ -.footer { - background-color: #0a0a15; /* Darker blue */ - color: #e0e0e0; /* Lighter color for the footer text */ - font-family: Arial, sans-serif; - text-align: center; - padding: 20px; - width: 100%; - flex-shrink: 0; -} \ No newline at end of file diff --git a/learntotweak/step2/index.html b/learntotweak/step2/index.html index d5b6ba9..c5b471b 100644 --- a/learntotweak/step2/index.html +++ b/learntotweak/step2/index.html @@ -122,9 +122,7 @@

Go back to step 1 Go to Step 3 - + diff --git a/learntotweak/step2/style.css b/learntotweak/step2/style.css index 9c77a40..ca4d455 100644 --- a/learntotweak/step2/style.css +++ b/learntotweak/step2/style.css @@ -122,12 +122,3 @@ html { } /* Footer Styles */ -.footer { - background-color: #0a0a15; /* Darker blue */ - color: #e0e0e0; /* Lighter color for the footer text */ - font-family: Arial, sans-serif; - text-align: center; - padding: 20px; - width: 100%; - flex-shrink: 0; -} \ No newline at end of file diff --git a/learntotweak/step3/index.html b/learntotweak/step3/index.html index c7e2510..d7f2d01 100644 --- a/learntotweak/step3/index.html +++ b/learntotweak/step3/index.html @@ -84,9 +84,7 @@

Go back to step 2 - + diff --git a/learntotweak/step3/style.css b/learntotweak/step3/style.css index 9c77a40..ca4d455 100644 --- a/learntotweak/step3/style.css +++ b/learntotweak/step3/style.css @@ -122,12 +122,3 @@ html { } /* Footer Styles */ -.footer { - background-color: #0a0a15; /* Darker blue */ - color: #e0e0e0; /* Lighter color for the footer text */ - font-family: Arial, sans-serif; - text-align: center; - padding: 20px; - width: 100%; - flex-shrink: 0; -} \ No newline at end of file diff --git a/learntotweak/style.css b/learntotweak/style.css index 829a44a..bbb2ad7 100644 --- a/learntotweak/style.css +++ b/learntotweak/style.css @@ -92,16 +92,7 @@ body { margin-bottom: 20px; } -.footer { - background-color: #000022; /* Even darker blue */ - color: #fff; /* White text for contrast */ - text-align: center; - padding: 10px; - position: fixed; - bottom: 0; - width: 100%; - transition: background-color 0.3s ease; -} + /* Adjust padding and border radius to make design simpler */ .step1 a, .step2 a, .step3 a, .aarch64 a { diff --git a/projects/index.html b/projects/index.html index 24fdde5..5b502a9 100644 --- a/projects/index.html +++ b/projects/index.html @@ -63,8 +63,6 @@

DLL Injection Checker

More projects coming soon...

- + diff --git a/projects/style.css b/projects/style.css index 680b9de..e3d062f 100644 --- a/projects/style.css +++ b/projects/style.css @@ -100,15 +100,6 @@ body { /* Footer Styles */ - .footer { - background-color: linear-gradient(to top, #404040, #00000); - color: #cccccc; - font-family: Arial, sans-serif; - text-align: center; - padding: 20px; - position: absolute; - bottom: 0; - width: 100%; - } + \ No newline at end of file diff --git a/style.css b/style.css index d66a7dd..eaf7dc5 100755 --- a/style.css +++ b/style.css @@ -137,16 +137,7 @@ html { /* Footer Styles */ -.footer { - background-color: linear-gradient(to top, #404040, #00000); - color: #cccccc; - font-family: Arial, sans-serif; - text-align: center; - padding: 20px; - position: absolute; - bottom: 0; - width: 100%; -} + .hamburger-menu {