setcookie fix

master
fefa4ka 10 years ago
parent 266bed20aa
commit 34f63c9667
  1. 6
      zsite/static/js/app.js
  2. 5
      zsite/static/js/snippets.js

@ -1,11 +1,5 @@
angular.module('zuykov', ['ui.bootstrap']);
function setCookie(key, value) {
var expires = new Date();
expires.setTime(expires.getTime() + (1 * 24 * 60 * 60 * 1000));
document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();
}
angular.module('zuykov')
.controller('MainCtrl', ['$scope', function ($scope) {
$scope.GetNoun = function(number, one, two, five) {

@ -22,6 +22,11 @@ GetAdj = function(number, one, two) {
return two;
};
setCookie = function(key, value) {
var expires = new Date();
expires.setTime(expires.getTime() + (1 * 24 * 60 * 60 * 1000));
document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();
};
$(function() {
$( "[href^=mailto]" ).click(function() {

Loading…
Cancel
Save