This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TextCount(){ | |
this.textArea = document.getElementById('textArea'); | |
this.textCount = document.getElementById('textCount'); | |
this.init(); | |
} | |
TextCount.prototype = { | |
init: function(){ | |
var that = this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* [namespace] | |
*/ | |
var App = App || {}; | |
/** | |
* [Model] | |
*/ | |
App.Model = function(text){ | |
this.text = text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 0); | |
session_start(); | |
//トークンを生成 | |
$token = sha1(uniqid(mt_rand(), true)); | |
$_SESSION['token'] = $token; | |
//エスケープ |
OlderNewer