cciw-website / templates / cciw / message.html

{% load static %}
<script type="text/javascript">
<!--
var cciw = (function(pub, $) {

    pub.messageInsert = function(text) {
        $('#message').insertAtCaret(text);
    }

    pub.messageWrap = function(startText, endText) {
        $('#message').wrapAtCaret(startText, endText);
    }

    pub.bibleWindow = function() {
        var passage = $('#passageinput').val();
        window.open('/services/esv_passage/?passage=' + encodeURI(passage),
        'bible',"toolbar=yes,height=600,width=500,location=no,menubar=no,scrollbars=yes,resizable=yes");
    };

    $(document).ready(function(ev) {
        $('#passageinput').keydown(function(ev) {
            var code = (ev.keyCode ? ev.keyCode : ev.which);
            if (code == 13) {
                ev.preventDefault();
                pub.bibleWindow();
            }
        });
    });

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

//-->
</script>
<div>
<textarea name="message" rows="12" cols="60" id="message">{% if message_text %}{{ message_text }}{% endif %}</textarea>
<div class="messageiconrow">
<a class="button" href="javascript: void cciw.messageInsert(':-)');"><img src="{% static "images/emoticons/smile.gif" %}" alt=":-)" title="Add emoticon" /></a>
<a class="button" href="javascript: void cciw.messageInsert(':-(');"><img src="{% static "images/emoticons/sad.gif" %}" alt=":-(" title="Add emoticon" /></a>
<a class="button" href="javascript: void cciw.messageInsert(':-/');"><img src="{% static "images/emoticons/unsure.gif" %}" alt=":-/" title="Add emoticon" /></a>
<a class="button" href="javascript: void cciw.messageInsert(';-)');"><img src="{% static "images/emoticons/wink.gif" %}" alt=";-)" title="Add emoticon" /></a>
<a class="button" href="javascript: void cciw.messageInsert(':eyebrow:');"><img src="{% static "images/emoticons/eyebrow.gif" %}" alt=":eyebrow:" title="Add emoticon" /></a>
 |
<a class="button" href="javascript: void cciw.messageWrap('[b]', '[/b]');" title="Add bold text tags"><b>B</b></a>
<a class="button" href="javascript: void cciw.messageWrap('[i]','[/i]');" title="Add italic text tags"><b><i>I</i></b></a>
<a class="button" href="javascript: void cciw.messageWrap('[quote]', '[/quote]');" title="Add tags for quoting someone"><b>Q</b></a>

 | Bible: <input name="passageinput" id="passageinput" type="text" title="Enter Bible passage and click the icon to do a lookup in a popup window" /><a title="Enter Bible passage and click the icon to do a lookup in a popup window" class="button" href="javascript:void cciw.bibleWindow();"><img src="{% static "images/book.png" %}" alt="bible icon" /></a>
 |
<a title="More details about creating messages." rel="external" href="/website/bbcode/" >Help</a>
</div>
</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.