Skip to content

Instantly share code, notes, and snippets.

@marcop135
marcop135 / index.html
Last active October 10, 2022 15:05
Bootstrap 5 starter
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
</head>
<body>
@marcop135
marcop135 / index.html
Created June 6, 2022 07:58
Redirection via meta and javascript
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv = "refresh" content = "1; url = https://example.com" />
</head>
<body>
<script>
window.location.href = 'https://example.com';
</script>
@marcop135
marcop135 / index.html
Last active February 9, 2022 15:42
BS5 + FA4 + Vue3 CSS/JS minified/concatened HTML template via JSDelivr CDN (add SRI and crossorigin in production)
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HMTL template</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/combine/npm/bootstrap@5/dist/css/bootstrap.min.css,npm/font-awesome@4/css/font-awesome.min.css">
</head>
<body>
<div class="container">
@marcop135
marcop135 / git-commit-emoji.md
Last active April 30, 2021 14:15
Git commit categories in emoji
View git-commit-emoji.md

chore = 🔧

enhancement =

bugfix = 🐛

...

@marcop135
marcop135 / index.html
Last active April 15, 2021 10:50
Find global object available in any JS environments (web browsers, Node.js, web workers, etc.) — or use globalThis
View index.html
<!doctype html>
<html>
<head>
<title>What's the global object available?</title>
<script>
var getGlobal = function () {
if (typeof window !== 'undefined') {
return window; // Client-side JavaScript
}
@marcop135
marcop135 / index.html
Last active December 14, 2022 15:40
bullframe.css 4 starter
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HMTL template</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- bullframe.css framework https://github.com/marcop135/bullframe.css -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bullframe.css@4/dist/css/bullframe.min.css">
</head>
<body>
@marcop135
marcop135 / index.html
Last active September 6, 2022 21:42
bullframe.css classless system default theme HTML template
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HMTL template</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bullframe.css/dist/css/bullframe-classless-dark-prefers.min.css">
</head>
<body>
<div class="bf-container">
@marcop135
marcop135 / index.html
Last active May 3, 2021 10:31
[legacy] bullframe.css light/dark HTML template via CDN (add SRI and crossorigin in production)
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>HMTL template</title>
<!-- light -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bullframe.css@3/dist/css/bullframe.min.css">
<!-- dark
@marcop135
marcop135 / index.html
Last active May 10, 2021 08:01
[fast] jQuery Slim, BS 5 and Vue.js 2 minified/contatened HTML template via CDN (add SRI and crossorigin in production)
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HMTL template</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container">
@marcop135
marcop135 / index.html
Last active February 9, 2022 15:42
BS5 + FA4 + Vue2 CSS/JS minified/concatened HTML template via JSDelivr CDN (add SRI and crossorigin in production)
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HMTL template</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/combine/npm/bootstrap@5/dist/css/bootstrap.min.css,npm/font-awesome@4/css/font-awesome.min.css">
</head>
<body>
<div class="container">