Skip to content

Instantly share code, notes, and snippets.

function TextCount(){
this.textArea = document.getElementById('textArea');
this.textCount = document.getElementById('textCount');
this.init();
}
TextCount.prototype = {
init: function(){
var that = this;
/**
* [namespace]
*/
var App = App || {};
/**
* [Model]
*/
App.Model = function(text){
this.text = text;
@kawabataryo
kawabataryo / 01mail.php
Last active September 3, 2015 01:01
mailform sample
<?php
ini_set('display_errors', 0);
session_start();
//トークンを生成
$token = sha1(uniqid(mt_rand(), true));
$_SESSION['token'] = $token;
//エスケープ