From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- public/js/2dtilt.js | 1 - public/js/about.js | 0 public/js/dynamicBlob.js | 1 - public/js/getrepo.js | 1 - public/js/hacktype.js | 1 - public/js/header.js | 1 - public/js/index.js | 0 public/js/main.js | 1 - public/js/mouseblob.js | 1 - public/js/randomblob.js | 1 - public/js/rbg.js | 25 ------------------------- public/js/swup.js | 1 - public/js/tilt.conf.js | 1 - public/js/tilt.conf.noglare.js | 1 - public/js/tilt.js | 1 - public/js/transition.js | 1 - 16 files changed, 38 deletions(-) delete mode 100644 public/js/2dtilt.js delete mode 100644 public/js/about.js delete mode 100644 public/js/dynamicBlob.js delete mode 100644 public/js/getrepo.js delete mode 100644 public/js/hacktype.js delete mode 100644 public/js/header.js delete mode 100644 public/js/index.js delete mode 100644 public/js/main.js delete mode 100644 public/js/mouseblob.js delete mode 100644 public/js/randomblob.js delete mode 100644 public/js/rbg.js delete mode 100644 public/js/swup.js delete mode 100644 public/js/tilt.conf.js delete mode 100644 public/js/tilt.conf.noglare.js delete mode 100644 public/js/tilt.js delete mode 100644 public/js/transition.js (limited to 'public/js') diff --git a/public/js/2dtilt.js b/public/js/2dtilt.js deleted file mode 100644 index d5c2a597..00000000 --- a/public/js/2dtilt.js +++ /dev/null @@ -1 +0,0 @@ -var target=document.querySelectorAll(".tilt")[0];try{var tiltFullPageListening=target.dataset.tiltFullPageListening}catch(TypeError){var tiltFullPageListening}var centerX,centerY,mouseX,mouseY,isMouseOver=!1;function resetStyle(){target.style.transform="",target.style.height="0px"}function tiltEffect(){isMouseOver=!0;var rect=target.getBoundingClientRect();centerX=rect.left+rect.width/2,centerY=rect.top+rect.height/2,target.style.transform="translate(".concat((mouseX-centerX)/50,"px, ").concat((mouseY-centerY)/50,"px)"),requestAnimationFrame(tiltEffect)}navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i)||1i;i++)color+="0123456789ABCDEF"[Math.floor(16*Math.random())];return color}function generateGradient(){for(var gradient="conic-gradient(",firstTimeInter=!0,colorCount=Math.floor(5*Math.random())+2,i=0;i=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e\n\t\t\t\"user\n\t\t\n\t\t
\n\t\t\t\n\t\t\t

").concat(profile.name,"

\n\t\t\t\n\t\t\t

").concat(profile.bio,"

\n\t\t\t

\n\t\t\tMail: ").concat(profile.email,"\n\t\t\t

\n\t\t\t

\n\t\t\t\tLocation: ").concat(profile.location,"\n\t\t\t

\n\t\t\t

\n\t\t\t\t@").concat(profile.login," \n\t\t\t\tRepos: ").concat(profile.public_repos,"\n\t\t\t\tGists: ").concat(profile.public_gists,"\n\t\t\t

\n\t\t
\n\t")},getRepos=function(){var _ref2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee2(){var repos,res,data;return _regeneratorRuntime().wrap(function _callee2$(_context2){for(;1;)switch(_context2.prev=_context2.next){case 0:return repos=[],_context2.next=3,fetch("https://api.github.com/users/".concat(username,"/repos?&sort=pushed"));case 3:return res=_context2.sent,_context2.next=6,res.json();case 6:data=_context2.sent,repos=repos.concat(data),repos.sort(function(a,b){return b.forks_count-a.forks_count}),repos.sort(function(a,b){return b.stargazers_count-a.stargazers_count}),displayRepos(repos);case 11:case"end":return _context2.stop()}},_callee2)}));return function getRepos(){return _ref2.apply(this,arguments)}}();getRepos();var displayRepos=function displayRepos(repos){var userHome="https://github.com/".concat(username);filterInput.classList.remove("hide");var _step,_iterator=_createForOfIteratorHelper(repos);try{for(_iterator.s();!(_step=_iterator.n()).done;){var repo=_step.value;if(!(repo.fork&&hideForks)){var langUrl="".concat("https://github.com/littleblack111","?tab=repositories&q=&language=").concat(repo.language),starsUrl="".concat("https://github.com/littleblack111","/").concat(repo.name,"/stargazers"),forksUrl="".concat("https://github.com/littleblack111","/").concat(repo.name,"/network/members"),listItem=document.createElement("li");listItem.classList.add("repo","animate","zoomIn"),listItem.innerHTML="\n\t\t\t

".concat(repo.name,"

\n\t\t\t").concat(repo.description?"".concat(repo.description,""):"","

"),0\n\t\t\t\u2B50 ").concat(repo.stargazers_count,"")),repo.language&&(listItem.innerHTML+="\n\t\t\t").concat(devicons[repo.language],"")),0\n\t\t\t").concat(devicons.Git," ").concat(repo.forks_count,"")),listItem.innerHTML+=repo.homepage&&""!==repo.homepage?"

\n\t\t\tCode ").concat(devicons.Github,"\n\t\t\tLive ").concat(devicons.Chrome,"
"):"

\n\t\t\tView Project ").concat(devicons.Github,"
"),repoList.append(listItem)}}}catch(err){_iterator.e(err)}finally{_iterator.f()}};filterInput.addEventListener("input",function(e){var _step2,search=e.target.value,repos=document.querySelectorAll(".repo"),searchLowerText=search.toLowerCase(),_iterator2=_createForOfIteratorHelper(repos);try{var _loop=function _loop(){var repo=_step2.value,lowerText=repo.innerText.toLowerCase();lowerText.includes(searchLowerText)?(repo.classList.remove("hide"),repo.style.position="relative"):(repo.classList.add("hide"),repo.addEventListener("animationend",function(){repo.style.position=""==searchLowerText?"relative":"absolute"}))};for(_iterator2.s();!(_step2=_iterator2.n()).done;)_loop()}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}),filterInput.onfocus=function(event){filterInput.style.transform="scale(1.1)"},filterInput.onblur=function(event){filterInput.style.transform=""};var devicons={Git:"",Github:"",Chrome:"",Assembly:" Assembly","C#":" C#","C++":" C++",C:" C",Clojure:" C",CoffeeScript:" CoffeeScript",Crystal:" Crystal",CSS:" CSS",Dart:" Dart",Dockerfile:" Docker",Elixir:" Elixir",Elm:" Elm",Erlang:" Erlang","F#":" F#",Go:" Go",Groovy:" Groovy",HTML:" HTML",Haskell:" Haskell",Java:" Java",JavaScript:" JavaScript",Julia:" Julia","Jupyter Notebook":" Jupyter",Kotlin:" Kotlin",Latex:" Latex",Lua:" Lua",Matlab:" Matlab",Nim:" Nim",Nix:" Nix",ObjectiveC:" ObjectiveC",OCaml:" OCaml",Perl:" Perl",PHP:" PHP",PLSQL:" PLSQL",Processing:" Processing",Python:" Python",R:" R",Ruby:" Ruby",Rust:" Rust",Sass:" Sass",Scala:" Scala",Shell:" Shell",Solidity:" Solidity",Stylus:" Stylus",Svelte:" Svelte",Swift:" Swift",Terraform:" Terraform",TypeScript:" TypeScript","Vim Script":" Vim Script",Vue:" Vue",Mail:""}; \ No newline at end of file diff --git a/public/js/hacktype.js b/public/js/hacktype.js deleted file mode 100644 index 3dddf55f..00000000 --- a/public/js/hacktype.js +++ /dev/null @@ -1 +0,0 @@ -var letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ",numbers="1234567890",special="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",interval=null;function hackType(){var elements=document.querySelectorAll(".hacktype"),intervals=[];elements.forEach(function(element){var iteration=0,interval=setInterval(function(){element.innerText=element.innerText.split("").map(function(letter,index){return index=element.dataset.value.length&&clearInterval(interval),iteration+=1/5},20);intervals.push(interval)})}hackType(),setInterval(function(){var elements=document.querySelectorAll(".hacktype");elements.forEach(function(){return clearInterval(interval)}),hackType()},1e4),document.addEventListener("visibilitychange",function(){document.hidden||hackType()}); \ No newline at end of file diff --git a/public/js/header.js b/public/js/header.js deleted file mode 100644 index 13e78b19..00000000 --- a/public/js/header.js +++ /dev/null @@ -1 +0,0 @@ -var header=document.querySelector("[header]"),mainHeader=document.createElement("div"),page=header.getAttribute("page");mainHeader.innerHTML="\n\n
\n\t \n
\n",header.appendChild(mainHeader),document.getElementById("btn"+page).classList.add("active"),window.onscroll=function(){var header=document.querySelector("header");header.classList.toggle("minimizedIsland",100this.element.offsetHeight?this.element.offsetWidth:this.element.offsetHeight);Object.assign(this.glareElement.style,{width:t+"px",height:t+"px"})}},e.prototype.updateClientSize=function(){this.clientWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.clientHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},e.prototype.onWindowResize=function(){this.updateGlareSize(),this.updateClientSize()},e.prototype.setTransition=function(){var t=this;clearTimeout(this.transitionTimeout),this.element.style.transition=this.settings.speed+"ms "+this.settings.easing,this.glare&&(this.glareElement.style.transition="opacity "+this.settings.speed+"ms "+this.settings.easing),this.transitionTimeout=setTimeout(function(){t.element.style.transition="",t.glare&&(t.glareElement.style.transition="")},this.settings.speed)},e.prototype.extendSettings=function(t){var e={reverse:!1,max:15,startX:0,startY:0,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:1,speed:300,transition:!0,axis:null,glare:!1,"max-glare":1,"glare-prerender":!1,"full-page-listening":!1,"mouse-event-element":null,reset:!0,"reset-to-start":!0,gyroscope:!0,gyroscopeMinAngleX:-45,gyroscopeMaxAngleX:45,gyroscopeMinAngleY:-45,gyroscopeMaxAngleY:45,gyroscopeSamples:10},i={};for(var s in e)if(s in t)i[s]=t[s];else if(this.element.hasAttribute("data-tilt-"+s)){var n=this.element.getAttribute("data-tilt-"+s);try{i[s]=JSON.parse(n)}catch(t){i[s]=n}}else i[s]=e[s];return i},e.init=function(t,i){t instanceof Node&&(t=[t]),t instanceof NodeList&&(t=[].slice.call(t)),t instanceof Array&&t.forEach(function(t){"vanillaTilt"in t||(t.vanillaTilt=new e(t,i))})},e}();return"undefined"!=typeof document&&(window.VanillaTilt=e,e.init(document.querySelectorAll("[data-tilt]"))),e}(); \ No newline at end of file diff --git a/public/js/transition.js b/public/js/transition.js deleted file mode 100644 index 238dabed..00000000 --- a/public/js/transition.js +++ /dev/null @@ -1 +0,0 @@ -var a=document.querySelectorAll("a");a.forEach(function(element){element.onclick=function(){element.classList.add("openlink"),element.innerHTML="\n \n ",element.style.zIndex=999999,element.style.overflow="auto !important",setTimeout(function(){element.classList.remove("openlink")},3e3)}}); \ No newline at end of file -- cgit v1.2.3