summaryrefslogtreecommitdiff
path: root/chimere_example_project/static/chimere
diff options
context:
space:
mode:
Diffstat (limited to 'chimere_example_project/static/chimere')
-rw-r--r--chimere_example_project/static/chimere/css/form-compat.css69
-rw-r--r--chimere_example_project/static/chimere/img/layer-switcher-maximize.pngbin0 -> 1433 bytes
-rw-r--r--chimere_example_project/static/chimere/img/logo.jpgbin0 -> 25981 bytes
-rwxr-xr-xchimere_example_project/static/chimere/img/minus.pngbin0 -> 236 bytes
-rwxr-xr-xchimere_example_project/static/chimere/img/plus.pngbin0 -> 528 bytes
-rw-r--r--chimere_example_project/static/chimere/js/interface.js73
6 files changed, 142 insertions, 0 deletions
diff --git a/chimere_example_project/static/chimere/css/form-compat.css b/chimere_example_project/static/chimere/css/form-compat.css
new file mode 100644
index 0000000..f83672f
--- /dev/null
+++ b/chimere_example_project/static/chimere/css/form-compat.css
@@ -0,0 +1,69 @@
+input:-moz-placeholder {
+ color: #999999;
+}
+
+input::-moz-placeholder {
+ color: #999999;
+}
+
+input:-ms-input-placeholder {
+ color: #999999;
+}
+
+input::-webkit-input-placeholder {
+ color: #999999;
+}
+
+textarea,
+input {
+ display: block;
+ font-size: 14px;
+ line-height: 1.428571429;
+ color: #555555;
+ vertical-align: middle;
+ background-color: #ffffff;
+ border: 1px solid #cccccc;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
+}
+
+input{
+ padding: 6px 12px;
+}
+
+textarea:focus,
+input:focus {
+ border-color: #81cf57;
+ outline: 0;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
+}
+
+input[disabled],
+input[readonly],
+fieldset[disabled] input {
+ cursor: not-allowed;
+ background-color: #eeeeee;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+ display: inline;
+}
+
+.alert-error {
+ color: #b94a48;
+ background-color: #f2dede;
+ border-color: #eed3d7;
+}
+
+.alert-error hr {
+ border-top-color: #e6c1c7;
+}
+
+.alert-error .alert-link {
+ color: #953b39;
+}
diff --git a/chimere_example_project/static/chimere/img/layer-switcher-maximize.png b/chimere_example_project/static/chimere/img/layer-switcher-maximize.png
new file mode 100644
index 0000000..326f243
--- /dev/null
+++ b/chimere_example_project/static/chimere/img/layer-switcher-maximize.png
Binary files differ
diff --git a/chimere_example_project/static/chimere/img/logo.jpg b/chimere_example_project/static/chimere/img/logo.jpg
new file mode 100644
index 0000000..cc2ff36
--- /dev/null
+++ b/chimere_example_project/static/chimere/img/logo.jpg
Binary files differ
diff --git a/chimere_example_project/static/chimere/img/minus.png b/chimere_example_project/static/chimere/img/minus.png
new file mode 100755
index 0000000..e8ebf51
--- /dev/null
+++ b/chimere_example_project/static/chimere/img/minus.png
Binary files differ
diff --git a/chimere_example_project/static/chimere/img/plus.png b/chimere_example_project/static/chimere/img/plus.png
new file mode 100755
index 0000000..b26a6f9
--- /dev/null
+++ b/chimere_example_project/static/chimere/img/plus.png
Binary files differ
diff --git a/chimere_example_project/static/chimere/js/interface.js b/chimere_example_project/static/chimere/js/interface.js
new file mode 100644
index 0000000..c0c00bf
--- /dev/null
+++ b/chimere_example_project/static/chimere/js/interface.js
@@ -0,0 +1,73 @@
+$(function(){
+
+ if (has_search){
+ $('a[href=#categories]').click(function(){
+ show_panel(display_categories);
+ });
+ $('a[href=#search-box]').click(function(){
+ show_panel(display_search);
+ });
+ $('a[href=#search-box]').click();
+ } else {
+ $("#categories").fadeIn();
+ }
+ highlight_selected_categories();
+ $('.subcategory label').click(highlight_selected_categories);
+ $('#categories-lnk, #search-lnk').click(function(){
+ if($('.navbar-toggle').css('display') !='none'){
+ $(".navbar-toggle").click();
+ }
+ });
+ $('#hide-panel').click(hide_panel);
+ $('#show-panel').click(show_panel);
+ $('#close-detail').click(function(){
+ $('#detail').fadeOut();
+ });
+});
+
+function display_categories(){
+ $('a[href=#categories]').parent().parent().children().removeClass('active');
+ $('a[href=#categories]').parent().addClass('active');
+ $("#search-box").fadeOut(400,
+ function(){ $("#categories").fadeIn(); });
+}
+
+function display_search(){
+ $('a[href=#search-box]').parent().parent().children().removeClass('active');
+ $('a[href=#search-box]').parent().addClass('active');
+ $("#categories").fadeOut(400,
+ function(){ $("#search-box").fadeIn(); $('#id_q').focus(); });
+}
+
+function show_panel(fct){
+ if(!fct) fct = function(){};
+ if($('#panel').css('display') == 'none'){
+ $('#show-panel').fadeOut(200, function(){
+ $('#hide-panel').fadeIn(500);
+ $("#panel").fadeIn(500);
+ $("#panel").fadeIn(500, fct);
+ });
+ } else {
+ fct();
+ }
+}
+
+function hide_panel(){
+ if($('#panel').css('display') != 'none'){
+ $('#hide-panel').fadeOut(500);
+ $("#panel").fadeOut(500, function(){
+ $('#show-panel').fadeIn();
+ });
+ }
+}
+
+function highlight_selected_categories(){
+ $('.subcategory input').each(function(){
+ var lbl = $(this).parent();
+ if($(this).is(':checked')){
+ lbl.addClass('selected');
+ }else{
+ lbl.removeClass('selected');
+ }
+ });
+}