Skip to content

Instantly share code, notes, and snippets.

View kaievns's full-sized avatar

Kai Evans kaievns

  • Sydney, Australia
View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<title>Draggable Issue</title>
<script type="text/javascript" src="http://cdn.rightjs.org/right.js"></script>
<script type="text/javascript" src="http://cdn.rightjs.org/plugins/dnd.js"></script>
</head>
<body>
<div style="margin: 10px auto;max-width:1180px;position:relative;height:710px;clear:both;overflow:scroll;background-color:grey">
<div rel="draggable" style="position: absolute; right: 0; background-color: green; width: 100px; height: 100px"></div>
var Keyboard = new Class({
prebind: 'handler',
initialize: function() {
$(document).on({
keypress: this.handler,
keyup: this.handler
});
},
<dl id="tutorials-index">
<dt>Beginner Topics</dt>
<ul>
<%= menu_link_to "Getting Started", tutorial_path('getting-started') %>
<%= menu_link_to "Top 12 Features", tutorial_path('top-features') %>
</ul>
<dt>Basic Features</dt>
<ul>
<%= menu_link_to "Call By Name", tutorial_path('call-by-name') %>