Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apiresult #103

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cosmos_search/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
SECRET_KEY = config('SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = config('DEBUG', cast=bool)
# DEBUG = config('DEBUG', cast=bool)
DEBUG = True

ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())

Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ smmap2==2.0.3
urllib3==1.22
pep8==1.7.1
python-decouple==3.1
wikiapi
google-api-python-client
beautifulsoup4

35 changes: 33 additions & 2 deletions search/templates/cosmos/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!doctype html>
{% load static %}
<html lang="en">

Expand Down Expand Up @@ -52,7 +52,26 @@
line-height: 1.2 !important;
}

.stylish-input-group .input-group-addon {

#myDIV {
width: 100%;
padding: 50px 0;
text-align: center;
background-color: floralwhite;
margin-top: 20px;
display: none !important;
}
.ff {
display: block !important;
}
.hd{
display: none !important;
}

.stylish-input-group .input-group-addon{



background: white !important;
}

Expand All @@ -72,7 +91,19 @@
border-width: 2px;
border-color: grey;
}

.bootstrap-iso .form-control{border-width: 2px; border-color: grey;}


</style>
<script>
jQuery(function(){
jQuery('class of view button').click(function(){
jQuery('#myDIV').removeClass(' hd ');
jQuery('#myDIV').addClass(' ff ');

})
</script>
{% block style %}
{% endblock %}

Expand Down
Loading