javascript: capture CTRL+S
2019-04-05
IN1, 2019-04-05 00:00:00
IN1, 2023-04-10 14:16:30


A cross-browser method to capture key combination CTRL+S with native JavaScript.

$(window).bind('keydown', function(event) {

    if (event.ctrlKey || event.metaKey) {

        switch (String.fromCharCode(event.which).toLowerCase()) {

            case 's':
                event.preventDefault();
                console.log('capture: CTRL+S');

                // do your stuff...

                break;
        }
    }
});
[…]

google.de: Währungsumrechner | Wechelkurs
2019-03-07
IN1, 2019-03-07 00:00:00
IN1, 2023-04-13 16:21:17


Es ist möglich google.de zu nutzen um Währungs-Wechselkurse abzufragen. Nachfolgend Beispiele mit bash und php.

bash / CLI

abfrage Wechselkurs von USD zu EUR (1 USD = x EUR)

curl -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" -s https://www.google.de/search?q=usd+eur | grep -oP 'data-exchange-rate="\K[^"]+'

liefert bspw.: […]



This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".