Skip to content

Fire starters (DES) #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
97c1790
Update README.md
Vivek5456 May 30, 2023
894a5b2
Update README.md
Vivek5456 Jun 8, 2023
62d53e5
Create ind.ini
Vivek5456 Jun 8, 2023
1b83be6
Create ind.ini
Vivek5456 Jun 8, 2023
ea7fcba
Add files via upload
Vivek5456 Jun 8, 2023
44df8bb
Create ind.ini
Vivek5456 Jun 8, 2023
a98af0e
Add files via upload
Vivek5456 Jun 8, 2023
e039963
Create ind.ini
Vivek5456 Jun 8, 2023
2190841
Add files via upload
Vivek5456 Jun 8, 2023
b667607
Create ind.ini
Vivek5456 Jun 8, 2023
a601968
Add files via upload
Vivek5456 Jun 8, 2023
1aac862
Create css
Vivek5456 Jun 8, 2023
983d1ef
Delete css
Vivek5456 Jun 8, 2023
cc1f434
Create ind.ini
Vivek5456 Jun 8, 2023
fba80ab
Add files via upload
Vivek5456 Jun 8, 2023
2e54e77
Create ind.ini
Vivek5456 Jun 8, 2023
7a7899a
Add files via upload
Vivek5456 Jun 8, 2023
5b74e6b
Create ind.ini
Vivek5456 Jun 8, 2023
db656f7
Add files via upload
Vivek5456 Jun 8, 2023
0ffc169
Create ind.ini
Vivek5456 Jun 8, 2023
0b76f72
Add files via upload
Vivek5456 Jun 8, 2023
e722f7d
Add files via upload
Vivek5456 Jun 8, 2023
feb78ea
Create ind.ini
Vivek5456 Jun 8, 2023
3a9b573
Add files via upload
Vivek5456 Jun 8, 2023
3abf946
Create ind.ini
Vivek5456 Jun 8, 2023
872176f
Add files via upload
Vivek5456 Jun 8, 2023
3e87814
Create ind.ini
Vivek5456 Jun 8, 2023
9dd5961
Create ind.ini
Vivek5456 Jun 8, 2023
9800d39
Add files via upload
Vivek5456 Jun 8, 2023
fe2c630
Create ind.ini
Vivek5456 Jun 8, 2023
05b2c52
Add files via upload
Vivek5456 Jun 8, 2023
f1711f5
Add files via upload
Vivek5456 Jun 8, 2023
e28df2c
Update README.md
Vivek5456 Jun 8, 2023
7395222
Create ind.ini
Vivek5456 Jun 8, 2023
315ea93
Add files via upload
Vivek5456 Jun 8, 2023
82b79e5
Delete ind.ini
Vivek5456 Jun 8, 2023
1c32e53
Create ind.ini
Vivek5456 Jun 8, 2023
494b6e3
Update README.md
Vivek5456 Jun 9, 2023
40fd808
Update README.md
Vivek5456 Jun 9, 2023
a48f87d
Create README.md
Vivek5456 Jun 9, 2023
6abde53
Create README.md
Vivek5456 Jun 9, 2023
ef874c3
Update README.md
Vivek5456 Jun 9, 2023
af97f6b
Update README.md
Vivek5456 Jun 9, 2023
2ef93a4
Delete DES.pdf
Vivek5456 Jun 9, 2023
61b23cf
Add files via upload
Vivek5456 Jun 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
# intel-oneAPI

#### Team Name -
#### Problem Statement -
#### Team Leader Email -
#### Team Name - Fire starters
#### Problem Statement - open innovation in education
#### Team Leader Email - [email protected]

## A Brief of the Prototype:
This section must include UML Daigrms and prototype description
This is a project or website named(Dynamic Education System) is basically to bifercate the whole lot of content present on the web according to the quality of materials or the quantity of knowledge in contents.
This website helps students get better contents related to any domain of interest and can even help them give test to access direct certifications.
This website helps student even cop up with the pace of the world by getting about the rest of the world's technology by the use of the chatbox present in the website.
Our website works on webscrapping which scraps the data present on all the educational sites, youtube etc. and bifercates the best content related to a topic and domain.

## Tech Stack:
List Down all technologies used to Build the prototype **Clearly mentioning Intel® AI Analytics Toolkits, it's libraries and the SYCL/DCP++ Libraries used**


## Step-by-Step Code Execution Instructions:
This Section must contain set of instructions required to clone and run the prototype, so that it can be tested and deeply analysed
This is a website which start with index.html on the source code folder.
Then the further navigations can me made according to needs.

## What I Learned:
Write about the biggest learning you had while developing the prototype
The best about this project I got to make my knowledge to get boosted by some technologies:
1. AI Bifercation
2. Web scrapping
3. One DNN (Neural network library)

The best part of our knowledge journey was completing a project based on collaborating AI bifercation, web scrapping and one DNN.
3 changes: 3 additions & 0 deletions presentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Welcome to DES ...... This folder contains the presentation ppt of the project along with the video of the whole project.

To find the video presentation please visit our google drive link : https://drive.google.com/file/d/1-Nt35U7rpc_0VmMRAi_Ll-74zb4O4UpS/view?usp=drivesdk
Binary file added presentation/des.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions presentation/videopresentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Video presentation link of DES: https://drive.google.com/file/d/1-Nt35U7rpc_0VmMRAi_Ll-74zb4O4UpS/view?usp=drivesdk
1 change: 1 addition & 0 deletions presentation/videopresentation/ind.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

43 changes: 43 additions & 0 deletions source code/Chatroom/chat.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
session_start();
include_once "php/config.php";
if(!isset($_SESSION['unique_id'])){
header("location: login.php");
}
?>
<?php include_once "header.php"; ?>
<body>
<div class="wrapper">
<section class="chat-area">
<header>
<?php
$user_id = mysqli_real_escape_string($conn, $_GET['user_id']);
$sql = mysqli_query($conn, "SELECT * FROM users WHERE unique_id = {$user_id}");
if(mysqli_num_rows($sql) > 0){
$row = mysqli_fetch_assoc($sql);
}else{
header("location: users.php");
}
?>
<a href="users.php" class="back-icon"><i class="fas fa-arrow-left"></i></a>
<img src="php/images/<?php echo $row['img']; ?>" alt="">
<div class="details">
<span><?php echo $row['fname']. " " . $row['lname'] ?></span>
<p><?php echo $row['status']; ?></p>
</div>
</header>
<div class="chat-box">

</div>
<form action="#" class="typing-area">
<input type="text" class="incoming_id" name="incoming_id" value="<?php echo $user_id; ?>" hidden>
<input type="text" name="message" class="input-field" placeholder="Type a message here..." autocomplete="off">
<button><i class="fab fa-telegram-plane"></i></button>
</form>
</section>
</div>

<script src="javascript/chat.js"></script>

</body>
</html>
89 changes: 89 additions & 0 deletions source code/Chatroom/chatapp.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 18, 2021 at 11:44 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.3.26

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `chatapp`
--

-- --------------------------------------------------------

--
-- Table structure for table `messages`
--

CREATE TABLE `messages` (
`msg_id` int(11) NOT NULL,
`incoming_msg_id` int(255) NOT NULL,
`outgoing_msg_id` int(255) NOT NULL,
`msg` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
`user_id` int(11) NOT NULL,
`unique_id` int(255) NOT NULL,
`fname` varchar(255) NOT NULL,
`lname` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`img` varchar(255) NOT NULL,
`status` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `messages`
--
ALTER TABLE `messages`
ADD PRIMARY KEY (`msg_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
MODIFY `msg_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
11 changes: 11 additions & 0 deletions source code/Chatroom/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>DES|Chatroom</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"/>
</head>
1 change: 1 addition & 0 deletions source code/Chatroom/ind.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

50 changes: 50 additions & 0 deletions source code/Chatroom/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
session_start();
if(isset($_SESSION['unique_id'])){
header("location: users.php");
}
?>

<?php include_once "header.php"; ?>
<body>
<div class="wrapper">
<section class="form signup">
<header>DES|Chatroom</header>
<form action="#" method="POST" enctype="multipart/form-data" autocomplete="off">
<div class="error-text"></div>
<div class="name-details">
<div class="field input">
<label>First Name</label>
<input type="text" name="fname" placeholder="First name" required>
</div>
<div class="field input">
<label>Last Name</label>
<input type="text" name="lname" placeholder="Last name" required>
</div>
</div>
<div class="field input">
<label>Email Address</label>
<input type="text" name="email" placeholder="Enter your email" required>
</div>
<div class="field input">
<label>Password</label>
<input type="password" name="password" placeholder="Enter new password" required>
<i class="fas fa-eye"></i>
</div>
<div class="field image">
<label>Select Image</label>
<input type="file" name="image" accept="image/x-png,image/gif,image/jpeg,image/jpg" required>
</div>
<div class="field button">
<input type="submit" name="submit" value="Continue to Chat">
</div>
</form>
<div class="link">Already signed up? <a href="login.php">Login now</a></div>
</section>
</div>

<script src="javascript/pass-show-hide.js"></script>
<script src="javascript/signup.js"></script>

</body>
</html>
63 changes: 63 additions & 0 deletions source code/Chatroom/javascript/chat.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
const form = document.querySelector(".typing-area"),
incoming_id = form.querySelector(".incoming_id").value,
inputField = form.querySelector(".input-field"),
sendBtn = form.querySelector("button"),
chatBox = document.querySelector(".chat-box");

form.onsubmit = (e)=>{
e.preventDefault();
}

inputField.focus();
inputField.onkeyup = ()=>{
if(inputField.value != ""){
sendBtn.classList.add("active");
}else{
sendBtn.classList.remove("active");
}
}

sendBtn.onclick = ()=>{
let xhr = new XMLHttpRequest();
xhr.open("POST", "php/insert-chat.php", true);
xhr.onload = ()=>{
if(xhr.readyState === XMLHttpRequest.DONE){
if(xhr.status === 200){
inputField.value = "";
scrollToBottom();
}
}
}
let formData = new FormData(form);
xhr.send(formData);
}
chatBox.onmouseenter = ()=>{
chatBox.classList.add("active");
}

chatBox.onmouseleave = ()=>{
chatBox.classList.remove("active");
}

setInterval(() =>{
let xhr = new XMLHttpRequest();
xhr.open("POST", "php/get-chat.php", true);
xhr.onload = ()=>{
if(xhr.readyState === XMLHttpRequest.DONE){
if(xhr.status === 200){
let data = xhr.response;
chatBox.innerHTML = data;
if(!chatBox.classList.contains("active")){
scrollToBottom();
}
}
}
}
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.send("incoming_id="+incoming_id);
}, 500);

function scrollToBottom(){
chatBox.scrollTop = chatBox.scrollHeight;
}

1 change: 1 addition & 0 deletions source code/Chatroom/javascript/ind.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

27 changes: 27 additions & 0 deletions source code/Chatroom/javascript/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const form = document.querySelector(".login form"),
continueBtn = form.querySelector(".button input"),
errorText = form.querySelector(".error-text");

form.onsubmit = (e)=>{
e.preventDefault();
}

continueBtn.onclick = ()=>{
let xhr = new XMLHttpRequest();
xhr.open("POST", "php/login.php", true);
xhr.onload = ()=>{
if(xhr.readyState === XMLHttpRequest.DONE){
if(xhr.status === 200){
let data = xhr.response;
if(data === "success"){
location.href = "users.php";
}else{
errorText.style.display = "block";
errorText.textContent = data;
}
}
}
}
let formData = new FormData(form);
xhr.send(formData);
}
12 changes: 12 additions & 0 deletions source code/Chatroom/javascript/pass-show-hide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const pswrdField = document.querySelector(".form input[type='password']"),
toggleIcon = document.querySelector(".form .field i");

toggleIcon.onclick = () =>{
if(pswrdField.type === "password"){
pswrdField.type = "text";
toggleIcon.classList.add("active");
}else{
pswrdField.type = "password";
toggleIcon.classList.remove("active");
}
}
27 changes: 27 additions & 0 deletions source code/Chatroom/javascript/signup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const form = document.querySelector(".signup form"),
continueBtn = form.querySelector(".button input"),
errorText = form.querySelector(".error-text");

form.onsubmit = (e)=>{
e.preventDefault();
}

continueBtn.onclick = ()=>{
let xhr = new XMLHttpRequest();
xhr.open("POST", "php/signup.php", true);
xhr.onload = ()=>{
if(xhr.readyState === XMLHttpRequest.DONE){
if(xhr.status === 200){
let data = xhr.response;
if(data === "success"){
location.href="users.php";
}else{
errorText.style.display = "block";
errorText.textContent = data;
}
}
}
}
let formData = new FormData(form);
xhr.send(formData);
}
Loading