Files
ferglie/static/js/app/views/url.html
Fergal Moran 0c4e910b9e MVP Done
2017-05-09 23:31:55 +01:00

10 lines
573 B
HTML
Executable File

<div ng-controller="UrlCtrl" class="login-popup">
<input type="text" class="form-control text-center text" id="url" placeholder="URL to shorten"
ng-enter="shortenUrl()" ng-model="url" ng-focus="focusInput">
<button type="submit" class="btn btn-default submit" ng-click="shortenUrl()">Do It</button>
<div class="alert alert-success" ng-show="shortened_url.length">
<a ng-href="{{ shortened_url }}" target="_blank" ng-bind="shortened_url"></a>
</div>
<div class="alert alert-danger" ng-show="error.length" ng-bind="error"></div>
</div>