Jump to content
View in the app

A better way to browse. Learn more.

Forum Supreme-Elite

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Si vous développez des jeux ou des applications un peu avancées en HTML, JS, CSS et que vous souhaitez apporter un contrôle au clavier un peu évolué, alors je vous invite à jeter un oeil à cette bibliothèque JS qui s'appelle Keypress.

Pour environ 9kb et sans aucune dépendance, vous serez capables de détecter les touches appuyées par l'internaute, soit à la suite, soit sous la forme d'un combo, et de faire réagir votre application en conséquence.

Voici un exemple montrant comment utiliser Keypress pour détecter un combo de touche, puis compter, combien de fois une touche a été appuyée, puis remplir une variable si une séquence de touches (genre Konami code) a été détectée :

keypress.combo("shift s", function() { console.log("You pressed shift and s");

});

// There are also a few other shortcut methods: // If we want to register a counting combo keypress.counting_combo("tab space", function(e, count) { console.log("You've pressed this " + count + " times.");

});

// If you want to register a sequence combo keypress.sequence_combo("up up down down left right left right b a enter", function() { lives = 30; }, true);

Ainsi, vos internautes pourront se déplacer au clavier dans votre appli, lancer des actions avec des raccourcis ou s'éclater sur votre jeu avec toutes les combinaisons des touches possibles.

Si vous souhaitez en savoir plus, Keypress c'est par là.

http://feeds.feedburner.com/~r/KorbensBlog-UpgradeYourMind/~4/QZKGMvGQLlk

Voir l'article complet

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.