it would be great if the embed thing actually worked
parent
5fb880c9da
commit
e00b43870c
|
@ -7,6 +7,7 @@
|
|||
|
||||
{% block extra_js %}
|
||||
<script type="text/javascript" src="/static/js/readmill.js"></script>
|
||||
<script type="text/javascript" src="/static/js/embed.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -16,14 +17,14 @@
|
|||
<h2>Downloads for <I><a href="{% url work work.id %}">{{ work.title }}</a></i></h2>
|
||||
<div class="sharing not_unglued">
|
||||
<h3 class="jsmod-title"><span>Share</span></h3>
|
||||
<div id="widgetcode">Copy/paste this into your site:<br /><textarea rows="7" cols="22"><iframe src="https://{{ request.META.HTTP_HOST }}/api/widget/{{ work.first_isbn_13 }}/" width="152" height="325" frameborder="0"></iframe></textarea></div>
|
||||
<ul class="social menu">
|
||||
{% with site.domain as domain %}
|
||||
<a href="https://www.facebook.com/sharer.php?u=https://{{ site.domain }}{% url work work.id|urlencode:"" %}"><li class="facebook first"><span>Facebook</span></li></a>
|
||||
<a href="https://twitter.com/intent/tweet?url=https://{{ site.domain }}{% url work work.id|urlencode:"" %}&text=I%20just%20pledged%20to%20unglue%20{{ work.title|urlencode }}%20at%20%40unglueit.%20Will%20you%20join%20me%3F"><li class="twitter"><span>Twitter</span></li></a>
|
||||
{% endwith %}
|
||||
<a href="{% url emailshare 'pledge' %}?next={% url work work.id|urlencode:"" %}"><li class="email"><span>Email</span></li></a>
|
||||
<a href="#" id="embed"><li class="embed"><span>Embed</span></li></a>
|
||||
<a href="#" id="embed2"><li class="embed"><span>Embed</span></li></a>
|
||||
<div id="widgetcode2">Copy/paste this into your site:<br /><textarea rows="7" cols="22"><iframe src="https://{{ request.META.HTTP_HOST }}/api/widget/{{ work.first_isbn_13 }}/" width="152" height="325" frameborder="0"></iframe></textarea></div>
|
||||
</ul>
|
||||
</div>
|
||||
{% if unglued_ebooks %}
|
||||
|
|
|
@ -3,4 +3,7 @@ $j(document).ready(function(){
|
|||
$j('#embed').click(function(){
|
||||
$j('div#widgetcode').toggle();
|
||||
});
|
||||
$j('#lightbox').on('click', '#embed2', function(){
|
||||
$j('div#widgetcode2').toggle();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue