Giter VIP home page Giter VIP logo

sixnine's Introduction

SixNine

Using a simple python script to generate an HTML page with hidden infomation.

Requirement

  • Dependence: pip install pygame

  • Font file: please add an font to the working space, you can choose any font you like. In my example, I copy the font 'MSYH' (a font for Chinese and English) in my working space. Just copy the font from the Windows OS 'C:\Windows\Fonts\微软雅黑\msyh.ttc', and then change the line 13 in six_nine.py.

  • Image file: please replace the image ./html/images/profile.jpg.

Run

Just run the code, and then open the /html/main.html in the broswer. And then use 'ctrl + F' to search the digit '6'.

Chinese README

用Python生成一个隐藏着信息的网页,就像刮刮乐一样。

准备

注意将windows下的“微软雅黑”字体加到工作目录下,或者你自己选择别的字体,谢谢!

我的是在C:\Windows\Fonts\微软雅黑\msyh.ttc

代码six_nine.py 的第13行 font = pygame.font.Font('msyh.ttc', 50) 为设置字体

请将html/images下的profile.jpg换成你女神的照片,模板的图片是随便找的

运行后

在html文件夹下中的main.html即是生成的网页

效果

sixnine's People

Contributors

mepeichun 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.