sinemacula

Distribute images evenly to columns in gallery

邮差的信 提交于 2019-12-24 05:25:28
问题 Brief Explanation I am currently building a gallery that has three columns, each column contains images all of which have the same width, but can vary in height. The images for the columns are gathered from a directory and placed into an array using the PHP glob() function. This is the easy part... An example of what the gallery looks like: The Issue As these images are being loaded and placed into the columns dynamically, there is a chance that the columns may differ in height hugely. For

Generate Javascript file with PHP

女生的网名这么多〃 提交于 2019-12-19 03:08:47
问题 My current code I have started writing an API that loads, minifies and returns javascript files into one file using PHP. This is achieved by pointing to a PHP file from a script tag in HMTL like so: <script type="text/javascript" src="https://libraries.sinemaculammviii.com/jsapi.php"></script> This jsapi.php page processes the javascript files and outputs the minified javascript, with the header: header("Content-Type: text/javascript"); My Question Is this a bad method to load javascript

Generate Javascript file with PHP

萝らか妹 提交于 2019-11-30 20:23:05
My current code I have started writing an API that loads, minifies and returns javascript files into one file using PHP. This is achieved by pointing to a PHP file from a script tag in HMTL like so: <script type="text/javascript" src="https://libraries.sinemaculammviii.com/jsapi.php"></script> This jsapi.php page processes the javascript files and outputs the minified javascript, with the header: header("Content-Type: text/javascript"); My Question Is this a bad method to load javascript files? Would it be much faster and reliable to load the javascript files individually by simply pointing to