#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
| /* With default bootstrap breakpoint sizes */ | |
| .pull-left-xs { | |
| float: left; | |
| } | |
| .pull-right-xs { | |
| float: right; | |
| } | |
| .pull-reset-xs { |
| .pull-left, | |
| .pull-left-xs { float: left; } | |
| .pull-right, | |
| .pull-right-xs { float: right; } | |
| .pull-reset, | |
| .pull-reset-xs { float: none; } | |
| @media (min-width: @screen-sm-min) { |
#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
This is not a true Dorling cartogram; it lacks links between adjacent features. Instead of trying to preserve connectedness, this pseudo-cartogram tries to preserve locality, putting each circle as close as possible to its origin without overlapping.
This example uses a custom tween that interpolates the window’s vertical scroll offset.
| input[type=date]::-webkit-inner-spin-button, | |
| input[type=date]::-webkit-outer-spin-button { | |
| -webkit-appearance: none; | |
| margin: 0; | |
| } |
| var http = require('http'); | |
| var port = 9000; | |
| function handleRequest(req, res){ | |
| res.end('I\'m alive'); | |
| } | |
| var server = http.createServer(handleRequest); |
| var gulp = require('gulp'); | |
| var clean = require('gulp-clean'); | |
| var jshint = require('gulp-jshint'); | |
| var concat = require('gulp-concat'); | |
| var uglify = require('gulp-uglify'); | |
| var imagemin = require('gulp-imagemin'); | |
| var bases = { | |
| app: 'app/', |
| <html> | |
| <head></head> | |
| <body> | |
| <script src="https://rawgit.com/mrdoob/three.js/dev/build/three.js"></script> | |
| <script src="script.js"></script> | |
| </body> | |
| </html> |
| // Have a service to show temperature and battery level | |
| // This is only visible when you are connecting to the Puck | |
| var currentTemperature=E.getTemperature().toFixed(2)*100; | |
| console.log("Temp: "+currentTemperature); | |
| NRF.setServices({ | |
| "12411007-877b-4b6e-1d8a036a956a" : { // Health Thermometer | |
| "7e3defd9-1426-068f-d744-fa70603d83ac": { // Temperature |