成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術文章
文章詳情頁

程序猿說love的100種語言

瀏覽:353日期:2022-06-03 08:10:53

說程序猿是直男,不可否認,大多數程序猿都挺直,因為我們沒有那么多彎彎繞繞,有心思兜圈子,不如回去寫幾行代碼………

程序猿的時間大多都給了工作和學習,但是可能比一般人更缺少愛情。程序猿也許在生活中會比較宅,但是千萬不要說程序猿不懂浪漫。當你不開心了,他可以分分鐘做出100種“我愛你”的愛意語言給你制造小驚喜…

這里的語言不是指編程語言,指的是各個國家語言。前端程序猿工程師制作的一百種語言的LOVE,網頁代碼如下:

index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>CodePen - 100 List items: Love translations ?</title>
 
    <link rel="stylesheet" href="css/style.css" rel="external nofollow"  />
  </head>
  <body>
    <dl id="list-group"></dl>
 
    <div id="modal"></div>
 
    <script src="js/script.js"></script>
  </body>
</html>

html頁面代碼很簡單,上面引入了css文件夾下的樣式文件style.css;下面引入了js文件夾下的js腳本script.js

style.css

@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    overflow-x: hidden;
    background-image: -webkit-gradient(linear,
right bottom, left top,
from(#ffadad),
color-stop(#ffd6a5), 
color-stop(#fdffb6),
color-stop(#caffbf),
color-stop(#9bf6ff),
color-stop(#a0c4ff),
to(#bdb2ff));
    background-image: linear-gradient(to top left,
#ffadad,
#ffd6a5, 
#fdffb6,
#caffbf,
#9bf6ff,
#a0c4ff,
#bdb2ff);
    color: #5d5865;
}
 
#list-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 0.5rem; gap: 0.5rem;
    padding: 1rem;
}
 
.item {
    position: relative;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.3));
    border-radius: 2rem;
    padding: 3rem 0;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}
 
.item::before,
.item::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 3rem;
    height: 3rem;
}
 
.item::before {
    bottom: 1rem; left: 1rem;
    border-radius: 0 0 0 1rem;
    background-image: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, 0.5));
}
 
.item::after {
    top: 1rem; right: 1rem;
    border-radius: 0 1rem 0 0;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.5));
}
 
.item:hover,
.item:focus,
.item:active {
    background-color: white;
    outline: none;
}
 
dt {
    text-align: right;
    font-family: "Great Vibes", serif;
    font-size: 3rem;
}
 
dt.smaller {
    font-size: 1.8rem;
}
 
dt.medium {
    font-size: 2.1rem;
}
 
dt.smaller,
dt.medium {
    font-style: italic;   
}
 
.italic {
    font-style: italic;
}
 
dd {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
}
 
dd, dt {
    pointer-events: none;
}
 
#modal {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    left: 2rem; top: 2rem; right: 2rem; bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0.5rem 0.5rem 5rem rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.25);
    background-color: white;
}
 
#modal.active {
    min-height: 15rem;
    display: -webkit-box;
    display: flex;
    position: fixed;
    z-index: 2;
    -webkit-animation: openModal 0.2s;
    animation: openModal 0.2s;
}
 
#modal .lang-name {
    position: relative;
    z-index: 4;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: capitalize;
}
 
#modal h1 {
    position: relative;
    z-index: 1;
    font-family: "Great Vibes", serif;
    font-size: 10rem;
    line-height: 1.3;
}
 
#modal h1.smaller {
    font-size: 5rem;
}
 
#modal h1.medium {
    font-size: 7.5rem;
}
 
#modal h1::after,
#modal h1::before { /* modal heart shapes */
    content: "";
    position: absolute;
    bottom: 50%; left: 50%;
    -webkit-transform: translateX(-50%) translateY(52%);
    transform: translateX(-50%) translateY(52%);
    -webkit-clip-path: polygon(50% 10%, 66% 0, 100% 0, 100% 50%, 50% 100%, 0 50%, 0 0, 33% 0);
    clip-path: polygon(50% 10%, 66% 0, 100% 0, 100% 50%, 50% 100%, 0 50%, 0 0, 33% 0);
}
 
#modal h1::before {
    z-index: -2;
    background-color: lightcoral;
    opacity: 0.5;
    width: 10rem;
    height: 10rem;
    border-radius: 3rem 3rem 6rem 6rem;
}
 
#modal h1::after {
    z-index: -1;
    background-color: lightcoral;
    opacity: 0.3;
    width: 12rem;
    height: 12rem;
    border-radius: 3rem 3rem 6rem 6rem;
}
 
#modal-close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 2rem; height: 2rem;
    text-align: center;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(93, 88, 101, 0.5);
    border-radius: 0.5rem;
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
}
 
#modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(93, 88, 101, 0.8);
}
 
button {
    cursor: pointer;
}
 
/* tablet styles */
@media screen and (max-width: 959px) {
    #list-group {
grid-template-columns: repeat(4, 1fr);
    }
    
    #modal {
left: 1rem; top: 1rem; right: 1rem; bottom: 1rem;
    }
}
 
@media screen and (max-width: 759px) {
    #list-group {
grid-template-columns: repeat(3, 1fr);
    }
 
    #modal h1 {
font-size: 7rem;
line-height: 1.3;
    }
    
    #modal h1.smaller {
font-size: 3rem;
    }
    
    #modal h1.medium {
font-size: 4.4rem;
    }
 
    #modal {
left: 0.75rem; top: 0.75rem; right: 0.75rem; bottom: 0.75rem;
    }
}
 
@media screen and (max-width: 639px) {
    #list-group {
grid-template-columns: repeat(2, 1fr);
    }
 
    #modal h1 {
font-size: 5rem;
line-height: 1.3;
    }
    
    #modal h1.smaller {
font-size: 2rem;
    }
    
    #modal h1.medium {
font-size: 3.3rem;
    }
 
    #modal {
left: 0.5rem; top: 0.5rem; right: 0.5rem; bottom: 0.5rem;
    }
}
 
@-webkit-keyframes openModal { /* subtle fade in for modal */
    from {
opacity: 0;
-webkit-transform: scale(0.8);
transform: scale(0.8);
    } to {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
    }
}
 
@keyframes openModal { /* subtle fade in for modal */
    from {
opacity: 0;
-webkit-transform: scale(0.8);
transform: scale(0.8);
    } to {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
    }
}

script.js 

const dl = document.getElementById("list-group");
const modal = document.getElementById("modal");
 
dl.addEventListener("click", openModal);
 
function populateList() {
 
    let output = "";
 
    loveTranslations.forEach((love) => {
// conditionals to change font sizes & style for larger words & langauge by adding a class to the <dt>
if (love.language === "georgian" || love.language === "malayalam" || love.language === "tatar") {
 
    output += `<div tabindex="0">
<dt>${love.word}</dt>
<dd>${love.language}</dd>
    </div>`;
 
} else if (to_medium.includes(love.language) === true) {
 
    output += `<div tabindex="0">
<dt>${love.word}</dt>
<dd>${love.language}</dd>
    </div>`;
 
} else if (to_italic.includes(love.language) === true) {
 
    output += `<div tabindex="0">
<dt>${love.word}</dt>
<dd>${love.language}</dd>
    </div>`;
 
} else {
 
    output += `<div tabindex="0">
<dt>${love.word}</dt>
<dd>${love.language}</dd>
    </div>`;
 
}
 
    });
 
    dl.innerHTML = output;
}
 
function openModal(e) {
    if (e.target.nodeName.toLowerCase() === "dl") { return; }
    else if (e.target.classList.contains("item") === true) {
 
const lang = e.target.children[1].innerText.toLowerCase();
 
modal.classList.toggle("active");
 
if (to_italic.includes(lang) === true) { // conditional to change font size for different word sizes and lettering styles, adding classes to h1
 
    modal.innerHTML += `<button onclick="closeModal()" id="modal-close-btn">X</button>
    <h1>${e.target.children[0].innerText}</h1>
    <p>${e.target.children[1].innerText}</p>`;
 
} else if (to_medium.includes(lang) === true) {
 
    modal.innerHTML += `<button onclick="closeModal()" id="modal-close-btn">X</button>
    <h1>${e.target.children[0].innerText}</h1>
    <p>${e.target.children[1].innerText}</p>`;
} else if (lang === "georgian" || lang === "malayalam" || lang === "tatar") {
    modal.innerHTML += `<button onclick="closeModal()" id="modal-close-btn">X</button>
    <h1>${e.target.children[0].innerText}</h1>
    <p>${e.target.children[1].innerText}</p>`;
 
} else {
 
    modal.innerHTML += `<button onclick="closeModal()" id="modal-close-btn">X</button>
    <h1>${e.target.children[0].innerText}</h1>
    <p>${e.target.children[1].innerText}</p>`;
}
    }
}
 
function closeModal() {
    document.getElementById("modal").classList.toggle("active");
    modal.innerHTML = ""; // clearing out the modal text
}
 
// 100 love translatons: Object Array
const loveTranslations = [
    {
"language": "english",
"word": "love"
    },
    {
"language": "spanish",
"word": "amor"
    },
    {
"language": "french",
"word": "l"amour"
    },
    {
"language": "dutch",
"word": "liefde"
    },
    {
"language": "greek",
"word": "αγ?πη"
    },
    {
"language": "Arabic",
"word": "??"
    },
    {
"language": "albanian",
"word": "dashuri"
    },
    {
"language": "amharic",
"word": "???"
    },
    {
"language": "armenian",
"word": "???"
    },
    {
"language": "azerbaijani",
"word": "sevgi"
    },
    {
"language": "basque",
"word": "maitasuna"
    },
    {
"language": "belarusian",
"word": "каханне"
    },
    {
"language": "bengali",
"word": "???????"
    },
    {
"language": "bosnian",
"word": "ljubavi"
    },
    {
"language": "bulgarian",
"word": "любов"
    },
    {
"language": "catalan",
"word": "amor"
    },
    {
"language": "cebuano",
"word": "gugma"
    },
    {
"language": "chinese",
"word": "愛"
    },
    {
"language": "corsican",
"word": "amore"
    },
    {
"language": "croatian",
"word": "ljubav"
    },
    {
"language": "czech",
"word": "milovat"
    },
    {
"language": "danish",
"word": "elsker"
    },
    {
"language": "esperanto",
"word": "amo"
    },
    {
"language": "estonian",
"word": "armastus"
    },
    {
"language": "filipino",
"word": "pag-ibig"
    },
    {
"language": "finnish",
"word": "rakkaus"
    },
    {
"language": "frisian",
"word": "leafde"
    },
    {
"language": "galician",
"word": "amor"
    },
    {
"language": "georgian",
"word": "?????????"
    },
    {
"language": "german",
"word": "liebe"
    },
    {
"language": "gujarati",
"word": "?????"
    },
    {
"language": "haitian creole",
"word": "lanmou"
    },
    {
"language": "hausa",
"word": "soyayya"
    },
    {
"language": "hawaiian",
"word": "aloha"
    },
    {
"language": "hebrew",
"word": "????"
    },
    {
"language": "hindi",
"word": "?????"
    },
    {
"language": "hmong",
"word": "kev hlub"
    },
    {
"language": "hungarian",
"word": "szeretet"
    },
    {
"language": "icelandic",
"word": "ást"
    },
    {
"language": "igbo",
"word": "ihunanya"
    },
    {
"language": "indonesian",
"word": "cinta"
    },
    {
"language": "irish",
"word": "grá"
    },
    {
"language": "italian",
"word": "amore"
    },
    {
"language": "japanese",
"word": "愛"
    },
    {
"language": "javanese",
"word": "katresnan"
    },
    {
"language": "kannada",
"word": "??????"
    },
    {
"language": "kazakh",
"word": "махаббат"
    },
    {
"language": "khmer",
"word": "???????"
    },
    {
"language": "kiryarwanda",
"word": "urukundo"
    },
    {
"language": "korean",
"word": "??"
    },
    {
"language": "kurdish",
"word": "ev?n"
    },
    {
"language": "kyrgyz",
"word": "с?й??"
    },
    {
"language": "lao",
"word": "???"
    },
    {
"language": "latin",
"word": "amare"
    },
    {
"language": "latvian",
"word": "mīlestība"
    },
    {
"language": "lithuanian",
"word": "meil?"
    },
    {
"language": "luxembourish",
"word": "Léift"
    },
    {
"language": "macedonian",
"word": "убов"
    },
    {
"language": "malagasy",
"word": "fitiavana"
    },
    {
"language": "malay",
"word": "cinta"
    },
    {
"language": "malayalam",
"word": "??????"
    },
    {
"language": "maltese",
"word": "im?abba"
    },
    {
"language": "moari",
"word": "aroha"
    },
    {
"language": "marathi",
"word": "?????"
    },
    {
"language": "mongolian",
"word": "хайр"
    },
    {
"language": "burmese",
"word": "aahkyit"
    },
    {
"language": "nepali",
"word": "????"
    },
    {
"language": "norwegian",
"word": "kj?rlighet"
    },
    {
"language": "odia",
"word": "?????"
    },
    {
"language": "pashto",
"word": "????"
    },
    {
"language": "persian",
"word": "???"
    },
    {
"language": "polish",
"word": "mi?o??"
    },
    {
"language": "portuguese",
"word": "amar"
    },
    {
"language": "punjabi",
"word": "????"
    },
    {
"language": "romanian",
"word": "dragoste"
    },
    {
"language": "russian",
"word": "люблю"
    },
    {
"language": "samoan",
"word": "alofa"
    },
    {
"language": "scots gaelic",
"word": "ghaoil"
    },
    {
"language": "serbian",
"word": "?убав"
    },
    {
"language": "sesotho",
"word": "lerato"
    },
    {
"language": "shona",
"word": "rudo"
    },
    {
"language": "sindhi",
"word": "????"
    },
    {
"language": "sinhala",
"word": "????"
    },
    {
"language": "slovak",
"word": "láska"
    },
    {
"language": "slovinian",
"word": "ljubezen"
    },
    {
"language": "somali",
"word": "jacayl"
    },
    {
"language": "sudanese",
"word": "bogoh"
    },
    {
"language": "swahili",
"word": "upendo"
    },
    {
"language": "swedish",
"word": "k?rlek"
    },
    {
"language": "tamil",
"word": "?????"
    },
    {
"language": "tatar",
"word": "м?х?бб?т"
    },
    {
"language": "telugu",
"word": "?????"
    },
    {
"language": "thai",
"word": "???"
    },
    {
"language": "turkish",
"word": "a?k"
    },
    {
"language": "turkmen",
"word": "s?ygi"
    },
    {
"language": "ukranian",
"word": "кохання"
    },
    {
"language": "urdu",
"word": "????"
    },
    {
"language": "vietnamese",
"word": "yêu"
    },
    {
"language": "yiddish",
"word": "????"
    },
    {
"language": "zulu",
"word": "uthando"
    }
];
 
// array of languages that the characters need to italicised
const to_italic = ["hebrew", "hindi", "korean", "kannada", "lao", "macedonian", "mongolian", "nepali", "odia", "russian", "serbian", "telugu", "thai", "marathi"];
 
// array of languages that need to reduced in font size
const to_medium = ["belarusian", "bengali", "greek", "armenian", "bulgarian", "gujarati", "khmer", "kazakh", "kyrgyz", "punjabi", "tamil", "ukranian"];
 
populateList();

到此這篇關于程序猿說love的100種語言的文章就介紹到這了,更多相關用100種語言說我愛你內容請搜索以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持!

標簽: CSS HTML
成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久
欧美 日韩 国产在线| 激情综合色综合久久| 精品午夜一区二区三区在线观看| 一本久久综合| 国产精品乱人伦中文| 风流少妇一区二区| 欧美日韩小视频| 久久99久久99| 欧美日韩三级在线| 久久av中文字幕片| 欧美日韩成人在线一区| 美女视频黄 久久| 欧美无砖专区一中文字| 蜜臀久久久99精品久久久久久| 美日韩在线观看| 亚洲成人免费视频| 一本大道av伊人久久综合| 亚洲bt欧美bt精品| 久久看片网站| 久久国产精品色婷婷| 在线精品视频一区二区| 久久精品国产99国产| 91福利在线免费观看| 乱一区二区av| 91精品国产品国语在线不卡| 成人妖精视频yjsp地址| 久久精品水蜜桃av综合天堂| 欧美高清一区| 亚洲乱码中文字幕综合| 西西人体一区二区| 久久99国产精品久久99果冻传媒| 欧美揉bbbbb揉bbbbb| 国产精品一区二区无线| 欧美成人一区二区三区片免费 | 国产欧美一二三区| 欧美特黄a级高清免费大片a级| 最新不卡av在线| 国产毛片久久| 麻豆成人在线观看| 欧美一区二区三区视频免费播放| gogo大胆日本视频一区| 国产精品黄色在线观看| 国产精品夜夜夜一区二区三区尤| 日av在线不卡| 日韩精品一区二区三区四区视频| 不卡的av电影| 亚洲免费av网站| 老司机精品导航| 国产一区三区三区| 国产亚洲人成网站| 国产精品社区| 国产麻豆精品在线| 日本一区二区三区视频视频| 99精品视频免费| 日本不卡一区二区三区高清视频| 91精品一区二区三区在线观看| caoporn国产一区二区| 中文字幕在线不卡一区二区三区| 免费在线一区二区| 国产乱码字幕精品高清av | 野花国产精品入口| 日本亚洲免费观看| 欧美刺激午夜性久久久久久久| 欧美日韩一区在线播放| 亚洲成av人片一区二区三区| 91精品欧美一区二区三区综合在| 国产一区美女| 日韩电影免费一区| 精品久久人人做人人爱| 99视频一区| 韩国一区二区三区| 中文字幕一区二区三区视频| 美女网站久久| 91在线免费看| 亚洲va欧美va国产va天堂影院| 日韩三级电影网址| 亚洲日本激情| 国产乱对白刺激视频不卡| 国产精品国产精品国产专区不蜜| 欧美日韩中文字幕一区二区| 欧美精品自拍| 久久www免费人成看片高清| 日本一区二区不卡视频| 色欧美片视频在线观看在线视频| 91蜜桃传媒精品久久久一区二区| 五月婷婷另类国产| 久久日韩精品一区二区五区| 一区二区中文字幕在线| 色噜噜偷拍精品综合在线| 99视频国产精品| 午夜亚洲国产au精品一区二区| 精品乱码亚洲一区二区不卡| 亚洲免费网站| 91麻豆产精品久久久久久| 日韩高清一级片| 欧美国产综合色视频| 在线日韩一区二区| 欧美精品99| 韩日欧美一区二区三区| 亚洲乱码日产精品bd| 欧美一级一区二区| 久久中文欧美| 色综合欧美在线| 久久这里只有精品6| 国产精品亚洲综合| av毛片久久久久**hd| 日韩不卡免费视频| 中文字幕一区二| 91精品国产综合久久香蕉的特点| 国产日韩欧美三区| 9人人澡人人爽人人精品| 日韩av电影免费观看高清完整版| 国产精品乱码人人做人人爱| 在线成人av网站| 亚洲女同在线| 欧美精品一区二区视频 | 日韩国产精品久久| 国产精品久久久久7777按摩 | 久久久久久久久蜜桃| 欧美日韩第一区日日骚| 国产日韩一区二区| 欧美日韩国产不卡在线看| 国产精品综合二区| 日韩综合小视频| 亚洲男同性视频| 国产日韩欧美精品在线| 日韩亚洲欧美成人一区| 日本黄色一区二区| 国产一区二区高清不卡| 精品1区2区3区4区| 91丨porny丨首页| 精品一区二区三区久久久| 亚洲成a人片在线观看中文| 国产精品久久久久aaaa| 精品国偷自产国产一区| 欧美日韩精品一区二区| 久久九九99| 国产视频在线观看一区| 国内精品久久久久久久影视蜜臀| www.在线成人| 国产v日产∨综合v精品视频| 久久av老司机精品网站导航| 午夜精品福利一区二区三区av| 亚洲欧洲精品天堂一级| 欧美国产精品v| 国产香蕉久久精品综合网| 欧美一区二区三区四区视频| 欧美亚洲高清一区二区三区不卡| 美女网站久久| 国产精品一区视频| 一级成人国产| 日韩午夜在线| 在线欧美三区| 亚洲国产精品一区制服丝袜 | 国产日韩欧美一区二区三区乱码 | 五月婷婷综合在线| 一区二区在线观看免费| 亚洲少妇中出一区| 最新国产精品久久精品| 欧美高清在线精品一区| 久久精品欧美一区二区三区不卡| 日韩一区二区不卡| 91麻豆精品国产91久久久使用方法 | 亚洲精品免费一二三区| 亚洲欧洲日韩女同| 中文字幕在线视频一区| 日本一区二区视频在线| 中文字幕不卡在线观看| 国产欧美日韩在线看| 国产欧美一区二区三区鸳鸯浴| 久久一区二区视频| 久久午夜羞羞影院免费观看| 久久嫩草精品久久久精品| 日韩欧美中文字幕一区| 精品久久久久久综合日本欧美| 欧美大片拔萝卜| 久久综合久久综合久久综合| 久久精品一区四区| 国产精品午夜免费| 国产精品久久久久影院| 亚洲乱码国产乱码精品精的特点| 亚洲自拍偷拍图区| 亚洲国产精品久久人人爱| 亚洲一区二区三区四区的| 亚洲成人av资源| 日韩av一区二区三区| 久久91精品久久久久久秒播| 激情欧美一区二区| 国产精品资源站在线| 成人午夜伦理影院| 女人香蕉久久**毛片精品| 国产伊人精品| 在线视频精品一区| 久久综合网络一区二区| 欧美日韩国产首页在线观看| 日韩视频免费观看高清完整版 | 欧美猛男超大videosgay| 在线综合视频播放| 久久综合久色欧美综合狠狠| 国产精品免费视频一区|