apps/camera/js/filmstrip.js
/*
   * With a time, show the filmstrip and then hide it after the time is up.
   * Without time, show until hidden.
   * Tapping in the camera toggles it. And if toggled on, it will be on
   * without a timer.
   * It is always on when a preview is shown.
   * After recording a photo or video, it is shown for 5 seconds.
   * And it is also shown for 5 seconds after leaving preview mode.
   */
With a time, show the filmstrip and then hide it after the time is up.
Without time, show until hidden.
Tapping in the camera toggles it. And if toggled on, it will be on
without a timer.
It is always on when a preview is shown.
After recording a photo or video, it is shown for 5 seconds.
And it is also shown for 5 seconds after leaving preview mode.
With a time show the filmstrip and then hide it after the time is up . Without time show until hidden . Tapping in the camera toggles it . And if toggled on it will be on without a timer . It is always on when a preview is shown . After recording a photo or video it is shown for 5 seconds . And it is also shown for 5 seconds after leaving preview mode .
function show(time) {
    document.body.classList.remove('filmstriphidden');
    if (hideTimer) {
      clearTimeout(hideTimer);
      hideTimer = null;
    }
    if (time)
      hideTimer = setTimeout(hide, time);
  }
function show ( time ) { document . body . classList . remove ( 'filmstriphidden' ) ; if ( hideTimer ) { clearTimeout ( hideTimer ) ; hideTimer = null ; } if ( time ) hideTimer = setTimeout ( hide , time ) ; }
With a time, show the filmstrip and then hide it after the time is up.
With a time show the filmstrip and then hide it after the time is up .