Changeset 2687180
- Timestamp:
- 03/02/2022 02:40:24 AM (4 years ago)
- Location:
- background-particle-js/trunk
- Files:
-
- 3 edited
-
js/main.js (modified) (1 diff)
-
particle.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
background-particle-js/trunk/js/main.js
r2392229 r2687180 14 14 }); 15 15 16 const particleDimentions = { 17 contentHeight : document.querySelector(".banner-info").offsetHeight, 18 contentWidth : document.querySelector(".banner-info").offsetWidth, 19 particleContainerHeight : document.querySelector("#particles-js").offsetHeight, 20 particleContainerWidth : document.querySelector("#particles-js").offsetWidth, 21 centerDimention : function(){ 22 let contentHeightPosition = (this.particleContainerHeight - this.contentHeight)/2; 23 let contentWidthPosition = (this.particleContainerWidth - this.contentWidth)/2; 24 let contentPosition = `position: absolute; top: ${contentHeightPosition}px !important; left: ${contentWidthPosition}px !important; text-align: center; `; 25 document.querySelector(".banner-info").style.cssText = contentPosition; 26 } 27 } 28 particleDimentions.centerDimention(); 16 -
background-particle-js/trunk/particle.php
r2392693 r2687180 6 6 Version: 1.0.1 7 7 Author: Maher Hossain 8 Author URI: https:// www.maherhossain.com8 Author URI: https://maherhossain.com 9 9 */ 10 10 if ( ! defined( 'ABSPATH' ) ) {die("Don't try to access directly :-( ");} -
background-particle-js/trunk/readme.txt
r2687174 r2687180 72 72 = 1.2.0 = 73 73 * Release date: March 2, 2022 74 * Tested for WP new Version 74 * Tested for WP new Version 75 = 1.3.0 = 76 * Release date: March 2, 2022 77 * Fixed bug
Note: See TracChangeset
for help on using the changeset viewer.