Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Bruno Braga Chagas brunobc182

🏠
Working from home
Block or report user

Report or block brunobc182

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 utils.js
function getUrlParameter(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
var results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
};
function getCookie(name) {
var value = '; ' + document.cookie;
var parts = value.split('; ' + name + '=');
You can’t perform that action at this time.