diff --git a/Notes b/Notes
new file mode 100644
index 0000000..9352a32
--- /dev/null
+++ b/Notes
@@ -0,0 +1,33 @@
+Notes:
+
+Determines the size of an image:
+
+
+OR largest image on the page:
+
+
\ No newline at end of file
diff --git a/README b/README
index 6ea6b2e..03166c5 100644
--- a/README
+++ b/README
@@ -5,6 +5,4 @@ This is a Rails 3 HTTP Proxy application. It allows users to surf the web throu
You can browse pages with the following URL structure:
http://localhost:3000/proxy?lnk=http://zappos.com
-
-
Copyright 2010 Chris Matthieu
\ No newline at end of file
diff --git a/app/controllers/proxy_controller.rb b/app/controllers/proxy_controller.rb
index 98e3563..77d18e6 100644
--- a/app/controllers/proxy_controller.rb
+++ b/app/controllers/proxy_controller.rb
@@ -6,11 +6,13 @@ def proxy
# site_url = request.env["REQUEST_URI"][0..request.env["REQUEST_URI"].index("/proxy")-1] # prefix i.e. "http://localhost:3000"
if request.env["REQUEST_URI"].index("http://localhost")
- site_url = "http://localhost:3000"
+ site_url = "http://localhost:3000/proxy"
else
- site_url = "http://webproxy.heroku.com"
+ site_url = "http://webproxy.heroku.com/proxy"
end
+# INSERT START
+
if params[:lnk]
@url = params[:lnk]
else
@@ -165,7 +167,7 @@ def proxy
#not anchor
if a['href'] != nil and a['href'] != "#"
- link = site_url + '/proxy' + '?lnk=' + URI.escape(link.strip)
+ link = site_url + '?lnk=' + URI.escape(link.strip)
a['href'] = link
end
@@ -224,7 +226,7 @@ def proxy
link.gsub!("http:///", @baseurl) #added to test localhost entries
link = link.strip
- # link = site_url + '/proxy' + '?lnk=' + URI.escape(link.strip)
+ # link = site_url + '?lnk=' + URI.escape(link.strip)
a['href'] = link
end
@@ -260,7 +262,7 @@ def proxy
if a['action'] != nil and a['action'] != "#"
formaction = link.strip
- link = site_url + '/proxy' + '?url=' + URI.escape(link.strip)
+ link = site_url + '?url=' + URI.escape(link.strip)
a['action'] = link
@@ -309,6 +311,8 @@ def proxy
@finaldoc.gsub(".location.replace", "")
+# INSERT END
+
render :layout => false
end
diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css
index a6b6edf..cc649f7 100644
--- a/public/stylesheets/style.css
+++ b/public/stylesheets/style.css
@@ -1,5 +1,5 @@
-#generalform input:focus, textarea:focus {background: none repeat scroll 0 0 #FFFF99; line-height:30px; font-size: 30px;}
-#generalform input, textarea {line-height:30px; font-size: 30px; }
+#generalform input:focus, textarea:focus {background: none repeat scroll 0 0 #FFFF99; line-height:30px; font-size: 30px; width: 500px;}
+#generalform input, textarea {line-height:30px; font-size: 30px; }
#generalform button, input{
padding:5px 10px;