Sha256: be18a19840271a05592455d0610efd00962e148b3374159cf6b386fc0b533514

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

<html>
<head>
	<title>Akamai Purge Bookmarklet</title>
</head>
<body>
  <p>Hello, <%= session[:cas_user] %></p>
	<!-- with compliments to Instapaper -->
	<a href="javascript:function iprl5(){
	var d=document;
	var z = d.createElement('scr'+'ipt');
	var b = d.body;
	try { 			
		if(!b) throw(0);
		d.title = '(Purging...) ' + d.title;
		z.setAttribute('src','http://<%= @request.host %>:<%= @request.port %>/purge.js?uri=' + encodeURIComponent(d.location.href));
		b.appendChild(z); 
	} catch(e) { alert('Please wait until the page has loaded.'); }
}
iprl5();
void(0);">Drag this link to your bookmarks bar</a>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
akamai_bookmarklet-0.1.2 lib/application/views/bookmarklet.html.erb
akamai_bookmarklet-0.1.1 lib/application/views/bookmarklet.html.erb
akamai_bookmarklet-0.1.0 lib/application/views/bookmarklet.html.erb