fix: removed unused code
This commit is contained in:
@@ -114,7 +114,7 @@ def sanitize_html(html, macro):
|
|||||||
any broken tags. This makes sures that all those things are fixed
|
any broken tags. This makes sures that all those things are fixed
|
||||||
before passing to the etree parser.
|
before passing to the etree parser.
|
||||||
"""
|
"""
|
||||||
soup = BeautifulSoup(html, features="html5lib")
|
soup = BeautifulSoup(html, features="lxml")
|
||||||
nodes = soup.body.children
|
nodes = soup.body.children
|
||||||
classname = ""
|
classname = ""
|
||||||
if macro == "YouTubeVideo":
|
if macro == "YouTubeVideo":
|
||||||
|
|||||||
@@ -930,14 +930,23 @@ pre {
|
|||||||
|
|
||||||
.search {
|
.search {
|
||||||
background-image: url(/assets/frappe/icons/timeless/search.svg);
|
background-image: url(/assets/frappe/icons/timeless/search.svg);
|
||||||
|
border: none;
|
||||||
|
border-radius: var(--border-radius-md);
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
padding: 0.625rem 0.75rem;
|
||||||
|
height: 36px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
text-indent: 1.5rem;
|
||||||
|
background-position: 1rem 0.7rem;
|
||||||
|
width: 30%;
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-course {
|
||||||
background-position: 1rem;
|
background-position: 1rem;
|
||||||
text-indent: 1rem;
|
text-indent: 1rem;
|
||||||
border: none;
|
|
||||||
border-radius: var(--border-radius-md);
|
|
||||||
font-size: var(--text-base);
|
font-size: var(--text-base);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
height: 36px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1922,41 +1931,6 @@ select {
|
|||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-container {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 10;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
background-color: rgb(0,0,0);
|
|
||||||
background-color: rgba(0,0,0,0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-inner {
|
|
||||||
background: #ffffff;
|
|
||||||
margin: 15% auto 2rem;
|
|
||||||
width: 70%;
|
|
||||||
border-radius: var(--border-radius-md);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.close {
|
|
||||||
color: #aaa;
|
|
||||||
float: right;
|
|
||||||
font-size: 28px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.close:hover,
|
|
||||||
.close:focus {
|
|
||||||
color: black;
|
|
||||||
text-decoration: none;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.result-row {
|
.result-row {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<input class="search" id="search-course" placeholder="{{ _(search_placeholder) or 'Search for courses' }}">
|
<input class="search search-course" id="search-course" placeholder="{{ _(search_placeholder) or 'Search for courses' }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,10 +3,6 @@ frappe.ready(() => {
|
|||||||
search_course(e);
|
search_course(e);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".close-search-empty-state").click((e) => {
|
|
||||||
close_search_empty_state(e);
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#open-search").click((e) => {
|
$("#open-search").click((e) => {
|
||||||
show_search_bar(e);
|
show_search_bar(e);
|
||||||
});
|
});
|
||||||
@@ -57,11 +53,6 @@ const render_course_list = (data) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const close_search_empty_state = (e) => {
|
|
||||||
$(".search-empty-state").addClass("hide");
|
|
||||||
$("#search-course").val("");
|
|
||||||
};
|
|
||||||
|
|
||||||
const show_search_bar = (e) => {
|
const show_search_bar = (e) => {
|
||||||
$("#search-modal").modal("show");
|
$("#search-modal").modal("show");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{% extends "templates/base.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div>Janant</div>
|
|
||||||
<h1>Reder</h1>
|
|
||||||
{% endblock %}
|
|
||||||
Reference in New Issue
Block a user