From d757691b15eba3608d91889b6e48c57b13496ca9 Mon Sep 17 00:00:00 2001 From: Adam Svoboda Date: Wed, 10 Aug 2022 22:50:03 +0200 Subject: [PATCH] fix tweet button + item 86 --- data/quotes_v2.csv | 2 +- js/random_quote.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/quotes_v2.csv b/data/quotes_v2.csv index 522d994..d468466 100644 --- a/data/quotes_v2.csv +++ b/data/quotes_v2.csv @@ -85,7 +85,7 @@ id;topic;emoji;title;text 83;Management Foundations;โญ๏ธ;How to avoid micromanagement?;Be flexible and understand others' needs.
Focus on the "what" more than on "how".
Set expectations and check-in plan.
Resist the need for power. 84;Management Foundations;๐Ÿ”€;Delegate tasks effectively.;Understand that delegation is an investment.
Continuously build trust with others.
Be available and provide a safety net. 85;Management Foundations;๐ŸŽ‰;Delegate tasks successfully.;Ask why and what are you delegating.
Are you willing to let this go?
Who is the best person to do it?
Think about what they need to know.
Prepare for supporting them. -86;Management Foundations;๐Ÿคจ;How to delegate tasks?;Set the main objective and provide context + timeline.
Provide expectations and describe the success.
Adjust the priorities relative to existing tasks.
Cooperate on building a specific plan. +86;Management Foundations;๐Ÿคจ;How to delegate tasks?;Set an objective and provide context + timeline.
Provide expectations and describe the success.
Adjust the priorities relative to existing tasks.
Cooperate on building a specific plan. 87;Management Foundations;๐Ÿ—ฃ;Organise successful meetings.
State "why" are you meeting.
Provide the expected outcomes.
Focus on reaching decisions.
Talk less and ask more. 88;Management Foundations;๐Ÿ”—;Build a strong relationship
with your team.;Get to know their interests and passions.
Search for a common ground.
Follow up on discussed topics.
Smile! 89;Management Foundations;โณ;Manage your time wisely.;Work on a single task at a time.
Keep the big objectives in focus.
Schedule the most important work.
Respond to e-mails in batches. diff --git a/js/random_quote.js b/js/random_quote.js index 240df33..ab5e703 100644 --- a/js/random_quote.js +++ b/js/random_quote.js @@ -47,16 +47,16 @@ function redraw(){ var selectedEmojiWithKey = String(selectedLine.split(",")[2]); var selectedEmoji = String(selectedEmojiWithKey.split(":")[1]); + tweet = String(selectedEmoji + " " + selectedTitle + "\n\n").replaceAll("
"," ") + String(selectedText).replaceAll("
","\n") + "\n\nLearn more about" + " " + selectedTopic + " at:"; + document.getElementById('id_emoji').innerHTML = selectedEmoji; document.getElementById('id_title').innerHTML = selectedTitle; document.getElementById('id_text').innerHTML = selectedText; document.getElementById('id_topic').innerHTML = "- " + selectedTopic; - - var picker = document.getElementById('select_topic'); - picker.innerHTML = selectedTopic + " โ–พ"; - picker.add(new Option(selectedTopic)); - - tweet = String(selectedEmoji + " " + selectedTitle + "\n\n").replaceAll("
"," ") + String(selectedText).replaceAll("
","\n") + "\n\nLearn more about" + " " + selectedTopic + " at:"; + + //var picker = document.getElementById('select_topic'); + //picker.innerHTML = selectedTopic + " โ–พ"; + //picker.add(new Option(selectedTopic)); } function generateTweet(){