Skip to content

Commit

Permalink
Make cookies valid across the entire site.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVino committed Aug 17, 2014
1 parent a5b3833 commit 20e409e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/copy/docs.gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ window.api_version = "";

function set_api_version(version) {
window.api_version = version;
$.cookie("api_version", version);
$.cookie("api_version", version, {path: '/'});

$( "#opengl_name" ).text(gl_printable_name(version));

Expand Down Expand Up @@ -140,12 +140,12 @@ $(function() {

$("#style_light").click(function() {
$("#pagestyle").attr("href", "../style_light.css");
$.cookie("pagestyle", "light");
$.cookie("pagestyle", "light", {path: '/'});
});

$("#style_dark").click(function() {
$("#pagestyle").attr("href", "../style_dark.css");
$.cookie("pagestyle", "dark");
$.cookie("pagestyle", "dark", {path: '/'});
});

if ($.cookie("pagestyle") == 'light')
Expand Down

0 comments on commit 20e409e

Please sign in to comment.