Skip to content

Commit

Permalink
document cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayPrabhakaran committed Aug 20, 2024
1 parent dc9eaf8 commit 394a629
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SJPv6/www/sjp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,6 @@ function setCookie(cname,cvalue,expiredays){
d.setTime(d.getTime() + (expiredays*24*60*60*1000));
let expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires ;//+ ";path=/";
alert(document.cookie)
//return value;
}
////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -1773,7 +1772,7 @@ function setDefaults(){
setCookie("longitude",document.getElementById('longitude').value,9999999);
setCookie("latitude",document.getElementById('latitude').value,9999999);
setCookie("placename",document.getElementById('placename').value,9999999);
alert("Set Current Location as default");
alert("Set Current Location as default\n"+document.cookie);
}
function JHDtz2Dec(zone)
{
Expand Down

0 comments on commit 394a629

Please sign in to comment.