diff --git a/src/app/js/app.js b/src/app/js/app.js index e7e926d..72d1eb3 100644 --- a/src/app/js/app.js +++ b/src/app/js/app.js @@ -1,4 +1,4 @@ -const shared = require(global.__dirname+'/../js/shared'); +const shared = require(global.__dirname + '/../js/shared'); $(function() { const Config = require('electron-config'); const config = new Config(); @@ -8,11 +8,11 @@ $(function() { var download_progress = $('#download-progress'); var format = "mp3"; - if(typeof config.get('format') !== 'undefined'){ + if (typeof config.get('format') !== 'undefined') { format = config.get('format'); } var path = ""; - if(typeof config.get('path') !== 'undefined'){ + if (typeof config.get('path') !== 'undefined') { path = config.get('path'); } var out = $('#output'); @@ -23,11 +23,11 @@ $(function() { const helperx = require('./../../controller/webLoader/router'); var shell = require('electron').shell; - //open links externally by default - $(document).on('click', 'a[href^="http"]', function(event) { - event.preventDefault(); - shell.openExternal(this.href); - }); + //open links externally by default + $(document).on('click', 'a[href^="http"]', function(event) { + event.preventDefault(); + shell.openExternal(this.href); + }); const { dialog @@ -94,7 +94,7 @@ $(function() { }); } }) - $('body').delegate('#navigota li','click',function(){ + $('body').delegate('#navigota li', 'click', function() { console.log('TEST') $('#togmenu').click(); }) @@ -148,7 +148,17 @@ $(function() { var YT = JSON.parse(body); $( `
- Generic placeholder image +
+
+
` + YT.title + `
Author: ` + YT.author_name + ` @@ -170,9 +180,9 @@ $(function() { .get('https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' + video_id + '&format=json', function(err, httpResponse, body) { var YT = JSON.parse(body); $( - `
+ `
-
-
-
-
+
+
+
+
- + +
+ diff --git a/src/app/view/layout.html b/src/app/view/layout.html index bccc6d7..e4009ed 100644 --- a/src/app/view/layout.html +++ b/src/app/view/layout.html @@ -8,19 +8,14 @@ module = undefined; } - Cyb3r Downloader - - @@ -144,17 +139,16 @@
@@ -194,9 +205,10 @@