From d8788f946e5fcb4d34ae0484021cba12df909337 Mon Sep 17 00:00:00 2001 From: SaiKiranMatta Date: Tue, 10 Sep 2024 02:23:28 +0530 Subject: [PATCH] Add ReactJS and FastAPI Bootcamp Certificates --- docs/reactfastapibootcampFM/data.json | 6 + docs/reactfastapibootcampFM/index.html | 4406 ++++++++++++++++++++++++ docs/reactfastapibootcampFM/script.js | 60 + docs/reactfastapibootcampFP/data.json | 114 + docs/reactfastapibootcampFP/index.html | 4405 +++++++++++++++++++++++ docs/reactfastapibootcampFP/script.js | 60 + docs/reactfastapibootcampMM/data.json | 38 + docs/reactfastapibootcampMM/index.html | 4405 +++++++++++++++++++++++ docs/reactfastapibootcampMM/script.js | 60 + docs/reactfastapibootcampMP/data.json | 230 ++ docs/reactfastapibootcampMP/index.html | 4405 +++++++++++++++++++++++ docs/reactfastapibootcampMP/script.js | 60 + 12 files changed, 18249 insertions(+) create mode 100644 docs/reactfastapibootcampFM/data.json create mode 100644 docs/reactfastapibootcampFM/index.html create mode 100644 docs/reactfastapibootcampFM/script.js create mode 100644 docs/reactfastapibootcampFP/data.json create mode 100644 docs/reactfastapibootcampFP/index.html create mode 100644 docs/reactfastapibootcampFP/script.js create mode 100644 docs/reactfastapibootcampMM/data.json create mode 100644 docs/reactfastapibootcampMM/index.html create mode 100644 docs/reactfastapibootcampMM/script.js create mode 100644 docs/reactfastapibootcampMP/data.json create mode 100644 docs/reactfastapibootcampMP/index.html create mode 100644 docs/reactfastapibootcampMP/script.js diff --git a/docs/reactfastapibootcampFM/data.json b/docs/reactfastapibootcampFM/data.json new file mode 100644 index 0000000..826f86d --- /dev/null +++ b/docs/reactfastapibootcampFM/data.json @@ -0,0 +1,6 @@ +[ + { + "code": "andeharshitapoojaRFB0010", + "holder": "Ande Harshita Pooja of CSE Department" + } +] diff --git a/docs/reactfastapibootcampFM/index.html b/docs/reactfastapibootcampFM/index.html new file mode 100644 index 0000000..b9ba476 --- /dev/null +++ b/docs/reactfastapibootcampFM/index.html @@ -0,0 +1,4406 @@ + + + + + + COSC ReactJS and FastAPI Bootcamp Certificate + + + + + + + + + + + + +
+

+ This is CBIT Open Source Community's certificate verification + Website. +

+

Enter the correct link to get the certificate

+
+ + + + + + + + + + diff --git a/docs/reactfastapibootcampFM/script.js b/docs/reactfastapibootcampFM/script.js new file mode 100644 index 0000000..29fbc9f --- /dev/null +++ b/docs/reactfastapibootcampFM/script.js @@ -0,0 +1,60 @@ +document.addEventListener("DOMContentLoaded", function () { + // Parse the URL parameters + const urlParams = new URLSearchParams(window.location.search); + const odysseyCode = urlParams.get("id"); + + // Fetch the JSON file + fetch("data.json") + .then((response) => response.json()) + .then((jsonData) => { + // Find the entry in the JSON data that matches the provided odyssey code + const matchingEntry = jsonData.find( + (entry) => entry.code === odysseyCode + ); + + if (matchingEntry) { + // Update the text in the "name-element" + + const generalHeader = document.getElementById("general-header"); + generalHeader.classList.add("hidden"); + + const nameElement = document.getElementById("name-element"); + nameElement.textContent = `${matchingEntry.holder}`; + + const headerNameElement = document.getElementById( + "header-name-element" + ); + headerNameElement.textContent = `${matchingEntry.holder}`; + + const certHeader = document.getElementById("cert-header"); + const certificate = document.getElementById("certificate"); + + certHeader.classList.remove("hidden"); + certificate.classList.remove("hidden"); + + const qrContainer = document.getElementById("qr-container"); + + // Use qrcode library to generate the QR code + const qr = new QRCode(qrContainer, { + text: + "https://cbitosc.github.io/verify24/reactfastapibootcampFM/?id=" + + matchingEntry.code, + width: 384, + height: 384, + typeNumber: 8, + correctLevel: QRCode.CorrectLevel.H, + }); + + // const scaleFactor = 96 / 384; + + // qrContainer.style.transform = "scale(" + scaleFactor + ")"; + // qrContainer.style.transformOrigin = "top left"; + + // qrContainer.style.width = "96px"; + // qrContainer.style.height = "96px"; + } else { + console.error("No matching entry found for the provided code."); + } + }) + .catch((error) => console.error("Error loading JSON:", error)); +}); diff --git a/docs/reactfastapibootcampFP/data.json b/docs/reactfastapibootcampFP/data.json new file mode 100644 index 0000000..843dee2 --- /dev/null +++ b/docs/reactfastapibootcampFP/data.json @@ -0,0 +1,114 @@ +[ + { + "code": "tulasisreemoukthikaRFB0058", + "holder": "Tulasi Sree Moukthika of CSE Department" + }, + { + "code": "kappaasrithaRFB0059", + "holder": "Kappa Asritha of CSE Department" + }, + { + "code": "kadarisaisindhuRFB0060", + "holder": "Kadari.Sai Sindhu of AI&DS Department" + }, + { + "code": "anushkaperuvelRFB0061", + "holder": "Anushka Peruvel of AI&DS Department" + }, + { + "code": "hansikagollenRFB0062", + "holder": "Hansika Gollen of IT Department" + }, + { + "code": "anishiRFB0063", + "holder": "Anishi of AI&ML Department" + }, + { + "code": "saanvireddynRFB0064", + "holder": "Saanvi Reddy.N of AI&ML Department" + }, + { + "code": "varshiniRFB0065", + "holder": "Varshini of AI&ML Department" + }, + { + "code": "rsrivyshnaviRFB0066", + "holder": "R.Srivyshnavi of AI&DS Department" + }, + { + "code": "andeharshitapoojaRFB0067", + "holder": "Ande Harshita Pooja of CSE Department" + }, + { + "code": "rishikareddyRFB0068", + "holder": "Rishika Reddy of AI&ML Department" + }, + { + "code": "sanjanachintaRFB0069", + "holder": "Sanjana Chinta of AI&ML Department" + }, + { + "code": "greeshmaRFB0070", + "holder": "Greeshma of CSE Department" + }, + { + "code": "tsridivyapranaviRFB0071", + "holder": "T. Sri Divya Pranavi of CSE Department" + }, + { + "code": "scsharonleeRFB0072", + "holder": "S.C.Sharon Lee of CSE Department" + }, + { + "code": "gaalisaipraharshitaRFB0073", + "holder": "Gaali Sai Praharshita of IT Department" + }, + { + "code": "sistlakeerthanaRFB0074", + "holder": "Sistla Keerthana of IT Department" + }, + { + "code": "sruthimadhavanRFB0075", + "holder": "Sruthi Madhavan of ECE Department" + }, + { + "code": "keerthanasRFB0076", + "holder": "Keerthana S of AI&ML Department" + }, + { + "code": "safooraabdulqadeerRFB0077", + "holder": "Safoora Abdul Qadeer of AI&DS Department" + }, + { + "code": "puttaumadeviRFB0078", + "holder": "Putta Umadevi of AI&DS Department" + }, + { + "code": "srichandanaRFB0079", + "holder": "Srichandana of IT Department" + }, + { + "code": "keerthikRFB0080", + "holder": "Keerthi K of AIML Department" + }, + { + "code": "psailahariRFB0081", + "holder": "P Sai Lahari of CSE Department" + }, + { + "code": "preethimadhavanRFB0082", + "holder": "Preethi Madhavan of AI&ML Department" + }, + { + "code": "akshathagadasandulaRFB0083", + "holder": "Akshatha Gadasandula of IT Department" + }, + { + "code": "tcharithaRFB0084", + "holder": "T. Charitha of AI&ML Department" + }, + { + "code": "malgarivinishaRFB0085", + "holder": "Malgari Vinisha of CSE Department" + } +] diff --git a/docs/reactfastapibootcampFP/index.html b/docs/reactfastapibootcampFP/index.html new file mode 100644 index 0000000..ffb9826 --- /dev/null +++ b/docs/reactfastapibootcampFP/index.html @@ -0,0 +1,4405 @@ + + + + + + COSC ReactJS and FastAPI Bootcamp Certificate + + + + + + + + + + + + +
+

+ This is CBIT Open Source Community's certificate verification + Website. +

+

Enter the correct link to get the certificate

+
+ + + + + + + + + diff --git a/docs/reactfastapibootcampFP/script.js b/docs/reactfastapibootcampFP/script.js new file mode 100644 index 0000000..bcff870 --- /dev/null +++ b/docs/reactfastapibootcampFP/script.js @@ -0,0 +1,60 @@ +document.addEventListener("DOMContentLoaded", function () { + // Parse the URL parameters + const urlParams = new URLSearchParams(window.location.search); + const odysseyCode = urlParams.get("id"); + + // Fetch the JSON file + fetch("data.json") + .then((response) => response.json()) + .then((jsonData) => { + // Find the entry in the JSON data that matches the provided odyssey code + const matchingEntry = jsonData.find( + (entry) => entry.code === odysseyCode + ); + + if (matchingEntry) { + // Update the text in the "name-element" + + const generalHeader = document.getElementById("general-header"); + generalHeader.classList.add("hidden"); + + const nameElement = document.getElementById("name-element"); + nameElement.textContent = `${matchingEntry.holder}`; + + const headerNameElement = document.getElementById( + "header-name-element" + ); + headerNameElement.textContent = `${matchingEntry.holder}`; + + const certHeader = document.getElementById("cert-header"); + const certificate = document.getElementById("certificate"); + + certHeader.classList.remove("hidden"); + certificate.classList.remove("hidden"); + + const qrContainer = document.getElementById("qr-container"); + + // Use qrcode library to generate the QR code + const qr = new QRCode(qrContainer, { + text: + "https://cbitosc.github.io/verify24/reactfastapibootcampFP/?id=" + + matchingEntry.code, + width: 384, + height: 384, + typeNumber: 8, + correctLevel: QRCode.CorrectLevel.H, + }); + + // const scaleFactor = 96 / 384; + + // qrContainer.style.transform = "scale(" + scaleFactor + ")"; + // qrContainer.style.transformOrigin = "top left"; + + // qrContainer.style.width = "96px"; + // qrContainer.style.height = "96px"; + } else { + console.error("No matching entry found for the provided code."); + } + }) + .catch((error) => console.error("Error loading JSON:", error)); +}); diff --git a/docs/reactfastapibootcampMM/data.json b/docs/reactfastapibootcampMM/data.json new file mode 100644 index 0000000..0182c84 --- /dev/null +++ b/docs/reactfastapibootcampMM/data.json @@ -0,0 +1,38 @@ +[ + { + "code": "gangolamanikantaRFBM0001", + "holder": "Gangola Manikanta of AI&DS Department" + }, + { + "code": "dabhinavRFBM0002", + "holder": "D Abhinav of AI&DS Department" + }, + { + "code": "yogeshchoudharyRFBM0003", + "holder": "Yogesh Choudhary of IT Department" + }, + { + "code": "sushankindrojiRFBM0004", + "holder": "Sushank Indroji of IT Department" + }, + { + "code": "mpradeepkumarRFBM0005", + "holder": "M.Pradeep Kumar of CSE Department" + }, + { + "code": "mdsalmanRFBM0006", + "holder": "Md Salman of CSE Department" + }, + { + "code": "akberhussainRFBM0007", + "holder": "Akber Hussain of IT Department" + }, + { + "code": "sohanreddyseelamRFBM0008", + "holder": "Sohan Reddy Seelam of CSE Department" + }, + { + "code": "polabathinaramcharantejaRFBM0009", + "holder": "Polabathina Ramcharan Teja of CSE Department" + } +] diff --git a/docs/reactfastapibootcampMM/index.html b/docs/reactfastapibootcampMM/index.html new file mode 100644 index 0000000..f5d9e21 --- /dev/null +++ b/docs/reactfastapibootcampMM/index.html @@ -0,0 +1,4405 @@ + + + + + + COSC ReactJS and FastAPI Bootcamp Certificate + + + + + + + + + + + + +
+

+ This is CBIT Open Source Community's certificate verification + Website. +

+

Enter the correct link to get the certificate

+
+ + + + + + + + + diff --git a/docs/reactfastapibootcampMM/script.js b/docs/reactfastapibootcampMM/script.js new file mode 100644 index 0000000..e03670d --- /dev/null +++ b/docs/reactfastapibootcampMM/script.js @@ -0,0 +1,60 @@ +document.addEventListener("DOMContentLoaded", function () { + // Parse the URL parameters + const urlParams = new URLSearchParams(window.location.search); + const odysseyCode = urlParams.get("id"); + + // Fetch the JSON file + fetch("data.json") + .then((response) => response.json()) + .then((jsonData) => { + // Find the entry in the JSON data that matches the provided odyssey code + const matchingEntry = jsonData.find( + (entry) => entry.code === odysseyCode + ); + + if (matchingEntry) { + // Update the text in the "name-element" + + const generalHeader = document.getElementById("general-header"); + generalHeader.classList.add("hidden"); + + const nameElement = document.getElementById("name-element"); + nameElement.textContent = `${matchingEntry.holder}`; + + const headerNameElement = document.getElementById( + "header-name-element" + ); + headerNameElement.textContent = `${matchingEntry.holder}`; + + const certHeader = document.getElementById("cert-header"); + const certificate = document.getElementById("certificate"); + + certHeader.classList.remove("hidden"); + certificate.classList.remove("hidden"); + + const qrContainer = document.getElementById("qr-container"); + + // Use qrcode library to generate the QR code + const qr = new QRCode(qrContainer, { + text: + "https://cbitosc.github.io/verify24/reactfastapibootcampMM/?id=" + + matchingEntry.code, + width: 384, + height: 384, + typeNumber: 8, + correctLevel: QRCode.CorrectLevel.H, + }); + + // const scaleFactor = 96 / 384; + + // qrContainer.style.transform = "scale(" + scaleFactor + ")"; + // qrContainer.style.transformOrigin = "top left"; + + // qrContainer.style.width = "96px"; + // qrContainer.style.height = "96px"; + } else { + console.error("No matching entry found for the provided code."); + } + }) + .catch((error) => console.error("Error loading JSON:", error)); +}); diff --git a/docs/reactfastapibootcampMP/data.json b/docs/reactfastapibootcampMP/data.json new file mode 100644 index 0000000..6219404 --- /dev/null +++ b/docs/reactfastapibootcampMP/data.json @@ -0,0 +1,230 @@ +[ + { + "code": "mdsalmanRFB0001", + "holder": "Md Salman of CSE Department" + }, + { + "code": "nishithRFB0002", + "holder": "Nishith of AI&ML Department" + }, + { + "code": "kgskarthekeyaRFB0003", + "holder": "K.G.S Karthekeya of CSE Department" + }, + { + "code": "sharankumarthummalaRFB0004", + "holder": "Sharan Kumar Thummala of AI&ML Department" + }, + { + "code": "mpradeepkumarRFB0005", + "holder": "M.Pradeep Kumar of CSE Department" + }, + { + "code": "gangolamanikantaRFB0006", + "holder": "Gangola Manikanta of AI&DS Department" + }, + { + "code": "polabathinaramcharantejaRFB0007", + "holder": "Polabathina Ramcharan Teja of CSE Department" + }, + { + "code": "emithilRFB0008", + "holder": "E Mithil of IT Department" + }, + { + "code": "akberhussainRFB0009", + "holder": "Akber Hussain of IT Department" + }, + { + "code": "polojusaichaithanyaRFB0010", + "holder": "Poloju Sai Chaithanya of CSE Department" + }, + { + "code": "mohammedmuqeetussalamRFB0011", + "holder": "Mohammed Muqeet Us Salam of AI&ML Department" + }, + { + "code": "paramgRFB0012", + "holder": "Param G. of AI&DS Department" + }, + { + "code": "akarthikRFB0013", + "holder": "A.Karthik of AI&ML Department" + }, + { + "code": "msaisushanthRFB0014", + "holder": "M Sai Sushanth of CSE Department" + }, + { + "code": "nagunurishashidharRFB0015", + "holder": "Nagunuri Shashidhar of IT Department" + }, + { + "code": "vedajayavamsikrishnaRFB0016", + "holder": "Veda Jaya Vamsi Krishna of CSE Department" + }, + { + "code": "mharshithRFB0017", + "holder": "M.Harshith of CSE Department" + }, + { + "code": "somaganikrushithRFB0018", + "holder": "Somagani Krushith of ECE Department" + }, + { + "code": "sushankindrojiRFB0019", + "holder": "Sushank Indroji of IT Department" + }, + { + "code": "krishnasushantRFB0020", + "holder": "Krishna Sushant of CSE Department" + }, + { + "code": "thanavreddyRFB0021", + "holder": "Thanav Reddy of CSE Department" + }, + { + "code": "palleabhinayRFB0022", + "holder": "Palle Abhinay of CET Department" + }, + { + "code": "godishalaashwithRFB0023", + "holder": "Godishala Ashwith of IT Department" + }, + { + "code": "pratikbodaRFB0024", + "holder": "Pratik Boda of CSE Department" + }, + { + "code": "vishwasyeleshwaramRFB0025", + "holder": "Vishwas Yeleshwaram of AI&ML Department" + }, + { + "code": "hrishikreddyRFB0026", + "holder": "Hrishik Reddy of IT Department" + }, + { + "code": "mvishnuvardhanreddyRFB0027", + "holder": "M.Vishnu Vardhan Reddy of IT Department" + }, + { + "code": "bsrikanthRFB0028", + "holder": "B Srikanth of AI&ML Department" + }, + { + "code": "nagarapusaicharanRFB0029", + "holder": "Nagarapu Sai Charan of AI&ML Department" + }, + { + "code": "amolpathakRFB0030", + "holder": "Amol Pathak of CSE Department" + }, + { + "code": "abdulraheemRFB0031", + "holder": "Abdul Raheem of IT Department" + }, + { + "code": "mvigneshwarreddyRFB0032", + "holder": "M. Vigneshwar Reddy of IT Department" + }, + { + "code": "marslaanuddinRFB0033", + "holder": "M Arslaan Uddin of CSE Department" + }, + { + "code": "mpranavsaireddyRFB0034", + "holder": "M.Pranav Sai Reddy of CSE Department" + }, + { + "code": "shaikabdullahRFB0035", + "holder": "Shaik Abdullah of CSE Department" + }, + { + "code": "manneudaykiranRFB0036", + "holder": "Manne Uday Kiran of CSE Department" + }, + { + "code": "mohammedabdulrafesajidRFB0037", + "holder": "Mohammed Abdul Rafe Sajid of IT Department" + }, + { + "code": "chpawanmohitRFB0038", + "holder": "Ch Pawan Mohit of CET Department" + }, + { + "code": "karathvamsivRFB0039", + "holder": "Karath Vamsi V of AI&DS Department" + }, + { + "code": "sairamreddyRFB0040", + "holder": "Sairam Reddy of AI&DS Department" + }, + { + "code": "chilkurisaikeshavreddyRFB0041", + "holder": "Chilkuri Sai Keshav Reddy of AI&DS Department" + }, + { + "code": "yogeshchoudharyRFB0042", + "holder": "Yogesh Choudhary of IT Department" + }, + { + "code": "bsaicharanRFB0043", + "holder": "B.Sai Charan of CET Department" + }, + { + "code": "madisettybharanikumarRFB0044", + "holder": "Madisetty Bharani Kumar of AI&ML Department" + }, + { + "code": "badrinathachantaRFB0045", + "holder": "Badrinath Achanta of AI&ML Department" + }, + { + "code": "bhoomreddymanideepreddyRFB0046", + "holder": "Bhoom Reddy Manideep Reddy of CSE Department" + }, + { + "code": "sohanreddyseelamRFB0047", + "holder": "Sohan Reddy Seelam of CSE Department" + }, + { + "code": "abdurraufaamirRFB0048", + "holder": "Abdur Rauf Aamir of AI&ML Department" + }, + { + "code": "jyothivikramasimhareddydRFB0049", + "holder": "Jyothi Vikrama Simha Reddy D of IT Department" + }, + { + "code": "omkarkabdeRFB0050", + "holder": "Omkar Kabde of CET Department" + }, + { + "code": "dabhinavRFB0051", + "holder": "D Abhinav of AI&DS Department" + }, + { + "code": "hemanthkumarRFB0052", + "holder": "Hemanth Kumar of ECE Department" + }, + { + "code": "kdineshRFB0053", + "holder": "K.Dinesh of AI&ML Department" + }, + { + "code": "abhinandanreddypaillaRFB0054", + "holder": "Abhinandan Reddy Pailla of ECE Department" + }, + { + "code": "cganneshreddyRFB0055", + "holder": "C Gannesh Reddy of ECE Department" + }, + { + "code": "elionsakshithtRFB0056", + "holder": "Elion Sakshith T of CSE Department" + }, + { + "code": "kharshavardhanRFB0057", + "holder": "K.Harsha Vardhan of CSE Department" + } +] diff --git a/docs/reactfastapibootcampMP/index.html b/docs/reactfastapibootcampMP/index.html new file mode 100644 index 0000000..6cd8781 --- /dev/null +++ b/docs/reactfastapibootcampMP/index.html @@ -0,0 +1,4405 @@ + + + + + + COSC ReactJS and FastAPI Bootcamp Certificate + + + + + + + + + + + + +
+

+ This is CBIT Open Source Community's certificate verification + Website. +

+

Enter the correct link to get the certificate

+
+ + + + + + + + + diff --git a/docs/reactfastapibootcampMP/script.js b/docs/reactfastapibootcampMP/script.js new file mode 100644 index 0000000..1f9a6ea --- /dev/null +++ b/docs/reactfastapibootcampMP/script.js @@ -0,0 +1,60 @@ +document.addEventListener("DOMContentLoaded", function () { + // Parse the URL parameters + const urlParams = new URLSearchParams(window.location.search); + const odysseyCode = urlParams.get("id"); + + // Fetch the JSON file + fetch("data.json") + .then((response) => response.json()) + .then((jsonData) => { + // Find the entry in the JSON data that matches the provided odyssey code + const matchingEntry = jsonData.find( + (entry) => entry.code === odysseyCode + ); + + if (matchingEntry) { + // Update the text in the "name-element" + + const generalHeader = document.getElementById("general-header"); + generalHeader.classList.add("hidden"); + + const nameElement = document.getElementById("name-element"); + nameElement.textContent = `${matchingEntry.holder}`; + + const headerNameElement = document.getElementById( + "header-name-element" + ); + headerNameElement.textContent = `${matchingEntry.holder}`; + + const certHeader = document.getElementById("cert-header"); + const certificate = document.getElementById("certificate"); + + certHeader.classList.remove("hidden"); + certificate.classList.remove("hidden"); + + const qrContainer = document.getElementById("qr-container"); + + // Use qrcode library to generate the QR code + const qr = new QRCode(qrContainer, { + text: + "https://cbitosc.github.io/verify24/reactfastapibootcampMP/?id=" + + matchingEntry.code, + width: 384, + height: 384, + typeNumber: 8, + correctLevel: QRCode.CorrectLevel.H, + }); + + // const scaleFactor = 96 / 384; + + // qrContainer.style.transform = "scale(" + scaleFactor + ")"; + // qrContainer.style.transformOrigin = "top left"; + + // qrContainer.style.width = "96px"; + // qrContainer.style.height = "96px"; + } else { + console.error("No matching entry found for the provided code."); + } + }) + .catch((error) => console.error("Error loading JSON:", error)); +});