From 2a7df698b6d20b50bcee7a70195e3049dc32f774 Mon Sep 17 00:00:00 2001 From: Trilok Date: Sat, 21 Jan 2023 20:30:19 +0530 Subject: [PATCH] fixed copyright date --- index.html | 13 ++++++++++--- js/main.js | 16 ++++++++++++++-- js/main.min.js | 2 +- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 2929c2b..5507053 100644 --- a/index.html +++ b/index.html @@ -108,9 +108,13 @@

#  Stalk Me Here!

- + @@ -130,6 +134,9 @@

#  Stalk Me Here!

}) + + + \ No newline at end of file diff --git a/js/main.js b/js/main.js index d2714da..a111920 100644 --- a/js/main.js +++ b/js/main.js @@ -188,9 +188,16 @@ $(document).ready(() => { lang: "c", license: "Various", url: "https://github.com/ChimeraKernelProject" - } + }, + ]; projTemp.bind(ctx); + + const footerTemp = Template("footer") + const context = [{ + date: new Date().getFullYear().toString(), + }] + footerTemp.bind(context) })(); // Waypoints Setup @@ -377,4 +384,9 @@ $(document).ready(() => { ) }); })(); -}); \ No newline at end of file +}); + +footer = document.getElementById("footer-para") +date = new Date().getFullYear +footer.innerText = date + diff --git a/js/main.min.js b/js/main.min.js index 66edab7..e844742 100644 --- a/js/main.min.js +++ b/js/main.min.js @@ -1 +1 @@ -$(document).ready(()=>{(()=>{let a=!1,b=!1;async function c(a=async()=>{}){b=!0,await $("#nav-toggle").fadeOut("fast").promise(),await $(".overlay-nav").fadeOut("fast").promise(),await $("#mOverlay").animate({width:"0"}).css({display:"block","z-index":3},{duration:30,easing:"linear"}).promise(),await $("#tCol").animate({width:"0"}).css({"background-color":"#fe53bb",display:"block"},{duration:15,easing:"linear"}).promise(),await $("#sCol").animate({width:"0"}).css({"background-color":"#f5d300",display:"block"},{duration:10,easing:"linear"}).promise(),a(),await $("#fCol").animate({width:"0"}).css({"background-color":"#08f7fe",display:"block"},{duration:5,easing:"linear"}).promise(),await $("body").css("overflow","visible").promise(),await $(".temp").remove().promise(),await $("#nav-toggle").children().removeClass("fa-times").addClass("fa-bars").promise(),await $("#nav-toggle").fadeIn("fast").promise(),b=!1}$(".navbar-brand").click(async()=>{await $('html, body').animate({scrollTop:$("#main").offset().top},{duration:500}),window.location.hash="#main"}),$("#nav-toggle").click(async()=>{a?(c(),a=!1):($('
').appendTo(document.body),$('
').appendTo(document.body),$('
').appendTo(document.body),await $("#nav-toggle").fadeOut("fast").promise(),await $("body").css("overflow","hidden").promise(),await $("#fCol").animate({width:"100%"}).css({"background-color":"#fe53bb",display:"block"},{duration:30,easing:"linear"}).promise(),await $("#sCol").animate({width:"100%"}).css({"background-color":"#f5d300",display:"block"},{duration:15,easing:"linear"}).promise(),await $("#tCol").animate({width:"100%"}).css({"background-color":"#08f7fe",display:"block"},{duration:10,easing:"linear"}).promise(),await $("#mOverlay").animate({width:"100%"}).css({display:"grid","z-index":3,"align-items":"center"},{duration:5,easing:"linear"}).promise(),await $(".overlay-nav").fadeIn("fast").promise(),await $("#nav-toggle").children().removeClass("fa-bars").addClass("fa-times").promise(),await $("#nav-toggle").fadeIn("fast").promise(),a=!0)}),$(".overlay li").each((b,a)=>{$(a).children().hover(()=>{$(a).stop().animate({width:"60vw"}).css({overflow:"visible",backgroundColor:"#09fbd3"})},()=>{$(a).stop().animate({width:"0vw"}).css({overflow:"visible",backgroundColor:"#08f7fe"})})}),$(".overlay-nav li").each((e,d)=>{$(d).click(()=>{b||(c(()=>$(`${$(d).children().attr("rhref")}`)[0].scrollIntoView()),a=!1)})})})(),(()=>{function a(b,a){return{name:b,pix:2*(100-a),duration:2/75*a}}const b=Template("skill-item"),c=[a("Python",90),a("Kotlin",75),a("C/C++",65),a("Rust",75),a("Nim",69),a("AOSP_Devel",72),a("Linux",70),a("Web_Devel",55)];b.bind(c)})(),(()=>{const a=Template("proj-item"),b=[{title:"android_kernel_xiaomi_msm8937-4.9",desc:"A crude attempt to boot Linux Kenel 4.9 on Xiaomi Redmi 3s(land).",lang:"c",license:"GPLv2",url:"https://github.com/rupansh/android_kernel_xiaomi_msm8937-4.9"},{title:"nim-tg-manager",desc:"A management bot for telegram, written in nim!",lang:"nim",license:"RPL-1.b",url:"https://github.com/rupansh/nim-tg-manager"},{title:"generic-ota-app",desc:"A generic OTA app for custom roms that doesn't require sys-priv",lang:"kotlin",license:"Apache-2.0",url:"https://github.com/rupansh/generic-ota-app"},{title:"csgo-external-rust",desc:"A PoC external cheat for CounterStrike Global Offensive",lang:"rust",license:"GPLv3",url:"https://github.com/rupansh/csgo-external-rust"},{title:"JABB",desc:"Just Another telegram BuildBot for building ROMS on-the-go!",lang:"python",license:"GPLv3",url:"https://github.com/rupansh/JABB"},{title:"Chimera Kernel Project",desc:"A custom kernel for Redmi 3s, prioritizing performance",lang:"c",license:"Various",url:"https://github.com/ChimeraKernelProject"}];a.bind(b)})(),(()=>{function b(a){const f=["#08f7fe","#09fbd3","#fe53bb","#fafafa"],c='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';let b=[],d=(d,e)=>{$(a).children().each(function(a){a>d&&(e&&(b[a]=$(this).text()),$(this).text(c[Math.floor(Math.random()*c.length)]),$(this).css("color",f[Math.floor(Math.random()*4)]))})};d(0,!0);let e=100;$(a).children().each(function(c){let f=this;setTimeout(function(){$(f).text(b[c]),$(f).css("color","#f5d300"),d(c,!1),c==b.length-1&&a.removeClass("block")},e),e+=100})}function a(a,b){b=='up'?a.removeClass('avail'):a.addClass('avail')}$("#tran-1-txt").waypoint(()=>{$("#tran-1-txt").hasClass("block")||($("#tran-1-txt").addClass("block"),b($("#tran-1-txt")))},{offset:"100%"}),$(".skill").each((c,b)=>{$(b).waypoint(c=>a($(b),c),{offset:"100%"})}),$(".project").each((c,b)=>{$(b).waypoint(c=>a($(b),c),{offset:"100%"})}),$("#social").waypoint(function(){$({imW:160.5}).animate({imW:321},{duration:300,step:a=>{$("#profile-pic").css({width:`${a}px`,height:`auto`,marginTop:'0px'}),$("#social")[0].setCircle()}}),this.destroy()},{offset:"100%"})})(),(()=>{function a(){let b=225,c=$('.sicon'),d=$('#social'),e=d.width(),f=d.height(),a=0,g=2*Math.PI/c.length;c.each(function(){var c=Math.round(e/2+b*Math.cos(a)-$(this).outerWidth()/2),d=Math.round(f/2+b*Math.sin(a)-$(this).outerHeight()/2);$(this).css({left:c+'px',top:d+'px'}),a+=g})}a(),$("#social")[0].setCircle=a,$(window).resize(a),$(".sicon").each((i,a)=>{let e=$(a).width(),f=$(a).height(),b={top:0,left:0},c=$(a).position(),d=!1,g=parseInt($(a).children().css("font-size").replace("px",""));function h(){e=$(a).width(),f=$(a).height(),b={top:0,left:0},c=$(a).position(),d=!1,g=parseInt($(a).children().css("font-size").replace("px",""))}$(window).resize(h),$(a).hover(()=>{d||(b.left=$(a).css("left"),b.top=$(a).css("top"),c=$(a).position(),d=!0),$("#social").stop().animate({marginBottom:"30rem"},{duration:400,easing:"swing"}),$("#profile-pic").stop().animate({width:`${321/2}px`,height:`auto`,marginTop:`${321/4}px`},{duration:400,easing:"swing"}),$(a).stop().animate({width:`${e+2*25}px`,height:`${f+2*25}px`,top:`${c.top-25}px`,left:`${c.left-25}px`},{duration:400,easing:"swing"}),$(a).children().stop().animate({fontSize:`${g*1.5}px`},{duration:400,easing:"swing"})},()=>{$("#social").stop().animate({marginBottom:"15rem"},{duration:400,easing:"swing"}),$("#profile-pic").stop().animate({width:'321px',height:`auto`,marginTop:'0px'},{duration:400,easing:"swing"}),$(a).stop().animate({width:`${e}px`,height:`${f}px`,top:b.top,left:b.left},{duration:400,easing:"swing"}),$(a).children().stop().animate({fontSize:`${g}px`},{duration:400,easing:"swing"})})})})()}) \ No newline at end of file +$(document).ready(()=>{(()=>{let i=!1,e=!1;async function t(i=async()=>{}){e=!0,await $("#nav-toggle").fadeOut("fast").promise(),await $(".overlay-nav").fadeOut("fast").promise(),await $("#mOverlay").animate({width:"0"}).css({display:"block","z-index":3},{duration:30,easing:"linear"}).promise(),await $("#tCol").animate({width:"0"}).css({"background-color":"#fe53bb",display:"block"},{duration:15,easing:"linear"}).promise(),await $("#sCol").animate({width:"0"}).css({"background-color":"#f5d300",display:"block"},{duration:10,easing:"linear"}).promise(),i(),await $("#fCol").animate({width:"0"}).css({"background-color":"#08f7fe",display:"block"},{duration:5,easing:"linear"}).promise(),await $("body").css("overflow","visible").promise(),await $(".temp").remove().promise(),await $("#nav-toggle").children().removeClass("fa-times").addClass("fa-bars").promise(),await $("#nav-toggle").fadeIn("fast").promise(),e=!1}$(".navbar-brand").click(async()=>{await $("html, body").animate({scrollTop:$("#main").offset().top},{duration:500}),window.location.hash="#main"}),$("#nav-toggle").click(async()=>{i?(t(),i=!1):($('
').appendTo(document.body),$('
').appendTo(document.body),$('
').appendTo(document.body),await $("#nav-toggle").fadeOut("fast").promise(),await $("body").css("overflow","hidden").promise(),await $("#fCol").animate({width:"100%"}).css({"background-color":"#fe53bb",display:"block"},{duration:30,easing:"linear"}).promise(),await $("#sCol").animate({width:"100%"}).css({"background-color":"#f5d300",display:"block"},{duration:15,easing:"linear"}).promise(),await $("#tCol").animate({width:"100%"}).css({"background-color":"#08f7fe",display:"block"},{duration:10,easing:"linear"}).promise(),await $("#mOverlay").animate({width:"100%"}).css({display:"grid","z-index":3,"align-items":"center"},{duration:5,easing:"linear"}).promise(),await $(".overlay-nav").fadeIn("fast").promise(),await $("#nav-toggle").children().removeClass("fa-bars").addClass("fa-times").promise(),await $("#nav-toggle").fadeIn("fast").promise(),i=!0)}),$(".overlay li").each((i,e)=>{$(e).children().hover(()=>{$(e).stop().animate({width:"60vw"}).css({overflow:"visible",backgroundColor:"#09fbd3"})},()=>{$(e).stop().animate({width:"0vw"}).css({overflow:"visible",backgroundColor:"#08f7fe"})})}),$(".overlay-nav li").each((a,o)=>{$(o).click(()=>{e||(t(()=>$(`${$(o).children().attr("rhref")}`)[0].scrollIntoView()),i=!1)})})})(),(()=>{function i(i,e){return{name:i,pix:2*(100-e),duration:2/75*e}}let e=Template("skill-item"),t=[i("Python",90),i("Kotlin",75),i("C/C++",65),i("Rust",75),i("Nim",69),i("AOSP_Devel",72),i("Linux",70),i("Web_Devel",55)];e.bind(t)})(),(()=>{let i=Template("proj-item"),e=[{title:"android_kernel_xiaomi_msm8937-4.9",desc:"A crude attempt to boot Linux Kenel 4.9 on Xiaomi Redmi 3s(land).",lang:"c",license:"GPLv2",url:"https://github.com/rupansh/android_kernel_xiaomi_msm8937-4.9"},{title:"nim-tg-manager",desc:"A management bot for telegram, written in nim!",lang:"nim",license:"RPL-1.b",url:"https://github.com/rupansh/nim-tg-manager"},{title:"generic-ota-app",desc:"A generic OTA app for custom roms that doesn't require sys-priv",lang:"kotlin",license:"Apache-2.0",url:"https://github.com/rupansh/generic-ota-app"},{title:"csgo-external-rust",desc:"A PoC external cheat for CounterStrike Global Offensive",lang:"rust",license:"GPLv3",url:"https://github.com/rupansh/csgo-external-rust"},{title:"JABB",desc:"Just Another telegram BuildBot for building ROMS on-the-go!",lang:"python",license:"GPLv3",url:"https://github.com/rupansh/JABB"},{title:"Chimera Kernel Project",desc:"A custom kernel for Redmi 3s, prioritizing performance",lang:"c",license:"Various",url:"https://github.com/ChimeraKernelProject"},];i.bind(e);let t=Template("footer"),a=[{date:new Date().getFullYear().toString()}];t.bind(a)})(),(()=>{function i(i){let e=["#08f7fe","#09fbd3","#fe53bb","#fafafa"],t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a=[],o=(o,n)=>{$(i).children().each(function(i){i>o&&(n&&(a[i]=$(this).text()),$(this).text(t[Math.floor(Math.random()*t.length)]),$(this).css("color",e[Math.floor(4*Math.random())]))})};o(0,!0);let n=100;$(i).children().each(function(e){let t=this;setTimeout(function(){$(t).text(a[e]),$(t).css("color","#f5d300"),o(e,!1),e==a.length-1&&i.removeClass("block")},n),n+=100})}function e(i,e){"up"==e?i.removeClass("avail"):i.addClass("avail")}$("#tran-1-txt").waypoint(()=>{$("#tran-1-txt").hasClass("block")||($("#tran-1-txt").addClass("block"),i($("#tran-1-txt")))},{offset:"100%"}),$(".skill").each((i,t)=>{$(t).waypoint(i=>e($(t),i),{offset:"100%"})}),$(".project").each((i,t)=>{$(t).waypoint(i=>e($(t),i),{offset:"100%"})}),$("#social").waypoint(function(){$({imW:160.5}).animate({imW:321},{duration:300,step(i){$("#profile-pic").css({width:`${i}px`,height:"auto",marginTop:"0px"}),$("#social")[0].setCircle()}}),this.destroy()},{offset:"100%"})})(),(()=>{function i(){let i=$(".sicon"),e=$("#social"),t=e.width(),a=e.height(),o=0,n=2*Math.PI/i.length;i.each(function(){var i=Math.round(t/2+225*Math.cos(o)-$(this).outerWidth()/2),e=Math.round(a/2+225*Math.sin(o)-$(this).outerHeight()/2);$(this).css({left:i+"px",top:e+"px"}),o+=n})}i(),$("#social")[0].setCircle=i,$(window).resize(i),$(".sicon").each((i,e)=>{let t=$(e).width(),a=$(e).height(),o={top:0,left:0},n=$(e).position(),s=!1,r=parseInt($(e).children().css("font-size").replace("px",""));function l(){t=$(e).width(),a=$(e).height(),o={top:0,left:0},n=$(e).position(),s=!1,r=parseInt($(e).children().css("font-size").replace("px",""))}$(window).resize(l),$(e).hover(()=>{s||(o.left=$(e).css("left"),o.top=$(e).css("top"),n=$(e).position(),s=!0),$("#social").stop().animate({marginBottom:"30rem"},{duration:400,easing:"swing"}),$("#profile-pic").stop().animate({width:"160.5px",height:"auto",marginTop:"80.25px"},{duration:400,easing:"swing"}),$(e).stop().animate({width:`${t+50}px`,height:`${a+50}px`,top:`${n.top-25}px`,left:`${n.left-25}px`},{duration:400,easing:"swing"}),$(e).children().stop().animate({fontSize:`${1.5*r}px`},{duration:400,easing:"swing"})},()=>{$("#social").stop().animate({marginBottom:"15rem"},{duration:400,easing:"swing"}),$("#profile-pic").stop().animate({width:"321px",height:"auto",marginTop:"0px"},{duration:400,easing:"swing"}),$(e).stop().animate({width:`${t}px`,height:`${a}px`,top:o.top,left:o.left},{duration:400,easing:"swing"}),$(e).children().stop().animate({fontSize:`${r}px`},{duration:400,easing:"swing"})})})})()}),footer=document.getElementById("footer-para"),date=new Date().getFullYear,footer.innerText=date; \ No newline at end of file