darkstardigital / phpThumbsUp

ModX package for creating dynamic image thumbnails
10 stars 7 forks source link

Responsive Images Javascript File #33

Open phillipdade opened 9 years ago

phillipdade commented 9 years ago

Hi

If responsive images are enabled, a javascript file is added to the section of the website. Is it possible to have a system setting configured that allows us to choose whether this is displayed in the head section of the website, or whether to have the loaded before the closing body tag?

/assets/components/phpthumbsup/js/responsive.js

Regards

Phillip

70hundert commented 9 years ago

i'd like to know this as well!

And should the html-markup for the involved images be any different than before without using phpthumbsup...except for the added line to load the responsive.js?

sdwespi commented 9 years ago

You could always disable the "OnLoadWebDocument" system event for the phpThumbsUp plugin, then add the javascript manually wherever you want it, or even include it in another javascript file. That would prevent phpThumbsUp from adding the script to the page.

On Tue, Apr 14, 2015 at 11:12 AM, 70hundert notifications@github.com wrote:

i'd like to know this as well!

And should the html-markup for the involved images be any different than before without using phpthumbsup...except for the added line to load the responsive.js?

— Reply to this email directly or view it on GitHub https://github.com/darkstardesign/phpThumbsUp/issues/33#issuecomment-92939916 .

Scott Wespi Darkstar Design http://www.darkstardesign.com/ 1100 Kermit Drive, Suite 204 Nashville, TN 37217 615.883.3399 615.246.2752 Fax Celebrating over 15 Years In Web Development and Programming

70hundert commented 9 years ago

thx sdwespi for your reply! didn't think of that, but sure, this is a way to get this working...thx again!