12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <link rel="stylesheet" type="text/css" href="hello.css">
- <meta charset="UTF-8">
- <title>Hello</title>
- <script src="requests.js"></script>
- </head>
- <body>
- <script>
- let host = 'http://127.0.0.1:5000/'
- </script>
- <canvas id="canvas" class="bg_canvas"></canvas>
- <div class="screen" id="screen">
- <script>
- img_func = function () {
- let screen_div = document.getElementById('screen');
- screen_div.style.backgroundImage = 'url("Pic/match.png")';
- };
- request_get(img_func, "img")
- </script>
- <div id='cotanTitle' class="cotan_title">
- </div>
- <div id="method" class="mode">
- <h1 class="mode">CoTan<br>科学计算系统</h1>
- <h2 class="mode">CoTan工具</h2>
- <script>
- function start(mode_url){
- start_func = function () {
- console.log('run');
- if (xhr.status === 200) {
- current_circle.remove();
- }};
- current_circle.add();
- request_get(start_func, mode_url)
- }
- </script>
- <button type="button" id="board" class="button white big" onclick="start('draftboard')">CoTan草稿板</button>
- <div class="nothing"></div>
- <button type="button" id="selenium" class="button white big" onclick="start('crawler')">自动化网页</button>
- <div class="nothing"></div>
- <button type="button" id="git" class="button white small" onclick="start('git')">git仓库控制器</button>
- <div class="nothing"></div>
- <button type="button" id="website" class="button white small" onclick="window.open('https://cotan.songzh.website');">CoTan社区</button>
- <h2 class="mode">数学系统</h2>
- <button type="button" id="alg" class="button white big" onclick="start('algebraicfactory')">代数工厂</button>
- <div class="nothing"></div>
- <button type="button" id="machine" class="button white big" onclick="start('machinelearner')">机器学习</button>
- <div class="nothing"></div>
- <button type="button" id="data" class="button white big" onclick="start('datascience')">数据科学</button>
- <div class="nothing"></div>
- <button type="button" id="func" class="button white small" onclick="start('functionfactory')">函数工厂</button>
- <div class="nothing"></div>
- <button type="button" id="geometric" class="button white small" onclick="start('functionmapping')">函数实验室</button>
- <h2 class="mode">物化系统</h2>
- <button type="button" id="physical" class="button white big">几何车间</button>
- <div class="nothing"></div>
- <button type="button" id="chemistry" class="button white big">物理车间</button>
- <div class="nothing"></div>
- <button type="button" id="laboratory" class="button white small">化学车间</button>
- <h2 class="mode">系统工具</h2>
- <button type="button" id="plugin" class="button white small" onclick="start('system')">系统管理</button>
- <div class="nothing"></div>
- <button type="button" id="process" class="button white small" onclick="window.open(host + '/communication');">通信管理器</button>
- </div>
- <script>
- let screen_width = 1200;
- let screen_height = 800;
- console.log(screen_height);
- document.getElementById("cotanTitle").style.width = String(screen_width -
- document.getElementById("method").offsetWidth - 1) + 'px';
- </script>
- <script src="bg.js"></script>
- </div>
- </body>
- </html>
|