From 56df34f04996300847219ea253b5f5fae0b8f4f8 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 22 Oct 2013 15:58:41 +0200 Subject: [PATCH] remove unneeded js file --- static/js/homePage.js | 81 ------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 static/js/homePage.js diff --git a/static/js/homePage.js b/static/js/homePage.js deleted file mode 100644 index d66ad0d1..00000000 --- a/static/js/homePage.js +++ /dev/null @@ -1,81 +0,0 @@ -// vim: et:ts=4:sw=4:sts=4:ft=javascript - -'use strict'; - -// FIXME: remove - -pandora.ui.homePage = function() { - - var that = Ox.Element() - .css({padding: '8px'}); - - var $left = $('
') - .css({ - float: 'left', - margin: '8px', - background: 'black' - }) - .html('left') - .appendTo(that.$element), - $center = $('
') - .css({ - float: 'left', - margin: '8px' - }) - .appendTo(that.$element), - $right = $('
') - .css({ - float: 'left', - margin: '8px', - background: 'black' - }) - .html('right') - .appendTo(that.$element), - $logo = $('') - .attr({src: '/static/png/logo.png'}) - .appendTo($center); - // fixme: duplicated - $select = Ox.Select({ - id: 'select', - items: [].concat(pandora.site.findKeys.map(function(key) { - return { - id: key.id, - title: Ox._('Find: {0}', [Ox._(key.title)]) - }; - }), [{}, { - id: 'advanced', - title: Ox._('Find: Advanced') - }]), - overlap: 'right', - width: 112 - }) - $input = Ox.Input({}) - .bindEvent({ - change: function() { - - } - }); - $findElement = Ox.FormElementGroup({ - elements: [$select, $input] - }) - .css({marginTop: '16px'}) - .appendTo($center); - $center = $('
') - .css({marginTop: '16px'}) - .html('center') - .appendTo($center); - - that.resizeElement = function() { - var size = Ox.splitInt(window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1 - 64, 3); - $left.css({width: size[0] + 'px'}); - $center.css({width: size[1] + 'px'}); - $logo.css({width: size[1] + 'px'}); - $input.options({width: size[1] - 112}); - $right.css({width: size[2] + 'px'}); - }; - - that.resizeElement(); - - return that; - -}