Skip to content

Instantly share code, notes, and snippets.


Melanie Seifert melanieseifert

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 /
Last active Dec 4, 2020
Disable HTML form input autocomplete and autofill

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 / 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 -
* modified script from Nico Hagenburger:
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
oomlaut / parseQuerystring.jquery.js
Created Jul 23, 2011
Parse the querystring with jQuery, returning an object containing index/value pairs
View parseQuerystring.jquery.js
parseQuerystring: function(){
var nvpair = {};
var qs ='?', '');
var pairs = qs.split('&');
$.each(pairs, function(i, v){
var pair = v.split('=');
nvpair[pair[0]] = pair[1];
return nvpair;
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
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.