Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Only for research purproses
- /// (c) ePythia Team
- /// 05/04/2011
- function createCookie(name,value,days) {
- if (days) {
- var date = new Date();
- date.setTime(date.getTime()+(days*24*60*60*1000));
- var expires = "; expires="+date.toGMTString();
- }
- else var expires = "";
- document.cookie = name+"="+value+expires+"; path=/";
- }
- function deletecook() {
- var cookies = document.cookie.split(";");
- for (var i = 0; i < cookies.length; i++)
- createCookie(cookies[i].split("=")[0],"",-1);
- }
- function start(){
- $.ajax({
- url: "/skolkovo/vote/",
- type: "POST",
- data : {skl_vote_project : "6449", skl_vote_rdct: "/skolkovo/member/6449/"},
- success: function(){
- deletecook()
- start();
- }
- });
- }
- start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement