regluit/core/management/commands/seed_degruyter.html

41 lines
1.7 KiB
HTML
Raw Normal View History

2013-05-02 19:58:28 +00:00
<div class="launch_top" id="degruyter_countdown" style="font-size:20px;text-align:center;width:50%"></div>
<h4>Help us unglue this book!</h4>
<p>De Gruyter has agreed to run an ungluing campaign for this book, if it can get enough support from ungluers like you. The target price will be $2100, after which the book will be free for everyone on earth to read, copy, and share, forever (under a Creative Commons <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/">BY-NC-ND</a> license).</p>
<p>They'll launch a campaign when 50 ungluers have wished for this book. Right now <span id="wisher_data"></span>. </p>
<p id="cta"></p>
<hr>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function(){
var countdown = 50 - numWishers;
2013-05-06 19:59:55 +00:00
if(countdown == 1) {
$j("#degruyter_countdown").html("Only 1 more ungluer to go!");
} else {
$j("#degruyter_countdown").html(countdown + " ungluers to go");
}
if(numWishers == 1) {
var wisherDataText = "1 ungluer has wished for this book"
} else {
var wisherDataText = numWishers + " ungluers have wished for this book"
}
$j("#wisher_data").html(wisherDataText);
if(isSupporter){
if(numWishers == 1) {
var callToAction = "Thanks for getting things started! Will you ask your friends to join you?"
} else {
var callToAction = "Thanks for being one of them! Will you ask your friends to join you?"
}
} else {
var callToAction = "Won't you join in?"
}
$j("#cta").html(callToAction);
});
2013-05-02 19:58:28 +00:00
</script>