随笔分类 -  HTML/JS

摘要:Math for Programmers, 3D graphics, machine learning, and simulations with Python, Version 10, Copyright 2020 Manning Publications My (fictional) frien 阅读全文
posted @ 2021-12-30 21:55 Fun_with_Words 编辑
摘要:Karnaugh Map Solver (charlie-coleman.com) 最多10个变量,有js源码. 在右下角表里点,f会变。 class Petrick { constructor(minterms, maxterms, dontCares, dimension, variableNa 阅读全文
posted @ 2021-12-24 20:21 Fun_with_Words 编辑
摘要:看fliplot的源码时看到若干新奇(对我而言)的东西,如: import { config, simDB} from "../main.js"; const WAVEARRAY = 0; export class Wave { constructor(waveTable) { setTimeout 阅读全文
posted @ 2021-12-23 23:00 Fun_with_Words 编辑
摘要:有时我们想把自己的"网站"copy给别人,它有一大堆小文件,很不清爽。给人一个httpd.py和data.zip不好吗?下面的代码能做到: import os import sys from zipfile import ZipFile zf = ZipFile('fliplot.zip', 'r' 阅读全文
posted @ 2021-12-21 17:03 Fun_with_Words 编辑
摘要:全部文件在这里。无需上网即可使用,自带了jquery.min.js等。页面最下面有作者信息, 不是我做的, 我只是下载删减压缩了一番。不好意思少了行 port = int(sys.argv[1]) What is a Value Change Dump (VCD) file? 博客园 python可 阅读全文
posted @ 2021-12-21 08:57 Fun_with_Words 编辑
摘要:今天jquery-ui和jquery配合出错:Uncaught TypeError: Cannot read property 'step' of undefined 这里说是因为用了jquery的slim版,没那个函数了。可我用的不是slim版。反正换版本呗。 这里是新浪的CDN. 折腾了一会,还 阅读全文
posted @ 2021-12-20 21:55 Fun_with_Words 编辑
摘要:首先要知道less: @width: 10px; @height: @width + 10px; #header { width: @width; height: @height; } 转换为CSS: #header { width: 10px; height: 20px; } 功能倒是强了,不过我 阅读全文
posted @ 2021-12-20 20:23 Fun_with_Words 编辑
摘要:JavaScript和C都是编程语言。运行库和语言是两码事,如C的fopen和fprintf; JS在浏览器里运行的时候,可以调用alert()和console.log(). C是编译型语言,编译成.exe后单独运行;JS则需要个解释器/虚拟机(Virtual Machine)/引擎。 微软有自己的 阅读全文
posted @ 2021-12-20 19:46 Fun_with_Words 编辑
摘要:[stackoverflow] Q. I have seen an HTML code like this for the ID attribute: id="t1:c3" Can someone explain this to me? What is the purpose of the colo 阅读全文
posted @ 2021-12-20 16:35 Fun_with_Words 编辑
摘要:搜(通过网页链接打开应用程序),有许多信息。HTTP是一种协议,ftp等也还没死。Windows, Android和mac OS下,都可以注册自己的协议,比如wdxy://... 我的协议:-)) Windows下就是改注册表喽,别的原理也差不太多。 有意思的是当没安装客户端时,网页里可能有个定时器 阅读全文
posted @ 2021-12-19 23:43 Fun_with_Words 编辑
摘要:比如我在博客园里写帖子,用IrfanView打开了一个.jpg文件,在里面复制,在博客园的TinyMCE里粘贴,发帖后发现图片变成了.png,既不是.jpg,也不是.bmp. 其原理是什么呢? HTML5里有ClipboardEvent.clipboardData,通过它可以。Flash好像也可以, 阅读全文
posted @ 2021-12-18 19:28 Fun_with_Words 编辑
摘要:一个超简单的Microsoft Edge Extension - Fun_with_Words - 博客园 (cnblogs.com) 能在每个页面里注入JS代码,那我们有啥不能干的?我们可以弹出个窗口,输入编辑JS代码,然后在网页内执行。Ladies and gentlemen, I give y 阅读全文
posted @ 2021-12-16 23:30 Fun_with_Words 编辑
摘要:界面程序很短。引擎不是我写的,棋力不是很强——但我写不出来,正在学GNU chess的源码。 全部文件: https://files.cnblogs.com/files/blogs/714801/ccib.zip 引擎是可以换的,如 象棋旋风官方网站--中国象棋第一AI智能引擎 (ccyclone. 阅读全文
posted @ 2021-12-16 21:03 Fun_with_Words 编辑
摘要:用了HTML5里的canvas. 这个"游戏"的”玩法“是: 改迷宫折腾电脑 改程序折腾自己:-)。我自以为程序挺简明,注释挺多,比如: // 全局变量坑死人,这里曾经少个var // 虽然直接drawImage有时能出来,但这么做绝对必要。坑了我好长时间。 单.HTML文件146行,包括数张嵌入式 阅读全文
posted @ 2021-12-14 21:55 Fun_with_Words 编辑
摘要:大量IT电子书下载: Bookzz - Bookzz.org Alternatives Site 这个比微软官网上的例子简单很多,适合入门。总共4个文件: https://files.cnblogs.com/files/blogs/714801/cet6wordpicker.zip 36KB 1.p 阅读全文
posted @ 2021-12-13 23:18 Fun_with_Words 编辑
摘要:开通JS权限后能干啥?请看侧边栏公告、页首和页脚的演示:算24、胡几张、计算器。可以做个漂亮的时钟。 如何开通JS权限?管理-设置-JS权限,申请。管理员很nice,很痛快地给开通了。博客侧边栏公告,页首HTML代码,页脚HTML代码自己填。 开通JS权限会增加博客园网站的负担?.html文件肯定会 阅读全文
posted @ 2021-12-08 15:59 Fun_with_Words 编辑
摘要:能用鼠标拉着转。 https://files.cnblogs.com/files/blogs/714801/%E7%A9%BA%E9%97%B4%E5%87%A0%E4%BD%95.7z var points = { A: [0, 0, 0], C: [20, 0, 0], B: [20, 0, 1 阅读全文
posted @ 2021-12-04 16:42 Fun_with_Words 编辑
摘要:1 <html> 2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 3 <title>Go Robot</title> 4 <style> 5 * {font:11pt Consolas,mono; color 阅读全文
posted @ 2021-11-28 14:36 Fun_with_Words 编辑










 和4张牌。

点击右上角即可分享
微信分享提示