|
@@ -2,54 +2,16 @@
|
|
|
{% load tags %}
|
|
{% load tags %}
|
|
|
{% load static %}
|
|
{% load static %}
|
|
|
{% load email_obfuscator %}
|
|
{% load email_obfuscator %}
|
|
|
- <!-- <style>
|
|
|
|
|
- .modal {
|
|
|
|
|
- display: none;
|
|
|
|
|
- position: fixed;
|
|
|
|
|
- z-index: 1;
|
|
|
|
|
- padding-top: 100px;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- overflow: auto;
|
|
|
|
|
- background-color: rgb(0,0,0);
|
|
|
|
|
- background-color: rgba(0,0,0,0.4);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .modal-content {
|
|
|
|
|
- background-color: #fefefe;
|
|
|
|
|
- margin: auto;
|
|
|
|
|
- padding: 20px;
|
|
|
|
|
- border: 1px solid #888;
|
|
|
|
|
- width: 80%;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .close {
|
|
|
|
|
- color: #aaaaaa;
|
|
|
|
|
- float: right;
|
|
|
|
|
- font-size: 28px;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .close:hover,
|
|
|
|
|
- .close:focus {
|
|
|
|
|
- color: #000;
|
|
|
|
|
- text-decoration: none;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- </style> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Trigger/Open The Modal -->
|
|
<!-- Trigger/Open The Modal -->
|
|
|
- <span id="ShareButton" class="cursor-pointer" ><i class="fas fa-share"></i> Teilen </span>
|
|
|
|
|
|
|
+ <span id="ShareButton" onclick = "(function () { document.getElementById('ShareModal').style.display = 'block'; })(); return false;" class="cursor-pointer" ><i class="fas fa-share"></i> Teilen </span>
|
|
|
|
|
|
|
|
<!-- The Modal -->
|
|
<!-- The Modal -->
|
|
|
<div id="ShareModal" class="modal" onclick="function hide(e){ e.style.display='None'; } hide(this);" >
|
|
<div id="ShareModal" class="modal" onclick="function hide(e){ e.style.display='None'; } hide(this);" >
|
|
|
<!-- Modal content -->
|
|
<!-- Modal content -->
|
|
|
<div class="modal-content">
|
|
<div class="modal-content">
|
|
|
- <span id="ShareClose" class="close">×</span>
|
|
|
|
|
|
|
+ <span id="ShareClose" onclick = "(function() { document.getElementById('ShareModal').style.display = 'none'; } )(); return false;" class="close">×</span>
|
|
|
|
|
|
|
|
<div class=""> </div>
|
|
<div class=""> </div>
|
|
|
<i class="fas fa-share"></i>
|
|
<i class="fas fa-share"></i>
|
|
@@ -81,7 +43,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="text" value="<iframe src="{% fullurl 'product-detail-embed' pk=product.wohnprojekt.pk %}" style="border:0px #ffffff none;" name="myiFrame" scrolling="yes" frameborder="0" marginheight="0px" marginwidth="0px" height="400px" width="600px" allowfullscreen></iframe>" id="iframecode">
|
|
<input type="text" value="<iframe src="{% fullurl 'product-detail-embed' pk=product.wohnprojekt.pk %}" style="border:0px #ffffff none;" name="myiFrame" scrolling="yes" frameborder="0" marginheight="0px" marginwidth="0px" height="400px" width="600px" allowfullscreen></iframe>" id="iframecode">
|
|
|
- <div class="cursor-pointer" onclick="copyiframecode()">
|
|
|
|
|
|
|
+ <div class="cursor-pointer" onclick = "function copyiframecode() {
|
|
|
|
|
+ var copyText = document.getElementById('iframecode');
|
|
|
|
|
+ copyText.select();
|
|
|
|
|
+ copyText.setSelectionRange(0, 99999)
|
|
|
|
|
+ document.execCommand('copy');
|
|
|
|
|
+ alert('Der Text wurde in der Zwischenablage kopiert: ' + copyText.value);
|
|
|
|
|
+ }; copyiframecode();" >
|
|
|
|
|
|
|
|
<i class="fas fa-code"></i>
|
|
<i class="fas fa-code"></i>
|
|
|
<span>Code Kopieren</span>
|
|
<span>Code Kopieren</span>
|
|
@@ -90,7 +58,13 @@
|
|
|
<div class=""> <span>Link</span> </div>
|
|
<div class=""> <span>Link</span> </div>
|
|
|
|
|
|
|
|
<input type="text" value="{% fullurl 'product-detail-embed' pk=product.wohnprojekt.pk %}" id="embedlink">
|
|
<input type="text" value="{% fullurl 'product-detail-embed' pk=product.wohnprojekt.pk %}" id="embedlink">
|
|
|
- <div class="cursor-pointer" onclick="copyembedlinkcode()">
|
|
|
|
|
|
|
+ <div class="cursor-pointer" onclick = "function copyembedlinkcode() {
|
|
|
|
|
+ var copyText = document.getElementById('embedlink');
|
|
|
|
|
+ copyText.select();
|
|
|
|
|
+ copyText.setSelectionRange(0, 99999)
|
|
|
|
|
+ document.execCommand('copy');
|
|
|
|
|
+ alert('Der Text wurde in der Zwischenablage kopiert: ' + copyText.value);
|
|
|
|
|
+ }; copyembedlinkcode();" >
|
|
|
|
|
|
|
|
<i class="fas fa-code"></i>
|
|
<i class="fas fa-code"></i>
|
|
|
<span>Code Kopieren</span>
|
|
<span>Code Kopieren</span>
|
|
@@ -101,29 +75,60 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <script>
|
|
|
|
|
- var ShareModal = document.getElementById("ShareModal");
|
|
|
|
|
- var ShareBtn = document.getElementById("ShareButton");
|
|
|
|
|
- var ShareSpan = document.getElementById("ShareClose");
|
|
|
|
|
- ShareBtn.onclick = function() {
|
|
|
|
|
- ShareModal.style.display = "block";
|
|
|
|
|
- }
|
|
|
|
|
- ShareSpan.onclick = function() {
|
|
|
|
|
- ShareModal.style.display = "none";
|
|
|
|
|
- }
|
|
|
|
|
- function copyiframecode() {
|
|
|
|
|
- var copyText = document.getElementById("iframecode");
|
|
|
|
|
- copyText.select();
|
|
|
|
|
- copyText.setSelectionRange(0, 99999)
|
|
|
|
|
- document.execCommand("copy");
|
|
|
|
|
- alert("Der Text wurde in der Zwischenablage kopiert: " + copyText.value);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function copyembedlinkcode() {
|
|
|
|
|
- var copyText = document.getElementById("embedlink");
|
|
|
|
|
- copyText.select();
|
|
|
|
|
- copyText.setSelectionRange(0, 99999)
|
|
|
|
|
- document.execCommand("copy");
|
|
|
|
|
- alert("Der Text wurde in der Zwischenablage kopiert: " + copyText.value);
|
|
|
|
|
- }
|
|
|
|
|
- </script>
|
|
|
|
|
|
|
+ <!-- <script>
|
|
|
|
|
+ // var ShareModal = document.getElementById('ShareModal');
|
|
|
|
|
+ // var ShareBtn = document.getElementById('ShareButton');
|
|
|
|
|
+ // var ShareSpan = document.getElementById('ShareClose');
|
|
|
|
|
+ // ShareBtn.onclick = function () {
|
|
|
|
|
+ // ShareModal.style.display = 'block';
|
|
|
|
|
+ // }
|
|
|
|
|
+ // ShareSpan.onclick = function() {
|
|
|
|
|
+ // ShareModal.style.display = 'none';
|
|
|
|
|
+ // }
|
|
|
|
|
+ // function copyiframecode() {
|
|
|
|
|
+ // var copyText = document.getElementById('iframecode');
|
|
|
|
|
+ // copyText.select();
|
|
|
|
|
+ // copyText.setSelectionRange(0, 99999)
|
|
|
|
|
+ // document.execCommand('copy');
|
|
|
|
|
+ // alert('Der Text wurde in der Zwischenablage kopiert: ' + copyText.value);
|
|
|
|
|
+ // }
|
|
|
|
|
+ //
|
|
|
|
|
+ // function copyembedlinkcode() {
|
|
|
|
|
+ // var copyText = document.getElementById('embedlink');
|
|
|
|
|
+ // copyText.select();
|
|
|
|
|
+ // copyText.setSelectionRange(0, 99999)
|
|
|
|
|
+ // document.execCommand('copy');
|
|
|
|
|
+ // alert('Der Text wurde in der Zwischenablage kopiert: ' + copyText.value);
|
|
|
|
|
+ // }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // ShareBtn.onclick = "(function () { document.getElementById('ShareModal').style.display = 'block'; })(); return false;";
|
|
|
|
|
+ //
|
|
|
|
|
+ //
|
|
|
|
|
+ // ShareSpan.onclick = "(function() { document.getElementById('ShareModal').style.display = 'none'; } )(); return false;"
|
|
|
|
|
+ //
|
|
|
|
|
+ //
|
|
|
|
|
+ //
|
|
|
|
|
+ //
|
|
|
|
|
+ // onclick = "function copyiframecode() {
|
|
|
|
|
+ // var copyText = document.getElementById('iframecode');
|
|
|
|
|
+ // copyText.select();
|
|
|
|
|
+ // copyText.setSelectionRange(0, 99999)
|
|
|
|
|
+ // document.execCommand('copy');
|
|
|
|
|
+ // alert('Der Text wurde in der Zwischenablage kopiert: ' + copyText.value);
|
|
|
|
|
+ // }; copyiframecode();"
|
|
|
|
|
+
|
|
|
|
|
+ // onclick = "function copyembedlinkcode() {
|
|
|
|
|
+ // var copyText = document.getElementById('embedlink');
|
|
|
|
|
+ // copyText.select();
|
|
|
|
|
+ // copyText.setSelectionRange(0, 99999)
|
|
|
|
|
+ // document.execCommand('copy');
|
|
|
|
|
+ // alert('Der Text wurde in der Zwischenablage kopiert: ' + copyText.value);
|
|
|
|
|
+ // }; copyembedlinkcode();"
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </script> -->
|