Skip to content
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

Part two answer #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Part two answer #13

wants to merge 3 commits into from

Conversation

Se-ven
Copy link

@Se-ven Se-ven commented Jun 12, 2020

Basic introduction of other operators and changing var usage to let. Want to edit the number entering form to be able to take any given numbers and introduce button for 'equals' operation in the near future.


<style>
body {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good css work here.

subtractNumbers: function () {

let numberOne = parseInt(document.forms.inputs.numberOne.value);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks solid.

index.html Outdated
</script>

</head>

<body>
<div>Header</div>
<H1>Calculator 1.2</H1>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the versioning!

index.html Outdated
</div>
<div>
<button type="button" class="btn btn-primary" onclick="calculator.addNumbers()" >Add</button>
<button type="button" class="btn btn-primary">Substract</button>
<button type="button" class="btn btn-primary" padding: 50px 25px
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good. There is an issue though. The "padding" and related values all has to e removed. You can add that to the btn, btn-primary or other css class if you want to include padding. It is not valid to put a direct padding attribute on any html tag.

Copy link
Owner

@johnny-rice johnny-rice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try to resolve the use of the padding: 50px 25px that is in the tags. This code belongs in the style tag associated to a class name selector.

@Se-ven
Copy link
Author

Se-ven commented Jun 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants