summaryrefslogtreecommitdiff
path: root/down/view/templ-index.php
diff options
context:
space:
mode:
Diffstat (limited to 'down/view/templ-index.php')
-rw-r--r--down/view/templ-index.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/down/view/templ-index.php b/down/view/templ-index.php
index cd67451..bfa68ab 100644
--- a/down/view/templ-index.php
+++ b/down/view/templ-index.php
@@ -4,8 +4,9 @@
<meta charset="utf-8">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
- <link rel="stylesheet" href="../tools/static/sweet-alert.css">
+ <!--link rel="stylesheet" href="../tools/static/sweet-alert.css"-->
<style>
+ <?php echo file_get_contents("../tools/static/sweet-alert.css"); ?>
<?php echo file_get_contents("../tools/style.css"); ?>
</style>
<noscript><style>.navbar{margin-bottom:0;}</style></noscript>
@@ -44,7 +45,7 @@
}
?>
<span class="input-group-btn">
- <button type="button" class="btn btn-default addButton" title="Clean Input" onclick="clean('#url');">C</button>
+ <button id="clear" type="button" class="btn btn-default addButton" title="Clean Input">C</button>
</span>
</div>
</div>
@@ -116,10 +117,13 @@
$(".fa-spinner").addClass("fa-spin");
- };
+ document.addEventListener('keydown', function(event) {
+ $("#url").focus();
+ });
- function clean(id){
- $(id).val('');
- }
+ $("#clear").click(function(){
+ $("#url").val('').focus();
+ })
+ };
</script>
<script defer src="../tools/static/sweet-alert.js"></script>