Codiad/Codiad — pull request #386 by daeks (2013-05-07 11:53:37+00:00)
Title: DemoRequest: empty demo file

Is it possible to add an empty demo.js file to index.php? Makes it much easier to maintain demo and doesn't hurt anyone. If this is merged, I can hook in very easily without any modification on the core, like:

```javascript
codiad.demo = {
init: function() {
$('input[name=username]').val('demo');
$('input[name=password]').val('demo');
$('#context-menu a[onclick="codiad.filemanager.uploadToNode($(\'#context-menu\').attr(\'data-path\'));"]').attr("onclick", "codiad.demo.denied();");
},

denied: function() {
codiad.message.error.('Not Allowed in Demo Mode');
return false;
}
```