jsをhtmlにリンクしようとしているので、ユーザーがtweetアイコンをクリックすると、自動的にtwitterボックスにtwitterボックスが埋め込まれます...それを満たしていない...任意の提案?javascriptの自動tweet fill(quote)が正しく動作しない
function makeId() {
var rNumber = Math.floor(Math.random() * quotes.length);
$("#quote > h1").html(quotes[rNumber]);
}
$("#press").on('click', function() {
$("#quote > h1").fadeOut('slow', function(){
makeId();
$(this).fadeIn('slow');
});
});
$("#icon > a").click(function(){
window.open("https://twitter.com/intent/tweet?text=" + makeId());
})
私の全体のコードはここにある - https://codepen.io/buzz_lightyear/pen/gXLLpo?editors=1010
に置き換えてください)機能 –