This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html><head> | |
<script runat="server" src="narwhal/packages/narwhal-jaxer/bootstrap.js"></script> | |
<script runat="server"> | |
require.paths.push("/opt/narwhal"); // to find "tests" | |
// for output | |
system.print = function (s) { document.write(s + "<br />\n"); }; | |
system.stdout.write = system.print; | |
var t = require("tests/all-tests"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Helper to execute blocks of shell commands via capistrano run | |
def run_chunk(cmd,options={}) | |
run cmd.split("\n").map {|l| l.strip }.join(" "), options | |
end | |
# Example | |
task :revision, :roles => [:app] do | |
run_chunk %Q{ | |
rm -f #{current_release}/public/REVISION;cp #{current_release}/REVISION #{current_release}/public/REVISION; | |
cd #{current_release}; git config --list | grep branch\.deploy >> #{current_release}/public/REVISION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script runat="server"> | |
var cc = Components.classes, | |
ci = Components.interfaces; | |
function w(o) { | |
for (var i in o) { document.write(i + "<br />"); } | |
} | |
document.write("-- Components.classes -- <br />"); | |
w(cc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/tabs.js b/src/tabs.js | |
index 7efbe24..133c1b8 100644 | |
--- a/src/tabs.js | |
+++ b/src/tabs.js | |
@@ -83,10 +83,8 @@ Control.Tabs = Class.create({ | |
throw "Control.Tabs: #" + link.key + " was not found on the page."; } | |
this.containers.set(link.key,container); | |
link[this.options.hover ? 'onmouseover' : 'onclick'] = function(link){ | |
- if(window.event) { | |
- Event.stop(window.event); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/tabs.js b/src/tabs.js | |
index 7efbe24..fbbb5c9 100644 | |
--- a/src/tabs.js | |
+++ b/src/tabs.js | |
@@ -44,6 +44,8 @@ Control.Tabs = Class.create({ | |
return (/^#/).exec((Prototype.Browser.WebKit ? decodeURIComponent(link.href) : link.href).replace(window.location.href.split('#')[0],'')); | |
}).each(function(link){ | |
this.addTab(link); | |
+ link.writeAttribute("href",null); | |
+ link.setStyle({cursor:'pointer'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: /project/public/javascripts/libs/scrollbar.js | |
=================================================================== | |
--- /project/public/javascripts/libs/scrollbar.js (revision 84) | |
+++ /project/public/javascripts/libs/scrollbar.js (working copy) | |
@@ -74,12 +74,12 @@ | |
if(this.container.scrollHeight <= this.container.offsetHeight) | |
this.disable(); | |
else{ | |
+ this.enable(); | |
this.slider.trackLength = this.slider.maximumOffset() - this.slider.minimumOffset(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<job> | |
<script language="javascript" src="bootstrap.js"></script> | |
<script language="javascript"> | |
system.print(); | |
system.print(typeof JSON); | |
</script> | |
</job> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% // Interoperable JS test runner %> | |
<script runat="server" language="javascript" src="../require.js"></script> | |
<script runat="server" language="javascript"> | |
// Each of these inline scripts sets up the load path of require for use in the | |
// subsequent test suite | |
// print function | |
var sys = require("sys"), | |
print = sys.print; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="JavaScript" runat="server" src="/path/to/prototype.js.asp"></script> | |
<script language="JavaScript" runat="server"> | |
Class.create({...}); // Go nuts here. | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="prototype.js" language="JavaScript" runat="server"></script> | |
<script src="console.js" language="JavaScript" runat="server"></script> | |
<script language="JavaScript" runat="server"> | |
console.log("Hello world!"); | |
console.info("And", "so", "on"); | |
</script> |