summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2012-12-22 21:43:55 +0100
committerMarcin Łabanowski <marcin@6irc.net>2012-12-22 21:43:55 +0100
commit49afb685c8e658c0f36b8171e176363538eb9419 (patch)
tree1e51c6599bdc762f553f3352a928bf203c75df6b /js
parent2451a0f29c08e23ff36ef113082c112224f7e576 (diff)
parent67e9fb587220a677cc15c4b1f8efe2764b8b1955 (diff)
Merge branch 'imgcaptcha' of https://github.com/asiekierka/Tinyboard
Diffstat (limited to 'js')
-rw-r--r--js/imgcaptcha.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/imgcaptcha.js b/js/imgcaptcha.js
new file mode 100644
index 00000000..8d3ed95c
--- /dev/null
+++ b/js/imgcaptcha.js
@@ -0,0 +1,16 @@
+//function obecnyCzas() {
+// return Math.round(new Date().getTime() / 1000);
+//}
+
+function ic_odswiezKapcze() {
+ $.get("/imgcaptcha_p.php", function(data) {
+ $("#imgcaptcha_hash").val(data);
+ $("#imgcaptcha_img").prop("src","/imgcaptcha_im.php?cr=" + data);
+ });
+}
+//function resetujKapcze() {
+// $("#imgcaptcha_img").prop("src","/zakrytek.png");
+//}
+//$(document).ready(function(){
+// //resetujKapcze(); - to nie powinno byc na razie potrzebne
+//});