Summer Internship Report
Summer Internship Report
Summer Internship Report
[By Coursera]
A Project Report
[Web Development]
Submitted to
PHAGWARA, PUNJAB
SUBMITTED BY
Mannu Kumar
Reg. No.: 12204749
P a g e 1 | 47
Annexure-II: Student Declaration
To whom so ever it may concern
I, Mannu Kumar, 12204749, hereby declare that the work done by me on “HTML, CSS,
and JavaScript for Web Developers” from June, 2023 to July, 2023, is a record of
original work for the partial fulfillment of the requirements for the award of the degree,
Master of Computer Application.
P a g e 2 | 47
ACKNOWLEDGMENTS
I have successful completion of this summer internship report would not have been
possible without the help and guidance of many individuals and organizations
(coursers). The tutor “Prof. Yaakov Chaikin” feel especially blessed to have gotten this
during my certification period. The tutor would like to take this opportunity to offer
my earnest admiration to every one of them.
All thanks to my dear parents for their intense help and support during the period of
this certification.
The tutor of Coursera is thankful to my learned and repudiated tutor for his
unbeatable personality, kindness; animated support to help readably and greatly
improve the quality of my summer Internship Report and brought up to its present
status. The tutor whose work have used in this report to depend on different national
and international publications for the completion of the certification program through
Coursera.
Finally, I would like to say thank my colleagues and lecturer who helped me a lot in
collecting information, data, and guidance me from time to time during this summer
internship program, they gave me different ideas in making this project unique.
P a g e 3 | 47
ABSTRACT
This report is the reflection and the journey of my one-month summer internship
program along with the highlights of what I learned through errors, work
responsibilities, and the most importance of this summer internship program in
Coursera. The knowledge I have achieved as a developer on front end development,
and how to work in an office environment is elegant. My work was to learn and focus
on web development assignments which were provided by the tutor of the Johns
Hopkin University.
In this report, I have focused my work and explain my new learning thing which I
have got during my summer internship period at Johns Hopkins University. The
challenge linked with web development to that the tools and techniques used to
create the front end of a website change slowly and so the developer needs to slowly
be knowledge that how the field is developing.
This report provides an overview of web development and its related technologies.
This report includes a discussion of the best practices for web development projects
and an overview of the tools and technologies used by web developers in the
industry.
This summer internship that the tutor worked in certainly helped him by increasing
the knowledge of HTML, CSS, and JavaScript.
P a g e 4 | 47
Internship Certificate
(As given by MOOC or Organization in original)
P a g e 5 | 47
Table of contents
P a g e 6 | 47
1. Introduction
1.1. Web Development
Web development means to the creating, building, and maintaining the
websites. It includes features such as web design, web publishing, web programming,
and database management. It is the formation of an application that works over the
internet i.e., websites. The word “Web Development” is made up of two words, first
one is: Web, it indicates to websites, web pages or anything that works over the
internet. It also refers to building the application from scratch.
P a g e 7 | 47
1.4. Back End Development
Back-end development means working on server-side software, which focuses on
everything you can’t see on a website. Back-end developers work on back-end, there
are some works of developer are: the website performs correctly, focusing on
databases, back-end logic, application programming interface (APIs), and architecture.
They use code that helps browsers to communicate with databases and store the
information and delete the information.
It is used to create and manages resources needed to respond to client requests. It
enables server infrastructure to process request, supply data and provide other
service.
In Back end, I can use JavaScript for scripting purpose and PHP for store the data into
database.
1.5. Skill of Front-end Development
HTML: Hyper Text Markup Language (HTML) is the standard markup language used
for creating web pages. It is not a procedural programming language. It is a declarative
Programming Language. It is the building block which is required for the developing
websites. It facilitates to development of cross-browser applications for the web and
portable device. It helps to create engaging user experience by providing an
experience like desktop applications. It allows enhanced multiple platform
development. In HTML5, latest version of Html, APIs enhance user experiences, such
as advanced animation, drawing, audio, video elements.
CSS: Cascading Style Sheets (CSS) is used to apply styles to web pages. It is used to
make the web pages attractive. The reason to use CSS is to simplify design the web
pages and make it attractive. It allows me to apply styles on the web pages. It also
enables me to do CSS independent of the HTML that makes font end of web page. It
provides an easier way to reference CSS properties. It is a set of rules which in include
a selector and one or more properties and values as well as some punctuation.
JavaScript: JavaScript is a very powerful tool that can do many things for a website. It
makes the web site’s secure and affectively. JavaScript makes it possible to build a UI
component such as image sliders, pop-ups box, web site navigation drop box, form
validations, tables, accordions, and much more. It is a programming language. It
derived from ECMA Script Standard. It is not related to Java, it is also interpreted and
compiled. It Interprets embedded in web browser, add dynamic behavior to static web
content.
P a g e 8 | 47
1.6. Skill of Back End Development
P a g e 9 | 47
2.1. Course Details
This course is based on the HTML, CSS, and JavaScript for web developers. This course
is commitment of 5 weeks (Modules) study and 4 to 6 hours/ week, but I was learned
this course in 1 hour/day and then complete this at time.
A. Module 1: --
In this module I learned the basics of HTML5. This module started with
instructional videos on how to set up development environment of editor, and
go over HTML5 basics like valid document structure, which elements can be
included inside other elements, and which cannot, discuss the meaning and
unusual of HTML5 semantic tags, and go over common HTML5 tags.
B. Module 2: --
In this module, I was learning the very basics of CSS3 to some advanced
concepts like floating and CSS rule conflict resolution and flex box. And clear
the concept of 'box model', background property, etc. At last, I am finishing
this module with learning about Responsive Design using my own CSS code
and started introducing Twitter Bootstrap with its essential Grid System.
C. Module 3: --
In this module, the tutor was go over some basics of interacting with a client
and server and how manage the web site project and then go to meet a real
client at their place of business purpose (a Chinese restaurant), help the owner
figure out what she wants in a site, and get acquainted with the restaurant in
general. I spent the rest of the module building a real web site for this business
from the beginning.
D. Module 4: --
In this module, I am going to concentrate on learning the fundamentals of the
JavaScript language. Even a lot of experienced developers think with the basic
of JavaScript without really understanding how the language works. That makes
me view the language as more of a difficulty instead of a powerful tool which is
available in the market. I learned about everything of JavaScript - from common
language designs and JavaScript types to objects, functions, arrays, and scope
isolation.
E. Module: --
In this module, I learned JavaScript language skills and learn how to use it in
programming within the context of a web page. I started by learning how to
rightly handle the web page components with the help of JavaScript Document
Object Model API. I also learned one of the most popular ways of helping up
P a g e 10 | 47
data to a web site - Ajax. I learned about the protocol that is the language of the
web speaks in (HTTP), and to set and handle Ajax requests and responses, and
to process JSON data store in database. Finally, I was connecting the module to
my restaurant web site from Module 3 which is a real backend service that
allows us to insert the data into the restaurant menu dynamically from the
server without reloaded the entire page.
After that learning, there were five assignments for five modules which is based on
project, so, in next section I will share the code and snap of the web page.
After submission of assignments of all modules, I was provided the grade of this code.
The passing grading percentage is 100% so it is very hard to make the assignment
means at the time of making assignment, design the make carefully because there will
be not second chance will be given by the Coursera team and tutor of this course
(According to new policy of Coursera).
P a g e 11 | 47
given the assignments for all the modules at the end of the complete module then I
was done and submitted this assignment in the Coursera platform.
I am sharing the GitHub Link of my repository there all the modules have uploaded.
In week 1: --
Full based on the test. Means, there are 20 questions based on HTML, CSS, and
JavaScript.
In week 2: --
The tutor was given the simple of a web page as in an assignment, and I was
designed as it is then otherwise, I would have failed in this assignment. After
submission of every assignment, there is one more work to give the review of the
other submission.
In week 3: --
The tutor was given the simple of a web page as in an assignment which based on
the CSS property, like border, grid… After submission of every assignment, there is one
more work to give the review of the other submission.
In week 4: --
The tutor was given the simple of a web page as in an assignment which based on
the JavaScript. After submission of every assignment, there is one more work to give
the review of the other submission.
In week 5: --
The tutor was given the simple of a web page as in an assignment. This is the main
project of this course because in this assignment, to made one web page which is fully
responsive and proper working. After submission of every assignment, there is one
more work to give the review of the other submission.
P a g e 12 | 47
4. Detail of Mini Project
A. Module 1: --
This module is based on only test, so, there is not assignment as a project.
B. Module 2: --
C. Module 3: --
P a g e 13 | 47
D. Module 4: -- This
E. Module 5: --
P a g e 14 | 47
4.2. Code of Mini Projects
A. Module 2: --
## index.html
<!DOCTYPE html>
<html>
<head>
<title>Responsive Layout</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Our Menu</h1>
P a g e 15 | 47
magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies
nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.</p>
</div>
</div>
</body>
</html>
## style.css
* {
box-sizing: border-box;
}
body{
margin: 0;
padding: 0;
font-family: "Comic Sans MS", cursive, sans-serif;
}
.row{
margin-top: 5%;
margin-bottom: 5%;
}
h1 {
margin-bottom: 15px;
text-align: center;
color: #ff4532;
font-size: 50px;
}
.box{
width: 100%;
overflow: none;
}
.content-name{
overflow: none;
text-align: center;
border: 4px solid black;
P a g e 16 | 47
width: 100px;
height: 40px;
padding: 5px;
float: right;
margin-right: 36px;
margin-top: 0px;
font-weight: bold;
position: relative;
}
.content{
border: 5px solid black;
width: 90%;
height: auto;
margin: 2.5%;
color: black
font-size: 25px;
padding: 2%;
padding-top: 55px;
background-color: rgba(0,0,0,0.3);
}
.name1{
background-color: #FFB6C1;
}
.name2{
color: white;
background-color: #FF0000;
}
.name3{
background-color: #FFFF00;
}
P a g e 17 | 47
float: left;
}
.col-md-6 {
width: 50%;
}
.col-md-12 {
margin-left: -10px;
width: 100%;
}
.name3{
margin-right: 65px;
width: 100px;
}
}
B. Module 3: --
## index.html
<!DOCTYPE html>
<html>
<head>
<title>Module 3</title>
</head>
P a g e 18 | 47
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Food, LLC</a>
</div>
</div>
</nav>
<div class="row">
P a g e 19 | 47
dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.<a href="#top">(Back to Top)</a></p>
</div>
</div>
</div>
P a g e 20 | 47
</body>
</html>
## style.css
.container-fluid{
margin: 0;
padding: 0;
}
.navbar{
border-radius: 0px;
background-color: rgba(0,0,0,0.8);
}
.navbar-brand{
font-size: 35px;
color: white;
padding-left: 25px;
}
.navbar-brand:hover{
color: white;
}
.nav{
margin: 0;
padding: 0;
}
.navbar-nav{
font-size: 25px;
text-align: center;
margin: 0;
padding: 0;
}
.navbar-toggle{
border: 2px solid white;
margin-right: 25px;
}
.icon-bar{
background-color: white;
P a g e 21 | 47
}
.main-title{
margin-bottom: 15px;
text-align: center;
color: #ff4532;
font-size: 50px;
font-family: "Comic Sans MS", cursive, sans-serif;
font-weight: bold;
}
li{
box-sizing: border-box;
width: 100%;
}
.menu-item{
padding: 0;
margin: 0;
width: 100%;
background-color: white;
border-bottom: 1px solid black;
color: black;
display: block;
}
.menu-item:hover{
background-color: rgba(0,0,0,0.9);
color: rgba(0,0,0,0.4);
}
.row{
margin: 20px;
}
.content-box{
margin: 20px;
width: auto;
height: auto;
color: black;
background-color: rgba(0,0,0,0.2);
font-family: "Comic Sans MS", cursive, sans-serif;
P a g e 22 | 47
padding: 20px;
}
.item-name{
text-align: center;
font-size: 20px;
font-weight: bold;
}
#top{
C. Module 4: --
## index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Module 4 Solution Starter</title>
<script src="SpeakHello.js"></script>
<script src="SpeakGoodBye.js"></script>
<script src="script.js"></script>
</head>
<body>
<h1>Module 4 Solution Starter</h1>
<p>open console to see the output</p>
</body>
</html>
## script.js
// *******************************
// START HERE IF YOU WANT AN EASIER STARTING POINT FOR THIS ASSIGNMENT
// *******************************
//
// Module 4 Assignment Instructions.
//
// The idea of this assignment is to take an existing array of names
// and then output either Hello 'Name' or Good Bye 'Name' to the console.
// The program should say "Hello" to any name except names that start with a "J"
P a g e 23 | 47
// or "j", otherwise, the program should say "Good Bye". So, the final output
// on the console should look like this:
/*
Hello Yaakov
Good Bye John
Good Bye Jen
Good Bye Jason
Hello Paul
Hello Frank
Hello Larry
Hello Paula
Hello Laura
Good Bye Jim
WARNING!!! WARNING!!!
The code does NOT currently work! It is YOUR job to make it work
as described in the requirements and the steps in order to complete this
assignment.
WARNING!!! WARNING!!!
*/
(function () {
var names = ["Yaakov", "John", "Jen", "Jason", "Paul", "Frank", "Larry", "Paula",
"Laura", "Jim"];
})();
D. Module 5: --
## index.html
<!doctype html>
<html lang="en">
P a g e 24 | 47
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mannu Food Website</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<link href='https://fonts.googleapis.com/css?family=Oxygen:400,300,700'
rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Lora' rel='stylesheet'
type='text/css'>
</head>
<body>
<header>
<nav id="header-nav" class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a href="index.html" class="pull-left visible-md visible-lg">
<div id="logo-img" alt="Logo image"></div>
</a>
<div class="navbar-brand">
<a href="index.html"><h1>David Chu's China Bistro</h1></a>
<p>
<img src="images/star-k-logo.png" alt="Kosher certification">
<span>Kosher Certified</span>
</p>
</div>
P a g e 25 | 47
<a href="#" onclick="$dc.loadMenuCategories();">
<span class="glyphicon glyphicon-cutlery"></span><br class="hidden-
xs"> Menu</a>
</li>
<li>
<a href="#">
<span class="glyphicon glyphicon-info-sign"></span><br
class="hidden-xs"> About</a>
</li>
<li>
<a href="#">
<span class="glyphicon glyphicon-certificate"></span><br
class="hidden-xs"> Awards</a>
</li>
<li id="phone" class="hidden-xs">
<a href="tel:410-602-5008">
<span>410-602-5008</span></a><div>* We Deliver</div>
</li>
</ul><!-- #nav-list -->
</div><!-- .collapse .navbar-collapse -->
</div><!-- .container -->
</nav><!-- #header-nav -->
</header>
<footer class="panel-footer">
<div class="container">
<div class="row">
<section id="hours" class="col-sm-4">
<span>Hours:</span><br>
Sun-Thurs: 11:15am - 10:00pm<br>
Fri: 11:15am - 2:30pm<br>
Saturday Closed
<hr class="visible-xs">
</section>
<section id="address" class="col-sm-4">
P a g e 26 | 47
<span>Address:</span><br>
7105 Reisterstown Road<br>
Baltimore, MD 21215
<p>* Delivery area within 3-4 miles, with minimum order of $20 plus $3
charge for all deliveries.</p>
<hr class="visible-xs">
</section>
<section id="testimonials" class="col-sm-4">
<p>"The best Chinese restaurant I've been to! And that's saying a lot,
since I've been to many!"</p>
<p>"Amazing food! Great service! Couldn't ask for more! I'll be back again
and again!"</p>
</section>
</div>
<div class="text-center">© Copyright David Chu's China Bistro 2016</div>
</div>
</footer>
## Style.css
body {
font-size: 16px;
color: #fff;
background-color: #61122f;
font-family: 'Oxygen', sans-serif;
}
#logo-img {
background: url('../images/restaurant-logo_large.png') no-repeat;
width: 150px;
P a g e 27 | 47
height: 150px;
margin: 10px 15px 10px 0;
}
.navbar-brand {
padding-top: 25px;
}
.navbar-brand h1 { /* Restaurant name */
font-family: 'Lora', serif;
color: #557c3e;
font-size: 1.5em;
text-transform: uppercase;
font-weight: bold;
text-shadow: 1px 1px 1px #222;
margin-top: 0;
margin-bottom: 0;
line-height: .75;
}
.navbar-brand a:hover, .navbar-brand a:focus {
text-decoration: none;
}
.navbar-brand p { /* Kosher cert */
color: #000;
text-transform: uppercase;
font-size: .7em;
margin-top: 15px;
}
.navbar-brand p span { /* Star-K */
vertical-align: middle;
}
#nav-list {
margin-top: 10px;
}
#nav-list a {
color: #951C49;
text-align: center;
}
#nav-list a:hover {
background: #E7E7E7;
}
#nav-list a span {
font-size: 1.8em;
}
P a g e 28 | 47
#phone {
margin-top: 5px;
}
#phone a { /* Phone number */
text-align: right;
padding-bottom: 0;
}
#phone div { /* We Deliver */
color: #557c3e;
text-align: right;
padding-right: 15px;
}
/* FOOTER */
.panel-footer {
margin-top: 30px;
padding-top: 35px;
padding-bottom: 30px;
background-color: #222;
border-top: 0;
}
.panel-footer div.row {
margin-bottom: 35px;
}
#hours, #address {
line-height: 2;
}
#hours > span, #address > span {
font-size: 1.3em;
}
#address p {
color: #557c3e;
font-size: .8em;
line-height: 1.8;
}
#testimonials {
P a g e 29 | 47
font-style: italic;
}
#testimonials p:nth-child(2) {
margin-top: 25px;
}
/* END FOOTER */
/* HOME PAGE */
.container .jumbotron {
box-shadow: 0 0 50px #3F0C1F;
border: 2px solid #3F0C1F;
}
P a g e 30 | 47
}
/* END HOME PAGE */
#menu-categories-title + div {
margin-bottom: 50px;
}
/* END MENU CATEGORIES PAGE */
P a g e 31 | 47
}
.menu-item-tile .menu-item-price span {
font-size: .6em;
}
.menu-item-photo {
position: relative;
border: 2px solid #3F0C1F;
overflow: hidden;
padding: 0;
margin-right: -15px;
margin-left: auto;
margin-bottom: 20px;
max-width: 250px;
}
.menu-item-photo div {
position: absolute;
bottom: 0;
right: 0;
width: 80px;
background-color: #557c3e;
text-align: center;
}
.menu-item-description {
padding-right: 30px;
}
h3.menu-item-title {
margin: 0 0 10px;
}
.menu-item-details {
font-size: .9em;
font-style: italic;
}
/* END SINGLE CATEGORY PAGE */
P a g e 32 | 47
/* Header */
#logo-img {
background: url('../images/restaurant-logo_medium.png') no-repeat;
width: 100px;
height: 100px;
margin: 5px 5px 5px 0;
}
/* End Header */
/* Home Page */
.container .jumbotron {
background: url('../images/jumbotron_992.jpg') no-repeat;
height: 558px;
}
/* End Home Page */
}
P a g e 33 | 47
#collapsable-nav a { /* Collapsed nav menu text */
font-size: 1.2em;
}
#collapsable-nav a span { /* Collapsed nav menu glyph */
font-size: 1em;
margin-right: 5px;
}
#call-btn > a {
font-size: 1.5em;
display: block;
margin: 0 20px;
padding: 10px;
border: 2px solid #fff;
background-color: #f6b319;
color: #951c49;
}
#xs-deliver {
margin-top: 5px;
font-size: .7em;
letter-spacing: .1em;
text-transform: uppercase;
}
/* End Header */
/* Footer */
.panel-footer section {
margin-bottom: 30px;
text-align: center;
}
.panel-footer section:nth-child(3) {
margin-bottom: 0; /* margin already exists on the whole row */
}
.panel-footer section hr {
width: 50%;
}
/* End Footer */
/* Home Page */
.container .jumbotron {
margin-top: 30px;
padding: 0;
}
#menu-tile, #specials-tile {
P a g e 34 | 47
width: 360px;
margin: 0 auto 15px;
}
.menu-item-photo {
margin-right: auto;
}
.menu-item-tile .menu-item-price {
text-align: center;
}
.menu-item-description {
text-align: center;;
}
}
/********** Super extra small devices Only :-) (e.g., iPhone 4) **********/
@media (max-width: 479px) {
/* Header */
.navbar-brand h1 { /* Restaurant name */
padding-top: 5px;
font-size: 6vw;
}
/* End Header */
/* Home page */
#menu-tile, #specials-tile {
width: 280px;
margin: 0 auto 15px;
}
.col-xxs-12 {
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
float: left;
width: 100%;
}
}
## style.js
$(function () { // Same as document.addEventListener("DOMContentLoaded"...
P a g e 35 | 47
// Same as document.querySelector("#navbarToggle").addEventListener("blur",...
$("#navbarToggle").blur(function (event) {
var screenWidth = window.innerWidth;
if (screenWidth < 768) {
$("#collapsable-nav").collapse('hide');
}
});
});
(function (global) {
var dc = {};
P a g e 36 | 47
// Remove the class 'active' from home and switch to Menu button
var switchMenuToActive = function () {
// Remove 'active' from home button
var classes = document.querySelector("#navHomeButton").className;
classes = classes.replace(new RegExp("active", "g"), "");
document.querySelector("#navHomeButton").className = classes;
P a g e 37 | 47
// Builds HTML for the home page based on categories array
// returned from the server.
function buildAndShowHomeHTML (categories) {
// TODO: STEP 4: Insert the the produced HTML in STEP 3 into the main page
P a g e 38 | 47
// Use the existing insertHtml function for that purpose. Look through this
code for an example
// of how to do that.
// ....
insertHtml('#main-content', homeHtmlToInsertIntoMainPage);
},
false); // False here because we are getting just regular HTML from the server,
so no need to process JSON.
}
P a g e 39 | 47
$ajaxUtils.sendGetRequest(
categoriesTitleHtml,
function (categoriesTitleHtml) {
// Retrieve single category snippet
$ajaxUtils.sendGetRequest(
categoryHtml,
function (categoryHtml) {
// Switch CSS class active to menu button
switchMenuToActive();
var categoriesViewHtml =
buildCategoriesViewHtml(categories,
categoriesTitleHtml,
categoryHtml);
insertHtml("#main-content", categoriesViewHtml);
},
false);
},
false);
}
P a g e 40 | 47
finalHtml += "</section>";
return finalHtml;
}
// Builds HTML for the single category page based on the data
// from the server
function buildAndShowMenuItemsHTML (categoryMenuItems) {
// Load title snippet of menu items page
$ajaxUtils.sendGetRequest(
menuItemsTitleHtml,
function (menuItemsTitleHtml) {
// Retrieve single menu item snippet
$ajaxUtils.sendGetRequest(
menuItemHtml,
function (menuItemHtml) {
// Switch CSS class active to menu button
switchMenuToActive();
var menuItemsViewHtml =
buildMenuItemsViewHtml(categoryMenuItems,
menuItemsTitleHtml,
menuItemHtml);
insertHtml("#main-content", menuItemsViewHtml);
},
false);
},
false);
}
menuItemsTitleHtml =
insertProperty(menuItemsTitleHtml,
"name",
categoryMenuItems.category.name);
menuItemsTitleHtml =
insertProperty(menuItemsTitleHtml,
P a g e 41 | 47
"special_instructions",
categoryMenuItems.category.special_instructions);
P a g e 42 | 47
html +=
"<div class='clearfix visible-lg-block visible-md-block'></div>";
}
finalHtml += html;
}
finalHtml += "</section>";
return finalHtml;
}
global.$dc = dc;
})(window);
P a g e 43 | 47
4.3. Code Snippets
Code snippets are templates that make it easier to enter repeating code patterns, such
as loops or conditional statements. It is block of code which is reused in a code. It
makes it easy to find the errors in the code.
The Snippets of my mini projects – Create a food website with the help of HTML, CSS,
and JavaScript.
I am making five snippets in my project: --
## Categories-title-snippet.html
<h2 id="menu-categories-title" class="text-center">Menu Categories</h2>
<div class="text-center">
Substituting white rice with brown rice or fried rice after 3:00pm will be $1.50
for a pint and $2.50 for a quart.
</div>
## category-snippet.html
<div class="col-md-3 col-sm-4 col-xs-6 col-xxs-12">
<a href="#" onclick="$dc.loadMenuItems('{{short_name}}');">
<div class="category-tile">
<img width="200" height="200"
src="images/menu/{{short_name}}/{{short_name}}.jpg" alt="{{name}}">
<span>{{name}}</span>
</div>
</a>
</div>
## home-snippet.html
<div class="jumbotron">
<img src="images/jumbotron_768.jpg" alt="Picture of restaurant" class="img-
responsive visible-xs">
</div>
P a g e 44 | 47
<div class="col-md-4 col-sm-12 col-xs-12">
<a
href="https://www.google.com/maps/place/David+Chu's+China+Bistro/@39.3635874,-
76.7138622,17z/data=!4m6!1m3!3m2!1s0x89c81a14e7817803:0xab20a0e99daa17ea!2sDavid+Chu
's+China+Bistro!3m1!1s0x89c81a14e7817803:0xab20a0e99daa17ea" target="_blank">
<div id="map-tile">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3084.675372390488!2d-
76.71386218529199!3d39.3635874269356!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2
!1s0x89c81a14e7817803%3A0xab20a0e99daa17ea!2sDavid+Chu's+China+Bistro!5e0!3m2!1s
en!2sus!4v1452824864156" width="100%" height="250" frameborder="0" style="border:0"
allowfullscreen></iframe>
<span>map</span>
</div>
</a>
</div>
</div>
## menu-item.html
<div class="menu-item-tile col-md-6">
<div class="row">
<div class="col-sm-5">
<div class="menu-item-photo">
<div>{{short_name}}</div>
<img class="img-responsive" width="250" height="150"
src="images/menu/{{catShortName}}/{{short_name}}.jpg" alt="Item">
</div>
<div class="menu-item-price">{{price_small}}<span>
{{small_portion_name}}</span> {{price_large}}
<span>{{large_portion_name}}</span></div>
</div>
<div class="menu-item-description col-sm-7">
<h3 class="menu-item-title">{{name}}</h3>
<p class="menu-item-details">{{description}}</p>
</div>
</div>
<hr class="visible-xs">
</div>
## menu-items-title.html
<h2 id="menu-categories-title" class="text-center">{{name}} Menu</h2>
<div class="text-center">{{special_instructions}}</div>
P a g e 45 | 47
5. Grade sheet of assignments/ marks card from the MOOC
The grade of my assignments/ marks card of MOOC snap shots is given below –
P a g e 46 | 47
6. Bibliography for References: --
eBooks: --
➢ WEB TECHNOLOGIES HTML, CSS3, JAVASCRIPT, JQUERY, AJAX, PHP, XML, MVC AND
LARAVEL by DT EDITORIAL SERVICES, DREAMTECH PRESS
➢ WEB TECHNOLOGIES BLACK BOOK by KOGENT LEARNING SOLUTIONS INC., DREAMTECH
PRESS
➢ WEB ENABLED COMMERCIAL APPLICATION DEVELOPMENT USING HTML, JAVA SCRIPT,
DHTML AND PHP by IVAN BAYROSS, BPB PUBLICATIONS
Web links: --
➢ https://www.w3schools.com/whatis/
➢ https://en.wikipedia.org/wiki/Web_development#:~:text=Web%20develop
ment%20is%20the%20work,businesses%2C%20and%20social%20network%2
0services.
➢ https://www.geeksforgeeks.org/web-development/
➢ www.tutorialpoint.com
P a g e 47 | 47