$(function(){
        $('.slide-out-div').tabSlideOut({
            tabHandle: '.handle',                     //class of the element that will become your tab
            pathToTabImage: 'images/feedback.png', //path to the image for the tab //Optionally can be set using css
            imageHeight: '122px',                     //height of tab image           //Optionally can be set using css
            imageWidth: '40px',                       //width of tab image            //Optionally can be set using css
            tabLocation: 'right',                      //side of screen where tab lives, top, right, bottom, or left
            speed: 300,                               //speed of animation
            action: 'click',                          //options: 'click' or 'hover', action to trigger animation
            topPos: '200px',                          //position from the top/ use if tabLocation is left or right
            leftPos: '20px',                          //position from left/ use if tabLocation is bottom or top
            fixedPosition: true                      //options: true makes it stick(fixed position) on scroll
        });

    });

$(document).ready(function() {
$('#feedbackButton').click(function() {
								
				$("#type_feedback option:selected").each(function () {
                var _typeFeedback = $(this).text();
				var _pageConcernee = $("#location_feedback").val();
				var _textFeedback  = $("#text_feedback").val();
				
				if(_textFeedback=="") {
				$("#message_feedback").html("Merci de remplir la description du feedback");
				$("#message_feedback").fadeIn();
				} else {
				
				$.post("methods/feedback.post.php" , {typeFeedback:_typeFeedback,pageConcernee:_pageConcernee,textFeedback:_textFeedback} , function(data) {
																									if(data.status==200) {												 																									$("#location_feedback").val("");																							 																									$("#text_feedback").val("");
																									$(".handle").trigger("click");
																									}
																																					 
																																					 },"json");
				}
				});
				
									});

						   });