I displayed some images with some variables in php, but I want to load this CDN.


I am trying through trial and error, but it does not work.
No error is displayed

Error message

Nothing in particular (I use Sakura Editor.)

Applicable source code
<script src="https://cdnjs.cloudflare.com/ajax/libs/luminous-lightbox/2.3.2/luminous.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/luminous-lightbox/2.3.2/luminous-basic.min.css">
(Cdn code)
<?php printf('', $ver);?>
In the php code to display this image
<?php printf('', $ver);?>(Code that loads the image normally)

  var luminousTrigger = document.querySelectorAll('.zoom');
if( luminousTrigger !== null) {
  new LuminousGallery(luminousTrigger);

Reference site

  • Answer # 1

    I do not understand a little, but can you handle either?

    If you want to get php later with js, ajax-like processing

    If you want to do dom processing like js with php DOMDocument

  • Answer # 2

    Thank you very much. ..