Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
added some inputs back
Browse files Browse the repository at this point in the history
  • Loading branch information
p410n3 committed Mar 28, 2018
1 parent 4af0f5f commit 2c3a5dc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
50 changes: 29 additions & 21 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css"
integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1"
crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
</head>

Expand All @@ -24,34 +27,39 @@
<input type="text" class="form-control url" name="url" placeholder="URL">
<input type="submit" class="btn btn-primary dl-btn" value="Download" id="dlBtn">
</div>

<select name="fileFormat" class="form-control">
<option value="mp3">MP3</option>
<option value="video">Video</option>
</select>
<div class="form-group">
<select name="fileFormat" class="form-control">
<option value="mp3">MP3</option>
<option value="video">Video</option>
</select>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="zip" name="zip">
<label class="form-check-label" for="zip">Download as .zip file?</label>
</div>
<a data-toggle="collapse" href="#expertDiv" role="button" aria-expanded="false" aria-controls="expertDiv">
Enable expert Options &nbsp; <i class="fas fa-angle-down"></i>
</a>
<div class="form-group collapse expertOptions" id="expertDiv">
<input type="text" class="form-control" id="expert" placeholder="Expert Options" name="expertParams">
</div>
</form>
</div>

<a href="https://rg3.github.io/youtube-dl/supportedsites.html">Supported Sites to Download from</a>
<a href="https://github.com/p410n3/YDL-UI">This project on Github</a>

<div class="sk-circle hidden" id="loading">
<div class="sk-circle1 sk-child"></div>
<div class="sk-circle2 sk-child"></div>
<div class="sk-circle3 sk-child"></div>
<div class="sk-circle4 sk-child"></div>
<div class="sk-circle5 sk-child"></div>
<div class="sk-circle6 sk-child"></div>
<div class="sk-circle7 sk-child"></div>
<div class="sk-circle8 sk-child"></div>
<div class="sk-circle9 sk-child"></div>
<div class="sk-circle10 sk-child"></div>
<div class="sk-circle11 sk-child"></div>
<div class="sk-circle12 sk-child"></div>
</div>
</div>

<script src="js/script.js"></script>
<!-- Latest compiled and minified JavaScript fo bootstrap -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
</body>

</html>
4 changes: 3 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
var btn = document.getElementById("dlBtn");
var arrow = document.getElementById("");

btn.addEventListener("click", function () {
document.getElementById("loading").classList.remove("hidden");
document.getElementById("loading").classList.add("visible");
});
});

0 comments on commit 2c3a5dc

Please sign in to comment.