Skip to content

Instantly share code, notes, and snippets.

View davidverhage's full-sized avatar

Monoquo davidverhage

View GitHub Profile
@davidverhage
davidverhage / change-class-on-scroll.html
Created January 25, 2018 09:44 — forked from ohiosveryown/change-class-on-scroll.html
Vanilla JS – change/add class based on scroll position.
<div id="header"></div>
<style>
#header {
position: fixed;
background: pink;
height: 72px;
width: 100%;
opacity: 0.2;
transition: all 300ms ease;
@davidverhage
davidverhage / chat.php
Last active September 14, 2015 19:32 — forked from iGusev/chat.php
php-chat
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<meta http-equiv="refresh" content="2">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
.chat-body {
margin-bottom: 10px;