Skip to content

Instantly share code, notes, and snippets.

View ekotha's full-sized avatar

Eashan Kotha ekotha

View GitHub Profile
@ekotha
ekotha / index.html
Created March 9, 2023 04:02
iPadOS pointer interaction with menu effect
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
@ekotha
ekotha / janky-js-dynamic-progress-bar.txt
Created June 29, 2022 02:03
The wonderfully roundabout method I used to get my dynamic haiku progress bar on my personal website.
// used jquery, bootstrap
// What follows below is the exact script for how I got my progress bar to work. I'm very amused by this and I figured I'd keep it saved somewhere in the event I change my site in the future.
<script>
var myObj, x, haikuPercent;
async function load() {
let url = 'https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fmedium.com%2Ffeed%2F%40eashanreddykotha';
let myObj = await (await fetch(url)).json();
console.log(myObj);