diff options
author | luxagraf <sng@luxagraf.net> | 2023-07-14 15:04:26 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-07-14 15:04:26 -0500 |
commit | 33a87ab2b62d4692c9e0450bccf203eafdd8cd80 (patch) | |
tree | a7933e366c2a70691c34210a10cccd81e3c77569 /app/products/static/product-loader.js | |
parent | 9dc6e678a57203f0bc5c08f4780069b7cabdb45a (diff) |
posts: added notes for saving urls
Diffstat (limited to 'app/products/static/product-loader.js')
-rw-r--r-- | app/products/static/product-loader.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/products/static/product-loader.js b/app/products/static/product-loader.js new file mode 100644 index 0000000..6d04b61 --- /dev/null +++ b/app/products/static/product-loader.js @@ -0,0 +1,10 @@ +function add_products(){ + var el = document.getElementById("images_frame"); + if (el){ + var iframe='<iframe frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luxproduct/insert/?textarea='+el.id+'"></iframe>'; + el.insertAdjacentHTML('afterend', iframe); + } +} +document.addEventListener("DOMContentLoaded", function(event) { + add_products(); +}); |