Skip to content

Commit 85bb0ce

Browse files
Merge pull request #2 from TerribleCoding/dev_1.1
v1.1
2 parents 8d4292b + 6684f14 commit 85bb0ce

21 files changed

Lines changed: 92 additions & 26 deletions

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ A powerful web tool for calculating phisical and mechanical properties of standa
44

55
Can be used by designers and engineers as a quick estimation tool, as well as by students as a geometry tool, or simply to find material data from the database.
66

7+
## License
8+
9+
The project is published intentionally with no license at the moment.
10+
711
## Usage
812

913
Choose the shape you want to calculate features by clicking the corresponding image or name.
@@ -13,7 +17,7 @@ Wether results will be available while inserting data, they will show in the bot
1317
e.g.: If you're looking for the area of a rectangle as the base **and** the height will be filled in you'll have the result otherwise the field will be null.
1418

1519
You can use the arrows on the right side of any input field to raise or decrease it by 1 unit, for your convenience.
16-
For a quicker input process, is suggested to use the _Tab_ key to junp on the next input field.
20+
For a quicker input process, is suggested to use the _Tab_ key to jump on the next input field.
1721

1822
Results updates trigger whenever **one** of these events occur:
1923

@@ -22,6 +26,7 @@ Results updates trigger whenever **one** of these events occur:
2226
- Changing field with _Tab_ key
2327
- Changing material selecting it from the provided list
2428
- Clicking anywhere on the page, after editing of a number, deselecting the input field
29+
- Clicking on dimension swap button
2530

2631
All texts and numbers on the pages are able to be copied and pasted anywhere you need.
2732

@@ -42,7 +47,6 @@ Note: _The order of this list might not match the order these features will be a
4247
- More materials in the database
4348
- Materials divided in groups, in order to filter the available ones
4449
- Result finder (let the program change an input to return a specific result)
45-
- Data swapper for rectangles and ellipses (you may want to swap width and height rapidly, a button will be added)
4650
- Limiting inputs to positive values
4751
- Limiting inputs to generate valid geometry (e.g. a tube D=10, t=6 is not valid)
4852
- Canvas to see the shape change dynamically while typing and changing data
@@ -55,10 +59,19 @@ Note: _The order of this list might not match the order these features will be a
5559

5660
_Release date: March 27, 2021_
5761

58-
_Work Hours: unknown, project directory created on Jan 14, 2021_
62+
_Work Time: unknown, project directory created on Jan 14, 2021_
5963

6064
First release composed by an index page and 13 standard shapes to choose. Tables on every profile page for inserting shape data and material data or choose from presetted materials.
6165

66+
#### v1.1
67+
68+
_Release date: April 18, 2021_
69+
70+
_Work Time: 1h_
71+
72+
- Fixed issue #1 - Favicon not working.
73+
- Added a dimension swapper button for rectangles and ellipses. Click it to swap width and height rapidly.
74+
6275
## Team & Credits
6376

6477
#### Team
@@ -71,7 +84,3 @@ First release composed by an index page and 13 standard shapes to choose. Tables
7184

7285
#### Media
7386
- Favicon made by [Vitaliy Gorbachev](https://www.flaticon.com/authors/vitaly-gorbachev) from [www.flaticon.com](www.flaticon.com)
74-
75-
## License
76-
77-
The project is published intentionally with no license at the moment.

assets/ico/favicon.ico

9.44 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
<title>AnySection</title>
66
<script src="https://cdn.jsdelivr.net/npm/p5@1.3.0/lib/p5.js"></script>
77
<link rel="stylesheet" type="text/css" href="style.css">
8-
<link rel="icon" type="image/x-icon"
9-
href="https://www.flaticon.com/svg/vstatic/svg/2427/2427527.svg?token=exp=1616006400~hmac=8eed44d6afa3d17fc07217318344a544">
8+
<link rel="icon" type="image/x-icon" href="assets/ico/favicon.ico">
109
</head>
1110

1211
<body>

pages/c-profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="common.js"></script>
88
<script src="c-profile.js"></script>
99
<link rel="stylesheet" type="text/css" href="../style.css">
10-
<link rel="icon" type="image/x-icon" href="https://www.flaticon.com/svg/vstatic/svg/2427/2427527.svg?token=exp=1616006400~hmac=8eed44d6afa3d17fc07217318344a544">
10+
<link rel="icon" type="image/x-icon" href="../assets/ico/favicon.ico">
1111
</head>
1212

1313
<body>

pages/cylinder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="common.js"></script>
88
<script src="cylinder.js"></script>
99
<link rel="stylesheet" type="text/css" href="../style.css">
10-
<link rel="icon" type="image/x-icon" href="https://www.flaticon.com/svg/vstatic/svg/2427/2427527.svg?token=exp=1616006400~hmac=8eed44d6afa3d17fc07217318344a544">
10+
<link rel="icon" type="image/x-icon" href="../assets/ico/favicon.ico">
1111
</head>
1212

1313
<body>

pages/elliptic-bar.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="common.js"></script>
88
<script src="elliptic-bar.js"></script>
99
<link rel="stylesheet" type="text/css" href="../style.css">
10-
<link rel="icon" type="image/x-icon" href="https://www.flaticon.com/svg/vstatic/svg/2427/2427527.svg?token=exp=1616006400~hmac=8eed44d6afa3d17fc07217318344a544">
10+
<link rel="icon" type="image/x-icon" href="../assets/ico/favicon.ico">
1111
</head>
1212

1313
<body>
@@ -69,6 +69,8 @@ <h3 class="back">Back to index</h3>
6969
<td class="unit">N/mm<sup>2</sup></td>
7070
</tr>
7171
</table>
72+
73+
<button class="switch" onclick="switchDim()">Switch dimensions</button>
7274
</div>
7375

7476
<div class="results">

pages/elliptic-bar.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@ function Resistance() {
2424
return PI * A * pow(B, 2) / 32;
2525
}
2626

27-
function ResistanceB() { }
27+
function ResistanceB() { }
28+
29+
function switchDim() {
30+
let A = floatElseZero(dim.A.elt.value);
31+
let B = floatElseZero(dim.B.elt.value);
32+
dim.A.elt.value = B;
33+
dim.B.elt.value = A;
34+
updateResults();
35+
}

pages/h-profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="common.js"></script>
88
<script src="h-profile.js"></script>
99
<link rel="stylesheet" type="text/css" href="../style.css">
10-
<link rel="icon" type="image/x-icon" href="https://www.flaticon.com/svg/vstatic/svg/2427/2427527.svg?token=exp=1616006400~hmac=8eed44d6afa3d17fc07217318344a544">
10+
<link rel="icon" type="image/x-icon" href="../assets/ico/favicon.ico">
1111
</head>
1212

1313
<body>

pages/hexagonal-prism.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="common.js"></script>
88
<script src="hexagonal-prism.js"></script>
99
<link rel="stylesheet" type="text/css" href="../style.css">
10-
<link rel="icon" type="image/x-icon" href="https://www.flaticon.com/svg/vstatic/svg/2427/2427527.svg?token=exp=1616006400~hmac=8eed44d6afa3d17fc07217318344a544">
10+
<link rel="icon" type="image/x-icon" href="../assets/ico/favicon.ico">
1111
</head>
1212

1313
<body>

pages/hollow-cylinder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<script src="common.js"></script>
88
<script src="hollow-cylinder.js"></script>
99
<link rel="stylesheet" type="text/css" href="../style.css">
10-
<link rel="icon" type="image/x-icon" href="https://www.flaticon.com/svg/vstatic/svg/2427/2427527.svg?token=exp=1616006400~hmac=8eed44d6afa3d17fc07217318344a544">
10+
<link rel="icon" type="image/x-icon" href="../assets/ico/favicon.ico">
1111
</head>
1212

1313
<body>

0 commit comments

Comments
 (0)