123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
- <meta name="theme-color" content="#222">
- <meta name="generator" content="Hexo 4.2.0">
- <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
- <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
- <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
- <link rel="mask-icon" href="/images/logo.svg" color="#222">
- <link rel="stylesheet" href="/css/main.css">
- <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
- <link rel="stylesheet" href="/lib/pace/pace-theme-minimal.min.css">
- <script src="/lib/pace/pace.min.js"></script>
- <script id="hexo-configurations">
- var NexT = window.NexT || {};
- var CONFIG = {"hostname":"schtonn.github.io","root":"/","scheme":"Muse","version":"7.7.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"flat"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":true,"pangu":false,"comments":{"style":"tabs","active":"valine","storage":true,"lazyload":false,"nav":null,"activeClass":"valine"},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideLeftIn"}}};
- </script>
- <meta name="description" content="This page is locked">
- <meta property="og:type" content="article">
- <meta property="og:title" content="How do computers work?">
- <meta property="og:url" content="https://schtonn.github.io/posts/computer/index.html">
- <meta property="og:site_name" content="Alex's Blog">
- <meta property="og:description" content="This page is locked">
- <meta property="og:locale" content="en_US">
- <meta property="og:image" content="https://schtonn.github.io/images/transistor.png">
- <meta property="og:image" content="https://schtonn.github.io/images/and-gate.jpg">
- <meta property="og:image" content="https://schtonn.github.io/images/compute-module.jpg">
- <meta property="article:published_time" content="2020-03-04T04:53:05.000Z">
- <meta property="article:modified_time" content="2020-03-29T07:59:23.009Z">
- <meta property="article:author" content="Alex">
- <meta property="article:tag" content="other">
- <meta name="twitter:card" content="summary">
- <meta name="twitter:image" content="https://schtonn.github.io/images/transistor.png">
- <link rel="canonical" href="https://schtonn.github.io/posts/computer/">
- <script id="page-configurations">
- // https://hexo.io/docs/variables.html
- CONFIG.page = {
- sidebar: "",
- isHome : false,
- isPost : true
- };
- </script>
- <title>How do computers work? | Alex's Blog</title>
-
- <noscript>
- <style>
- .use-motion .brand,
- .use-motion .menu-item,
- .sidebar-inner,
- .use-motion .post-block,
- .use-motion .pagination,
- .use-motion .comments,
- .use-motion .post-header,
- .use-motion .post-body,
- .use-motion .collection-header { opacity: initial; }
- .use-motion .site-title,
- .use-motion .site-subtitle {
- opacity: initial;
- top: initial;
- }
- .use-motion .logo-line-before i { left: initial; }
- .use-motion .logo-line-after i { right: initial; }
- </style>
- </noscript>
- </head>
- <body itemscope itemtype="http://schema.org/WebPage">
- <div class="container use-motion">
- <div class="headband"></div>
- <header class="header" itemscope itemtype="http://schema.org/WPHeader">
- <div class="header-inner"><div class="site-brand-container">
- <div class="site-nav-toggle">
- <div class="toggle" aria-label="Toggle navigation bar">
- <span class="toggle-line toggle-line-first"></span>
- <span class="toggle-line toggle-line-middle"></span>
- <span class="toggle-line toggle-line-last"></span>
- </div>
- </div>
- <div class="site-meta">
- <div>
- <a href="/" class="brand" rel="start">
- <span class="logo-line-before"><i></i></span>
- <span class="site-title">Alex's Blog</span>
- <span class="logo-line-after"><i></i></span>
- </a>
- </div>
- <p class="site-subtitle">Middle school OIer</p>
- </div>
- <div class="site-nav-right">
- <div class="toggle popup-trigger">
- </div>
- </div>
- </div>
- <nav class="site-nav">
-
- <ul id="menu" class="menu">
- <li class="menu-item menu-item-home">
- <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>Home</a>
- </li>
- <li class="menu-item menu-item-tags">
- <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>Tags</a>
- </li>
- <li class="menu-item menu-item-archives">
- <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>Archives</a>
- </li>
- <li class="menu-item menu-item-games">
- <a href="/games/" rel="section"><i class="fa fa-fw fa-gamepad"></i>Games</a>
- </li>
- <li class="menu-item menu-item-sans">
- <a href="/sans/" rel="section"><i class="fa fa-fw fa-heart"></i>sans</a>
- </li>
- </ul>
- </nav>
- </div>
- </header>
-
- <div class="back-to-top">
- <i class="fa fa-arrow-up"></i>
- <span>0%</span>
- </div>
- <div class="reading-progress-bar"></div>
- <main class="main">
- <div class="main-inner">
- <div class="content-wrap">
-
- <div class="content">
-
- <div class="posts-expand">
-
-
-
- <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="en">
- <link itemprop="mainEntityOfPage" href="https://schtonn.github.io/posts/computer/">
- <script>
- (function(){
- if('x14'){
- if (prompt('Password?') !== 'x14'){
- alert('GOAWAY!');
- history.back();
- }
- }
- })();
- </script>
- <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
- <meta itemprop="image" content="/images/avatar.gif">
- <meta itemprop="name" content="Alex">
- <meta itemprop="description" content="The blog of a middle school OIer">
- </span>
- <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
- <meta itemprop="name" content="Alex's Blog">
- </span>
- <header class="post-header">
- <h1 class="post-title" itemprop="name headline">
- How do computers work?
- </h1>
- <div class="post-meta">
-
-
- <span class="post-meta-item">
- <span class="post-meta-item-icon">
- <i class="fa fa-calendar-o"></i>
- </span>
- <span class="post-meta-item-text">Posted on</span>
- <time title="Created: 2020-Mar-04 12:53:05" itemprop="dateCreated datePublished" datetime="2020-03-04T12:53:05+08:00">2020-Mar-04</time>
- </span>
- <span class="post-meta-item">
- <span class="post-meta-item-icon">
- <i class="fa fa-calendar-check-o"></i>
- </span>
- <span class="post-meta-item-text">Edited on</span>
- <time title="Modified: 2020-Mar-29 15:59:23" itemprop="dateModified" datetime="2020-03-29T15:59:23+08:00">2020-Mar-29</time>
- </span>
-
- <span id="/posts/computer/" class="post-meta-item leancloud_visitors" data-flag-title="How do computers work?" title="Views">
- <span class="post-meta-item-icon">
- <i class="fa fa-eye"></i>
- </span>
- <span class="post-meta-item-text">Views: </span>
- <span class="leancloud-visitors-count"></span>
- </span>
-
- <span class="post-meta-item">
-
- <span class="post-meta-item-icon">
- <i class="fa fa-comment-o"></i>
- </span>
- <span class="post-meta-item-text">Valine: </span>
-
- <a title="valine" href="/posts/computer/#valine-comments" itemprop="discussionUrl">
- <span class="post-comments-count valine-comment-count" data-xid="/posts/computer/" itemprop="commentCount"></span>
- </a>
- </span>
-
-
- </div>
- </header>
-
-
-
- <div class="post-body" itemprop="articleBody">
-
- <p>This page is locked</p>
- <a id="more"></a>
- <div id="div_content" class="div_show">
- <h3 id="introduction"><a class="markdownIt-Anchor" href="#introduction"></a> Introduction</h3>
- <p>We all know computers, and we basically know how to use it, but we have no idea about how does it work.</p>
- <h3 id="well"><a class="markdownIt-Anchor" href="#well"></a> Well…</h3>
- <blockquote>
- <p>If I can present well, and you can understand well, We can watch a video!</p>
- </blockquote>
- <h3 id="deep-inside-the-computer"><a class="markdownIt-Anchor" href="#deep-inside-the-computer"></a> Deep inside the computer</h3>
- <p>Inside the computer, there are loads of parts, and the most important one is the <strong>CPU</strong>(<strong>C</strong>entral <strong>P</strong>rocessing <strong>U</strong>nit).</p>
- <p>The <strong>CPU</strong> contains <strong>basic modules</strong>, which contains <strong>logic <strong>gates</strong></strong>, which contains <strong>transistors</strong>.</p>
- <h3 id="transistor"><a class="markdownIt-Anchor" href="#transistor"></a> Transistor</h3>
- <p>What is a transistor?<br />
- Transistor is the most basic part of a computer. It is just an electronic switch, but without it, your computer cannot compute anything.</p>
- <p><img data-src="/images/transistor.png" alt="A transistor" /></p>
- <p>The transistor has three pins, collector, base, and emitter, also, C, B, E for short. You must be familiar with this because we’ve met it before.<br />
- Transistor processes information and the information is called <strong>BITS</strong>, which can be set to either 0 or 1.</p>
- <h3 id="logic-gate"><a class="markdownIt-Anchor" href="#logic-gate"></a> Logic Gate</h3>
- <p>Combining transistors, you will get logic gates, which can get some input and create some output. For example, an AND gate produces an output of 1 if all its inputs are one, and output of 0 otherwise.</p>
- <p><img data-src="/images/and-gate.jpg" alt="AND gate" /></p>
- <h3 id="compute-modules"><a class="markdownIt-Anchor" href="#compute-modules"></a> Compute Modules</h3>
- <p>Combining logic gates, you will get compute modules, which can do some basic calculating, such as <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>a</mi><mo>+</mo><mi>b</mi><mo stretchy="false">(</mo><mi>a</mi><mo><</mo><mn>3</mn><mo separator="true">,</mo><mi>b</mi><mo><</mo><mn>3</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">a+b (a<3,b<3)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord mathdefault">a</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault">b</span><span class="mopen">(</span><span class="mord mathdefault">a</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel"><</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord">3</span><span class="mpunct">,</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault">b</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel"><</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord">3</span><span class="mclose">)</span></span></span></span>.</p>
- <p><img data-src="/images/compute-module.jpg" alt="compute module" /></p>
- <h3 id="breaking-change"><a class="markdownIt-Anchor" href="#breaking-change"></a> Breaking change</h3>
- <p>Once you can add small numbers, you can add multiple times to add big numbers. And once you can add, you can also multiply, once you can multiply, you can basically do anything.</p>
- </div>
- <style>
- .div_show{
- display:block;
- }
- .div_hide{
- display:none;
- }
- </style>
- <script language="javaScript">
- function ShowText(){
- document.getElementById("div_text").className="div_show";
- }
- function HideText(){
- document.getElementById("div_text").className="div_hide";
- }
- function ShowCont(){
- document.getElementById("div_content").className="div_show";
- }
- function HideCont(){
- document.getElementById("div_content").className="div_hide";
- }
- </script>
- <a href="javaScript:HideCont()">Hide content</a>
- <p><a href="javaScript:ShowCont()">Show content</a></p>
- <h3 id="pop-quiz"><a class="markdownIt-Anchor" href="#pop-quiz"></a> Pop quiz</h3>
- <ol>
- <li>What is the simplest component of a data processor?</li>
- <li>What can it do?</li>
- <li>What is the most imprortant part in a conputer?</li>
- <li>Why these simple modules can do things complicated?<br />
- <a href="javaScript:ShowText()">Show answer!</a><br />
- <a href="javaScript:HideText()">Hide answer!</a></li>
- </ol>
- <div id="div_text" class="div_hide">
- <ol>
- <li>A transistor</li>
- <li>It is an electronic switch</li>
- <li>CPU</li>
- <li>Transistor forms logic gates, and then forms compute module, which can add, and by cleverly adding, you can do anything.</li>
- </ol>
- </div>
- <h3 id="video"><a class="markdownIt-Anchor" href="#video"></a> Video</h3>
- <p>A video downloaded from YouTube, which is the reference for this article.<br />
- <video src="/images/computer.mp4" controls="controls" style="max-width: 100%; display: block; margin-left: auto; margin-right: auto;"><br />
- your browser does not support the video tag<br />
- </video></p>
- <p style="text-align:center">
- <a id="download" href="/images/computer.mp4" download><i class="fa fa-download"></i><span> Download Now</span> </a>
- </p>
- </div>
-
-
-
-
- <div>
- <ul class="post-copyright">
- <li class="post-copyright-author">
- <strong>Post author: </strong>Alex
- </li>
- <li class="post-copyright-link">
- <strong>Post link: </strong>
- <a href="https://schtonn.github.io/posts/computer/" title="How do computers work?">https://schtonn.github.io/posts/computer/</a>
- </li>
- <li class="post-copyright-license">
- <strong>Copyright Notice: </strong>All articles in this blog are licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fa fa-fw fa-creative-commons"></i>BY-NC-SA</a> unless stating additionally.
- </li>
- </ul>
- </div>
- <footer class="post-footer">
-
- <div class="post-tags">
- <a href="/tags/other/" rel="tag"><i class="fa fa-tag"></i> other</a>
- </div>
-
-
- <div class="post-nav">
- <div class="post-nav-item">
- <a href="/posts/segment-tree/" rel="prev" title="线段树">
- <i class="fa fa-chevron-left"></i> 线段树
- </a></div>
- <div class="post-nav-item">
- <a href="/posts/matrix-pow/" rel="next" title="矩阵快速幂运用">
- 矩阵快速幂运用 <i class="fa fa-chevron-right"></i>
- </a></div>
- </div>
- </footer>
-
- </article>
-
-
-
- </div>
- </div>
-
- <div class="comments" id="valine-comments"></div>
- <script>
- window.addEventListener('tabs:register', () => {
- let activeClass = CONFIG.comments.activeClass;
- if (CONFIG.comments.storage) {
- activeClass = localStorage.getItem('comments_active') || activeClass;
- }
- if (activeClass) {
- let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
- if (activeTab) {
- activeTab.click();
- }
- }
- });
- if (CONFIG.comments.storage) {
- window.addEventListener('tabs:click', event => {
- if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
- let commentClass = event.target.classList[1];
- localStorage.setItem('comments_active', commentClass);
- });
- }
- </script>
- </div>
-
-
- <div class="toggle sidebar-toggle">
- <span class="toggle-line toggle-line-first"></span>
- <span class="toggle-line toggle-line-middle"></span>
- <span class="toggle-line toggle-line-last"></span>
- </div>
- <aside class="sidebar">
- <div class="sidebar-inner">
- <ul class="sidebar-nav motion-element">
- <li class="sidebar-nav-toc">
- Table of Contents
- </li>
- <li class="sidebar-nav-overview">
- Overview
- </li>
- </ul>
- <!--noindex-->
- <div class="post-toc-wrap sidebar-panel">
- <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#introduction"><span class="nav-number">1.</span> <span class="nav-text"> Introduction</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#well"><span class="nav-number">2.</span> <span class="nav-text"> Well…</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#deep-inside-the-computer"><span class="nav-number">3.</span> <span class="nav-text"> Deep inside the computer</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#transistor"><span class="nav-number">4.</span> <span class="nav-text"> Transistor</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#logic-gate"><span class="nav-number">5.</span> <span class="nav-text"> Logic Gate</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#compute-modules"><span class="nav-number">6.</span> <span class="nav-text"> Compute Modules</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#breaking-change"><span class="nav-number">7.</span> <span class="nav-text"> Breaking change</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#pop-quiz"><span class="nav-number">8.</span> <span class="nav-text"> Pop quiz</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#video"><span class="nav-number">9.</span> <span class="nav-text"> Video</span></a></li></ol></div>
- </div>
- <!--/noindex-->
- <div class="site-overview-wrap sidebar-panel">
- <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
- <p class="site-author-name" itemprop="name">Alex</p>
- <div class="site-description" itemprop="description">The blog of a middle school OIer</div>
- </div>
- <div class="site-state-wrap motion-element">
- <nav class="site-state">
- <div class="site-state-item site-state-posts">
- <a href="/archives">
- <span class="site-state-item-count">10</span>
- <span class="site-state-item-name">posts</span>
- </a>
- </div>
- <div class="site-state-item site-state-tags">
- <a href="/tags/">
- <span class="site-state-item-count">4</span>
- <span class="site-state-item-name">tags</span></a>
- </div>
- </nav>
- </div>
- <div class="links-of-author motion-element">
- <span class="links-of-author-item">
- <a href="https://github.com/schtonn" title="GitHub → https://github.com/schtonn" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
- </span>
- <span class="links-of-author-item">
- <a href="skype:alex?call|chat" title="Skype → skype:alex?call|chat" rel="noopener" target="_blank"><i class="fa fa-fw fa-skype"></i>Skype</a>
- </span>
- </div>
- <div class="links-of-blogroll motion-element">
- <div class="links-of-blogroll-title">
- <i class="fa fa-fw fa-link"></i>
- Links
- </div>
- <ul class="links-of-blogroll-list">
- <li class="links-of-blogroll-item">
- <a href="https://yonghong.github.io/" title="https://yonghong.github.io" rel="noopener" target="_blank">Yonghong</a>
- </li>
- <li class="links-of-blogroll-item">
- <a href="https://source.unsplash.com/random/1600x900" title="https://source.unsplash.com/random/1600x900" rel="noopener" target="_blank">Background</a>
- </li>
- </ul>
- </div>
- </div>
- <div id="treefrog" style="text-align: center;margin-top: 18px;">
- <object type="application/x-shockwave-flash" style="outline:none;" data="/js/treefrog.swf?up_bodyColor=444444&up_pattern=0&up_flyColor=777777&up_tongueColor=555555&up_patternColor=000000&up_releaseFly=0&up_frogName=Froggie&up_backgroundImage=http://&up_bellySize=.5&up_footColor=444444&up_eyeColor=444444&up_backgroundColor=222222&" width="300" height="600"><param name="movie" value="http://cdn.abowman.com/widgets/treefrog/treefrog.swf?up_bodyColor=444444&up_pattern=0&up_flyColor=777777&up_tongueColor=555555&up_patternColor=000000&up_releaseFly=0&up_frogName=Froggie&up_backgroundImage=http://&up_bellySize=.5&up_footColor=444444&up_eyeColor=444444&up_backgroundColor=222222&"></param><param name="AllowScriptAccess" value="always"></param><param name="wmode" value="opaque"></param><param name="scale" value="noscale"/><param name="salign" value="tl"/></object>
- </div>
- </div>
- </aside>
- <div id="sidebar-dimmer"></div>
- </div>
- </main>
- <footer class="footer">
- <div class="footer-inner">
-
- <div class="copyright">
-
- ©
- <span itemprop="copyrightYear">2020</span>
- <span class="with-love">
- <i class="fa fa-user"></i>
- </span>
- <span class="author" itemprop="copyrightHolder">Alex Xiang</span>
- </div>
-
- </div>
- </footer>
- </div>
-
- <script src="/lib/anime.min.js"></script>
- <script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
- <script src="/lib/velocity/velocity.min.js"></script>
- <script src="/lib/velocity/velocity.ui.min.js"></script>
- <script src="/js/utils.js"></script>
- <script src="/js/motion.js"></script>
- <script src="/js/schemes/muse.js"></script>
- <script src="/js/next-boot.js"></script>
-
- <script>
- (function(){
- var bp = document.createElement('script');
- var curProtocol = window.location.protocol.split(':')[0];
- bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(bp, s);
- })();
- </script>
-
-
-
- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css">
-
- <script>
- NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
- NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
- var GUEST = ['nick', 'mail', 'link'];
- var guest = 'nick,mail,link';
- guest = guest.split(',').filter(item => {
- return GUEST.includes(item);
- });
- new Valine({
- el : '#valine-comments',
- verify : true,
- notify : true,
- appId : 'BmologYYnRqCv0SLHDeDdA17-gzGzoHsz',
- appKey : 'w9mVebFMdCmY6Nh9vfcBGaGt',
- placeholder: "Balabalabalablalablablbalbalabllbalblablblaablbllbalbalbllbalabalbalbalblabalbalb.",
- avatar : 'mm',
- meta : guest,
- pageSize : '10' || 10,
- visitor : true,
- lang : 'en' || 'zh-cn',
- path : location.pathname,
- recordIP : true,
- serverURLs : ''
- });
- }, window.Valine);
- });
- </script>
- </body>
- </html>
|