Changeset 2807247
- Timestamp:
- 10/30/2022 01:28:02 PM (3 years ago)
- Location:
- page-list-preview
- Files:
-
- 8 added
- 4 edited
-
tags/2.1.0 (added)
-
tags/2.1.0/PageListPreview.php (added)
-
tags/2.1.0/index.php (added)
-
tags/2.1.0/plp-resize.js (added)
-
tags/2.1.0/plp_rtl_style.css (added)
-
tags/2.1.0/plp_style.css (added)
-
tags/2.1.0/readme.txt (added)
-
tags/2.1.0/uninstall.php (added)
-
trunk/PageListPreview.php (modified) (2 diffs)
-
trunk/plp-resize.js (modified) (2 diffs)
-
trunk/plp_style.css (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
page-list-preview/trunk/PageListPreview.php
r2671588 r2807247 10 10 Author: Mendi Bass 11 11 Author URI: https://github.com/MMBass 12 Version: 2. 0.012 Version: 2.1.0 13 13 License: GPL v2 or later 14 14 Text Domain: page-list-preview … … 57 57 echo ' 58 58 <div class="plp-container"> 59 <iframe 60 class="plp-iframe plp-resizable-iframe" 61 sandbox="allow-scripts allow-same-origin" 62 loading="lazy" 63 scrolling="no" 64 src="'.esc_url( $plp_page_link ).'"> 65 </iframe> 59 <div class="plp-block plp-resizable"> 60 <iframe 61 class="plp-iframe" 62 sandbox="allow-scripts allow-same-origin" 63 loading="lazy" 64 scrolling="no" 65 src="'.esc_url( $plp_page_link ).'"> 66 </iframe> 67 </div> 66 68 </div> 67 69 '; -
page-list-preview/trunk/plp-resize.js
r2671588 r2807247 4 4 } 5 5 6 let plpResizable Iframe = document.querySelectorAll(".plp-resizable-iframe");6 let plpResizable = document.querySelectorAll(".plp-resizable"); 7 7 8 plpResizableIframe.forEach((e) => { 9 // e.addEventListener("mouseover", () => { PlpSaveSize(e) }); 8 plpResizable.forEach((e) => { 10 9 e.addEventListener("mousedown", () => { PlpSaveSize(e) }); 11 10 e.addEventListener("mouseup", () => { PlpSaveSize(e) }); 11 e.addEventListener("mouseleave", () => { PlpSaveSize(e) }); 12 e.addEventListener("mouseout", () => { PlpSaveSize(e) }); 12 13 13 // e.parentElement.addEventListener("mouseover", () => { PlpSaveSize(e) }); 14 e.parentElement.addEventListener("mouseleave", () => { PlpSaveSize(e) }); 15 e.parentElement.addEventListener("mouseout", () => { PlpSaveSize(e) }); 14 16 e.parentElement.addEventListener("mousedown", () => { PlpSaveSize(e) }); 15 17 e.parentElement.addEventListener("mouseup", () => { PlpSaveSize(e) }); … … 21 23 22 24 function PlpResizeAll(c) { 23 plpResizable Iframe.forEach((frame) => {25 plpResizable.forEach((frame) => { 24 26 frame.style.height = c.h; 25 27 frame.style.width = c.w; -
page-list-preview/trunk/plp_style.css
r2671588 r2807247 2 2 width:400px; 3 3 height:250px; 4 5 min-height: 100px;6 min-width: 200px;7 4 8 5 padding-top: 10px; … … 10 7 } 11 8 12 .plp- iframe{13 pointer-events: none;9 .plp-block{ 10 overflow: hidden; 14 11 resize: both; 15 12 16 13 position: relative; 17 border: 1px solid black;18 14 height: 850px; 19 15 width: 1310px; … … 28 24 -o-transform-origin: left top; 29 25 -webkit-transform-origin: left top; 26 27 min-height: 200px; 28 min-width: 400px; 29 } 30 31 .plp-iframe{ 32 width: 100%; 33 height: 100%; 34 border: 1px solid black; 35 pointer-events: none; 30 36 } 31 37 32 38 @media screen and (max-width: 1300px) { 33 .plp- iframe{39 .plp-block { 34 40 height: 720px; 35 41 max-height: 720px; -
page-list-preview/trunk/readme.txt
r2673839 r2807247 11 11 Requires at least: 4.0 12 12 Tested up to: 5.8 13 Stable tag: 2. 0.013 Stable tag: 2.1.0 14 14 15 15 == Description == … … 42 42 = 2.0.0 = 43 43 * Resizable windows 44 = 2.1.0 = 45 * Wp 6.0.3 compatibility, Resizable fixed 44 46 45 47 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.