Skip to content

Instantly share code, notes, and snippets.

View hackal's full-sized avatar
🔥

Adam Pavlisin hackal

🔥
View GitHub Profile
Somewhere out there, a child is laughing for the first time.
Someone is falling in love.
Someone is lying on a sunny beach, enjoying the sun.
Someone is standing up for their beliefs.
Someone is solving a problem that has been bothering them for ages.
Someone is Succeeding.
Someone is failing, and learning from it.
Someone is getting a new Job.
Someone is crying.
Someone is dying surrounded by their loved ones.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script
src="https://code.jquery.com/jquery-3.1.1.js"
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
@hackal
hackal / gist:09e2e213194e1ca5ab46
Last active August 29, 2015 14:24
Infinario newsletter form
//requires jQuery
$(document).ready(function(){
$('form').submit(function(event) {
event.preventDefault(); //cancel submit
var input = $(this).find('input');
var val = input.val();
if( validateEmail(val) ) {
<!DOCTYPE html>
<html><head>
<title>LoL</title>
<script type="text/javascript">
window.onload=function(){
var firma = document.getElementById("firma");
firma.value = GetUrlValue('firma');
var sprava = document.getElementById("sprava");