1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-09 13:16:45 +00:00

Reorganised JavaScript for table freezing.

This commit is contained in:
Markus Birth 2017-10-24 18:20:35 +02:00
parent 5f95efc3c5
commit 25fee95e21
4 changed files with 10 additions and 8 deletions

View 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>

View File

@ -125,5 +125,6 @@
</div> </div>
{% include analytics.html %} {% include analytics.html %}
{% include table_freeze_first.html %}
</body> </body>
</html> </html>

View File

@ -123,5 +123,6 @@
</div> </div>
{% include analytics.html %} {% include analytics.html %}
{% include table_freeze_first.html %}
</body> </body>
</html> </html>

View File

@ -101,13 +101,5 @@ Other firmwares
</div> </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 * `AAK199` --- pre-release version for pre-relase devices
* `AAK831`, `AAL655` --- no OTA, use an Autoloader if available * `AAK831`, `AAL655` --- no OTA, use an Autoloader if available