Parallax Fixed Counter
How do I make an parallax fixed counter?
What is a parallax fixed counter? How do you make a parallax fixed counter? This script and codes were developed by Jennifer Tso on 11 September 2022, Sunday.
Parallax Fixed Counter - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Parallax Fixed Counter</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.3/foundation.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <table class="repair-factors"> <thead> <tr> <th colspan="3"> <h4 class="text-center"><b>Exterior</b></h4> </th> </tr> <tr> <td></td> <th class="text-center">Yes/No <br /> Qty</th> <th>Repair Costs</th> </tr> </thead> <tbody> <tr> <td>Roof:</td> <td class="text-center"> <asp:CheckBox ID="cbxExtRoof" runat="server" /></td> <td> <asp:TextBox ID="txtExtRoof" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td>Windows:</td> <td> <asp:DropDownList ID="ddlExtWindowQty" runat="server" /></td> <td> <asp:TextBox ID="txtExtWindow" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td>Doors:</td> <td> <asp:DropDownList ID="ddlExtDoorQty" runat="server" /></td> <td> <asp:TextBox ID="txtExtDoor" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td>Patio Doors:</td> <td> <asp:DropDownList ID="ddlExtPatioDoorQty" runat="server" /></td> <td> <asp:TextBox ID="txtExtPatioDoor" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td>Paint:</td> <td class="text-center"> <asp:CheckBox ID="cbxExtPaint" runat="server" AutoPostBack="True" /></td> <td> <asp:TextBox ID="txtExtPaint" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td>Siding:</td> <td class="text-center"> <asp:CheckBox ID="cbxExtSiding" runat="server" AutoPostBack="True" /></td> <td> <asp:TextBox ID="txtExtSiding" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td>Driveway:</td> <td> <asp:DropDownList ID="ddlExtDriveway" runat="server"> <asp:ListItem></asp:ListItem> <asp:ListItem>Small</asp:ListItem> <asp:ListItem>Medium</asp:ListItem> <asp:ListItem>Large</asp:ListItem> </asp:DropDownList> </td> <td> <asp:TextBox ID="txtExtDriveway" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td>Other:</td> <td> <asp:HyperLink ID="lnkExtNotes" runat="server" Target="_blank">Add Notes</asp:HyperLink></td> <td> <asp:TextBox ID="txtExtOther" runat="server" Style="text-align: right" Columns="7"></asp:TextBox></td> </tr> <tr> <td> <%--<button type="button" onclick="addWindow()">+ Window</button>--%> </td>
<td> <asp:Button ID="btnExteriorTotal" runat="server" Text="Update" CssClass="button" />
</td>
<td class="text-center"> <asp:Label ID="lblExtTotal" runat="server" />
</td>
</tr>
<tr> <td colspan="3" class="text-center"> <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"> <ProgressTemplate> <img alt="" src="../../../Icons/UpdateProgress.gif" /> Updating....... </ProgressTemplate> </asp:UpdateProgress> </td>
</tr>
</tbody>
</table>
<div class="window-counter" id="window-counter"> <div class="row"> <div class="small-4 columns"> <label for="qty"> Exterior Windows: </label> </div> <div class="small-8 columns"> <input id="qty" value="0" /> </div> </div> <div class="row column"> <ul class="counter-btn"> <li><button onclick="modify_qty(-1)" class="button">-1</button></li> <li><button onclick="modify_qty(1)" class="button">+1</button></li> </ul> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Parallax Fixed Counter - Script Codes CSS Codes
body { height: 4000px; padding-top: 5%;
}
table.repair-factors { width: 100%; box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}
table.repair-factors thead { background: #0099DD; color: white; border: none;
}
.window-counter { /*background: #0099DD; color: white;*/ border: 5px solid #0099DD; margin: 5% 0; padding: 5% 2% 3%;
}
.window-counter > div > div > input#qty { /*background: transparent;*/ /*color: white;*/ /*border: none;*/ max-width: 100%; padding: 0 0 0 3%;
}
ul.counter-btn { margin: 4% 0 0;
}
ul.counter-btn > li { display: inline-block;
}
.window-counter.fixed, #window-counter.fixed { position: fixed; background: pink; bottom: 0;
}
Parallax Fixed Counter - Script Codes JS Codes
$(document).ready(function() { // console.log('I work now!'); var windowCounter = $('.window-counter'); windowCounter.on('scroll', function(e) { if (this.scrollTop > 1000) { console.log('I am here.'); windowCounter.addClass('fixed'); } else { windowCounter.removeClass('fixed'); } });
});
// Script for Window Counter
function modify_qty(val) { var qty = document.getElementById('qty').value; var new_qty = parseInt(qty, 10) + val; if (new_qty < 0) { new_qty = 0; } document.getElementById('qty').value = new_qty; return new_qty;
};
Developer | Jennifer Tso |
Username | jen188 |
Uploaded | September 11, 2022 |
Rating | 3 |
Size | 2,968 Kb |
Views | 26,312 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
REP F6 Small Overriding Large Breakpoint | 4,945 Kb |
Print Worksheet Alignment Issue | 3,770 Kb |
A Pen by Jennifer Tso | 4,905 Kb |
F6 Overlay Menu | 2,699 Kb |
Simple Phone Number Picker | 1,908 Kb |
Foundation 6 Mega Menu | 2,953 Kb |
Foundation 6 Callout Margin Adjustment | 2,533 Kb |
Owl Carousel 2 Autoplay and URL Hash Nav Conflict | 3,565 Kb |
Owl Carousel 2 URL Hash Nav Issue | 2,325 Kb |
Foundation 6 Tabs and Equalizer Issues | 2,655 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Basic HTML5 Structure | YuvarajTana | 1,289 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Typefaces with descriptions | Megandoty | 2,944 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
React Template | Isac | 1,241 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
Wikipedia viewer | Chpecson | 2,865 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
CMP5-Opdracht15 | SannevanGastel | 2,733 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!