Skip to content

Commit

Permalink
fix tweet button + item 86
Browse files Browse the repository at this point in the history
  • Loading branch information
IGPenguin committed Aug 10, 2022
1 parent 5996927 commit d757691
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/quotes_v2.csv
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ id;topic;emoji;title;text
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.
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.
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.
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.
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.
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.
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!
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.
Expand Down
12 changes: 6 additions & 6 deletions js/random_quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("<br>"," ") + String(selectedText).replaceAll("<br>","\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("<br>"," ") + String(selectedText).replaceAll("<br>","\n") + "\n\nLearn more about" + " " + selectedTopic + " at:";

//var picker = document.getElementById('select_topic');
//picker.innerHTML = selectedTopic + " ▾";
//picker.add(new Option(selectedTopic));
}

function generateTweet(){
Expand Down

0 comments on commit d757691

Please sign in to comment.