Skip to content

Instantly share code, notes, and snippets.

<div id="all">
<div class="share_fb">click me to share.</div>
<br>
<br>
<br>
<div id="result"></div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
window.fbAsyncInit = function() {
@cjzopen
cjzopen / sublime text setting
Last active May 8, 2020 07:34
my sublime text emmet default
{
"snippets": {
"html": {
"snippets": {
"te" : "<!DOCTYPE html>\n<html lang=\"zh\">\n<head>\n\t<meta charset=\"UTF-8\" />\n\t<title></title>\n\t<meta name=\"description\" content=\"\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\">\n\t<meta http-equiv=\"x-ua-compatible\" content=\"IE=edge\">\n\t<link rel=\"canonical\" href=\"\" />\n\t<link rel=\"shortcut icon\" href=\"\">\n</head>\n<body>\n\n</body>\n</html>",
"jq1" : "<script src=\"https://code.jquery.com/jquery-1.12.4.min.js\"></script>",
"jq3" : "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js\" integrity=\"sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=\" crossorigin=\"anonymous\"></script>",
"fa5" : "<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js\" integrity=\"sha256-KzZiKy0DWYsnwMF+X1DvQngQ2/FxF7MF3Ff72XcpuPs=\" crossorigin=\"anonymous\"></script>",
"noto" : "<script>(function
((document, limit) => {
const data = Array.from(document.querySelectorAll('*'))
.map((el) => ({zIndex: Number(getComputedStyle(el).zIndex), element: el }))
.filter(({ zIndex }) => !isNaN(zIndex))
.sort((r1, r2) => r2.zIndex - r1.zIndex)
.slice(0, limit);
console.table(data);
})(document, 50);
@cjzopen
cjzopen / Organization json-ld
Last active March 29, 2023 17:03
Organization json-ld example
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [{
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "{{ your name }}",
"url": "https://www.example.com/",
"address": "{{ address }}",
"email": "{{ email }}",