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
<?php | |
$protocol = $_SERVER["SERVER_PROTOCOL"]; | |
if ('HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol) | |
$protocol = 'HTTP/1.0'; | |
header("$protocol 503 Service Unavailable", true, 503); | |
header('Content-Type: text/html; charset=utf-8'); | |
header('Retry-After: 3600'); | |
?> | |
<html> | |
<head> |
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
app.directive('ngEnter', function() { | |
return function(scope, element, attrs) { | |
element.bind("keydown keypress", function(event) { | |
if(event.which === 13) { | |
scope.$apply(function(){ | |
scope.$eval(attrs.ngEnter); | |
}); | |
event.preventDefault(); | |
} |
NewerOlder