diff options
Diffstat (limited to 'final/app/script.js')
-rw-r--r-- | final/app/script.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/final/app/script.js b/final/app/script.js index c8c0a06..824dcb6 100644 --- a/final/app/script.js +++ b/final/app/script.js @@ -32,11 +32,19 @@ function switchCSS() { if (listCSS.options.selectedIndex>=0) { - - setActiveStyleSheet(listCSS.options[listCSS.options.selectedIndex].value); + var date_exp = new Date(); + date_exp.setTime(date_exp.getTime()+(365*24*3600*1000)); + document.cookie="aworchoose_css"+"="+listCSS.options[listCSS.options.selectedIndex].value+ + "; expires="+date_exp.toGMTString()+ + "; path=/"; + window.location.reload(); + window.location=document.location; + + } - } + } + } function addAllPers(form) |