diff --git a/public/css/alert.css b/public/css/alert.css index b58ec3f..763da57 100644 --- a/public/css/alert.css +++ b/public/css/alert.css @@ -94,6 +94,12 @@ font-size: 15px; color: black; cursor: pointer; + width: 15px; + height: 15px; + background-repeat: no-repeat; + background-size: contain; + background-position: center; + background-image: url("../img/cross.png"); } .alert .form{ @@ -103,6 +109,17 @@ justify-content: space-around; } +.alert .form #warning_input_send{ + cursor: pointer; + margin-left: 1rem; + width: 60px; + height: 35px; + background-repeat: no-repeat; + background-size: contain; + background-position: center; + background-image: url("../img/send.png"); +} + .alert .form input[type="number"]{ background-color: white; } diff --git a/public/css/header.css b/public/css/header.css index 41dbae4..3a216fb 100644 --- a/public/css/header.css +++ b/public/css/header.css @@ -143,10 +143,17 @@ img { z-index: 99; font-size: 30px; color: blue; + width: 25px; + height: 25px; + background-repeat: no-repeat; + background-size: contain; + background-position: center; } .slick-prev{ left: 20px; + background-image: url("../img/arrow-left.png"); } .slick-next{ right: 20px; + background-image: url("../img/arrow-right.png"); } \ No newline at end of file diff --git a/public/css/menu.css b/public/css/menu.css index 498ee03..65fe11d 100644 --- a/public/css/menu.css +++ b/public/css/menu.css @@ -9,7 +9,15 @@ .title-bar .left-off-canvas-toggle{ font-size: 25px; - padding-left: 1rem; + margin-left: 1rem; + + width: 20px; + height: 20px; + display: block; + background-repeat: no-repeat; + background-size: contain; + background-position: center; + background-image: url("../img/menu.png"); } .title-bar .dragger{ width: 100vw; diff --git a/public/img/arrow-left.png b/public/img/arrow-left.png new file mode 100644 index 0000000..597357b Binary files /dev/null and b/public/img/arrow-left.png differ diff --git a/public/img/arrow-right.png b/public/img/arrow-right.png new file mode 100644 index 0000000..1f7d441 Binary files /dev/null and b/public/img/arrow-right.png differ diff --git a/public/img/cross.png b/public/img/cross.png new file mode 100644 index 0000000..0b3994d Binary files /dev/null and b/public/img/cross.png differ diff --git a/public/img/menu.png b/public/img/menu.png new file mode 100644 index 0000000..099f344 Binary files /dev/null and b/public/img/menu.png differ diff --git a/public/img/send.png b/public/img/send.png new file mode 100644 index 0000000..b41ac3b Binary files /dev/null and b/public/img/send.png differ diff --git a/public/js/alert.js b/public/js/alert.js index 17908c5..2179a4c 100644 --- a/public/js/alert.js +++ b/public/js/alert.js @@ -4,9 +4,7 @@ window.addEventListener('load', start); function build_popup(settings){ let popup = $(`
-
- -
+
${settings.profile}
@@ -27,7 +25,7 @@ function build_popup(settings){ let input = $(`
- +
`); body.append(input); @@ -118,8 +116,8 @@ function start(){ // quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo // consequat. $/link/https://google.com$/link/`); - // show_popup_input('wiinsta', 'test title', '../../public/img/avatars/8.png', `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod - // tempor incididunt ut labore et dolore magna aliqua. $/link/https://google.com$/link/`); + show_popup_input('wiinsta', 'test title', '../../public/img/avatars/8.png', `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. $/link/https://google.com$/link/`); // show_popup('wiinsta', 'test title', '../../public/img/avatars/8.png', `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod // tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, @@ -140,7 +138,7 @@ function start(){ let target = $(e.target); // Close the alert from the right-upper cross - if (target.parent().is(".alert .remove")){ + if (target.is(".alert .remove")){ let parent = $(e.target).closest('.alert'); close_popup(parent); } diff --git a/public/js/custom-functions.js b/public/js/custom-functions.js index 5f9a8e4..7128421 100644 --- a/public/js/custom-functions.js +++ b/public/js/custom-functions.js @@ -1125,7 +1125,7 @@ function draw_stats(){ } } - console.log(datas) + //console.log(datas) // populate the 'days' array and the 'datas' object with the 'global_stats' informations for ([day, stats] of Object.entries(global_stats)){ days.push(day); @@ -1135,10 +1135,10 @@ function draw_stats(){ if(NO_RENDER_GRAPHS.includes(stat)) continue; if(!datas[stat]) datas[stat] = []; datas[stat].push(value); - console.log(stat, datas[stat]) + // console.log(stat, datas[stat]) } } - console.log(datas) + // console.log(datas) // if there are more than 4 days it removes the default values if(keys.length >= 4){ @@ -1248,7 +1248,7 @@ function clear_logs(){ function random_avatar(){ let avatars = get_files_and_folders(app.getAppPath() + '/' + AVATARS_FOLDER); // get_files() return errors. without app.getAppPath() it gives also errors. - let randomAvatar = String(randomRange(1, avatars.length)) + '.png'; + let randomAvatar = String(randomRange(1, 9)) + '.png'; return randomAvatar; } diff --git a/public/js/run.js b/public/js/run.js index e7f3abd..9d5a812 100644 --- a/public/js/run.js +++ b/public/js/run.js @@ -143,7 +143,7 @@ var SETTINGS; Load selectors from external url */ SETTINGS = JSON.parse(SETTINGS); - console.log("SETTINGS: ", SETTINGS) + INSTAGRAM_LOGIN = SETTINGS["selectors"]["INSTAGRAM_LOGIN"]; INSTAGRAM_BASE = SETTINGS["selectors"]["INSTAGRAM_BASE"]; diff --git a/views/index/dashboard.ejs b/views/index/dashboard.ejs index 4a086a6..a6acf30 100644 --- a/views/index/dashboard.ejs +++ b/views/index/dashboard.ejs @@ -30,8 +30,8 @@ pauseOnHover: false, swipe: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', fade: true, }); }); diff --git a/views/index/images.ejs b/views/index/images.ejs index 5336588..0ff1bfb 100644 --- a/views/index/images.ejs +++ b/views/index/images.ejs @@ -34,8 +34,8 @@ pauseOnHover: false, swipe: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', fade: true, }); }); diff --git a/views/index/logs.ejs b/views/index/logs.ejs index 4aac7ba..7fcf90b 100644 --- a/views/index/logs.ejs +++ b/views/index/logs.ejs @@ -29,8 +29,8 @@ pauseOnHover: false, swipe: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', fade: true, }); }); diff --git a/views/index/posts.ejs b/views/index/posts.ejs index a0340a1..efb9c27 100644 --- a/views/index/posts.ejs +++ b/views/index/posts.ejs @@ -40,8 +40,8 @@ pauseOnHover: false, swipe: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', fade: true, }); }); diff --git a/views/index/profiles.ejs b/views/index/profiles.ejs index 3f30299..30b152b 100644 --- a/views/index/profiles.ejs +++ b/views/index/profiles.ejs @@ -46,8 +46,8 @@ pauseOnHover: false, swipe: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', fade: true, }); }); diff --git a/views/index/stats.ejs b/views/index/stats.ejs index 77fd541..588eb17 100644 --- a/views/index/stats.ejs +++ b/views/index/stats.ejs @@ -30,8 +30,8 @@ pauseOnHover: false, swipe: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', fade: true, }); }); diff --git a/views/index/stories.ejs b/views/index/stories.ejs index 28db4b9..d4ac1f6 100644 --- a/views/index/stories.ejs +++ b/views/index/stories.ejs @@ -31,8 +31,8 @@ pauseOnHover: false, swipe: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', fade: true, }); }); diff --git a/views/partials/header.ejs b/views/partials/header.ejs index 9c06d1b..b79390a 100644 --- a/views/partials/header.ejs +++ b/views/partials/header.ejs @@ -30,7 +30,7 @@ - + diff --git a/views/partials/images_actions.ejs b/views/partials/images_actions.ejs index 6784e72..1c8c418 100644 --- a/views/partials/images_actions.ejs +++ b/views/partials/images_actions.ejs @@ -59,7 +59,7 @@