public
Description: I eat URLs. RAWRRRRR!
Clone URL: git://github.com/bottlecaplabs/zombieurl.git
Search Repo:
a bit more cleanup....
skippy (author)
Fri Apr 11 12:10:24 -0700 2008
commit  d615b0f1f3cc42cb8e96cbf49e7bf6347251702f
tree    f90e93d9f5bd654e50c128752b8e51a37aea0f5b
parent  cce91402d68863bd1e8244bcd3baf5f5fd483109
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@
0
 
0
 class ApplicationController < ActionController::Base
0
   # Pick a unique cookie name to distinguish our session data from others'
0
- session :session_key => '_rubyurl_2.0_session_id'
0
+ session :session_key => '_zombie_url_session_id'
0
   
0
   before_filter :calculate_links
0
   
...
1
2
 
 
...
 
 
1
2
0
@@ -1,3 +1,3 @@
0
-<iframe src="<%= @link.website_url %>" style="position: fixed; top:0; left:0; width: 100%; height: 100%" frameborder='0' marginheight='0' marginwidth='0' scrolling='auto'></iframe>
0
-<a href='/images/photos/image1.jpg' id='zombie' class='hide'></a>
0
+<iframe src="<%= @link.website_url %>" style="position: fixed; top:0; left:0; width: 100%; height: 100%" frameborder='0' marginheight='0' marginwidth='0' scrolling='auto' class='viewing'></iframe>
0
+<a href='/images/photos/image1.jpg' class='hide zombie'></a>
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,20 +1 @@
0
-#
0
-# Based on http://pastie.caboo.se/10707
0
-#
0
-
0
-class Hash
0
- # Returns the hash with entries removed
0
- # { :a => 1, :b => 2, :c => 3}.except(:a) -> { :b => 2, :c => 3 }
0
- # { :a => 1, :b => 2, :c => 3}.except(:a, :c) -> { :b => 2 }
0
- def except(*keys)
0
- self.reject { |k,v| keys.include? k.to_sym }
0
- end unless instance_methods.include? 'except'
0
-
0
- # Returns a new hash with only the entries specified
0
- # { :a => 1, :b => 2, :c => 3}.only(:a) -> { :a => 1 }
0
- # { :a => 1, :b => 2, :c => 3}.only(:a, :b) -> { :a => 1, :b => 2 }
0
- def only(*keys)
0
- self.dup.reject { |k,v| !keys.include? k.to_sym }
0
- end unless instance_methods.include? 'only'
0
-end
...
 
 
 
 
 
 
 
 
 
 
1
2
 
 
3
...
1
2
3
4
5
6
7
8
9
10
11
 
12
13
14
0
@@ -1,4 +1,15 @@
0
+var Zombie = {};
0
+Zombie.load_delayed_images = function(){
0
+ $('a.zombie').each(function(i, a){
0
+ img = $("<img src='" + $(a).attr('href') + "'></img>");
0
+alert('good?')
0
+ //NOTE: usiing img.load(); doesn't work..... it throws an erro in jquery, though this does. odd
0
+ img.trigger('load');
0
+ });
0
+}
0
+
0
 $(function() {
0
- $('a#zombie').lightBox().click();
0
+ // Zombie.load_delayed_images();
0
+ // $('a.zombie').lightBox().click();
0
 });

Comments

    No one has commented yet.