mirror of
https://github.com/mbirth/wiki.git
synced 2024-12-24 22:54:09 +00:00
Reorganised JavaScript for table freezing.
This commit is contained in:
parent
5f95efc3c5
commit
25fee95e21
8
_includes/table_freeze_first.html
Normal file
8
_includes/table_freeze_first.html
Normal file
@ -0,0 +1,8 @@
|
||||
<script type="text/javascript">
|
||||
// https://stackoverflow.com/questions/45071085/freeze-first-row-and-first-column-of-table
|
||||
$(document).ready(function() {
|
||||
$('.freeze-first-col tbody').scroll(function(e) {
|
||||
$(this).find('td:nth-child(1)').css("left", $(this).scrollLeft()-5);
|
||||
});
|
||||
});
|
||||
</script>
|
@ -125,5 +125,6 @@
|
||||
</div>
|
||||
|
||||
{% include analytics.html %}
|
||||
{% include table_freeze_first.html %}
|
||||
</body>
|
||||
</html>
|
||||
|
@ -123,5 +123,6 @@
|
||||
</div>
|
||||
|
||||
{% include analytics.html %}
|
||||
{% include table_freeze_first.html %}
|
||||
</body>
|
||||
</html>
|
||||
|
@ -101,13 +101,5 @@ Other firmwares
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('.freeze-first-col tbody').scroll(function(e) {
|
||||
$(this).find('td:nth-child(1)').css("left", $(this).scrollLeft()-5);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
* `AAK199` --- pre-release version for pre-relase devices
|
||||
* `AAK831`, `AAL655` --- no OTA, use an Autoloader if available
|
||||
|
Loading…
Reference in New Issue
Block a user