planet-web r599 - in trunk: themes/gnome web



Author: jdub
Date: Thu Jul 24 12:55:31 2008
New Revision: 599
URL: http://svn.gnome.org/viewvc/planet-web?rev=599&view=rev

Log:
and now with the cookie js

Added:
   trunk/web/jquery.cookie.min.js
Modified:
   trunk/themes/gnome/index.html.tmpl

Modified: trunk/themes/gnome/index.html.tmpl
==============================================================================
--- trunk/themes/gnome/index.html.tmpl	(original)
+++ trunk/themes/gnome/index.html.tmpl	Thu Jul 24 12:55:31 2008
@@ -15,6 +15,7 @@
 	<link rel="stylesheet" href="http://blogs.gnome.org/wp-content/mu-plugins/bug-links/bug-links.css"; type="text/css">
 
 	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js";></script>
+	<script type="text/javascript" src="jquery.cookie.min.js"></script>
 	<script type="text/javascript">
 	function toggleFeeds() {
 		$("#feedlist").slideToggle(function() {

Added: trunk/web/jquery.cookie.min.js
==============================================================================
--- (empty file)
+++ trunk/web/jquery.cookie.min.js	Thu Jul 24 12:55:31 2008
@@ -0,0 +1 @@
+jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]