Visar taggade frågor: Visa alla frågor

Why is it asking for progress from the script that will apply it works fine on chrome and no progress is visible on firefox

Why is it asking for progress from the script that will apply it works fine on chrome and no progress is visible on firefox <div class="ossn-videos-add-button"> … (läs mer)

Why is it asking for progress from the script that will apply it works fine on chrome and no progress is visible on firefox

<div class="ossn-videos-add-button">
  <input type="file" name="ossnvideo[]" multiple class="hidden" id="add" accept="video/mp4" />
  <input type="hidden" id="mytext" name="mytext">
  <button type="button" id="ossn-videos-add-button-inner" class="btn btn-default"><i class="fa fa-copy"></i> <?php echo ossn_print('video:select'); ?></button>
  <div class="images"><i class="fa fa-video"></i> <span class="count">0</span></div>
</div>

<input type="submit" class="ossn-hidden" id="ossn-videos-submit" />

<img id="thumbnail" />
<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
    0%
  </div>
</div>

<script>
  var input = document.getElementById('add');
  var submitButton = document.getElementById('ossn-videos-submit');
  var img = document.getElementById('thumbnail');
  var progressBar = document.querySelector('.progress-bar');

  input.addEventListener('change', function (event) {
    var file = this.files[0];
    var url = URL.createObjectURL(file);

    if (file.type === 'video/mp4') {
      createThumbnail(url, img, file);
    } else {
      // Unsupported file type
      img.src = '';
      progressBar.style.width = '0%';
      progressBar.setAttribute('aria-valuenow', '0');
      progressBar.textContent = '0%';
    }
  });

  submitButton.addEventListener('click', function () {
    // Create a new FormData object
    var formData = new FormData();
    formData.append('ossnvideo[]', input.files[0]);
    formData.append('thumbnail', img.src); // Add the thumbnail to the form data

    // Create a new XMLHttpRequest object
    var xhr = new XMLHttpRequest();

    // Set up the progress event listener
    xhr.upload.addEventListener('progress', function (event) {
      if (event.lengthComputable) {
        var percentComplete = (event.loaded / event.total) * 100;
        progressBar.style.width = percentComplete + '%';
        progressBar.setAttribute('aria-valuenow', Math.round(percentComplete));
        progressBar.textContent = Math.round(percentComplete) + '%';
      }
    });

    // Set up the load event listener
    xhr.addEventListener('load', function () {
      if (xhr.status === 200) {
        console.log('File uploaded successfully');
      } else {
        console.error('Error uploading file');
      }
    });

    // Open the request and send the form data
    xhr.open('POST', 'your-upload-script.php', true);
    xhr.send(formData);
  });

  function createThumbnail(videoUrl, targetImg, file) {
    var video = document.createElement('video');
    video.preload = 'metadata';
    video.src = videoUrl;

    video.addEventListener('loadedmetadata', function () {
      var canvas = document.createElement('canvas');
      canvas.width = 150;
      canvas.height = 280;
      var context = canvas.getContext('2d');

      // Set the video's current time to the middle of the video
      video.currentTime = video.duration / 2;

      video.addEventListener('canplaythrough', function () {
        context.drawImage(video, 0, 0, canvas.width, canvas.height);
        targetImg.src = canvas.toDataURL('image/png', 0.8);
        document.getElementById("mytext").value = targetImg.src;
      });
    });
  }
</script>

Frågat av Georgy Shindarov 3 timmar sedan

Senaste svar av TyDraniu 2 timmar sedan

private browser tag block cookie banner

Hello support. Since your last update, the "Allow cookie" popup is no longer displayed in the Firefox incognito tab on our site which leads to all functions being blocked… (läs mer)

Hello support. Since your last update, the "Allow cookie" popup is no longer displayed in the Firefox incognito tab on our site which leads to all functions being blocked. We have tried to identify the problem, but on different computers with the same (current) version of Firefox, we have the result that sometimes the popup is displayed and sometimes not. Why does Firefox block our “Allow cookies” popup in the private window?

Frågat av xxl-escort 2 timmar sedan

Senaste svar av cor-el 1 timme sedan

Unable to play any NY Times site videos on Windows 10 Firefox

Videos on the NY Times web site never play on my Windows 10 PC, though they do run on my Windows 11 and iPad Firefox. Have disabled all script and ad-blockers without eff… (läs mer)

Videos on the NY Times web site never play on my Windows 10 PC, though they do run on my Windows 11 and iPad Firefox. Have disabled all script and ad-blockers without effect. If I click on the Play arrow, I get the circle animation that never ends. Windows FF version 128.0.2 64-bit on both 10 and 11; can't tell what the iPad version is but it works.

Frågat av ronks1 18 timmar sedan

Senaste svar av jonzn4SUSE 5 timmar sedan

FIREFOX SEARCH BAR

I have an address/search bar at the top of my screen AND one in the center of my home web page beneath the Firefox logo/brand. Currently, if I want to effect a search the… (läs mer)

I have an address/search bar at the top of my screen AND one in the center of my home web page beneath the Firefox logo/brand. Currently, if I want to effect a search the Firefox web homepage uses the address bar across to top of the page. I want to set a preference/priority to using the search bar beneath the Firefox logo/brand. Any help would be greatly appreciated.

robin.hall@yahoo.com

Frågat av robin.hall 15 timmar sedan

Senaste svar av Agent virtuel 9 timmar sedan

Email problem

I have somehow set my email inbox such that when I double click on a new message I've received (or a previously opened message from that matter), rather than opening the … (läs mer)

I have somehow set my email inbox such that when I double click on a new message I've received (or a previously opened message from that matter), rather than opening the message to read, it opens the email as a draft response to the sender and me, from me. What do I need to do or reset to go back to normal. Thanks ... Mark

Frågat av mwlangman 11 timmar sedan

Senaste svar av dawood 10 timmar sedan

moving tabs to bottom, directly above the taskbar....looking for a userchrome.css or extension

hello, running win11, ff128. the tabs are currently located at the top of the window, just above the address bar. how can the tab bar be relocated to the bottom of the… (läs mer)

hello, running win11, ff128. the tabs are currently located at the top of the window, just above the address bar.

how can the tab bar be relocated to the bottom of the screen / window directly above the taskbar?

a long time ago there was an extension "tabmixplus" that gave the option of locating the tabs anywhere, but firefox updates broke it. i then found a userchrome script that performed the desired action, but ff updates broke it.

advice? solution? userchrome script? extension? thanks

Frågat av ff2by222 19 timmar sedan

Senaste svar av jscher2000 - Support Volunteer 18 timmar sedan

cannot log into my yahoo mail recently, it use to work fine

I get this error while trying to log into yahoo mail, I have cleared casche history. Secure Connection Failed An error occurred during a connection to guce.yahoo.com. P… (läs mer)

I get this error while trying to log into yahoo mail, I have cleared casche history.

Secure Connection Failed

An error occurred during a connection to guce.yahoo.com. PR_END_OF_FILE_ERROR

Error code: PR_END_OF_FILE_ERROR

   The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
   Please contact the website owners to inform them of this problem.

Frågat av faulhaberfrank 1 dag sedan

Senaste svar av jonzn4SUSE 1 dag sedan

Address Bar Relocated - Can't Restore Previous Setting

Hello! I accidentally clicked to restore default setting in the customize toolbar menu, and now all of my tab/address bar/bookmark bar setting and locations are differen… (läs mer)

Hello! I accidentally clicked to restore default setting in the customize toolbar menu, and now all of my tab/address bar/bookmark bar setting and locations are different and I don't like it at all. Previously, the address bar was above the tabs and the full length of the window. Now the tabs are at the top and the address bar is on the same bar as the bookmarks I have saved to the bookmark bar. The address bar goes full length if I remove the bookmark bar but I want to have both on the screen at the same time, on their own bar, as I did before. I have looked through the all of the settings and customize options, and can't find anything that will move my address bar to the top above the tabs, or a way to keep the address bar and bookmark bar open and available separately. Help! Thanks. :)

Frågat av bubbledb 3 dagar sedan

Senaste svar av thepillenwerfer 1 dag sedan

I have done all troubleshooting suggestions but YouTube will not finish buffering ONLY in a firefox window of any kind

I have done every single thing including reinstalling Firefox. The Youtube videos will not buffer in my Firefox browser in ANY mode, safe, troubleshooting, etc. I got it… (läs mer)

I have done every single thing including reinstalling Firefox. The Youtube videos will not buffer in my Firefox browser in ANY mode, safe, troubleshooting, etc. I got it to start after reinstalling then about a minute into the video it started buffering again. I can watch vids in ANY other browser, and am connected by ethernet to my router.

Frågat av kathykerbermusic 2 dagar sedan

Senaste svar av TechHorse 1 dag sedan

Can I create a bookmark for Help->About Firefox?

I know it takes just two mouse clicks to open the About dialog, but I'd like to bookmark it so when I check my daily bookmarks by right-clicking a folder and clicking "Op… (läs mer)

I know it takes just two mouse clicks to open the About dialog, but I'd like to bookmark it so when I check my daily bookmarks by right-clicking a folder and clicking "Open All Bookmarks", it would be displayed. This would be a convenient, albeit forceful, way to keep Firefox up-to-date. The About dialog isn't modal, so that shouldn't be an issue.

Frågat av ForceRs 1 dag sedan

Senaste svar av TechHorse 1 dag sedan