哈尔滨精品网站制作,网站后台文章编辑器,连云港做网站的公司,免费学编程的app第22次修改了可删除可持久保存的前端html备忘录视频背景分离#xff0c;增加了本地连接#xff0c;增加了纯CSS做的折叠隐藏修改说明 !DOCTYPE html
html langzh
headmeta charsetUTF-8meta nameviewport… 第22次修改了可删除可持久保存的前端html备忘录视频背景分离增加了本地连接增加了纯CSS做的折叠隐藏修改说明 !DOCTYPE html
html langzh
headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0title与妖为邻备忘录/title
/head
style/* ******制定统一规则 开始 */* {margin: 0;padding: 0;box-sizing: border-box;list-style: none;user-select: none;color: #fffbfb;text-shadow: 1px 1px 1px #000;}input,button {cursor: pointer;border-radius: 5px;font-size: 18px;border: 1px solid rgb(134, 133, 133);color: rgb(252, 223, 4);background-color: #ff02029c;}/* ******制定统一规则 结束 *//* **页面背景样式.body_background 开始*/body {min-height: 100vh;/* background: radial-gradient(at 60% 0%, #3a6073, #1c2522); *//* background: linear-gradient(to bottom, #022c05, #000000); */background: #3a6073;/* background: #303745; *//* background: #1c2522; */background-size: cover;animation: bodybackground 16s infinite;}/* **页面背景样式.body_background*****结束 *//* 头部标题.header_title 开始 */.header_title {position: fixed;top: 2px;left: 2px;width: 140px;height: 66px;border-radius: 50%;color: rgb(255, 255, 255);/* 图片 img*/img {float: left;width: 66px;height: 66px;border-radius: 50%;transition: transform 0.3s ease;:hover {transform: scale(1.1);}}h2 {background-color: #f30303;border-radius: 50%;background-image: linear-gradient(to top left,rgba(0, 0, 0, 0.2),rgba(0, 0, 0, 0.2) 30%,rgba(0, 0, 0, 0));box-shadow: inset 4px 4px 4px rgba(255, 255, 255, 0.6),inset -4px -4px 5px rgba(0, 0, 0, 0.6);border: 0px solid black;}.my_name {letter-spacing: -8px;}}/* 头部标题.header_title 结束 *//* **********头部中心.header_center 开始 */.header_center {height: 66px;color: rgb(255, 255, 255);text-align: center;max-width: 1450px;margin: 0 auto;.summary {position: fixed;top: 0;left: 10%;}/* 修改说明.update_summary 开始 */.update_summary {font-size: 20px;font-weight: 700;position: relative;cursor: pointer;right: -700px;color: #f40b0b;}.update_summary:hover.css_summary_collapse {grid-template-rows: 1fr;}.css_summary_collapse {display: grid;grid-template-rows: 0fr;transition: grid-template-rows 0.3s cubic-bezier(0.34, 0.69, 0.1, 1);div {background-color: #012705;overflow: hidden;width: 180px;margin: 0 1200px;p {position: relative;color: #ffffff;margin: 0 auto;}}}/* 修改说明.update_summary 结束 *//* 当前时间 #current_time 开始*/#current_time {position: fixed;color: #ffea00;font-size: 30px;top: 20px;left: 50%;}/* 当前时间 #current_time 结束*//* 头部导航区.header_nav 开始 */.header_nav {position: fixed;top: 35px;left: 15%;font-size: 20px;border-bottom: 2px solid #f6f4db;.header_pagination {display: inline-block;/* 在第一个分页链接和最后一个分页链接添加圆角开始 */li:first-child a {border-top-left-radius: 5px;border-bottom-left-radius: 5px;}li:last-child a {border-top-right-radius: 5px;border-bottom-right-radius: 5px;}/* 在第一个分页链接和最后一个分页链接添加圆角结束 */li {list-style: none;display: inline;.home_page {background-color: #4CAF50;color: white;border: 1px solid #4CAF50;:hover {background-color: #ddd;color: rgb(245, 5, 5);}}a {float: left;margin: 0 15px;text-decoration: none;transition: background-color .3s;border: 1px solid #ddd;color: rgb(252, 232, 130);:hover:not(.home_page) {background-color: #ddd;font-size: 26px;color: rgb(255, 255, 255);}}}}}/* 头部导航区.header_nav 结束 */#openButton {font-size: 20px;:hover {background-color: #4CAF50;color: white;font-size: 24px;}}}/* **********头部中心.header_center 结束 *//* 中部搜索区#baidu_search *******************开始 */#baidu_search {position: fixed;top: 70px;left: 180px;width: 1300px;height: 90px; border: 1px solid rgb(134, 133, 133);p {position: fixed;top: 90px;left: 430px;background-color: #39ba46;#baidu_text{ width:500px; height:50px; line-height: 50px; padding-left:20px; font-size: 16px; position: absolute; background-color: rgba(255, 255, 255, 0.489); border: 0px; outline: none;background: linear-gradient(to top left, #022c05, #000000);border-radius: 5px 0 0 5px;cursor: text;} #baidu_btn{width: 80px;height: 50px;background-color: rgba(255, 255, 255, 0.671); outline: none;border: 0;position: absolute;left: 500px;border-radius: 0 5px 5px 0;}}#baidu_list{ height:auto; border:1px solid #ccc; display: none; position: absolute;top: 70px; left: 250px;} }#baidu_search ul li{ width:498px; height:30px; line-height: 30px; text-indent:10px; font-size: 16px; list-style: none; }#baidu_search li a{ text-decoration:none; } #baidu_search ul li:hover{ display:block; background:#ccc; font-size: 30px;color:#fff; z-index: 9999;} /* 中部搜索区#baidu_search *******************结束 *//* *****左侧本地连接.local_connection 开始 ***** */.local_connection {position: fixed;top: 75px;left: 0;width: 170px;text-align: center;a {text-decoration: none;margin: 10px 0px;color: #ffea07;display: flex;justify-content: center;:hover {color: #ff0303;font-size: 22px;}}}/* *****左侧本地连接.local_connection 结束 ***** *//* ***右侧常用网站 .right_websites开始 */.right_websites {position: fixed;top: 75px;right: 0;width: 170px;text-align: center;a {text-decoration: none;margin: 10px 0px;color: #ffea07;display: flex;justify-content: center;:hover {color: #ff0303;font-size: 22px;}}}/* ***右侧常用网站 .right_websites结束 *//* ****底部备忘内容区.memo_content_area *****开始 */.memo_content_area {border: 1px solid rgb(134, 133, 133);max-width: 1300px;margin: 95px 180px;font-size: 20px;/* 文本操作窗口按钮#abb_window和删除按钮.delete 开始 */#abb_window,.delete {position: sticky;top: 0px;background: #f30303;:hover {background: #000;}}/* 文本操作窗口按钮#abb_window和删除按钮.delete 结束 */sub {position: sticky;top: 0px;color: rgb(252, 181, 181);text-shadow: 1px 1px 1px #030303;box-shadow:inset -2px -2px 3px rgba(255, 255, 255, 0.6),inset 2px 2px 3px rgba(0, 0, 0, 0.6);margin: 0px 10px;user-select: text;border-radius: 20px;}span {user-select: text;color: #0d7b1c;:hover {color: #ffffff;}}.finish {/* text-decoration: underline; *//* text-decoration-color: rgb(255, 0, 0); */background-color: rgb(191, 210, 255);color: rgb(255, 250, 250);text-shadow: 1px 1px 1px #030303;box-shadow:inset -2px -2px 3px rgba(255, 255, 255, 0.6),inset 2px 2px 3px rgba(0, 0, 0, 0.6);}a {text-decoration: none;color: #ebf704;}/* 隐藏的文本操作框.login布局开始 ***************************/.login {display: none;width: 380px;height: 195px;position: fixed;background-color: #03510385;top: 350px;left: 360px;border-radius: 15px 15px 0 0;z-index: 9999;transform: translate(-90%, -90%);border-radius: 15px;.login-title {border-radius: 15px 15px 0 0;width: 100%;line-height: 40px;height: 40px;font-size: 20px;position: relative;cursor: move;background-color: #9bed9b85;.cl1ose-login {margin: 0 10px;}#closeBtn {position: absolute;float: right;padding: 0px 10px 0px 10px;top: -2px;right: 5px;font-size: 38px;font-style: normal;cursor: pointer;:hover {color: #6b6b6b;}}}/* ****************编辑文本区 .edit_text 开始 */.edit_text {#myForm {display: flex;flex-direction: column;box-sizing: border-box;border-radius: 10px;margin: 10px;padding: 5px;background-color: #c4a32c;input[typefile] {margin: 3px;height: 30px;background-color: #11b711a7;}textarea {font-size: 20px;margin: 3px;height: 50px;color: #ffffff;text-shadow: 1px 1px 1px #000;background-color: #062506b5;::placeholder {font-size: 20px;color: #ffffff;}}.abb-text,input[typereset] {width: 55px;margin: 3px 58px;}}/* ****编辑文本区 .edit_text 结束 */}/* 隐藏的文本操作框.login布局结束 ***************************/}}/* ****底部备忘内容区.memo_content_area *****结束 */
/style
body!-- 左侧本地连接.local_connection 开始 --div classlocal_connectionspan本地连接/spanhr /ullia hrefD:\My homepage\本地连接\js生成随机数.html随机数生成器/a/lilia hrefD:\My homepage\本地连接\本地连接计算器.html计算器/a/li!-- lia hrefD:\My homepage\本地连接\长久保存todos.html todos保存/a/li --/ul/div!-- 左侧本地连接.local_connection 结束 ---------------------------------------------------------------------------------!-- 右侧常用网站 .right_websites开始--div classright_websitesspan常用网站/spanhr /ullia hrefhttps://cn.bing.com/search?q%E7%BF%BB%E8%AF%91qsnformQBREsp-1lq0smcsrmainpq%E7%BF%BB%E8%AF%91sc10-2skcvid08CF7C75398B4C3C97E7AEC5D3D0921Fghsh0ghacc0ghpl title在线翻译 classtarget_blank在线翻译/a/liliahrefhttps://act.mihoyo.com/ys/app/interactive-map/index.html?bbs_presentation_styleno_headerlangzh-cnutm_sourcebbsutm_mediummysutm_campaignpcicon_markerFps24#/map/2?shown_typesNaN,-1084,508,2center2008.50,-1084.00zoom-3.00title原神大地图 class target_blank原神大地图/a/lilia hrefhttps://www.bilibili.com/ titlebilibili class target_blank哔哩哔哩/a/lilia hrefhttps://www.dedexuexi.com/ target_blank 建站学习网 /a/lilia hrefhttps://www.runoob.com/ title 菜鸟教程 class target_blank菜鸟教程/a/lilia hrefhttps://developer.mozilla.org/zh-CN/ titleMDN网络文档 class target_blankMDN网络文档/a/li /lilia hrefhttps://cn.vuejs.org/ target_blank JavaScript 框架vue /a/lilia hrefhttps://www.w3ccoo.com/ target_blank w3schools 教程 /a/lilia hrefhttps://zh.javascript.info/ target_blank 现代 JavaScript 教程 /a/lilia hrefhttps://www.dedexuexi.com/tool/3D/ target_blank/a/lilia hrefhttps://element-plus.org/zh-CN/ target_blankVue3组件库/a/lilia hrefhttps://blog.csdn.net/lulei5153?spm1011.2415.3001.5343 title与妖为邻CSDN博客 classtarget_blank与妖为邻的CSDN博客/a/ul/div!-- 右侧常用网站 .right_websites结束----------------------------------------------------------------------------------------!-- -------头部标题.header_title 开始 --div classheader_titleimg srcfile:///D:\My homepage\image\jpg\tuzi3.jpg alt与妖为邻h2 classmy_name与妖为邻/h2h2 classmemo备忘录/h2/div!-- 头部中心.header_center -------开始 --div classheader_center!-- 修改说明.summary 开始--div classsummary浏览器主页,整理本地资源备忘日常生活、各类教程、网页素材! keytodotext/div span classupdate_summary第23次0.3.0更改/spandiv classcss_summary_collapsediv classupdate_notesp更改说明增加一个百度搜索引擎/p/div/div!-- 修改说明.summary 结束--div idcurrent_time当前时间/divdiv classheader_navul classheader_paginationlia hreffile:///C:\Users\90917\Desktop\备忘录.html classhome_page首页/a/lilia hrefD:\My homepage\本地连接\My logs备忘录.html日志/a/lilia hrefD:\My homepage\image相册/a/lilia href#更多/a/lilia hrefD:\My homepage\本地连接\html5代码账号密码备忘录样本.html联系我/a/li/ulbutton idopenButton打开本地文件/button/div/div!-- 头部中心 .header_center 结束--!-- 中部搜索区#baidu_search -----开始 --div idbaidu_searchpinput typetext idbaidu_textinput typebutton namebtn idbaidu_btn value百度一下 //pul idbaidu_list/ul/div!-- 中部搜索区#baidu_search -----结束 --!-- ------------备忘内容区.memo_content_area *****开始 -----------------------------------------------div classmemo_content_area idmemobutton idabb_window hrefjavascript:;添加文本窗口/buttonbutton iddelete classdelete对选择进行删除/buttonsub classa_button lt;button classa-hrefgt;lt;a href输入网站地址 target_blankgt;输入网站名称lt;/agt; lt;/buttongt;!-- nbsp;空格效果 lt表示左半括号, 用gt表示右半括号 . 字符的转义字符串是amp; --nbsp;nbsp;nbsp;ltamp;lt amp;gt gt/sub!-- ------------------编辑文本区 .edit_text 开始--div idlogin classlogindiv classedit_text div idtitle classlogin-titlespan classcl1ose-login文本操作/spani hrefjavascript:void(0); idcloseBtntimes/i/divdivform idmyForminput typefile nameinputfile accepttext/plain, text/css, text/html, text/javascript, text/markdownclassbackground3D /textarea classup-textarea nameuptextarea rows1 cols30%placeholder选择本地txt、js、css或html文件文件内容会被自动读取/textareadivbutton typetext classabb-text添加/buttoninput typereset value重置/div/form/div/div!-- ------------------编辑文本区 .edit_text 结束--/div!-- ------------备忘内容区.memo_content_area *****结束 ------------------------------------------------/div
/body
script/* *********当前时间*current_time********************************************************* */var current_time document.getElementById(current_time);function showTime(time) {var now new Date();var year now.getFullYear();var month now.getMonth();var day now.getDate();var hour now.getHours();var minu now.getMinutes();var second now.getSeconds();month month 1;var arr_work new Array(星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六);var week arr_work[now.getDay()];month month 10 ? 0 month : month;//时间月份个位补0day day 10 ? 0 day : day;hour hour 10 ? 0 hour : hour;minu minu 10 ? 0 minu : minu;second second 10 ? 0 second : second;var time year 年 month 月 day 日 week hour : minu : second;current_time.innerHTML time;}window.setInterval(showTime(current_time), 1000);/* *********************当前时间.current_time 结束***************************************************** *//****提示弹窗无需点击的函数*****开始*****************************************/function displayAlert(type, data, time) {var prompt document.createElement(div);if (type success) {prompt.style.width 200px;prompt.style.backgroundColor #009900;} else if (type error) {prompt.style.width 280px;prompt.style.backgroundColor #990000;} else if (type info) {prompt.style.backgroundColor #e6b800;prompt.style.width 600px;} else {return;}prompt.id prompt;prompt.style.textAlign center;prompt.style.position fixed;prompt.style.height 60px;prompt.style.marginLeft -100px;prompt.style.marginTop -30px;prompt.style.left 30%;prompt.style.top 30%;prompt.style.color white;prompt.style.fontSize 25px;prompt.style.borderRadius 20px;prompt.style.textAlign center;prompt.style.lineHeight 60px;if (document.getElementById() null) {document.body.appendChild(prompt);prompt.innerHTML data;setTimeout(function () {document.body.removeChild(prompt);}, time);}}/****提示弹窗无需点击的函数*****结束*****************************************//* 中部搜索区#baidu_search *******************开始 */var txt document.getElementById(baidu_text); var oUl document.getElementById(baidu_list); var oBtn document.getElementById(baidu_btn);txt.onkeyup function(){ oUl.innerHTML ;var val txt.value; var oScript document.createElement(script);//动态创建script标签 oScript.src https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wdvalcbcallback; //添加链接及回调函数 document.body.appendChild(oScript);//添加script标签 document.body.removeChild(oScript);//删除script标签 } //回调函数 function callback(data){ data.s.forEach(function(value){var oLi document.createElement(li);oLi.innerHTML a href\https://www.baidu.com/s?wd value \ value /a;oUl.appendChild(oLi);})oUl.style.display block; } //点击跳转到百度页面并搜索其中内容oBtn.onclick function(){var val txt.value;location.href http://www.baidu.com.cn/s?wd val cl3;}/* 中部搜索区#baidu_search *******************结束 *//*
/***********************备忘内容区.memo_content_area *****开始*******************************/var uptext document.querySelector(.up-textarea);var addto document.querySelector(.abb-text);var text document.querySelector(.memo_content_area);/*************添加事件*****************/addto.onclick function () {inserhtml(uptext.value, );// 添加后清空输入框uptext.value ;// 焦点放回输入框uptext.focus();savetodo();}/*************savetodo函数****************/var savetodo function () {let todoarr [];let todojs {};var econtent document.querySelectorAll(.JS_content);for (let index 0; index econtent.length; index) {todojs.name econtent[index].innerHTML;todojs.finish econtent[index].classList.contains(finish);todoarr.push(todojs);todojs {};}save(todoarr);}var loadtodo function () {let todoarr load();for (let index 0; index todoarr.length; index) {inserhtml(todoarr[index].name, todoarr[index].finish ? finish : );}}/*********本地持久储存localStorage函数*****************************/var save function (arr) {/**JSON.stringify(arr) 先将数组转换为字符串 *localStorage.todotext 然后将字符串保存到本地的todotext中*/localStorage.todotext JSON.stringify(arr);}/***读取函数把todotext转成数组*然后返回数组*/var load function (arr) {var arr JSON.parse(localStorage.todotext);return arr;}/**********************finish样式函数*****************************//**********************按钮点击事件*****************************/text.onclick function () {var tg event.target;// 获取父元素下的所有子元素var tgkids tg.parentElement.children;/*******************************对复选框的点击事件******************************/if (tgkids[0].checked) {tgkids[1].classList.add(finish);}else {tgkids[1].classList.remove(finish);}// 保存更改的样式savetodo();/***********************对选择的进行删除********************************************/var Select document.getElementById(delete);Select.onclick function () {if (confirm(是否删除所选)) {var check document.getElementsByName(checkbox);for (var i 0; i check.length; i) {if (check[i].checked) {check[i].parentElement.remove();i--;// 删除后保存savetodo();}}}}}var inserhtml function (val, cls) {text.insertAdjacentHTML(beforeend,divinput typecheckbox namecheckbox span classJS_content ${cls}${val}/span /div)}loadtodo();/********************文本操作框*****************************************/// 1. 获取元素var login document.querySelector(.login);var mask document.querySelector(#memo);// 2. 点击弹出层这个链接link让mask和login显示出来abb_window.addEventListener(click, function () {mask.style.display block;login.style.display block;});// 3. 点击closeBtn就隐藏mask和logincloseBtn.addEventListener(click, function () {// mask.style.display none;login.style.display none;});// 4. 开始拖拽//1当我们鼠标按下就获得鼠标在盒子内的坐标title.addEventListener(mousedown, function (e) {var x e.pageX - login.offsetLeft;var y e.pageY - login.offsetTop;//2鼠标移动的时候把鼠标在页面中的坐标减去鼠标在盒子内的坐标就是模态框的left和top值document.addEventListener(mousemove, move);function move(e) {login.style.left e.pageX - x px;login.style.top e.pageY - y px;}//3鼠标弹起就让鼠标移动事件移除document.addEventListener(mouseup, function () {document.removeEventListener(mousemove, move);});});/**************************打开URL按钮的JavaScript******************************************/// 获取打开URL按钮元素var openBtn document.getElementById(openButton);// 添加点击事件处理程序openBtn.addEventListener(click, function () {// 获取文件路径// 这里假设您已经有一个函数来获取文件路径例如 prompt(请输入文件路径, D:/前端学习, _blank);var filePath prompt(请输入网站地址或者本地文件路径, D:\My homepage);if (filePath) {// 使用window.location对象的assign()方法导航到指定文件// window.location.assign(filePath);// 或者使用window.open()方法打开新窗口导航到指定文件window.open(filePath);} else {displayAlert(info, 未提供有效的文件路径, 1500);// alert(未提供有效的文件路径);}});/**************************本地文件读取的函数******************************************/window.onload function () {var text document.getElementsByName(uptextarea)[0],inputFile document.getElementsByName(inputfile)[0];//上传文件inputFile.onchange function () {console.log(this.files);var reader new FileReader();reader.readAsText(this.files[0], UTF-8);reader.onload function (e) {// urlData就是对应的文件内容var urlData this.result;text.value urlData;};};};/**************************复制文本******************************************/var oContent document.getElementById(memo);oContent.ondragend function () {document.execCommand(Copy);// alert(复制成功)displayAlert(error, 复制成功, 1500);};
/script
/html