summaryrefslogtreecommitdiffstats
path: root/js/mapspecs.js
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2015-05-07 23:14:47 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2015-05-07 23:14:47 -0500
commit3dc3919ce1b5336861979cde56884842615c967b (patch)
treef0a2418290cecd15f20c834bb071ffa9f3694b09 /js/mapspecs.js
parent29e872fbc6c552ef02208fe9fa5416b69773aa38 (diff)
parentc517b645c8723b5f4d20cbb91cbc4b9f45579cbb (diff)
downloadpathery-3dc3919ce1b5336861979cde56884842615c967b.tar.xz
Merge branch 'master' of git.raylu.net:pathery
Diffstat (limited to 'js/mapspecs.js')
-rw-r--r--js/mapspecs.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 1a0693f..7226a52 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -1055,31 +1055,3 @@ function getSpeedOptions(mapID) {
return r;
}
-
-function savePref(pref, value) {
- setCookie('pref_'+pref, value, 9999);
-}
-
-//Cookie functions from w3schools.com
-function setCookie(c_name,value,exdays)
-{
- var exdate=new Date();
- exdate.setDate(exdate.getDate() + exdays);
- var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
- document.cookie=c_name + "=" + c_value;
-}
-function getCookie(c_name)
-{
- var i,x,y,ARRcookies=document.cookie.split(";");
- for (i=0;i<ARRcookies.length;i++)
- {
- x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
- y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
- x=x.replace(/^\s+|\s+$/g,"");
- if (x==c_name)
- {
- return unescape(y);
- }
- }
- return "";
-}