<html ng-app="app" ng-controller="Controller">
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/angular.ng-notify/0.8.0/ng-notify.min.css" rel="stylesheet" type="text/css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<script src="https://cdn.jsdelivr.net/angular.ng-notify/0.8.0/ng-notify.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>MoCa (Module Catalog)</title>
</head>
<body class="container">
<h1>
<i class="glyphicon glyphicon-grain"></i>
MoCa
<small>(Module Catalog)</small>
</h1>
<div ng-repeat="weekDay in weekDays">
<h4>{{weekDay.name}}</h4>
<span
ng-if="weekDay.modules.length === 0"
class="text-muted">
Frei!
</span>
<table class="table table-striped">
<tr ng-repeat="module in weekDay.modules track by $index"
style="height: 25px">
<td style="max-width: 100px; width: 100px;">
{{module.startTime |date:'HH:mm'}} -
{{module.endTime |date:'HH:mm'}}
</td>
<td>
{{module.name}}
</td>
<td>
<a href
ng-click="weekDay.modules.splice($index, 1)"
class="btn btn-default btn-xs pull-right">
×
</a>
</td>
</tr>
</table>
</div>
<hr>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Modul hinzufügen</h3>
</div>
<div class="panel-body">
<form class="form">
<div class="form-group">
<label>Name</label>
<input type="text"
ng-model="newModule.name"
class="form-control"
placeholder="Name">
</div>
<div class="form-group">
<label>Wochentag</label>
<select
ng-model="day"
ng-options="day for day in days"
class="form-control">
</select>
</div>
<div class="row">
<div class="col-xs-6">
<div class="form-group">
<label>Von</label>
<input type="time"
ng-model="newModule.startTime"
class="form-control">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label>Bis</label>
<input type="time"
ng-model="newModule.endTime"
class="form-control">
</div>
</div>
</div>
<button
type="submit"
ng-click="addModule(newModule, day)"
ng-disabled="!newModule.name || !day"
class="btn btn-default pull-right">
<i class="glyphicon glyphicon-plus"></i>
Modul eintragen
</button>
</form>
</div>
</div>
</body>
</html>
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |