Fixed Scroll adjusting
Included jQuery that restores the scroll after leaving the weight input.
This commit is contained in:
@@ -7,14 +7,12 @@
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=0"/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="Lift It 💪">
|
||||
<meta name="application-name" content="Lift It 💪">
|
||||
|
||||
<link rel="manifest" href="site.webmanifest">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="images/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="msapplication-TileColor" content="#cdff00">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
@@ -93,7 +91,7 @@
|
||||
<div class="b-calulatorinputs__inputcontainer">
|
||||
<div class="b-calulatorinputs__weightinput">
|
||||
<label for="Weight">WEIGHT (LBS)</label>
|
||||
<input type="number" onfocus="saveScroll()" onblur="restoreScroll()" inputmode="numeric" pattern="[0-9]*" class="b-infoentry__input input-element input-weight" name="Weight" placeholder="What are you lifting? (LBS)" id="Weight">
|
||||
<input type="number" inputmode="numeric" pattern="[0-9]*" class="b-infoentry__input input-element input-weight" name="Weight" placeholder="What are you lifting? (LBS)" id="Weight">
|
||||
<input type="button" class="b-infoentry__button submit-element input-calculate" name="Calculate" value="LIFT" onclick="startcalc()">
|
||||
</div>
|
||||
<a href="#options">
|
||||
|
||||
Reference in New Issue
Block a user