Skip to content

Instantly share code, notes, and snippets.

View JohnDMathis's full-sized avatar

John Mathis JohnDMathis

  • Leankit
  • Waco, Texas
View GitHub Profile

Purchase Dialog

pages

form 1 -- main

UI elements
	* title
	* body text
	* 3 read-only fields with labels
	* numeric entry for license count
  • 5 external links
@JohnDMathis
JohnDMathis / queryStringToObject.js
Created October 20, 2016 04:47
Convert a query string to object
// convert queryString to params
var params = {};
window.location.search.replace(
new RegExp("([^?=&]+)(=([^&]*))?", "g"),
function(a, key, b, val) {
var num = Number(val);
if( !_.isNaN(num) && _.isNumber(num) ){
val = num;
} else {
if(val==="true") {