Solution Idea Code
<html> <head> <title>CS202 Assignment no 2</title> <style> body{ padding:0; margin:0; width:100%; } #mynav{ background-color:black; height:80px; } #mynav a:link, a:visited { background-color: red; color: white; padding: 14px 25px; text-align: center; text-decoration: none; display: inline-block; } #mynav a:hover, a:active { background-color: black; } #firstimage img{ width:100%; height:600px; fill:cover; margin: 0px auto; } #serviceheading{ padding-top:10px; padding-bottom:10px; } #serviceheading h2{ text-align:center; } .servicesection{ width:32%; float:left; padding-left:5px; margin-bottom:5px; } .servicesection img{ width:15%; height:100px; padding-left:80px; margin:2px; } .servicesection h2{ margin: 5px 20px; } #banner1{ background-color:#21E6E0; } #banner2{ background-color:#F91912; } #banner3{ background-color:#58F912; } #myfooter{ width:99%; margin-top:5px; background-color:black; float:left; padding-bottom:100px; } #footer1{ width:41%; margin-left:5px; float:left; } #footer1 h3{ color:Red; padding-left:150px; } #footer1 p{ color:white; } #footer2{ width:41%; margin-left:90px; float:left; } #footer2 h4{ color:green; font-size:25px; } #btn{ background-color:#F91912; } #btn:hover{ background-color:green; } </style> </head> <body> <form action=""> <div id="mynav"> <a href="Home.html">Home</a> <a href="service.html">Service</a> <a href="about.html">About</a> <a href="contactus.html">Contact us</a> </div> <div id="firstimage"> <img src="banner.jpg" alt="Banner Image"> </div> <div id="serviceheading"> <h2>Service</h2> <div class="servicesection" id="banner1"> <img src="camera.PNG" alt="Banner Image"> <h2>Photgraphy</h2> <p> orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p> </div> <div class="servicesection" id="banner2"> <img src="video.PNG" alt="Banner Image"> <h2>VideoGraphy</h2> <p> orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p> </div> <div class="servicesection" id="banner3"> <img src="web.PNG" alt="Banner Image"> <h2>Web Design</h2> <p> orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p> </div> <div id="myfooter"> <div id="footer1"> <h3>About Us</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop </p> </div> <div id= "footer2"> <h4>Contact Us</h4><br> <input type="text" placeholder="name"><br><br> <input type="text" placeholder="Email Addres"><br><br> <textarea rows="4" cols="50"> </textarea><br><br> <button id="btn"> Press Me</button> </div> </div> </form> </body> </html> cs202 assignment solution with internal css in head section.html Displaying cs202 assignment solution with internal css in head section.html.CS202 Assignment 3 Solution and Discussion
-
Assignment No. 03
Semester: Fall 2019
CS202: Fundamentals of Front-End Development Total Marks: 20Due Date: 16/01/2020
Instructions:
Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupt.
Assignment is copied(partial or full) from any source (websites, forums, students, etc)Note: You have to upload .html file which contain required code. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.
Objective:
The objective of this assignment is to provide hands on experience of:
jQuery implementation
Event handling in jQuery
Apply CSS through jQueryGuidelines:
Code should be properly indented.
You will use only Notepad to make the html file
You will not use any other software to make .html fileFor any query about the assignment, contact at [email protected]
Assignment
Problem Statement:
You are required to write jQuery code which will fulfill requirements given below.
Requirements and Solution Instructions:
• Watch the video given in the assignment folder and apply the jQuery.
• Find the attached HTML Design file to put required jquery code in this file.
• Click on the heading and the related text should be displayed under the heading as displayed in video.
• Click on the buttons to change the header and footer as shown in video.Tips:
• The CSS of each element is implemented through ID. So access all required element through ID in jQuery.For any query about the assignment, contact at [email protected]
BEST OF LUCK!
-
-
<!DOCTYPE html> <html> <head> <title>Front End Development- Assignmnet-03 Created by : BC170201325 Asad Iqbal</title> <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script> <script> $(document).ready(function(){ $("#flip1").click(function(){ $("#panel1").slideToggle(); }); }); </script> <script> $(document).ready(function(){ $("#flip2").click(function(){ $("#panel2").slideToggle(); }); }); </script> <script> $(document).ready(function(){ $("#flip3").click(function(){ $("#panel3").slideToggle(); }); }); </script> <script> $(document).ready(function(){ $("#flip4").click(function(){ $("#panel4").slideToggle(); }); }); </script> <script> $(document).ready(function(){ $("#btn1").click(function(){ $(".header").toggleClass("yellow"); }); }); </script> <script> $(document).ready(function(){ $("#btn2").click(function(){ $(".footer").toggleClass("yellow"); }); }); </script> <style> body{ font-family: Helvetica; background-color: white; margin: 0; padding: 0; } .header, .footer{ background-color: #69BE28; color: white; text-align: center; width: 100%; float: left; height: 70px; } #body{ padding: 25px; background-color: #f0e9e9; width: 80%; clear: both; margin: 0 auto; } .heading { padding: 20px; margin: 20px; text-align: center; background-color: #616161; color: white; border: solid 1px #c3c3c3; } .allText{ font-size: 18px; color: white; margin: 30px; background-color: #69BE28; text-align: justify; font-weight: normal; line-height: 1.5; padding: 20px; } #btn1, #btn2{ background-color: white; color: black; border: 2px solid #69BE28; padding: 20px; margin: 20px; } #btn1:hover , #btn2:hover { background-color: #69BE28; color: white; transition: 1s; } .yellow { background-color: yellow; color: black; } </style> </head> <body> <div class="header" > <h1>Virtual University of Pakistan</h1> </div> <div id="body"> <div id="flip1" class="heading">CHANCELLOR'S MESSAGE</div> <div id="panel1" class="allText"> One of the major challenges being faced by the education sector of Pakistan is lack of qualified faculty vis-a-vis demand. Effective utilization of Information and Communication Technology (ICT) tools provide a practical solution to this issue while maintaining the highest and internationally acceptable education standards. Virtual University of Pakistan is pioneer in the use of ICTs for imparting the quality education to its students all over the country including the remote areas and Pakistani overseas diaspora. With its highly flexible mode of education, Virtual University enables its students to manage studies at their own convenience and provides opportunities to harness their untapped talents. <br> Virtual University of Pakistan is playing its due role in promoting education in the country. I hope that the University will continue to ensure best quality in education and research. <br> I wish this institute success in the years ahead. <br> Dr. Arif Alvi <br> President of the Islamic Republic of Pakistan<br> Chancellor, Virtual University of Pakistan </div> <div id="flip2" class="heading">VISION</div> <div id="panel2" class="allText">To become an internationally acclaimed technology based university that improves access to higher education while maintaining the highest quality standards</div> <div id="flip3" class="heading">Mission</div> <div id="panel3" class="allText">To become an internationally acclaimed technology based university that improves access to higher education while maintaining the highest quality standards</div> <div id="flip4" class="heading">Introduction</div> <div id="panel4" class="allText">The University opened its virtual doors in 2002 and in a short span of time its outreach has reached over one hundred cities of the country with more than one hundred and ninety associated institutions providing infrastructure support to the students. Pakistani students residing overseas in several other countries of the region are also enrolled in the University's programs.</div> <button id="btn1">Toggle Header </button> <button id="btn2">Toggle Footer </button> </div> </div> <div class="footer"> <h1>Virtual University of Pakistan</h1> </div> </body> </html>
-
-
-


100% Off on Your FEE Join US! Ask Me How?


