Difference between revisions of "Team:Lethbridge HS"
Line 15: | Line 15: | ||
− | + | function delete_cookie(name){ | |
+ | document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; | ||
+ | } | ||
function functionBees(){ | function functionBees(){ | ||
var cookieValue = null; | var cookieValue = null; | ||
+ | delete_cookie("projectType"); | ||
cookieValue = getCookie("projectType"); | cookieValue = getCookie("projectType"); | ||
setCookie("projectType", "1", 365); | setCookie("projectType", "1", 365); | ||
Line 26: | Line 29: | ||
function functionBiofilms(){ | function functionBiofilms(){ | ||
var cookieValue = null; | var cookieValue = null; | ||
+ | delete_cookie("projectType"); | ||
cookieValue = getCookie("projectType"); | cookieValue = getCookie("projectType"); | ||
+ | |||
setCookie("projectType", "2", 365); | setCookie("projectType", "2", 365); | ||
Revision as of 12:57, 12 September 2015