diff --git a/README.md b/README.md index 5fcac19..18038c3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bike Gearing Calculator Usage: on the calculator page you can enter cassette & chainring sizes, crank length, tyre & wheel diameter etc. Based upon the info you enter you will be able to see the results described below. -There are several presets saved with common gear configurations (and a couple of my bikes) which can be useful for a quick starting point. If you want me to store your bike data as a preset send me the figures. +There are several presets saved with common gear configurations (and a couple of my bikes) which can be useful for a quick starting point. If you want to create more presets just add a new object to the 'presets' variable. * **Ratio:** Gear Ratio describes the rotations of the output gear in relation to rotations from the input gear. A ratio of 3:1 would mean that the wheel would rotate 3 times for each rotation of the chainring. * **MD:** Metres of Development (wiki) describes the distance the bike will travel for each full pedal revolution. diff --git a/gears.js b/gears.js new file mode 100644 index 0000000..3c04f79 --- /dev/null +++ b/gears.js @@ -0,0 +1,253 @@ +/* +TODO:: + CREATE PRESET SELECTOR THAT AUTO POPULATES FROM THE presets OBJECT. THIS WILL ENABLE ADDING PRESETS BY CREATING NEW OBJECTS WITHOUT HAVING TO EDIT THE diff --git a/style.css b/style.css new file mode 100644 index 0000000..6a05d7a --- /dev/null +++ b/style.css @@ -0,0 +1,27 @@ + + /* + table.resultTable th, table.resultTable td {border:1px solid #777;} + table.resultTable label {} + table.resultTable input {width:4em;} + .unitSwitcher .ui-slider-switch { width: 9em } + div.resultBox {text-shadow:none;font-size:0.8em;} + */ + + body {font-family:arial,helvetica,sans-serif;font-size:1em;} + input.sprockets, input.chainrings {width:90px;} + table.resultTable {border-collapse:collapse;} + table.resultTable th, table.resultTable td {text-shadow:none;font-size:.8em;border:1px solid #777;color:#000;} + .cadenceInput, .crankLengthInput {width:200px!important;} + .chainringInput, .sprocketInput {width:120px!important;} + p.noScript {margin:0 auto;width:80%;background-color:red;color:white;font-weight:bold;padding:10px;text-align:center;border-radius:5px;} + + /* + @media only screen and (min-width: 980px){ + .ui-page, ui-footer { + width: 980px !important; + margin: 0 auto !important; + position: relative !important; + border-right: 5px #666 outset !important; + border-left: 5px #666 outset !important; + } + } */ \ No newline at end of file