renamed bin to js

This commit is contained in:
Tim Krehan 2019-05-23 08:58:48 +02:00
parent f36e30240c
commit 33543cc125
25 changed files with 21 additions and 21 deletions

View file

@ -6,7 +6,7 @@
RewriteRule ^([a-zA-Z0-9-]+)$ ?site=$1 RewriteRule ^([a-zA-Z0-9-]+)$ ?site=$1
#alles, was versucht ein Script aufzurufen #alles, was versucht ein Script aufzurufen
RewriteRule /bin/(.+) /bin/$1 RewriteRule /js/(.+) /js/$1
#Error Seite #Error Seite
RewriteRule ^error/([a-zA-Z0-9-_]+)$ ?site=error&id=$1 RewriteRule ^error/([a-zA-Z0-9-_]+)$ ?site=error&id=$1

View file

@ -1,6 +1,6 @@
<head> <head>
<link rel="stylesheet" href="/style/adduser.css"> <link rel="stylesheet" href="/style/adduser.css">
<script src="/bin/adduser.js" charset="utf-8"></script> <script src="/js/adduser.js" charset="utf-8"></script>
</head> </head>
<h1>Benutzer hinzufügen</h1> <h1>Benutzer hinzufügen</h1>
<div class="adduser"> <div class="adduser">

View file

@ -3,7 +3,7 @@
<head> <head>
<title>Installationsfehler</title> <title>Installationsfehler</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="/bin/error.js" charset="utf-8"></script> <script src="/js/error.js" charset="utf-8"></script>
</head> </head>
<body> <body>
<div class="container"> <div class="container">

View file

@ -1,4 +1,4 @@
<script src="/bin/list.js" charset="utf-8"></script> <script src="/js/list.js" charset="utf-8"></script>
<div class="container mt-5"> <div class="container mt-5">
<h1>Liste</h1> <h1>Liste</h1>
</div> </div>
@ -28,7 +28,7 @@
$checked = ""; $checked = "";
} }
print_r("<div class='$div_item_row_classes $div_item_row_color_classes'>"); print_r("<div class='list-row $div_item_row_classes $div_item_row_color_classes'>");
print_r("<div class='$div_item_checkbox_classes'><input type='checkbox' class='$input_item_checkbox_classes' data-color='$color_theme' data-id='$item->ID' $checked></div>"); print_r("<div class='$div_item_checkbox_classes'><input type='checkbox' class='$input_item_checkbox_classes' data-color='$color_theme' data-id='$item->ID' $checked></div>");
print_r("<div class='$div_item_quantity_classes'>$item->Anzahl $item->Einheit</div>"); print_r("<div class='$div_item_quantity_classes'>$item->Anzahl $item->Einheit</div>");
print_r("<div class='$div_item_name_classes'>$item->Name</div>"); print_r("<div class='$div_item_name_classes'>$item->Name</div>");

View file

@ -2,7 +2,7 @@
if($_SERVER["REQUEST_URI"]!="/new-recipe"){ if($_SERVER["REQUEST_URI"]!="/new-recipe"){
$submitFunction = "update"; $submitFunction = "update";
$title = "Bearbeiten"; $title = "Bearbeiten";
$script = '<script src="/bin/edit-recipe.js" charset="utf-8"></script>'; $script = '<script src="/js/edit-recipe.js" charset="utf-8"></script>';
$additionalInput = "<input type='hidden' name='id' value=''>"; $additionalInput = "<input type='hidden' name='id' value=''>";
} }
else{ else{
@ -12,8 +12,8 @@
$additionalInput = ""; $additionalInput = "";
} }
?> ?>
<script src="/bin/manageRecipe.js" charset="utf-8"></script> <script src="/js/manageRecipe.js" charset="utf-8"></script>
<script src="/bin/autocomplete.js" charset="utf-8"></script> <script src="/js/autocomplete.js" charset="utf-8"></script>
<?php echo $script; ?> <?php echo $script; ?>
<div class="container mt-5"> <div class="container mt-5">
<h1><?php echo $title ?></h1> <h1><?php echo $title ?></h1>

View file

@ -1,4 +1,4 @@
<script src="/bin/recipe.js" charset="utf-8"></script> <script src="/js/recipe.js" charset="utf-8"></script>
<?php <?php
include $_SESSION["docroot"].'/php/classes.recipe.php'; include $_SESSION["docroot"].'/php/classes.recipe.php';
$book = new cookbook; $book = new cookbook;

View file

@ -1,5 +1,4 @@
<!-- <link rel="stylesheet" href="/style/recipes.css"> --> <script src="/js/search.js" charset="utf-8"></script>
<script src="/bin/search.js" charset="utf-8"></script>
<div class="container mt-5 mb-5"> <div class="container mt-5 mb-5">
<h1>Rezepte</h1> <h1>Rezepte</h1>

View file

@ -1,4 +1,4 @@
<script src="/bin/settings.js" charset="utf-8"></script> <script src="/js/settings.js" charset="utf-8"></script>
<div class="container mt-5"> <div class="container mt-5">
<h1>Einstellungen</h1> <h1>Einstellungen</h1>
</div> </div>

View file

@ -45,8 +45,8 @@ $user->get_info($_COOKIE["token"]);
} }
?> ?>
<link rel="stylesheet" href="/style/helper.css"> <link rel="stylesheet" href="/style/helper.css">
<script src="/bin/jquery.js"></script> <script src="/js/jquery.js"></script>
<script src="/bin/main.js"></script> <script src="/js/main.js"></script>
<title>Einkaufsliste</title> <title>Einkaufsliste</title>
</head> </head>
@ -100,7 +100,7 @@ $user->get_info($_COOKIE["token"]);
} }
echo "</div>"; echo "</div>";
?> ?>
<script src="bin/bootstrap.bundle.min.js"></script> <script src="js/bootstrap.bundle.min.js"></script>
</body> </body>
</html> </html>

View file

@ -39,7 +39,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style/fontawesome/css/all.css"> <link rel="stylesheet" href="/style/fontawesome/css/all.css">
<link rel="stylesheet" href="/style/main.css"> <link rel="stylesheet" href="/style/main.css">
<script src="/bin/jquery.js"></script> <script src="/js/jquery.js"></script>
</head> </head>
<body> <body>

View file

@ -4,8 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style/fontawesome/css/all.css"> <link rel="stylesheet" href="/style/fontawesome/css/all.css">
<link rel="stylesheet" href="/style/main.css"> <link rel="stylesheet" href="/style/main.css">
<script src="/bin/jquery.js"></script> <script src="/js/jquery.js"></script>
<script src="/bin/adduser.js" charset="utf-8"></script> <script src="/js/adduser.js" charset="utf-8"></script>
<title>Benutzer hinzufügen</title> <title>Benutzer hinzufügen</title>
</head> </head>
<body> <body>

View file

View file

@ -18,9 +18,6 @@ function highlightNewEntry(){
newRow.removeClass($(checkBox).data("color")); newRow.removeClass($(checkBox).data("color"));
newRow.addClass("alert-primary"); newRow.addClass("alert-primary");
setTimeout(function () { setTimeout(function () {
newRow.css({
transition: ".5s"
});
newRow.removeClass("alert-primary"); newRow.removeClass("alert-primary");
newRow.addClass($(checkBox).data("color")); newRow.addClass($(checkBox).data("color"));
}, 1000); }, 1000);

View file

@ -7,3 +7,7 @@
.close_toast { .close_toast {
pointer-events: all; pointer-events: all;
} }
.list-row {
transition: .5s;
}