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
let signInButton, logoutButton, commentInput, saveCommentButton; | |
let userName = ""; | |
let comments = []; // Array to store comments fetched from Firebase | |
let font; | |
let video; | |
let canvas; | |
let context; | |
const targetQRCode = "https://idemia-mobile-id.com/testqr-success"; // The specific QR code content to react to |
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
{ | |
"games": [ | |
{ | |
"team": "Softball Varsity", | |
"opponent": "Head-Royce", | |
"date": "2024-05-09T16:00:00-07:00", | |
"time": "2024-05-09T16:00:00-07:00", | |
"location": "Head-Royce", | |
"advantage": "Away", | |
"detailsLink": "#" |
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
//google login process variables | |
let signInButton, logoutButton, commentInput, saveCommentButton; | |
let userName = ""; | |
// Variables to manage button positions and sizes dynamically -- adapted from AJ's original buttons | |
let buttonX1, buttonX2, buttonX3, buttonY, buttonW, buttonH; | |
// Variables for dynamic layout in the favorite teams display -- adapted from Andy's original buttons |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-auth.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-database.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/jsqr/dist/jsQR.js"></script> | |
<script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-auth.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-database.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-storage.js"></script> | |
<script> | |
// Initialize Firebase |
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
let searchInput, searchResults; | |
let data; | |
let click; | |
let bar; | |
let GalleryButton; | |
let numRows = 2; // Initial number of rows | |
let numCols = 7; | |
let boxSize = 50; | |
let rectangles = []; |
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
const axios = require('axios'); | |
const cheerio = require('cheerio'); | |
async function fetchAndParseURL(url) { | |
try { | |
const response = await axios.get(url); | |
const $ = cheerio.load(response.data); | |
const eventsToday = []; | |
$('.fsCalendarToday .fsCalendarEventTitle').each((i, elem) => { |
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
const axios = require('axios'); | |
const cheerio = require('cheerio'); | |
const fs = require('fs'); | |
const url = 'https://www.lwhs.org/athletics/calendar-results'; | |
// Function to fetch and scrape the website | |
async function scrapeData() { | |
try { | |
// Fetching HTML from the URL |
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
{ | |
"games": [ | |
{ | |
"UID": "11394232@www.lwhs.org", | |
"DTSTAMP": "20240417T181959Z", | |
"DTSTART": "20240417T160000", | |
"SUMMARY": "Swimming Varsity Coed vs. International High School, San Francisco University High School (Home)", | |
"DESCRIPTION": "", | |
"LOCATION": "CCSF Swimming Pool", | |
"PRIORITY": "0" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-auth.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-database.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script> | |
<script> |
NewerOlder