Coder Social home page Coder Social logo

limetim's Introduction

为啥会有这玩意

起初是因为想看现在时间是多少秒,现代手机电脑啥的都不显示当前秒数,于是就学网上随意做了一个。

<div id="time"></div>
<script>setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString();", 1000);</script>
<!-- 大概是这个样子 -->

后来心想,既然写了,那就稍微整好看点儿,写点css。

当时css也不咋会,甚至从头开始学了css,写了界面

再后来,觉得这个全屏放,如果没有搜索框是不是不太方便,于是做了个搜索框:

image

这个搜索框还是js实现的,为了搞懂原理我甚至从头还学了一下js基础

(这个网页跃迁还是因为我不知道怎么判断url长什么样才多加了一个框)

后来我寻思,既然都有搜索框了,放点我日常想用的东西,一点不就打开了吗

于是它出现了:

image

我想现在你应该明白了。这玩意简直是我h5三巨头启蒙项目,我不得不传上来告诉大家,我自学html,都是因为我想做个时钟。

limetim's People

Contributors

mfn233 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.