Skip to content

Commit 6602501

Browse files
committed
Replace obsolete $(document).ready(...) syntax (part 2).
1 parent 8857e75 commit 6602501

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/html/clipboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let clipboard_icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24
3232
let clipboard_successIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>`
3333
let clipboard_successDuration = 1000
3434

35-
$(document).ready(function() {
35+
$(function() {
3636
if(navigator.clipboard) {
3737
const fragments = document.getElementsByClassName("fragment")
3838
for(const fragment of fragments) {

templates/html/dynsections_tooltips.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$(document).ready(function() {
1+
$(function() {
22
$('.code,.codeRef').each(function() {
33
$(this).data('powertip',$('#a'+$(this).attr('href').replace(/.*\//,'').replace(/[^a-z_A-Z0-9]/g,'_')).html());
44
$.fn.powerTip.smartPlacementLists.s = [ 's', 'n', 'ne', 'se' ];

0 commit comments

Comments
 (0)