1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/ecard/views/ecard_form.html.php

1 line
819 B
PHP
Raw Normal View History

<?php defined("SYSPATH") or die("No direct script access.") ?> <html> <head> <title>Send eCard</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('textarea').keyup(function(){ var message = document.getElementById("g-text"); var max = parseInt($(message).attr('maxlength')); if($(message).val().length > max){ $(message).val($(message).val().substr(0, $(message).attr('maxlength'))); } $(document).find('.charsRemaining').html('Message (You have ' + (max - $(message).val().length) + ' characters remaining)'); }); }); </script> </head> <body> <?= ecard::prefill_send_form(ecard::get_send_form($item_id)); ?> </body> </html>