mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 19:23:02 +05:30
(refactor): changed embed code iframe size to 720x1280
This commit is contained in:
@@ -128,7 +128,7 @@
|
|||||||
<p class="text-xs my-3 text-accent_three">EMBED THIS PAGE</p>
|
<p class="text-xs my-3 text-accent_three">EMBED THIS PAGE</p>
|
||||||
<div class="embedpagecode w-full bg-bg_primary p-4 rounded-lg relative">
|
<div class="embedpagecode w-full bg-bg_primary p-4 rounded-lg relative">
|
||||||
<button class="copyembedcode absolute top-3 right-3 px-3 py-2 bg-bg_secondary rounded-lg hover:bg-bg_third transition transform duration-500" title="Copy code snippet" onclick="copy_to_clipboard(document.getElementById('embedcodetag').innerHTML, 'Code Snippet')"><i class="fa-regular fa-copy"></i></button>
|
<button class="copyembedcode absolute top-3 right-3 px-3 py-2 bg-bg_secondary rounded-lg hover:bg-bg_third transition transform duration-500" title="Copy code snippet" onclick="copy_to_clipboard(document.getElementById('embedcodetag').innerHTML, 'Code Snippet')"><i class="fa-regular fa-copy"></i></button>
|
||||||
<pre class="text-accent_four text-xs whitespace-pre-wrap"><code id="embedcodetag"><iframe src="https://neosubhamoy.dev" height="200" width="300" title="test iframe"></iframe></code></pre>
|
<pre class="text-accent_four text-xs whitespace-pre-wrap"><code id="embedcodetag"><iframe src="https://neosubhamoy.dev" height="720" width="1280" title="test iframe"></iframe></code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ function activate_share() {
|
|||||||
//change pageUrlInput value to current page
|
//change pageUrlInput value to current page
|
||||||
linkInput.value = window.location.href;
|
linkInput.value = window.location.href;
|
||||||
//genrate embed code for current page link
|
//genrate embed code for current page link
|
||||||
embedCode.innerHTML = '<iframe src="' + window.location.href + '" height="200" width="300" title="embed-neosubhamoy-portfolio"></iframe>';
|
embedCode.innerHTML = '<iframe src="' + window.location.href + '" height="720" width="1280" title="embed-neosubhamoy-portfolio"></iframe>';
|
||||||
windowWrapper.classList.remove("hidden");
|
windowWrapper.classList.remove("hidden");
|
||||||
windowWrapper.classList.add("flotingbar-window-wrapper-show");
|
windowWrapper.classList.add("flotingbar-window-wrapper-show");
|
||||||
shareBtn.classList.add("hidden");
|
shareBtn.classList.add("hidden");
|
||||||
|
|||||||
Reference in New Issue
Block a user