当前位置: 首页 > news >正文

wordpress linux迁移seo关键词搜索优化

wordpress linux迁移,seo关键词搜索优化,旅游网站开发的意义,国内免费顶级域名网站一般用于图片打印文字或图片的坐标获取,代码来自AI有改动。 功能&#xff1a;本地图选择后不上传直接可比划线条作为对角线得到矩形&#xff0c;动态显示坐标 按下鼠标开始松开鼠标结束。有细微BUG但不影响坐标获取。 <!DOCTYPE html> <html lang"en">…

一般用于图片打印文字或图片的坐标获取,代码来自AI有改动。

功能:本地图选择后不上传直接可比划线条作为对角线得到矩形,动态显示坐标

按下鼠标开始松开鼠标结束。有细微BUG但不影响坐标获取。

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Draw Rectangle on Image</title><style>#container {position: relative;display: inline-block;border: 1px solid #333;cursor: crosshair;overflow: hidden;}.rectangle {position: absolute;border: 1px dashed red;background-color: rgba(255, 0, 0, 0.1);}textarea {width: 100%;height: 80px;margin-top: 10px;font-family: monospace;}</style>
</head>
<body><h2>Draw Rectangle and Track Position</h2><input type="file" id="imageUpload" accept="image/*"><div id="container"></div><h3>Current Rectangle Info</h3><textarea id="currentInfo" readonly>X: -, Y: -, Width: -, Height: -</textarea><h3>Log of Rectangles</h3><textarea id="logInfo" readonly></textarea><script>const container = document.getElementById('container');const imageUpload = document.getElementById('imageUpload');const currentInfo = document.getElementById('currentInfo');const logInfo = document.getElementById('logInfo');let startX, startY, rect, isDrawing = false;// Change the background image when a file is uploaded and adjust container sizeimageUpload.addEventListener('change', (event) => {const file = event.target.files[0];if (file) {const reader = new FileReader();reader.onload = (e) => {const img = new Image();img.onload = () => {container.style.width = `${img.width}px`;container.style.height = `${img.height}px`;container.style.backgroundImage = `url('${e.target.result}')`;};img.src = e.target.result;};reader.readAsDataURL(file);}});container.addEventListener('mousedown', (event) => {// Remove any previous rectangle and reset infoif (rect) {rect.remove();}currentInfo.value = "X: -, Y: -, W: -, H: -";// Start drawing the rectanglestartX = event.offsetX;startY = event.offsetY;isDrawing = true;// Create a new rectangle elementrect = document.createElement('div');rect.classList.add('rectangle');rect.style.left = `${startX}px`;rect.style.top = `${startY}px`;rect.style.width = `0px`;rect.style.height = `0px`;container.appendChild(rect);});container.addEventListener('mousemove', (event) => {if (!isDrawing) return;// Calculate current width and height based on mouse positionconst currentX = event.offsetX;const currentY = event.offsetY;const width = Math.abs(currentX - startX);const height = Math.abs(currentY - startY);// Set rectangle position and size based on mouse directionrect.style.left = `${Math.min(startX, currentX)}px`;rect.style.top = `${Math.min(startY, currentY)}px`;rect.style.width = `${width}px`;rect.style.height = `${height}px`;// Update the current info displaycurrentInfo.value = `X: ${Math.min(startX, currentX)}, Y: ${Math.min(startY, currentY)}, W: ${width}, H: ${height}`;});container.addEventListener('mouseup', (event) => {if (!isDrawing) return;isDrawing = false;// Record the final rectangle detailsconst finalX = parseInt(rect.style.left);const finalY = parseInt(rect.style.top);const finalWidth = parseInt(rect.style.width);const finalHeight = parseInt(rect.style.height);// Append the log information to the logInfo textarealogInfo.value += `Rectangle - X: ${finalX}, Y: ${finalY}, W: ${finalWidth}, H: ${finalHeight}\n`;// Stop drawing for a new sessionisDrawing = false;});</script>
</body>
</html>

http://www.mmbaike.com/news/79363.html

相关文章:

  • 白领兼职做网站台州seo公司
  • 网站的点击率怎么查免费网站建设
  • 招标网有哪些怎么优化一个网站
  • 成都网站建设龙兵科技企业网站建设的作用
  • 房地产网站建设解决方案什么是互联网营销师
  • 建设网站注意哪几点渠道推广有哪些方式
  • 越秀网站建设方案360地图下载最新版
  • 日本购物网站开发免费好用的网站
  • Excel怎么做网站链接市场营销方案怎么做
  • 初中做语文综合题的网站凡科建站的免费使用
  • wordpress锚文字如何优化网络环境
  • 我的世界是怎么做的视频网站公司网站制作费用
  • 网站优化要怎么做才会做到最佳怎样注册网站
  • 自己做网站上传相册雅虎搜索引擎
  • 单产品 网站免费网络推广的方法
  • 国外公司做中国网站做个网页需要多少钱?
  • 定制跟模板网站有什么不一样自己的网站怎么建立
  • 如何开发网站平台今日最火的新闻
  • 商务网站建设理论依据网络推广公司如何做
  • 网站制作需要网站制作网络推广的重要性与好处
  • 企业网站建站 费用百度一下首页登录
  • 合肥网站建设yjhlw网络营销常用的工具有哪些
  • 课程网站开发运行环境杭州排名优化公司电话
  • 微信网站打不开seo营销外包
  • 青岛做网站找哪家好推广公司好做吗
  • 我想做个网站怎么做 找谁做好hao123上网从这里开始官方
  • 金沙网站怎么做代理百度网盘下载
  • 我想看b站直播怎全球搜索网站排名
  • 王健林亏60亿做不成一个网站网址大全下载
  • 网站备案流程实名认证百度应用商店下载安装