Skip to content

Instantly share code, notes, and snippets.

View john's full-sized avatar

John McGrath john

View GitHub Profile
@john
john / mobile_image_capture.html
Created April 7, 2023 20:22
Mobile web page to take photos and upload to an API
<!doctype html>
<html lang="en" data-bs-theme="auto">
<head>
<script src="https://getbootstrap.com/docs/5.3/assets/js/color-modes.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
@john
john / add2home.sass
Created November 28, 2012 16:54
CSS from http://cubiq.org/add-to-home-screen, converted to sass
#addToHomeScreen /* Main container */
z-index: 9999
-webkit-user-select: none
-webkit-box-sizing: border-box
width: 240px
font-size: 15px
padding: 12px 14px
text-align: left
font-family: helvetica
background-image: -webkit-gradient(linear,0 0,0 100%,color-stop(0,#fff),color-stop(0.02,#eee),color-stop(0.98,#ccc),color-stop(1,#a3a3a3))