Skip to content

Instantly share code, notes, and snippets.

var img = document.getElementById('catty');
img.style.position="absolute";
img.style.left = "0px";
max = document.width - img.width;
function move_right(){
if(parseInt(img.style.left, 10) <= max){
img.style.left = (parseInt(img.style.left, 10) + 15) + 'px';
} else if(parseInt(img.style.left, 10) >= max) {
require 'open-uri'
class Googleproductssearch
def initialize(query)
@query = query
end
<p id="notice"><%= notice %></p>
<p>
<b>ID:</b>
<%= @product.id %>
</p>
<p>
<b>Name:</b>
<%= @product.name %>