Skip to content

Commit

Permalink
1st comit
Browse files Browse the repository at this point in the history
  • Loading branch information
ms7ru committed Oct 30, 2024
0 parents commit d5206d3
Show file tree
Hide file tree
Showing 152 changed files with 4,070 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
82 changes: 82 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Generate Sitemap
on:
push:
branches:
- main # or your default branch name
jobs:
generate-sitemap:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Create sitemap generation script
run: |
cat > generate-sitemap.js << 'EOF'
const fs = require('fs');
const path = require('path');
function getAllFiles(dirPath, arrayOfFiles) {
const files = fs.readdirSync(dirPath);
arrayOfFiles = arrayOfFiles || [];
files.forEach(file => {
if (fs.statSync(dirPath + "/" + file).isDirectory()) {
arrayOfFiles = getAllFiles(dirPath + "/" + file, arrayOfFiles);
} else {
arrayOfFiles.push(path.join(dirPath, file));
}
});
return arrayOfFiles;
}
// Get all files and filter for .html
const allFiles = getAllFiles('.');
const htmlFiles = allFiles.filter(file =>
file.endsWith('.html') &&
!file.includes('node_modules') &&
!file.startsWith('./.git/')
);
// Convert paths to URLs
const repoName = process.env.GITHUB_REPOSITORY.split('/')[1];
const baseUrl = `https://${repoName}`;
const urls = htmlFiles.map(file => {
// Remove leading './' and convert path separators
const urlPath = file.replace(/^\.\//, '').replace(/\\/g, '/');
return `${baseUrl}/${urlPath}`;
});
// Generate sitemap XML
const sitemap = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
${urls.map(url => `
<url>
<loc>${url}</loc>
<lastmod>${new Date().toISOString()}</lastmod>
</url>
`).join('')}
</urlset>`;
fs.writeFileSync('sitemap.xml', sitemap);
EOF
- name: Generate sitemap
run: node generate-sitemap.js

- name: Commit and push sitemap
run: |
git config --local user.email "[email protected]"
git config --local user.name "[BOT]-SiteMap-Updator"
git add sitemap.xml
git diff --quiet && git diff --staged --quiet || git commit -m "Update sitemap.xml"
git push https://${{ secrets.SITEMAP_TOKEN }}@github.com/${{ github.repository }}.git
env:
SITEMAP_TOKEN: ${{ secrets.SITEMAP_TOKEN }}
Binary file added NewTab/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions NewTab/Assets/Bing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions NewTab/Assets/Google.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions NewTab/Assets/NewTabFav.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions NewTab/CodeAssets/script-search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
let urlParams = new URLSearchParams(window.location.search);
let term = urlParams.get('q');
document.getElementById('term').src = "https://www.bing.com/search?q=" + decodeURIComponent(term);

function googleSearch() {
document.getElementById('term').src = "https://www.google.com/search?igu=1&q=" + decodeURIComponent(term);
}

function bingSearch() {
document.getElementById('term').src = "https://www.bing.com/search?q=" + decodeURIComponent(term);
}

var searched = document.getElementById("search");

function pressed() {
window.location.href = "./search.html" + "?q=" + encodeURIComponent(searched.value);
}
20 changes: 20 additions & 0 deletions NewTab/CodeAssets/styles-search.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#term {
width: 99vw;
height: 88vh;
}

body {
overflow: hidden;
}

#row {
/* display: flex; */
justify-content: left;
align-items: left;
width: 100vw;
font-size: 100%;
}

img {
border: 1px solid #000000;
}
23 changes: 23 additions & 0 deletions NewTab/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./CodeAssets/styles-search.css">
<link rel="icon" href="./Assets/NewTabFav.svg">
<title>Search</title>
</head>
<body>
<table>
<tr id="row">
<td><a href="./index.html"><button>Go Back</button></a></td>
<td><p>My Web Search!!!</p></td>
<td><input id="search" type="text" onkeydown="if(event.key === 'Enter') pressed()"></td>
<td><img src="./Assets/Google.svg" onclick="googleSearch()"></td>
<td><img src="./Assets/Bing.svg" onclick="bingSearch()"></td>
</tr>
</table>
<iframe id="term" src=""></iframe>
<script src="./CodeAssets/script-search.js"></script>
</body>
</html>
65 changes: 65 additions & 0 deletions NotePad/index.HTML
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html>
<head>
<title>Notepad</title>
<link rel="stylesheet" type="text/css" href="styles.css">

<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/10.0.0/math.min.js"></script>

<script type="importmap">
{
"imports": {
"@google/generative-ai": "https://esm.run/@google/generative-ai"
}
}
</script>

<script type="module">
import { GoogleGenerativeAI } from "@google/generative-ai";

const API_KEY = "AIzaSyCaOtvPKAupepONslPzcD9YN_hkjP6GnlE";
const genAI = new GoogleGenerativeAI(API_KEY);

async function gemi() {
const prompt = document.getElementById('prompt').value;
document.getElementById('prompt').value = '';
const model = await genAI.getGenerativeModel({ model: "gemini-1.5-flash" });
alert('Loading');
const result = await model.generateContent(prompt);
alert( result.response.text() );
}

// Attach the function to the window object
window.gemi = gemi;
</script>

</head>
<body>
<div id="notepad-container">
<textarea rows="10" cols="50" spellcheck="false"></textarea>
</div>
<div id="calculator-container">
<input type="text" id="calculator" spellcheck="false">
<button id="calculate-button" onclick="calculate()">Calculate</button>
<div id="result"></div>
</div>
</div>
<div style="display: flex; width: 100%;">
<input type="text" id="prompt" placeholder="Enter your prompt here" style="flex: 7;">
<button style="flex: 1;" onclick="gemi()">Ask Gemi Bot</button>
</div>

<script>
function calculate() {
const input = document.getElementById('calculator').value;
let result;
try {
result = math.evaluate(input);
} catch (e) {
result = 'Error: Invalid expression';
}
document.getElementById('result').innerText = 'Result: ' + result;
}
</script>
</body>
</html>
10 changes: 10 additions & 0 deletions NotePad/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
function calculate() {
const input = document.getElementById('calculator').value;
let result;
try {
result = math.evaluate(input);
} catch (e) {
result = 'Error: Invalid expression';
}
document.getElementById('result').innerText = 'Result: ' + result;
}
35 changes: 35 additions & 0 deletions NotePad/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
body, html {
margin: 0;
padding: 0;
height: 100%;
display: flex;
flex-direction: column;
}
#notepad-container {
flex: 1;
display: flex;
flex-direction: column;
}
textarea {
font-size: 40px; /* Adjust the font size as needed */
width: 100%;
flex: 1;
}
#calculator-container, #ai-container {
display: flex;
align-items: center;
padding: 10px;
}
#calculator, #ai-input {
font-size: 20px;
flex: 1;
height: 5vh;
}
#calculate-button, #ask-ai-button {
font-size: 20px;
margin-left: 10px;
}
#result {
font-size: 20px;
margin-left: 10px;
}
Binary file added OHIO/Assets/colage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OHIO/Assets/ticket1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OHIO/Assets/ticket2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OHIO/Assets/ticket3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OHIO/Assets/ticket4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OHIO/Assets/ticket5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions OHIO/TOU.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Terms of Use</title>
<style>
.cta {
position: relative;
margin: auto;
padding: 12px 18px;
transition: all 0.2s ease;
border: none;
background: none;
cursor: pointer;
}

.cta:before {
content: "";
position: absolute;
top: 0;
left: 0;
display: block;
border-radius: 50px;
background: #b1dae7;
width: 45px;
height: 45px;
transition: all 0.3s ease;
}

.cta span {
position: relative;
font-family: "Ubuntu", sans-serif;
font-size: 18px;
font-weight: 700;
letter-spacing: 0.05em;
color: #234567;
}

.cta svg {
position: relative;
top: 0;
margin-left: 10px;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
stroke: #234567;
stroke-width: 2;
transform: translateX(-5px);
transition: all 0.3s ease;
}

.cta:hover:before {
width: 100%;
background: #b1dae7;
}

.cta:hover svg {
transform: translateX(0);
}

.cta:active {
transform: scale(0.95);
}
</style>
</head>
<body>
<button class="cta" onclick="window.location.href = './index.html';">
<span>Go Back To Home Page</span>
<svg width="15px" height="10px" viewBox="0 0 13 10">
<path d="M1,5 L11,5"></path>
<polyline points="8 1 12 5 8 9"></polyline>
</svg>
</button>

<h1>Terms of Use</h1>

<h2>Last Updated: Aug 18, 2024</h2>
<h3>1. Introduction</h3>
Welcome to My Website. The Site is a parody website created for
entertainment purposes only. By accessing or using the Site, you agree to be bound by these Terms
of Use (the "Terms"). If you do not agree to these Terms, please do not use the Site.
<h3>2. Parody and Entertainment Purpose</h3>
The content and services provided on the Site are purely fictional and intended solely for humor and
entertainment. Any resemblance to real services, products, or entities is purely coincidental. The
Site does not offer real tickets to Ohio or any other destinations. All information, products, and
services on the Site are made-up and should not be taken seriously.
<h3>3. No Legal Responsibility</h3>
The Site and its creators are not responsible for any misunderstanding, confusion, or legal claims
arising from the use of the Site. By using the Site, you acknowledge that it is a joke and that no real
services or products are being offered.
<h3>4. User Conduct</h3>
As a user of the Site, you agree not to take the content seriously, and you acknowledge that the Site
is intended for entertainment only. You agree not to hold the Site or its creators liable for any
consequences resulting from your use of the Site.
<h3>5. Intellectual Property</h3>
All content, logos, designs, and trademarks on the Site may include materials sourced from third-party websites or platforms. This Website does not claim ownership of any such third-party content unless explicitly stated. You may not copy, distribute, or use any content from the Site without ensuring that the appropriate permissions or licenses are in place from the original creators or licensors.

This Website strives to use content that is either free for use or properly licensed, but cannot guarantee the licensing status of all third-party materials. If you believe any content on the Site infringes upon your intellectual property rights, please contact me at [email protected], and I will address the issue promptly.

<h3>6. Third-Party Links</h3>
The Site may contain links to third-party websites. These links are provided for your convenience
and do not constitute an endorsement of the third-party sites or their content. I am not
responsible for the content or practices of any linked sites.
<h3>7. Changes to the Terms
I reserve the right to modify these Terms at any time. Any changes will be effective immediately
upon posting on the Site. Your continued use of the Site constitutes your acceptance of the revised
Terms.
<h3>8. Governing Law</h3>
These Terms are governed by and construed in accordance with the laws of India,
without regard to its conflict of law principles.
<h3>9. Contact Information</h3>
If you have any questions about these Terms, please contact me at [email protected].

<footer><hr><table><tr><td><p>Credits available <a href="./credits.html">here</a>.</p></td><td><p>Terms of Use available <a href="./TOU.html">here</a>.</p></td></tr></table></footer>
</body>
</html>
Loading

0 comments on commit d5206d3

Please sign in to comment.