Commit 7d108858f21bb104181aeceff16645ecda12899c

  • avatar
  • p4bl0 <pablo.rauzy @gm…l.com>
  • Wed Jun 24 18:54:37 CEST 2009
showing name of the currently used cookie in the interface
index.html
(1 / 0)
  
1010 <body id="twotwodo">
1111
1212 <div id="header">
13 <span id="cookieName">default</span>
1314 <span id="soap">by <a href="http://soap.coders.fm/">soap</a></span>
1415 <h1>TwoTwoDo!</h1>
1516 </div>
  
3333#soap a {
3434 color: #eee;
3535}
36#cookieName {
37 color: #fc6;
38 position: absolute;
39 top: 0.5em;
40 left: 0.5em;
41 font-size: small;
42 font-style: italic;
43}
3644
3745table {
3846 width: 96%;
  
250250TwoTwoDo.init = function () {
251251 var url = document.location.toString();
252252 if (url.indexOf('?') != -1) {
253 TwoTwoDo.data.cookie = 'TwoTwoDo-'+url.substr(url.indexOf('?')+1);
253 var cookieName = url.substr(url.indexOf('?')+1);
254 $('#cookieName').html(cookieName);
255 TwoTwoDo.data.cookie = 'TwoTwoDo-'+cookieName;
254256 }
255257 var data = TwoTwoDo.utils.readCookie();
256258 if (data != null) {