Last active
December 15, 2015 18:39
-
-
Save shane-reaume/5305041 to your computer and use it in GitHub Desktop.
Remove attributes then add with mouse or click
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$('form.ProductReviewForm').attr('action', '') | |
.attr('method', ''); | |
$(".demo").remove(); | |
$(document).ready(function() { | |
$('#TopMenu').css({ | |
'border-radius':'0 0 5px 5px' | |
,'box-shadow':'2px 2px 3px #999999' | |
}); | |
$('#Menu').css({ | |
'border-radius':'5px' | |
,'box-shadow':'2px 2px 3px #999999' | |
}); | |
}); | |
$(document).bind( "mousemove keypress", function () { | |
$('form.ProductReviewForm').attr('action', 'http://www.diabeteshealthsupplies.com/postreview.php') | |
.attr('method', 'post'); | |
}); | |
// NEW VERSION -change to preferred on() over bind() and set as hover. Also narrow content to form over document | |
$('#rating_box').on( "hover", function () { | |
$(this).attr('action', 'http://www.diabeteshealthsupplies.com/postreview.php') | |
.attr('method', 'post'); | |
}); | |
/* | |
$( "#draggable" ).draggable(); | |
$( "#droppable" ).droppable({ | |
drop: function( event, ui ) { | |
$(".Submit").prepend('<input type="submit" value="Save My Review">'); | |
$('form.ProductReviewForm').attr('action', 'http://www.diabeteshealthsupplies.com/postreview.php') | |
.attr('method', 'post'); | |
$("#draggable").empty().remove(); | |
$("#draggable p").css({'visibility':'hidden'}); | |
$("#droppable p").css({'visibility':'hidden'}); | |
$("#drag_comment").html('<h2 style="margin-right: 10px;">You are Human! Now you can save the review,<br> have a great day!</h2>'); | |
$("#droppable").empty().remove(); | |
} | |
});*/ | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment