-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
suyog ojha
committed
Nov 14, 2022
1 parent
90d5fa7
commit 67c4c9d
Showing
7 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/css/alertify.min.css"/> | ||
<!-- Default theme --> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/css/themes/default.min.css"/> | ||
|
||
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"> | ||
<link rel="stylesheet" href="{% static 'css/custom.css' %}"> | ||
|
@@ -29,7 +29,7 @@ | |
text-decoration: none; | ||
} | ||
.product-viewtag{ | ||
background-color: red; | ||
background-color: rgb(227, 1, 1); | ||
color: aliceblue; | ||
font-size: 11px; | ||
line-height: 1; | ||
|
@@ -78,8 +78,11 @@ | |
<script src="{% static '/js/custom.js' %}" ></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script> | ||
|
||
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script> | ||
|
||
<!-- alertifyjs/ --> | ||
|
||
|
||
<script src="//cdn.jsdelivr.net/npm/[email protected]/build/alertify.min.js"></script> | ||
<script> | ||
|
||
|
@@ -90,6 +93,25 @@ | |
{% endfor %} | ||
</script> | ||
|
||
<script> | ||
var availableTags = []; | ||
$.ajax({ | ||
method: "GET", | ||
url: "/product-list", | ||
success: function (response){ | ||
startAutocomplete(response) | ||
} | ||
}); | ||
function startAutocomplete(availableTags) | ||
{ | ||
$( "#searchproduct" ).autocomplete({ | ||
source: availableTags | ||
}); | ||
} | ||
|
||
|
||
</script> | ||
|
||
{% block scripts %} | ||
|
||
{% endblock scripts %} | ||
|
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
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