diff options
| author | 2012-11-05 21:40:58 +0100 | |
|---|---|---|
| committer | 2012-11-05 21:40:58 +0100 | |
| commit | 209fb252dcce8b69d05f796a914beb0e0bb7f9eb (patch) | |
| tree | 90b5e72a280f5bae15e4d7895f4f6fc9adb34fce /public | |
| parent | 33e47c5ac4cb622b51b0b23c7cad03d91ca1e26c (diff) | |
Fix issue #4 : ajout des retours utilisateur
Diffstat (limited to 'public')
| -rw-r--r-- | public/data/Configuration.array.php | 17 | ||||
| -rw-r--r-- | public/scripts/notification.js | 17 | ||||
| -rw-r--r-- | public/theme/base.css | 38 |
3 files changed, 55 insertions, 17 deletions
diff --git a/public/data/Configuration.array.php b/public/data/Configuration.array.php index 57e1710c5..b3d9bbc7f 100644 --- a/public/data/Configuration.array.php +++ b/public/data/Configuration.array.php @@ -1,18 +1 @@ <?php -return array ( - 'posts_per_page' => 10, - 'default_view' => 'all', - 'display_posts' => 'no', - 'sort_order' => 'low_to_high', - 'old_entries' => 3, - 'shortcuts' => array ( - 'mark_read' => 'r', - 'mark_favorite' => 'f', - 'go_website' => 'space', - 'next_entry' => 'page_down', - 'prev_entry' => 'page_up', - 'next_page' => 'right', - 'prev_page' => 'left', - ), - 'mail_login' => '', -); diff --git a/public/scripts/notification.js b/public/scripts/notification.js new file mode 100644 index 000000000..a3a874c12 --- /dev/null +++ b/public/scripts/notification.js @@ -0,0 +1,17 @@ +function closeNotification () { + $("#notification").slideUp (200, function () { + $("#notification").remove (); + }); +} + +$(document).ready (function () { + notif = $("#notification"); + if (notif[0] !== undefined) { + timer = setInterval('closeNotification()', 5000); + + notif.find ("a.close").click (function () { + closeNotification (); + return false; + }); + } +}); diff --git a/public/theme/base.css b/public/theme/base.css index fa9c8fc72..24c4f371b 100644 --- a/public/theme/base.css +++ b/public/theme/base.css @@ -336,3 +336,41 @@ form { display: block; color: #F09600; } + +/*** NOTIFICATION ***/ +#notification { + position: fixed; + bottom: 0; + left: 25%; + width: 50%; + height: 50px; + padding: 0 50px; + line-height: 50px; + text-align: center; + border-radius: 5px 5px 0 0; + box-shadow: 0 0 3px #666; + background: #ddd; + color: #fff; + font-weight: bold; +} + #notification.good { + background: #8FD900; + } + #notification.bad { + background: #FF3300; + } + #notification a.close { + display: inline-block; + width: 25px; + height: 25px; + float: right; + margin: -10px -60px 0 0; + background: #fff; + border-radius: 50px; + border: 1px solid #aaa; + line-height: 25px; + color: #666; + } + #notification a.close:hover { + text-decoration: none; + } |
