Professional Documents
Culture Documents
CSS(22519)
A PROJECT REPORT ON
2021-2022
Page | 1
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Submitted to
CSMSS COLLEGE OF POLYTECHNIC, AURANGABAD.
BY
Research Students
Page | 2
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
AURANGABAD
CERTIFICATE
This is to certify that ANAND THITE , VINAYAK MADILWAR ,and
SAVITA SHAHARAO of Third semester of Diploma in Computer Engineering of
PRINCIPAL
Page | 3
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Acknowledgement
We would like to express our thanks to the people who have helped us most
throughout our project. We would like to express our sincere thanks to the
principal of CSMSS College of Polytechnic Prof. Dongre. G.B. for being always
with us as a motivator. We are thankful to the H.O.D. of Computer Department
Mr. S.U. Kakde sir for his kind support. We are grateful to our Project Director
Ms. S.A.SAMRAT for nonstop support and continuous motivation for the project.
Her help made us possible to complete our project with all accurate information. A
special thanks of our goes to our friends who helped us in completing the project,
where they all exchanged their own interesting ideas. We wish to thanks our
parents for their personal support or attention who inspired us to go our own way.
Finally we would like to thank God who made all things possible for us till the
end.
Page | 4
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Index
Sr. PARTICULAR PAGE NO.
1. Abstract 6
2. Introduction 7-17
3. Conclusion 18
4. References 19
Page | 5
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Abstract
In this project we have studied different types of operators in
calculator using javascript.
We have listed and have given information on the important
functions of the javascript commands.
We have understood importance of functions in javascript in client
side scripting.
Functions helps us to execute different-different types of
javascript commands.
We have also learned introduction of javascript in client side
scripting..
Page | 6
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Introduction.
Basics
As you can see in the example above, the CSS calc() property expression
allows us to dynamically calculate the result between the subtraction of two
CSS length values right in our stylesheet without using JavaScript, and even
if length values don’t share the same unit.
Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Page | 7
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Length
Time
Angle
Frequency
CSS calc() can’t operate on CSS color values, and other types of CSS values.
Use Case
The value of CSS calc() can quickly be seen when we’re performing
mathematical calculations on numerical values with differing CSS units. It
becomes even more useful when the values are a mixture of relative and fixed
units.
First, let’s talk about an instance where we shouldn’t use the calc() property
expression.
Counterexample
In the style rule above, we’re performing a calculation that we can easily do
ourselves. So that our CSS is more readable, and to avoid unnecessary
browser calculations that could slow down our web pages, it’s better if we
pull out a real calculator and do the math ourselves:
CSS(22519)
CSS calc() becomes a great asset when one of the units is a relative unit while
the other is a fixed unit. This ability to negotiate between different CSS units
is especially wonderful in responsive web designs.
In this use case of CSS calc(), we are able to account for a vertical scrollbar
and ensure readability comfort of our content regardless of what device is
being used. And this method of centering a fluid container only requires
minimal CSS and HTML. Other responsive design techniques for achieving
the same result require more code, and might entail things such as negative
margins, media queries, and extraneous nesting of HTML container elements.
Specs Status
The specifications for CSS calc() is described in W3C CSS Values and Units
Module 3. At the time of writing, this module is in W3C Candidate
Recommendation (CR) status, meaning it is two levels away from being
finalized.
Keep in mind that, right now, CSS calc() is one of the three CSS features
singled out in the module’s specifications as being in danger of being
dropped. This is what the CR says:
The following features are at-risk and may be dropped during the CR period:
‘calc()’, ‘toggle()’, ‘attr()’.
Page | 9
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Browser Support
Currently, CSS calc() is supported in about 82% of the browsers being used
on the Web, according to data from caniuse.com. Internet Explorer 9 has
partial support of CSS calc(), and subsequent versions of the browser have
full feature support.
let result;
Output
Page | 10
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
switch(operator) {
case '+':
result = number1 + number2;
console.log(`${number1} + ${number2} = ${result}`);
break;
case '-':
result = number1 - number2;
console.log(`${number1} - ${number2} = ${result}`);
break;
case '*':
result = number1 * number2;
console.log(`${number1} * ${number2} = ${result}`);
break;
case '/':
Page | 11
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
default:
console.log('Invalid operator');
break;
}
Output
Enter operator: +
Enter first number: 4
Enter second number: 5
4 + 5 = 9
Page | 12
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
Conclusion
Page | 13
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)
lOMoARcPSD|18674829
CSS(22519)
References
1. https://www.programiz.com/javascript/examples/simple-calculator
2. https://www.javatpoint.com/javascript-calculator
3. https://dev.to/javascriptacademy/create-a-simple-calculator-using-html-css-and-javascript-4o7k
And our Subject teacher also helps us for completion of our “Micro-
Project”
Page | 14
Downloaded by 94-Kiran Dhumal (kirandhumal663@gmail.com)