From d3993141bbfceb1f300d6dbfc9c6ec6e03a15b50 Mon Sep 17 00:00:00 2001 From: motherofbeasts <91845855+motherofbeasts@users.noreply.github.com> Date: Sun, 20 Feb 2022 22:09:58 +0100 Subject: [PATCH 1/2] started to add a search function --- code/index.html | 6 ++++++ code/script.js | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/code/index.html b/code/index.html index 2fb5e0ae..af495c24 100644 --- a/code/index.html +++ b/code/index.html @@ -11,6 +11,12 @@

GitHub Tracker

Projects:

+
+

+ Find the repo! + +

+
diff --git a/code/script.js b/code/script.js index e69de29b..78115395 100644 --- a/code/script.js +++ b/code/script.js @@ -0,0 +1,17 @@ +/*search function +const api +let repo = 'Weather-app' +let apiKey = '&APPID' +const units = '&units=metric'; + +const url = api + repo + apiKey + units + +const button = select ('#submit'); +button.mousePressed (askForRepo); + +function askForRepo (){ + const url = api + apiKey + units; + LoadJson (url,gotData); InputEvent.value () + + let input; +} */ \ No newline at end of file From 9355817aaf177c2a52dae884414852cdeb8915f2 Mon Sep 17 00:00:00 2001 From: motherofbeasts <91845855+motherofbeasts@users.noreply.github.com> Date: Wed, 23 Feb 2022 09:37:19 +0100 Subject: [PATCH 2/2] added a button --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6da7542c27bf9302375793d039050d91b3a0c04e GIT binary patch literal 6148 zcmeHKO-~y!5FLk<>?*3114ucp#5JO6f{+lGB~1<-xUh&G+A7UvBf4T)qkND<6lu@p z$8hDB@OR*iZ6ZF}D=O8DG=BDY#$G?KY!4Bs&Mf&%R3jn}%2@JI{6V;%^_7&Ir3_R& z#$l$1ai(Lmc|ehWp8?*xG7U*nLZcV^cYwa_dn0BcE5CR?xpez{8((JWWZG=rsnS~c z!+OQ5cvbI5^h?j9>0mmWbOz&Z+&a-Ziy!NQ_%t2O`?ZZPI-d^Gd^9!zX)=P#_pfQ5 z=y^xa@?>ISBirHmp5L$47mIeQ-3Z#dtz{!v?6sPWV5hyiT>9ST)~EgB{&{wh>))1o zh5ypXM~9Dajmm00SJ61nbbbaK`}=fEJvyK+9RauLf|3`^+`#K8GiZtk1HynX@QxU8 zXQNkrN8c=;Dhvn%Z^Hne4*`@hbXZt4M+XX%0s#3LX#{oi^aloP0EP|=i?BeH4F%dz z