Source

cciw-website2 / templates / cciw / services / esv_passage.html

{% extends "cciw/base.html" %}
{% load static %}
{% block content %}
<script type="text/javascript" src="{% static "admin/js/jquery.min.js" %}" </script>
<script type="text/javascript" src="{% static "js/cciwutils.js" %}" </script>
<script type="text/javascript">
<!--

var cciw = (function(pub, $) {
    pub.copyPassage = function() {
        var output = "";
        $('.esv-text p').each(function(i, elem) {
            var text = $(elem).text();
            if (output.length != 0) {
                output = output + "\n\n";
            }
            output = output + text;
        });
        output = "[bible=" + "{{ passage }}" + "]" + output + "[/bible]";
        var messageBox = $(window.opener.document).find('#message');
        if (messageBox.size() != 0) {
            messageBox.insertAtCaret(output);
        }
    };

   return pub;

})(cciw || {}, jQuery);

//-->
</script>
  <div id="esvblock">
    {{ passagetext }}
  </div>

  <h2>Refine Search</h2>
  <form action="" method="get"><p>Passage: <input type="text" name="passage" value="{{ passage }}"/> <input type="submit" name="submit" value="Go" /></p>
  </form>
  <h2>Copy text into message</h2>
  <p><a href="javascript: cciw.copyPassage();window.close();">Copy and close</a>
   | <a href="javascript:void cciw.copyPassage();">Copy</a></p>

  <h2>Notice</h2>
  <p>Scripture taken from The Holy Bible, English Standard Version. Copyright &copy;2001 by <a href="http://www.crosswaybibles.org">Crossway Bibles</a>, a division of Good News Publishers. Used by permission. All rights reserved. Text provided by the <a href="http://www.gnpcb.org/esv/share/services/">Crossway Bibles Web Service</a>.</p>

  <p>Please respect the service that <a href="http://www.gnpcb.org/">GNC</a> provides
  by keeping queries to short passages (at most 500 verses), and please be considerate 
  about copying large passages into messages.</p>

{% endblock %}