Team:CIDEB-UANL Mexico/java2

From 2013hs.igem.org

(Difference between revisions)
(Created page with "<html> <script type="text/javascript"> (function($) { jQuery.fn.reverse = Array.prototype.reverse; var temp = {}, aux = { // sets the panels bg image & position se...")
Line 11: Line 11:
setPanelBackground : function( bgimage, $panels, panelWidth ) {
setPanelBackground : function( bgimage, $panels, panelWidth ) {
$panels.css({  
$panels.css({  
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/3/3a/Default-2106.jpg')'
}).each(function(i) {
}).each(function(i) {
$(this).css('background-position', ( - i * panelWidth )  + 'px 0px');
$(this).css('background-position', ( - i * panelWidth )  + 'px 0px');
Line 86: Line 86:
$panelBg.css({  
$panelBg.css({  
'left' : '0px',
'left' : '0px',
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/b/b0/Menu1-2106.jpg')'
}).each(function(i) {
}).each(function(i) {
$(this).css('background-position', ( - i * panelWidth )  + 'px 0px');
$(this).css('background-position', ( - i * panelWidth )  + 'px 0px');
Line 105: Line 105:
$panelBg.css({  
$panelBg.css({  
'left' : '0px',
'left' : '0px',
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/c/c7/Menu2-2106.JPG')'
}).each(function(i) {
}).each(function(i) {
$(this).hide()
$(this).hide()
Line 152: Line 152:
$elems.css({  
$elems.css({  
'left' : '0px',
'left' : '0px',
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/0/07/Menu3-2106.jpg')'
}).each(function(i) {
}).each(function(i) {
var $thePanelBg = $(this).hide();
var $thePanelBg = $(this).hide();
Line 221: Line 221:
$elems.css({
$elems.css({
'left' : dir * panelWidth + 'px',
'left' : dir * panelWidth + 'px',
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/d/d0/4.jpg')'
}).each(function(i) {
}).each(function(i) {
var $thePanelBg = $(this);
var $thePanelBg = $(this);
Line 257: Line 257:
$panelBg.css({
$panelBg.css({
'top' : dir * settings.height + 'px',
'top' : dir * settings.height + 'px',
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/a/a7/Menu5-2106.jpg')'
}).each(function(i) {
}).each(function(i) {
$(this).css('background-position', ( - i * panelWidth )  + 'px 0px')
$(this).css('background-position', ( - i * panelWidth )  + 'px 0px')
Line 291: Line 291:
$elems.css({
$elems.css({
'top' : dir * settings.height + 'px',
'top' : dir * settings.height + 'px',
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/3/3e/Menu6-2106.jpg')'
}).each(function(i) {
}).each(function(i) {
var $thePanelBg = $(this);
var $thePanelBg = $(this);
Line 326: Line 326:
// and also the bg image
// and also the bg image
$panelBg.css({
$panelBg.css({
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/f/fe/7.jpg')'
}).each(function(i) {
}).each(function(i) {
if( i % 2 === 0 )
if( i % 2 === 0 )
Line 366: Line 366:
$elems.css({
$elems.css({
'top' : dir * settings.height + 'px',
'top' : dir * settings.height + 'px',
-
'background-image' : 'url(' + bgimage + ')'
+
'background-image' : 'url('https://static.igem.org/mediawiki/2013hs/4/45/Menu8-2106.jpg')'
}).each(function(i) {
}).each(function(i) {
var $thePanelBg = $(this);
var $thePanelBg = $(this);

Revision as of 20:30, 20 June 2013