From 8a06c4cb85763e06ca0e87d37c23f6e7071d352d Mon Sep 17 00:00:00 2001 From: Aman Bhatt Date: Sat, 23 Jan 2021 18:34:07 +0530 Subject: [PATCH] Final Touch completed chrome extension Fully Functional --- README.md | 4 +- assets/css/style.css | 103 ++++++++++++++++++ assets/images/gcricon.png | Bin 0 -> 13764 bytes assets/images/minusicon.png | Bin 0 -> 1444 bytes assets/images/plusicon.png | Bin 0 -> 1315 bytes assets/js/main.js | 205 ++++++++++++++++++++++++++++++++++++ assets/js/script.js | 9 ++ index.html | 45 ++++++++ manifest.json | 23 ++++ 9 files changed, 387 insertions(+), 2 deletions(-) create mode 100644 assets/css/style.css create mode 100644 assets/images/gcricon.png create mode 100644 assets/images/minusicon.png create mode 100644 assets/images/plusicon.png create mode 100644 assets/js/main.js create mode 100644 assets/js/script.js create mode 100644 index.html create mode 100644 manifest.json diff --git a/README.md b/README.md index f6f6dc7..4260ab7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# Google-Classroom-Linkhub -Chrome Extension, Saves All Google meet links, GCR link at one place. +# gcrlinkhub +gcr link hub chrome exstn diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..84a112b --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1,103 @@ +@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap'); +/* font-family: 'Questrial', sans-serif; */ +body{ + margin: 0 0; +} +#teachers,#classes,#meetbtn,#gcrbtn{ + width: 179.5px; + height: 29px; + font-family: 'Questrial', sans-serif; +} +.input{ + width: 171px; + height: 25px; + border: 2px solid black; + font-family: 'Questrial', sans-serif; + margin: 6px 5px; + font-size: 16px; +} +.container{ + width: 529px; + height: 370px; + background-color: rgb(197, 197, 197); + border: 2px solid black; + position: relative; +} +.gcrlogo{ + top: 5px; + left: 20px; + position: absolute; + background-size: cover; + background-image: url(../images/gcricon.png); + width: 109px; + height: 103px; +} + +.headingtext{ + left: 163px; + top: 20px; + position: absolute; + font-size: 41px; + font-weight: 600; + font-family: 'Questrial', sans-serif; +} +.inputsection{ + left: 25px; + top: 130px; + position: absolute; + display: grid; + grid-template-columns: 1fr 1fr; +} +.selection{ + width:150px; + height:20px; + border : 2px solid black; + font-family: 'Questrial', sans-serif; + margin: 5px 5px; + +} +.plusicon{ + top: 167px; + left: 410px; + position: absolute; + background-size: cover; + background-image: url(../images/plusicon.png); + width: 45px; + height: 45px; +} +.plusicon:hover{ + opacity: 0.5; +} +.selectsection{ + left: 25px; + top: 230px; + position: absolute; + display: grid; + grid-template-columns: 1fr 1fr; +} + +#delbtn{ + top: 266px; + left: 412px; + position: absolute; + background-size: cover; + background-image: url(../images/minusicon.png); + width: 39px; + height: 39px; +} +#delbtn:hover{ + opacity: 0.5; +} +#meetbtn{ + background-color: #6EB37D; +} + +#gcrbtn{ + background-color: #FEBF10; +} +#gcrbtn:hover{ + opacity: 0.75; +} +#meetbtn:hover{ + opacity: 0.75; +} \ No newline at end of file diff --git a/assets/images/gcricon.png b/assets/images/gcricon.png new file mode 100644 index 0000000000000000000000000000000000000000..2389a2952b30b49c2764f81c30db3a485df95187 GIT binary patch literal 13764 zcmb_j1y>wR(_P%%VQ~rW?!jGyyGtOrJ1lNNg1buy5Zv9}-7UDgefzw>;X8X~dQb08 zPfz!qu3NXNBUO~7Q4k3c0RRAstc-*jxV-xBfQJR2g*A>7!3C_TytD-1^S@7CM`;oO zKn9SN`1;K=>pa^l?b|~7XV;_VLRE)%ArYZ9y|pEgrw%mqoK8TKNv|q1h4=C9{7m% zw;I~JUl9V0yK=DryDLKkfF1v-`#T>X>~_eF3-;fo(v8xpt*M7Ip~JFap>40tTt5=P zIzWGADDI3)Lmb{o>_Y*Ta@;s*YTJZ@8l;Xr$02DSh)JaZhVK%8Q@tNi=l z8DPax_^L?57`IgcY;k+ubt2(ZvWN#HR-Z6+B9EleDDPF@t;%4Q(Tp*sZneB|wD8nYevBMrj zOVhOQ<=p1YqK3Z25;KIj!W#~@zu+3rVU;JC+KVQ^`xNC=q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OmkXw~@Qx1%UGx76SlaeHeon1TYU7Z3oD}^k!TZvOB^-?GdIMr zSau!0GZF}(vn})!FVGnPIdv;Mj1&pTqiB=yB-cY}fuU^TeNyf3MT|*Ahnt4Y`?c4M zl}L3CT?5tKwsNEpf>6V?P0j+}GC&US`g-+9RA&_c`}gB_C(o@f0c?Cl5_rQ+FNJ AkN^Mx literal 0 HcmV?d00001 diff --git a/assets/images/minusicon.png b/assets/images/minusicon.png new file mode 100644 index 0000000000000000000000000000000000000000..dd2634b9607bd9f739bc5f5cf0039222acc01135 GIT binary patch literal 1444 zcmV;V1zY-wP)CIks1XtC0+t1)Dpah;|zKY^$nm06Vh?owbF$4cwY> zTP4XTa24=ruMM;0WnGUXn2i*4s_tw7dx2lOZImS!=_NE6HW((utZ=Uu(nKO!xkr{I zr48JGQprCEJ19Okbo0WXhc{N`x^jRRa zb@GK7({yR;JMse|c;RxVtZe+pDfEO(2=Y#{)YoKo-<7lbbM?Efy|0dwoR9>14_RZsW zRItFpATPb@?GD@pQw+v37f10hQRs^*FWh%3SnvUt{E*>q9}@Di+=%QwE3mY*vgRr0000E|HP)AYqu7xG4IojF2oe&>8_5)BEi2L3bNAeP=gjOq zk8~Pq?)vQe&fJ~3A7{XE9LI4S$8j9TaU92SoF?d5CyC3l*a=Jz|Nb9v6}SXk z2CkcA7eN;d+6x>6=79ac46qNFs%bX>E&waQd0+`x1pdgDX(9B1XMy(+Vb>GKDzE?? z9{w*UkXhhO;4jjfvQ=CJ-Uptbo4reRdcYyzdzv$4tN00+2PU$9ZgcMI?__G0FWlfZ4s)M}XB$dHP)h`Hm`@Vj=3 zKJX>>;x!eEz^zG?Yk&#h6YNE6IzB^2*IUmx-VlVwi3Iv(~Fgcqs<00|!P)HnvZEDYAWujHFr2tzREmHhWjZXQW`%@1VKrQgRWv z2YF_!CFTlx277b5$eqB`p$Eqrzd`o_zbo6Orfa`J8{AKT zhT1DA_zZBi%6rF?N_#QHVM*DyZR)hK}`?C$Ns-mzhOZdYLcBq zHs;pt2@R!d`)*PhG(e`qx82yR>EiAnojD~lMZii_jX}EIY)6OQQ{>S)c6K2fajFSmT1snMZVGWkdXy9X!}^ka0dHG zK!T+k^nxPSWc0ABsyHeZIi98k3p8i(QZQA~ic&Beyo1dd+U7VGrD$TNk%}7DqO>KJ zi7ZE!gIT7ht1v+*kS0$In)(JE$U0eg|G;&=l6va^Hnt~S3_oTNjq3h=__ z9bh*ygJ>;Y?&##J0XFCZA7L+IuK1J=UO6{2fmCF-7Bh7mXUw+o%p=bT*22cdRp9l+ z+O&olY^Nw<;~WLNaBwH^7B&N{+E_!z)>=1wlamLK%IwzS*TpwT@%AF=A$6tO*zNs{ zOtzWN=d^(~y(;=g+?Z|gm#ue%KC&8S0ayXCI=4C2qQSmh43e3eF)Fqh^48 z)QdX+E+B@SNA~9|(w=QJm2}adDkhN%D0`4nH5=t>t_ { + localStorage.setItem(`input${i}`, arr[i].value); + }) +} + +//updating the drop downs +updatelist(); +function updatelist() { + + let obj = localStorage.getItem("data"); + + if (obj != null) { + obj = JSON.parse(obj); + } + else { + obj = []; + } + var teachers = document.getElementById("teachers"); + let html = ``; + let html2 = ``; + obj.forEach(function (element) { + let x = `` + html += x; + let y = `` + html2 += y; + + }) + + teachers.innerHTML = html; + classes.innerHTML = html2; + +} + + + +//---------------linking both dropdowns----------- + +document.getElementById("teachers").addEventListener("change", () => { + let index = document.getElementById("teachers").options.selectedIndex; + document.getElementById("classes").value = document.getElementById("classes").options[index].value; +}); +document.getElementById("classes").addEventListener("change", () => { + let index = document.getElementById("classes").options.selectedIndex; + document.getElementById("teachers").value = document.getElementById("teachers").options[index].value; +}); + + + +var addbtn = document.getElementById("addbtn"); + +addbtn.addEventListener("click", () => { + + let obj = { + "teacher": document.getElementById("inputteacher").value, + "class": document.getElementById("inputclass").value, + "meet": document.getElementById("inputmeet").value, + "gcr": document.getElementById("inputgcr").value + } + + if (ValidURL(obj.meet) && ValidURL(obj.gcr) == true) { + + if (obj.teacher && obj.class && obj.meet && obj.gcr != "") { + console.log("values updated", obj); + let data = JSON.parse(localStorage.getItem("data")); + if (data == null) { data = []; } + + data.push(obj); + localStorage.setItem("data", JSON.stringify(data)); + updatelist(); + + for (let i = 0; i < 4; i++) { + localStorage.removeItem(`input${i}`); + } + + document.getElementById("inputteacher").value = ""; + document.getElementById("inputclass").value = ""; + document.getElementById("inputmeet").value = ""; + document.getElementById("inputgcr").value = ""; + + } + + } + + + if(obj.teacher==false){ + document.querySelector("#inputteacher").style.border = "2px solid red"; + setTimeout(() => { + document.querySelector("#inputteacher").style.border = "2px solid black"; + }, 2000); + + } + if(obj.class==false){ + document.querySelector("#inputclass").style.border = "2px solid red"; + setTimeout(() => { + document.querySelector("#inputclass").style.border = "2px solid black"; + }, 2000); + + } + if(ValidURL(obj.meet)==false){ + document.querySelector("#inputmeet").style.border = "2px solid red"; + setTimeout(() => { + document.querySelector("#inputmeet").style.border = "2px solid black"; + }, 2000); + + } + if(ValidURL(obj.gcr)==false){ + document.querySelector("#inputgcr").style.border = "2px solid red"; + setTimeout(() => { + document.querySelector("#inputgcr").style.border = "2px solid black"; + }, 2000); + + } + + +}); + +document.getElementById("meetbtn").addEventListener("click", () => { + + let index = (document.getElementById("classes").options.selectedIndex); + let data = localStorage.getItem("data"); + + if (data != null) { + data = JSON.parse(data); + } + else { + data = []; + } + console.log(data[index].meet); + + chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) { + var activeTab = tabs[0]; + chrome.tabs.sendMessage(activeTab.id, { "message": "btnclicked", "link": data[index].meet }); + }); + + + // console.log(document.getElementById("teachers").options.selectedIndex); + //link of the meet or obj is values[index] + +}); +document.getElementById("gcrbtn").addEventListener("click", () => { + + let index = (document.getElementById("classes").options.selectedIndex); + let data = localStorage.getItem("data"); + + if (data != null) { + data = JSON.parse(data); + } + else { + data = []; + } + console.log(data[index].gcr); //link of the meet or obj is values[index] + chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) { + var activeTab = tabs[0]; + chrome.tabs.sendMessage(activeTab.id, { "message": "btnclicked", "link": data[index].gcr }); + }); + + +}); +document.getElementById("delbtn").addEventListener("click", () => { + + let index = (document.getElementById("classes").options.selectedIndex); + + // console.log(values[index].gcr); //link of the meet or obj is values[index] + let data = localStorage.getItem("data"); + + if (data != null) { + data = JSON.parse(data); + } + else { + data = []; + } + data.splice(index, 1); + localStorage.setItem("data", JSON.stringify(data)); + updatelist(); + + +}); + diff --git a/assets/js/script.js b/assets/js/script.js new file mode 100644 index 0000000..92158a1 --- /dev/null +++ b/assets/js/script.js @@ -0,0 +1,9 @@ +chrome.runtime.onMessage.addListener( + function (request, sender, sendResponse) { + if (request.message === "btnclicked") { + // location.replace(request.link); + window.open(request.link, "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=1000,height=1000"); + } + } + +); \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..db744ef --- /dev/null +++ b/index.html @@ -0,0 +1,45 @@ + + + + + + + GCR LinkHub + + + + + +
+ +
+ Google Classroom
LinkHub +
+
+ + + + + +
+
+
+ + + + + + +
+
+ +
+ + + + + + \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..889edb3 --- /dev/null +++ b/manifest.json @@ -0,0 +1,23 @@ +{ + "manifest_version": 2, + "name": "Google Classroom LinkHub", + "description": "All links of Google Meet, Google Classroom one place _abx", + "version": "1.0", + "content_scripts": [ + { + "js": [ + "assets/js/script.js" + ], + "matches": [ + "" + ] + } + ], + "icons": { + "192": "assets/images/gcricon.png" + }, + "browser_action": { + "default_icon": "assets/images/gcricon.png", + "default_popup": "index.html" + } +} \ No newline at end of file