Home>

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

https://github.com/imgix/luminous

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
<head>
<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)
</head>
<?php printf('', $ver);?>
In the php code to display this image
<?php printf('', $ver);?>(Code that loads the image normally)

<script>
  var luminousTrigger = document.querySelectorAll('.zoom');
if( luminousTrigger !== null) {
  new LuminousGallery(luminousTrigger);
}
</script>

Reference site
https://web-roku.com/luminous

  • 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. ..