javascript faults
-
I use a childtheme based on twentyfourteen.
I got two javascript errors:
=====
in file preveter-index.php, line 177var e = document.getElementsByTagName('body')[0]; e.setAttribute('unselectable','on');
This yields error: e is undefined.
I replaced it with:(function($) { $("body").prop("unselectable", "on"); })(jQuery);
======
in preventer-index.php, line 128:
$(document).keydown(function(event) {
yield error: $ is not a function.
I replaced it with:
jQuery(document).keydown(function(event) {
========
Now it’s fault free
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘javascript faults’ is closed to new replies.