$(document).ready(function() { // initialize tooltip $("#dyna :input.BidInput").tooltip({ // use single tooltip element for all tips tip: '#dynatip', // tweak the position offset: [10, 2], // use "slide" effect effect: 'slide' // add dynamic plugin }).dynamic( { // customized configuration on bottom edge bottom: { // slide downwards direction: 'down', // bounce back when closed bounce: true } }); }); $(document).ready(function(){ $(".bid_window .delete").click(function(){ $(this).parents(".bid_window").animate({ opacity: 'hide' }, "slow"); }); }); $(document).ready(function(){ $("input.BidInput").numeric(); }); $(document).ready(function(){ // code for one bid window $("#bid_form_1").submit(function() { var boxIDvalue = document.getElementById('boxID').value; var bidValue = document.getElementById('my_bid_' + boxIDvalue).value; var bidIDvalue = document.getElementById('bidID_' + boxIDvalue).value; if(bidValue !== '' && !isNaN(bidValue)) { SetNotValidUserWindow(boxIDvalue); } else { SetInvalidBidWindow(boxIDvalue); } return false; }); }); $(document).ready(function(){ $(".box_alert").colorbox({width:"400", height:"200", iframe:true}); }); function CloseBidWindow(numW) { $("#bid_confirm_0" + numW).animate({ opacity: 'hide' }, "slow"); document.getElementById('my_bid_' + numW).value = ''; } function VerifyBid(numW) { SetNotValidUserWindow(numW); } function SetSuccWindow( bidW,bidValue ) { SetNotValidUserWindow(bidW); } function SetInvalidBidWindow( boxIDvalue ) { $(".bid_window").animate({ opacity: 'hide' }, "slow"); document.getElementById('bid_confirm_0' + boxIDvalue).innerHTML = ''; document.getElementById('bid_confirm_0' + boxIDvalue).innerHTML ='
Enchère Non Valide
'; document.getElementById('my_bid_' + boxIDvalue).value = ''; $("#bid_confirm_0" + boxIDvalue).show("slow"); return false; } function SetNoFundsBidWindow( boxIDvalue ) { SetNotValidUserWindow(boxIDvalue); } function SetNotValidUserWindow( boxIDvalue ) { $(".bid_window").animate({ opacity: 'hide' }, "slow"); document.getElementById('bid_confirm_0' + boxIDvalue).innerHTML = ''; document.getElementById('bid_confirm_0' + boxIDvalue).innerHTML ='
Vous devez être inscrit et connecté pour placer une enchère
Inscrivez-Vous Maintenant Ou Connexion
'; document.getElementById('my_bid_' + boxIDvalue).value = ''; $("#bid_confirm_0" + boxIDvalue).show("slow"); } $(document).ready(function(){ // code for tell a friend script $("#tellafriend").submit(function() { window.open("","iframe1"); document.getElementById( 'tellafriend').target="iframe1"; document.getElementById( 'tellafriend').submit(); return false; }); }); function TellAFriendSucc() { document.getElementById('friend_name').value = ''; document.getElementById('friend_email1').value = ''; document.getElementById('friend_email2').value = ''; document.getElementById('scode').value = ''; document.getElementById('friend_confirmation').innerHTML = ''; document.getElementById('friend_confirmation').innerHTML ="
E-mail envoyé avec succès à votre ami(e).

"; } function TellAFriendErrorBlank() { document.getElementById('friend_confirmation').innerHTML = ''; document.getElementById('friend_confirmation').innerHTML ="
Vous devez remplir tous les champs.

"; } function TellAFriendErrorSCode() { document.getElementById('friend_confirmation').innerHTML = ''; document.getElementById('friend_confirmation').innerHTML ="
Code incorrect. S'il vous plaît essayez de nouveau.

"; } function TellAFriendErrorAlreadyInDB() { document.getElementById('friend_confirmation').innerHTML = ''; document.getElementById('friend_confirmation').innerHTML ="
Cet ami a déjà été notifiée. Vous pouvez envoyer une notification à quelqu’un d’autre.
"; }