Improved .visually-hidden
Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.
| var BrowserDetect = { | |
| init: function() { | |
| this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
| this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; | |
| this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
| }, | |
| searchString: function(data) { | |
| for (var i = 0; i < data.length; i++) { | |
| var dataString = data[i].string; | |
| var dataProp = data[i].prop; |
| #! /usr/bin/env python | |
| from gimpfu import * | |
| import commands | |
| import glob | |
| import os | |
| import string | |
| import subprocess | |
| suffixes = (['diffuse', '_d'], ['specular', '_s'], ['normal', '_n'], ['height', '_h'], \ |
| #!/bin/bash | |
| # Copyright (c) 2015 Calinou | |
| # CC0 1.0 Universal | |
| # <https://creativecommons.org/publicdomain/zero/1.0/> | |
| update() { | |
| for d in "$@"; do | |
| test -d "$d" -a \! -L "$d" || continue | |
| cd "$d" |
| #!/bin/bash | |
| # Copyright (c) 2015 Calinou | |
| # CC0 1.0 Universal | |
| # <https://creativecommons.org/publicdomain/zero/1.0/> | |
| update() { | |
| for d in "$@"; do | |
| test -d "$d" -a \! -L "$d" || continue | |
| cd "$d" |
| #!/bin/sh -x | |
| # This script compiles Godot for GNU/Linux in 64-bit. | |
| # Place this script at the root of your Godot Git clone. | |
| # CC0 1.0 Universal | |
| # Build 64-bit Godot for GNU/Linux desktop, in debug and release mode | |
| scons p=x11 -j$(nproc) verbose=no tools=yes target=release_debug openssl=builtin | |
| scons p=x11 -j$(nproc) verbose=no tools=no target=release_debug openssl=builtin |
| :: This script must be run from a Windows system with the Emscripten SDK | |
| :: installed and configured. 7-Zip and MinGW also need to be installed. | |
| :: Place this script at the root of your Godot Git clone. | |
| :: CC0 1.0 Universal | |
| set threads=%NUMBER_OF_PROCESSORS% | |
| :: Set MinGW path | |
| set PATH=%PROGRAMFILES%\mingw-w64\x86_64-6.2.0-posix-seh-rt_v5-rev0\mingw64\bin\;%PATH% |
| @ECHO OFF | |
| set threads=%NUMBER_OF_PROCESSORS% | |
| call scons platform=android tools=no target=release_debug verbose=no warnings=no progress=no -j%threads% | |
| call scons platform=android tools=no target=release verbose=no warnings=no progress=no -j%threads% | |
| cd platform\android\java\ | |
| call gradlew build |
| #!/bin/sh | |
| set -euo pipefail | |
| # Number of CPU threads to use for building | |
| # Use `./godot_mingw.sh <number of threads>` to specify | |
| THREADS=$1 | |
| # Godot Git clone path | |
| GODOT_PATH="$HOME/Documents/Git/godotengine/godot" |