###GUI
###动画
###GUI
###动画
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>console track</title> | |
</head> | |
<body> | |
console status: <span id="stat"></span> | |
<script> | |
function isConsoleOpen() { |
var IE = (function() { | |
if (document.documentMode) { | |
return document.documentMode; | |
} else { | |
for (var i = 7; i > 4; i--) { | |
var div = document.createElement("div"); | |
div.innerHTML = "<!--[if IE " + i + "]><span></span><![endif]-->"; | |
if (div.getElementsByTagName("span").length) { |
var requestAnimationFrame = window.requestAnimationFrame || (function() { | |
var timeLast = 0; | |
return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { | |
var timeCurrent = (new Date()).getTime(), | |
timeDelta; | |
/* Dynamically set the delay on a per-tick basis to more closely match 60fps. */ | |
/* Technique by Erik Moller. MIT license: https://gist.github.com/paulirish/1579671. */ | |
timeDelta = Math.max(0, 16 - (timeCurrent - timeLast)); |
.windows,.editor, .content,.editor-one,.container,.monaco-editor,
.monaco-scrollable-element,.monaco-editor-background,glyph-margin,.view-lines {
background: transparent !important;
}
.bq-bg{
height: 100%;
width: 100%;
position: absolute;
这是本人在做的一个前端开发调试工具(HttpMock),功能是web服务器+http日记+http代理(类似fiddler),其中的代理功能,需要在web服务启动时,自动去设置各浏览器的代理设置.
我原先是通过写注册表的方式去实现,实现方法很简单,写一个注册表文件,启动的时候自动运行一下这个注册表文件就可以.
修改代理的注册表文件的内容,proxy.reg:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MigrateProxy"=dword:00000001
// Copyright 2018 The Flutter team. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:wechat_assets_picker/wechat_assets_picker.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
游戏melvor的个人平衡补丁
;((main) => {
const script = document.createElement('script')
script.textContent = `try { (${main})(); } catch (e) { console.log(e); }`
document.body.appendChild(script).parentNode.removeChild(script)
})(() => {
function hackSmith() {
startSmithing = function (clicked = false) {