Skip to content

Instantly share code, notes, and snippets.

Melanie Seifert melanieseifert

Block or report user

Report or block melanieseifert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View checkout_starter.js
purchase_order = {
'type': 'purchase_order' ,
'secure_hash': 'b31c890a5e57c07666bd0ba0f104634f4edb0fed46cf66a2d67396a398898af3',
'pr_data': {
"merchant_id": "9a8e58eae43d01fd162d3c879f264d4d",
"currency": "USD",
"amount_cents": 2714,
"shipping_cents": 123,
"tax_cents": 123,
"finalize_on_create": true,
@niksumeiko
niksumeiko / disable-html-form-input-autocomplete-autofill.md
Last active Nov 11, 2019
Disable HTML form input autocomplete and autofill
View disable-html-form-input-autocomplete-autofill.md

Disable HTML Form Input Autocomplete and Autofill

  1. Add autocomplete="off" onto <form> element;
  2. Add hidden <input> with autocomplete="false" as a first children element of the form.
<form autocomplete="off" method="post" action="">
    <input autocomplete="false" name="hidden" type="text" style="display:none;">
    ...
@jonraasch
jonraasch / input-placeholder.js
Created Jun 7, 2012
HTML5 placeholder fallback that handles passwords (jquery)
View input-placeholder.js
/* JS fallback for HTML5 placeholder
* requires jQuery and Modernizr (to detect support)
* by Jon Raasch - @jonraasch - http://jonraasch.com/
* modified script from Nico Hagenburger: http://bit.ly/LgrkT0
*/
if(!Modernizr.input.placeholder){
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
@oomlaut
oomlaut / parseQuerystring.jquery.js
Created Jul 23, 2011
Parse the querystring with jQuery, returning an object containing index/value pairs
View parseQuerystring.jquery.js
jQuery.extend({
parseQuerystring: function(){
var nvpair = {};
var qs = window.location.search.replace('?', '');
var pairs = qs.split('&');
$.each(pairs, function(i, v){
var pair = v.split('=');
nvpair[pair[0]] = pair[1];
});
return nvpair;
@boazsender
boazsender / modified-x-axis-intervals-and-labels.js
Created Jun 21, 2010
Raphael line chart with custom x-axis labels demo
View modified-x-axis-intervals-and-labels.js
//based on the source of http://g.raphaeljs.com/linechart.html
var options = {
axis: "0 0 1 1", // Where to put the labels (trbl)
axisxstep: 16 // How many x interval labels to render (axisystep does the same for the y axis)
};
document.addEventListener('DOMContentLoaded', function () {
// Make the raphael object
You can’t perform that action at this time.