Skip to content

Instantly share code, notes, and snippets.

View datene's full-sized avatar

Lars Böhm datene

View GitHub Profile
$(function(){
$(".banner > form").on("submit", function(e){
e.preventDefault();
var keyword = $("#keyword").val();
changePicture(keyword);
});
function changePicture(keyword) {
var url = "http://api.giphy.com/v1/gifs/random?tag=" + keyword + "&api_key=dc6zaTOxFJmzC";
@datene
datene / clearbit_api_with_auth.js
Created November 2, 2017 16:55
Clearbit API with fetch and authentication
const clearBitForm = document.getElementById('clearbit-form');
clearBitForm.addEventListener('submit', (event) => {
event.preventDefault();
let email = document.getElementById('email');
callClearBit(email.value)
})
@datene
datene / tab.html
Last active December 13, 2017 16:13
tab_js_and_html
<div class="tabs">
<a href="#" class="tab active" data-target="world">
World
</a>
<a href="#" class="tab" data-target="goodbye">
Goodbye
</a>
<a href="#" class="tab" data-target="tree">
Tree
</a>
@datene
datene / index.html
Created September 3, 2020 06:47
Link animation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Document</title>
</head>
<body>
<div class="button-container">
@datene
datene / _stars.css
Created September 18, 2020 12:23
Stars for simple_form
.stars {
display: inline-flex;
width: fit-content;
}
.stars input {
display: none;
}
.stars label {