Skip to content

Commit 42d0788

Browse files
committed
Lab05 initial commit
1 parent b098883 commit 42d0788

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body {
2+
margin: 10%;
3+
4+
}

index.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>Lab5</title>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link href="css/style.css" rel="stylesheet">
8+
<script src="script/lab5.js"></script>
9+
</head>
10+
<body onload="changeStyle()">
11+
<h1>SDLC</h1>
12+
<h3>What is Software Development Life Cycle?</h3>
13+
14+
<p id="firstP">SDLC is a process followed for a software project, within a software organization.
15+
It consists of a detailed plan describing how to develop, maintain, replace and alter or enhance
16+
specific software. The life cycle defines a methodology for improving the quality of software and the
17+
overall development process.</p>
18+
<p id="secondP">Stage 1: Planning and Requirement Analysis<br /><br />Planning for the quality assurance requirements and identification of the risks associated with the project is also done in the planning stage. The outcome of the technical feasibility study is to define the various technical approaches that can be followed to implement the project successfully with minimum risks.</p>
19+
<p class="middleP">Stage 2: Defining Requirements<br /><br />Once the requirement analysis is done the next step is to clearly define and document the product requirements and get them approved from the customer or the market analysts. This is done through an SRS (Software Requirement Specification) document which consists of all the product requirements to be designed and developed during the project life cycle.</p>
20+
<p class="middleP">Stage 3: Designing the Product Architecture<br /><br />DDS - Design Document Specification is reviewed by all the important stakeholders and based on various parameters as risk assessment, product robustness, design modularity, budget and time constraints, the best design approach is selected for the product.</p>
21+
<p>Stage 4: Building or Developing the Product<br />Stage 5: Testing the Product</p>
22+
23+
<input type="button" id="hiddenPara" value="See More" onclick="hiddenP()" >
24+
<input type="button" value="Reset" onclick="reloadPage()" >
25+
26+
</body>
27+
</html>

script/lab5.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
function changeStyle() {
2+
let fP = document.getElementById('firstP');
3+
fP.style.textAlign = 'center';
4+
5+
let sP = document.getElementById('secondP')
6+
sP.style.textAlign = 'right';
7+
8+
let midP = document.getElementsByClassName('middleP');
9+
midP[0].style.backgroundColor = 'blue';
10+
midP[0].style.color = 'cyan';
11+
midP[1].style.backgroundColor = 'blue';
12+
midP[1].style.color = 'cyan';
13+
var colorList = new Array('yellow', 'black', 'cyan', 'white', 'Yellow', 'red');
14+
var bgColorList = ['red', 'white', 'blue', 'black','green', 'orange'];
15+
var paragraph = document.getElementsByTagName('p');
16+
var fifthP = paragraph[4];
17+
var i = 0;
18+
setInterval(function keepChange(){
19+
fifthP.style.backgroundColor = bgColorList[i];
20+
fifthP.style.color = colorList[i];
21+
i += 1;
22+
if (i == colorList.length){
23+
i = 0;
24+
}
25+
console.log(i);
26+
}, 3000);
27+
}
28+
29+
function hiddenP(){
30+
var newP = document.createElement('p');
31+
newP.innerHTML = 'Stage 6: Deployment in the Market and Maintenance';
32+
window.document.body.appendChild(newP);
33+
document.getElementById('hiddenPara').disabled = true;
34+
}
35+
36+
function reloadPage() {
37+
window.location.reload();
38+
document.getElementById('hiddenPara').disabled = false;
39+
}

0 commit comments

Comments
 (0)