From 3253cb125eabf539f2eb8f3401fcfdd64cb1a4e5 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Fri, 26 Jun 2020 01:28:05 +0530 Subject: [PATCH] Basic homepage/article switching --- helperFns.html | 2 +- index.html | 265 +++++++++++++++++++++++++++++++------------------ 2 files changed, 168 insertions(+), 99 deletions(-) diff --git a/helperFns.html b/helperFns.html index 468f6b2..a5167e5 100644 --- a/helperFns.html +++ b/helperFns.html @@ -3,7 +3,7 @@ (async () => { let repourl = "https://api.github.com/repos/ranchimall/articles/contents"; let repocontent = null; - let articles = {} + let window.articles = {} repocontent = await (await fetch(repourl)).json(); for (var i = 0; i < repocontent.length; i++) { diff --git a/index.html b/index.html index d465634..d4a13ae 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,10 @@ RanchiMall Times