Skip to content

Commit d757691

Browse files
committed
fix tweet button + item 86
1 parent 5996927 commit d757691

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

data/quotes_v2.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ id;topic;emoji;title;text
8585
83;Management Foundations;⭐️;How to avoid micromanagement?;Be flexible and understand others' needs.<br>Focus on the "what" more than on "how".<br>Set expectations and check-in plan.<br>Resist the need for power.
8686
84;Management Foundations;🔀;Delegate tasks effectively.;Understand that delegation is an investment.<br>Continuously build trust with others.<br>Be available and provide a safety net.
8787
85;Management Foundations;🎉;Delegate tasks successfully.;Ask why and what are you delegating.<br>Are you willing to let this go?<br>Who is the best person to do it?<br>Think about what they need to know.<br>Prepare for supporting them.
88-
86;Management Foundations;🤨;How to delegate tasks?;Set the main objective and provide context + timeline.<br>Provide expectations and describe the success.<br>Adjust the priorities relative to existing tasks.<br>Cooperate on building a specific plan.
88+
86;Management Foundations;🤨;How to delegate tasks?;Set an objective and provide context + timeline.<br>Provide expectations and describe the success.<br>Adjust the priorities relative to existing tasks.<br>Cooperate on building a specific plan.
8989
87;Management Foundations;🗣;Organise successful meetings.<br>State "why" are you meeting.<br>Provide the expected outcomes.<br>Focus on reaching decisions.<br>Talk less and ask more.
9090
88;Management Foundations;🔗;Build a strong relationship<br>with your team.;Get to know their interests and passions.<br>Search for a common ground.<br>Follow up on discussed topics.<br>Smile!
9191
89;Management Foundations;⏳;Manage your time wisely.;Work on a single task at a time.<br>Keep the big objectives in focus.<br>Schedule the most important work.<br>Respond to e-mails in batches.

js/random_quote.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ function redraw(){
4747
var selectedEmojiWithKey = String(selectedLine.split(",")[2]);
4848
var selectedEmoji = String(selectedEmojiWithKey.split(":")[1]);
4949

50+
tweet = String(selectedEmoji + " " + selectedTitle + "\n\n").replaceAll("<br>"," ") + String(selectedText).replaceAll("<br>","\n") + "\n\nLearn more about" + " " + selectedTopic + " at:";
51+
5052
document.getElementById('id_emoji').innerHTML = selectedEmoji;
5153
document.getElementById('id_title').innerHTML = selectedTitle;
5254
document.getElementById('id_text').innerHTML = selectedText;
5355
document.getElementById('id_topic').innerHTML = "- " + selectedTopic;
54-
55-
var picker = document.getElementById('select_topic');
56-
picker.innerHTML = selectedTopic + " ▾";
57-
picker.add(new Option(selectedTopic));
58-
59-
tweet = String(selectedEmoji + " " + selectedTitle + "\n\n").replaceAll("<br>"," ") + String(selectedText).replaceAll("<br>","\n") + "\n\nLearn more about" + " " + selectedTopic + " at:";
56+
57+
//var picker = document.getElementById('select_topic');
58+
//picker.innerHTML = selectedTopic + " ▾";
59+
//picker.add(new Option(selectedTopic));
6060
}
6161

6262
function generateTweet(){

0 commit comments

Comments
 (0)