1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00
gitfolio/assets/index.html

136 lines
4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
2019-12-09 17:04:29 +00:00
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="p:domain_verify" content="888d983503e053f3db87d36354df7eef" />
2019-12-09 17:04:29 +00:00
<title></title>
<link
rel="stylesheet"
href="https://cdn.materialdesignicons.com/4.8.95/css/materialdesignicons.min.css"
2019-12-09 17:04:29 +00:00
/>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"
></script>
2020-01-15 17:09:52 +00:00
<link
2020-02-02 17:13:00 +00:00
href="https://fonts.googleapis.com/css?family=Asap|Asap+Condensed&display=swap"
2020-01-15 17:09:52 +00:00
rel="stylesheet"
/>
2019-12-09 17:04:29 +00:00
<script src="https://unpkg.com/magic-grid/dist/magic-grid.min.js"></script>
<link rel="stylesheet" href="index.css" />
</head>
2019-12-09 17:04:29 +00:00
<body>
<div id="profile">
<div id="profile_img">
<span id="status">K_</span>
</div>
<div id="username">
<div id="fullname"></div>
</div>
<div id="userbio"></div>
<div id="about"></div>
</div>
2019-12-09 17:04:29 +00:00
<div id="display">
<div id="work">
<h1>Work.</h1>
<div class="projects" id="work_section"></div>
</div>
<div id="forks" style="display:none;">
<h1>Forks.</h1>
<div class="projects" id="forks_section"></div>
</div>
<div id="footer">
<a
href="https://github.com/k4ustu3h/gitfolio#acknowledgments"
target="_blank"
>
made on earth by humans
2019-12-09 17:04:29 +00:00
</a>
</div>
</div>
2019-12-09 17:04:29 +00:00
<script>
const magicProjectsGrid = new MagicGrid({
container: "#work_section",
animate: false,
gutter: 30, // default gutter size
static: true,
useMin: false,
maxColumns: 2,
useTransform: true
});
2019-12-09 17:04:29 +00:00
const magicForksGrid = new MagicGrid({
container: "#forks_section",
animate: false,
gutter: 30, // default gutter size
static: true,
useMin: false,
maxColumns: 2,
useTransform: true
});
2019-12-09 17:04:29 +00:00
$("document").ready(() => {
magicProjectsGrid.listen();
magicForksGrid.listen();
});
2019-12-13 16:53:05 +00:00
// function([string1, string2],target id,[color1,color2])
consoleText(["K4USTU3H", "Just another code copy-paster."], "text", [
"white",
"white"
]);
function consoleText(words, id, colors) {
if (colors === undefined) colors = ["#fff"];
var visible = true;
var con = document.getElementById("console");
var letterCount = 1;
var x = 1;
var waiting = false;
var target = document.getElementById(id);
target.setAttribute("style", "color:" + colors[0]);
window.setInterval(function() {
if (letterCount === 0 && waiting === false) {
waiting = true;
target.innerHTML = words[0].substring(0, letterCount);
window.setTimeout(function() {
var usedColor = colors.shift();
colors.push(usedColor);
var usedWord = words.shift();
words.push(usedWord);
x = 1;
target.setAttribute("style", "color:" + colors[0]);
letterCount += x;
waiting = false;
}, 1000);
} else if (letterCount === words[0].length + 1 && waiting === false) {
waiting = true;
window.setTimeout(function() {
x = -1;
letterCount += x;
waiting = false;
}, 1000);
} else if (waiting === false) {
target.innerHTML = words[0].substring(0, letterCount);
letterCount += x;
}
}, 120);
window.setInterval(function() {
if (visible === true) {
con.className = "console-underscore hidden";
visible = false;
} else {
con.className = "console-underscore";
visible = true;
}
}, 400);
}
2019-12-09 17:04:29 +00:00
</script>
</body>
</html>