Created
August 2, 2015 09:07
-
-
Save yajamon/16c090a855ae79bbebb6 to your computer and use it in GitHub Desktop.
littleLady
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 setFC(key, val) { | |
var time = new Date(); | |
time.setTime(time.getTime() + (20 * 60 * 1000)); | |
document.cookie = key + "=" + escape(val) + "; expires=" + time.toGMTString() + ";"; | |
} | |
////////////////////// | |
//○簡易セットクッキー | |
function select(num) { | |
setFC("Snum", num); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment