]> jfr.im git - z_archive/KronOS.git/commitdiff
Adding default-background for the desktop
authorConny Sjöblom <redacted>
Thu, 11 Oct 2012 13:04:56 +0000 (16:04 +0300)
committerConny Sjöblom <redacted>
Thu, 11 Oct 2012 13:04:56 +0000 (16:04 +0300)
video/application/models/user.php
video/public/img/default-background.jpg [new file with mode: 0644]
video/public/js/application.js

index 0fe9c37218484419f151503482a737e3e1149038..bf36639a8e991ec4904e3ec80991227b5fef50d7 100644 (file)
@@ -6,7 +6,7 @@ class User extends CI_Model {
 
        public function __construct() {
                # Required
-        parent::__construct();
+               parent::__construct();
        }
 
        public function check_login() {
diff --git a/video/public/img/default-background.jpg b/video/public/img/default-background.jpg
new file mode 100644 (file)
index 0000000..c801011
Binary files /dev/null and b/video/public/img/default-background.jpg differ
index c37e6de691c55a24ecd035ce70e3cd8b51107203..894afc16b8ab44ac7e2c5a65d21ecc3b7a6156eb 100644 (file)
@@ -6,10 +6,16 @@ function loadDefaults() {
                        loadLoginModal();
                } else {
                        loadMenu();
+                       loadBackground();
                }
        });
 }
 
+function loadBackground() {
+       background = '<style>body { background-image:url(\'/public/img/default-background.jpg\'); background-position: center top; } </style>'
+       jQuery('body').append(background);
+}
+
 function loadLoginModal() {
        jQuery.ajax({
                url: "/backend/login_modal",