|
|
@@ -5,63 +5,86 @@
|
|
|
|
|
|
|
|
|
<!-- Trigger/Open The Modal -->
|
|
|
- <span id="ShareButton" onclick = "(function () { document.getElementById('ShareModal').style.display = 'block'; })(); return false;" 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 -->
|
|
|
- <div id="ShareModal" class="modal" onclick="function hide(e){ e.style.display='None'; } hide(this);" >
|
|
|
- <!-- Modal content -->
|
|
|
- <div class="modal-content" onclick="event.stopPropagation(); return;">
|
|
|
- <span id="ShareClose" onclick = "(function() { document.getElementById('ShareModal').style.display = 'none'; } )(); return false;" class="close">×</span>
|
|
|
-
|
|
|
- <div class=""> </div>
|
|
|
- <i class="fas fa-share"></i>
|
|
|
- <h3>Teilen</h3>
|
|
|
- <p>Informiere andere über dieses Projekt!</p>
|
|
|
- <div class=""> </div>
|
|
|
- <div class=""> </div>
|
|
|
-
|
|
|
- <div class="row">
|
|
|
- <div class="col-sm-4">
|
|
|
- <div class="cursor-pointer" onclick="">
|
|
|
- <a href="mailto:{{ object.email | obfuscate }}?subject={{ object.name }}&body=Guten%20Tag!%0D%0A%0D%0AIch%20finde%20das%20folgende%20Projekt%20sehr%20interesant!%0D%0A%0D%0A{% fullurl 'product-detail-embed' pk=object.pk %}"><i class="fas fa-envelope"></i> <br>E-Mail versenden</a>
|
|
|
+ <div class="" id="modal-container">
|
|
|
+ <modal></modal>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {% compress js %}
|
|
|
+ <script>
|
|
|
+ Vue.component('modal', {
|
|
|
+ props: ['title', 'link'],
|
|
|
+ delimiters: ['<%', '%>'],
|
|
|
+ template: `
|
|
|
+ <div id="ShareModal" class="modal" onclick="function hide(e){ e.style.display='None'; } hide(this);" >
|
|
|
+ <!-- Modal content -->
|
|
|
+ <div class="modal-content" onclick="event.stopPropagation(); return;">
|
|
|
+ <span id="ShareClose" onclick = "(function() { document.getElementById('ShareModal').style.display = 'none'; } )(); return false;" class="close">×</span>
|
|
|
+
|
|
|
+ <div class=""> </div>
|
|
|
+ <i class="fas fa-share"></i>
|
|
|
+ <h3>Teilen</h3>
|
|
|
+ <p>Informiere andere über dieses Projekt!</p>
|
|
|
+ <div class=""> </div>
|
|
|
+ <div class=""> </div>
|
|
|
+
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-4">
|
|
|
+ <div class="cursor-pointer" onclick="">
|
|
|
+ <a href="mailto:{{ object.email | obfuscate }}?subject={{ object.name }}&body=Guten%20Tag!%0D%0A%0D%0AIch%20finde%20das%20folgende%20Projekt%20sehr%20interesant!%0D%0A%0D%0A{% fullurl 'product-detail-embed' pk=object.pk %}"><i class="fas fa-envelope"></i> <br>E-Mail versenden</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-4">
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-4">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class=""> </div>
|
|
|
+ <div class=""> </div>
|
|
|
+
|
|
|
+ <input type="text" value="<iframe src="{% fullurl 'product-detail-embed' pk=object.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 = "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>
|
|
|
+ <span>Code Kopieren</span>
|
|
|
+ </div>
|
|
|
+ <div class=""> </div>
|
|
|
+ <div class=""> <span>Link</span> </div>
|
|
|
+
|
|
|
+ <input type="text" value="{% fullurl 'product-detail-embed' pk=object.pk %}" id="embedlink">
|
|
|
+ <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>
|
|
|
+ <span>Code Kopieren</span>
|
|
|
+ </div>
|
|
|
+ <div class=""> </div><div class=""> </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="col-sm-4">
|
|
|
- </div>
|
|
|
- <div class="col-sm-4">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class=""> </div>
|
|
|
- <div class=""> </div>
|
|
|
-
|
|
|
- <input type="text" value="<iframe src="{% fullurl 'product-detail-embed' pk=object.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 = "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>
|
|
|
- <span>Code Kopieren</span>
|
|
|
- </div>
|
|
|
- <div class=""> </div>
|
|
|
- <div class=""> <span>Link</span> </div>
|
|
|
-
|
|
|
- <input type="text" value="{% fullurl 'product-detail-embed' pk=object.pk %}" id="embedlink">
|
|
|
- <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>
|
|
|
- <span>Code Kopieren</span>
|
|
|
- </div>
|
|
|
- <div class=""> </div><div class=""> </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ `
|
|
|
+ })
|
|
|
+
|
|
|
+ new Vue({
|
|
|
+
|
|
|
+ el: '#modal-container',
|
|
|
+ delimiters: ['<%', '%>'],
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ </script>
|
|
|
+ {% endcompress %}
|