https://videy.co/

已提交的 URL:
https://videy.co/
報告完成時間:

連結 · 找到 0 個

從頁面中識別的傳出連結

JavaScript 變數 · 找到 13 個

在頁面的視窗物件上載入的全域 JavaScript 變數是在函數外部宣告的變數,可從目前範圍內程式碼中的任何位置存取

主控台記錄訊息 · 找到 0 條

記錄到 Web 主控台的訊息

HTML

頁面的原始 HTML 主體

<html><head>
    <title>Videy | Free and Simple Video Hosting</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
    <link rel="icon" type="image/x-icon" href="https://videy.co/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&amp;family=Poppins:wght@400;600&amp;display=swap" rel="stylesheet">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <link rel="stylesheet" href="assets/style.css?cache=696041190967">
  </head>
  <body>
    <div class="container">
      <div class="top">
        <div class="logo">
          <a href="/">videy</a>
        </div>
        <div class="upload" onclick="handleClick();">Upload</div>
        <div class="more">
          <a href="/advertise">Advertise</a>
        </div>
      </div>
      <div class="text">
        <div class="main-line">Free and Simple Video Hosting</div>
        <div class="second-line">Get started without an account</div>
      </div>
      <div class="box">
        <div class="box-upload" onclick="handleClick();">Upload a Video</div>
        <div style="padding-top: 24px; display: none;"><span style="background-color: #f8f7f0; padding: 8px 16px; border-radius: 4px; font-size: 14px; font-weight: 500;">30 NOV: Video uploading issues fixed.</span></div>
      </div>
      <form action="https://videy.co/api/upload" method="POST" id="form">
        <input name="file" type="file" id="selectedFile" class="clickListenerFile" accept=".mp4" style="display: none;">
      </form>
      <div class="upload-error" style="display: none"></div>
      <div class="footer">
        <div class="copyright"> Copyright © <span id="year">2024</span> TRUE DOMAIN PRIVACY, LLC </div>
        <div class="legal">
          <div class="item">
            <a href="/terms-of-service">Terms of Service</a>
          </div>
          <div class="item">
            <a href="/report">Report Abuse</a>
          </div>
        </div>
      </div>
    </div>
    <!-- Google tag (gtag.js) -->
    <script async="" defer="" src="https://www.googletagmanager.com/gtag/js?id=G-BDP4EF6BCQ"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-BDP4EF6BCQ');
    </script>
    <script>
      document.getElementById('year').textContent = new Date().getFullYear();
    </script>
    <script>
       let target = document.documentElement;
       let body = document.body;
       let fileInput = document.getElementById("selectedFile");
       target.addEventListener('dragover', (e) => {
           if ($(".clickListenerFile")[0]) {
               e.preventDefault();
               body.classList.add('dragging');
           }
       });
       target.addEventListener('dragleave', () => {
           body.classList.remove('dragging');
       });
       target.addEventListener('drop', (e) => {
           if ($(".clickListenerFile")[0]) {
               e.preventDefault();
               body.classList.remove('dragging');
               fileInput.files = e.dataTransfer.files;
               upload();
           }
       });
       window.addEventListener('paste', e => {
           fileInput.files = e.clipboardData.files;
           upload();
       });
       document.getElementsByClassName("clickListenerFile")[0].onchange = function() {
           upload();
       }

       function handleClick() {
           if ($(".clickListenerFile")[0]) {
               $(".clickListenerFile").click();
           }
       }

       function upload() {
           var fileInput = $("#selectedFile")[0].files[0];
           var errorDiv = $(".upload-error");

           // clear any previous error messages
           errorDiv.hide().text('');

           if (fileInput) {
               // validate file type
               if (fileInput.type !== 'video/mp4' && fileInput.type !== 'video/quicktime') {
                   errorDiv.text("Error: wrong filetype, please select an .mp4 or .mov").show();
                   return;
               }

               // validate file size (100MB = 100 * 1024 * 1024 bytes)
               var maxFileSize = 100 * 1024 * 1024; // 100MB
               if (fileInput.size > maxFileSize) {
                   errorDiv.text("Error: too large, please upload a file less than 100MB").show();
                   return;
               }
               var formData = new FormData($('form')[0]);
               $("#selectedFile").removeClass("clickListenerFile");
               $(".box-upload").addClass("animate");

               $.ajax({
                   xhr: function() {
                       var xhr = new window.XMLHttpRequest();
                       xhr.upload.addEventListener("progress", function(evt) {
                           if (evt.lengthComputable) {
                               var percentComplete = evt.loaded / evt.total;
                               percentComplete = parseInt(percentComplete * 100);
                               $(".box-upload").html(percentComplete + "%");
                               if (percentComplete === 100) {
                                   $(".box-upload").html("Processing");
                               }
                           }
                       }, false);
                       return xhr;
                   },
                   url: 'https://videy.co/api/upload',
                   type: 'POST',
                   context: this,
                   data: formData,
                   cache: false,
                   contentType: false,
                   processData: false,
                   success: function(result) {
                        localStorage.setItem('uploader', true);
                        window.location.href = "/v?id=" + result.id;
                   },
                   error: function() {
                       $(".box-upload").html("Upload a Video");
                       $(".box-upload").removeClass("animate");
                   }
               });
           }
       }
    </script>
  
</body></html>