This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#################################### | |
# | |
# This script is designed for use with the official Belabox images on the supported Rockchip RK3588 boards | |
# in combination with the SpotPear 4G/5G M.2 modem hats: | |
# https://spotpear.com/index.php/shop/Raspberry-Pi-M.2-4G-5G-GSM-GPRS-EDGE.html | |
# | |
# The Belabox image, at least on the Orange Pi 5 Plus, defaults available GPIO pins to IN with a pullup. | |
# Physical pins 15 and 40 tie to modem POWER and RESET pins with these hats and the defaults will keep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Use PubSub on e.g. jQuery */ | |
PubSub.apply($); | |
function addText(text) { | |
$('body').append('<p>' + text + '</p>'); | |
} | |
function logChange(text) { | |
console.log('new text: ' + text); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
// good javascript | |
(function ($) { | |
'use strict'; | |
$(function () { | |
$('[placeholder]') | |
.focus(function () { | |
var input = $(this); | |
if (input.val() === input.attr('placeholder')) { |