Closed bbest closed 3 years ago
Here is the test page created in their drupal environment for us to match.
The fastest option would be to use the iframe module for drupal, as can be seen in the following test drupal environment where the iframe module has been installed. By some miracle, everything in the iframe seems to work properly out of the box with no customization of anything.
Here's a screenshot of the page:
---------- Forwarded message --------- From: Ben Best ben@ecoquants.com Date: Fri, Mar 19, 2021 at 9:45 AM Subject: Re: Interactive pieces on IEA site To: Avi Litwack - NOAA Federal avi.litwack@noaa.gov Cc: Ellen Spooner - NOAA Affiliate ellen.spooner@noaa.gov, Jai Ranganathan jai.ranganathan@gmail.com
Hi Avi, I see that you loaded my last suggestion -- thanks for that, but the same error message about "modal is not a function" in the JS Console continues to prevent the modal window from opening. I think the problem is related to jquery already being loaded twice, which you can see at the bottom of Infographiq-test | IEA when viewing its page source:
<script src="/core/assets/vendor/jquery/jquery.min.js?v=3.5.1"></script>
...
<script src="/themes/iea2017/js/jquery.min.js?qoa2gt"></script>
The first version is 3.5.1 and the second one is a far more ancient version 1.12.0. Would it be possible for you to remove the second old jquery theme line? This thinking is based on javascript - TypeError: $(...).modal is not a function with bootstrap Modal - Stack Overflow:
Thanks a bunch, Ben
See "infographiq consolidation" under 2021-04-06 BB, JR in notes | iea-auto
Transfer info-demo/drupal-module
References:
Develop from Drupal Docker Locally
Match with IEA Drupal version 8.9.13