Tuy bị coi là "đại ngáo", sự láu cá của cún cưng thật không thể coi thường.
Link bài gốc {3}Lấy link{1}
', namesource, linksource, btnCopy, btnCopy2);
return sourceHtml;
console.log(sourceHtml);
}
function getOrgUrl(newsId, channelId) {
$.ajax({
type: 'GET',
contentType: 'application/json',
dataType: "json",
url: 'https://ift.tt/2WYFFQS' + newsId + '&channelId=' + channelId,
success: function (rs) {
if (rs != null && JSON.stringify(rs) != '{}') {
var orgUrl = rs.Domain + rs.Url;
if (orgUrl != null && orgUrl != '') {
$('.bottom-info').html(getSourceHtlm(sourceName, orgUrl));
}
}
},
error: function (e) {
console.log(e);
}
});
}
if (originalId > 0 && dateNeedCheck >= dateCheck) {
getOrgUrl('20200427235722539', 22);
}
//console.log("orgUrl: " + orgUrl);
function copyStringToClipboard(string) {
let textarea;
let result;
try {
textarea = document.createElement('textarea');
textarea.setAttribute('readonly', true);
textarea.setAttribute('contenteditable', true);
textarea.style.position = 'fixed'; // prevent scroll from jumping to the bottom when focus is set.
textarea.value = string;
document.body.appendChild(textarea);
textarea.focus();
textarea.select();
const range = document.createRange();
range.selectNodeContents(textarea);
const sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
textarea.setSelectionRange(0, textarea.value.length);
result = document.execCommand('copy');
} catch (err) {
console.error(err);
result = null;
} finally {
document.body.removeChild(textarea);
}
// manual copy fallback using prompt
if (!result) {
const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
const copyHotkey = isMac ? '⌘C' : 'CTRL+C';
result = prompt(`Press ${copyHotkey}`, string); // eslint-disable-line no-alert
if (!result) {
return false;
}
}
return true;
}
});
';
var content = $('#af-detail-content');
if (content.length > 0) {
var childNodes = content[0].childNodes;
for (i = 0; i = childNodes.length * 2 / 3) && !isPhotoOrVideo && (i
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon