Browse files

fix in sample page

  • Loading branch information...
1 parent 168b075 commit 2435e9d64c0509dbe233a147605105ac3b556613 @WolfgangSt WolfgangSt committed May 17, 2011
Showing with 28 additions and 0 deletions.
  1. +28 −0 sample.html
View
28 sample.html
@@ -52,6 +52,34 @@
}
}
+ // the request was completed.
+ for (f in data.blobs)
+ {
+ if (f.startsWith('IIS.SLSharp.Examples.Simple/DemoWindow.cs'))
+ {
+ var JSONP3 = new Request.JSONP(
+ {
+ url: 'http://github.com/api/v2/json/blob/show/IgniteInteractiveStudio/SLSharp/' + tree + '/'+ f,
+ onComplete: function(data)
+ {
+ var sha = data.blob.sha;
+ var div = new Element('div');
+ var ref = new Element('a',
+ {
+ href: 'https://github.com/IgniteInteractiveStudio/SLSharp/tree/master/' + f,
+ html: f
+ });
+ var pre = new Element('pre', {html: sha, class: 'brush: csharp;'});
+ ref.inject(div);
+ pre.inject(div);
+ div.inject(mye);
+ pre.set('text', data.blob.data);
+ SyntaxHighlighter.highlight({}, pre);
+ },
+ }).send();
+
+ }
+ }
}
}).send();
}

0 comments on commit 2435e9d

Please sign in to comment.