libimobiledevice / libimobiledevice.org

Official Website of libimobiledevice
https://libimobiledevice.org
GNU Affero General Public License v3.0
48 stars 170 forks source link

Collapsible Elements Won't Open On Site #4

Closed tyingq closed 3 years ago

tyingq commented 3 years ago

All of the collapsible type elements on the site aren't working. Like the 3-tab widget on the front page with "Connect", "Read", and "Utilities" tabs. Or the "Download" boxes with the ">" leader on them.

Chrome's dev console says:

Uncaught TypeError: Cannot read property 'each' of undefined
    at waypoints.7bfd4c33d7f7fab5ebda017c89eaefac.min.js:7
    at waypoints.7bfd4c33d7f7fab5ebda017c89eaefac.min.js:7

It leads to this section of code:

   var e = window.jQuery
      , i = window.Waypoint;
    e.each(["innerHeight", "innerWidth", "off", "offset", "on", "outerHeight

The "e.each" is the part that's creating the "Cannot read property 'each' of undefined" error. Probably because jQuery isn't being loaded.

tyingq commented 3 years ago

Oh, also this in the main page, appears to come from a twig template, and looks suspicious. Maybe this is where jQuery is supposed to be loaded, but it's loading the main html as javascript instead?

<script src="https://libimobiledevice.org/"></script>

Edit: This twig template, line 76: https://github.com/libimobiledevice/libimobiledevice.org/blob/3104b491ade3dc68631fb67c748e2d34f52f6bc3/layouts/_default/page.html.twig#L76

It appears it isn't generating the Githubissues.

  • Githubissues is a development platform for aggregating issues.