Skip to content

Instantly share code, notes, and snippets.

View rebelchris's full-sized avatar
🏠
Working from home

Chris Bongers rebelchris

🏠
Working from home
View GitHub Profile
@rebelchris
rebelchris / index.html
Created December 26, 2020 15:02
No div playground save to firebase
<html>
<head>
<meta charset="UTF-8" />
<title>No-div playground</title>
<meta name="description" content="A cool no-div playground" />
<meta name="author" content="Daily Dev Tips" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
.container {
@rebelchris
rebelchris / index.html
Created December 26, 2020 14:39
No div playground
<html>
<head>
<meta charset="UTF-8" />
<title>No-div playground</title>
<meta name="description" content="A cool no-div playground" />
<meta name="author" content="Daily Dev Tips" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
.container {
@rebelchris
rebelchris / index.html
Created December 26, 2020 14:38
No div playground
<html>
<head>
<meta charset="UTF-8" />
<title>No-div playground</title>
<meta name="description" content="A cool no-div playground" />
<meta name="author" content="Daily Dev Tips" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
.container {
@rebelchris
rebelchris / index.html
Last active December 31, 2020 16:32
Daily Dev Tips HTML5 Boilerplate
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Daily Dev Tips Boilerplate</title>
<meta name="description" content="Basic HTML boilerplate">
<meta name="author" content="Daily Dev Tips">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css">
@rebelchris
rebelchris / toggleAttribute.js
Created July 13, 2020 14:01
toggleAttribute PolyFill
if (!Element.prototype.toggleAttribute) {
Element.prototype.toggleAttribute = function(name, force) {
if(force !== void 0) force = !!force
if (this.hasAttribute(name)) {
if (force) return true;
this.removeAttribute(name);
return false;
}