mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
Removed artificial 1.5-second loading wall
This commit is contained in:
parent
0741978b3f
commit
fa52f9f981
1 changed files with 94 additions and 100 deletions
|
@ -1,78 +1,67 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<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" />
|
|
||||||
<title></title>
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css"
|
|
||||||
/>
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"
|
|
||||||
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
/>
|
|
||||||
<script
|
|
||||||
src="https://code.jquery.com/jquery-3.4.1.min.js"
|
|
||||||
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
|
||||||
crossorigin="anonymous"
|
|
||||||
></script>
|
|
||||||
<script src="https://unpkg.com/magic-grid/dist/magic-grid.min.js"></script>
|
|
||||||
<link rel="stylesheet" href="index.css" />
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
<head>
|
||||||
<div id="loading">
|
<meta charset="UTF-8" />
|
||||||
<div id="spinner"></div>
|
<meta name="viewport"
|
||||||
|
content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta http-equiv="X-UA-Compatible"
|
||||||
|
content="ie=edge" />
|
||||||
|
<title></title>
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"
|
||||||
|
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
|
||||||
|
crossorigin="anonymous" />
|
||||||
|
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
|
||||||
|
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
<script src="https://unpkg.com/magic-grid/dist/magic-grid.min.js"></script>
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="index.css" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="profile">
|
||||||
|
<div id="profile_img"></div>
|
||||||
|
<div id="username">
|
||||||
|
<div id="fullname"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="profile">
|
<div id="userbio"></div>
|
||||||
<div id="profile_img"></div>
|
<div id="about"></div>
|
||||||
<div id="username">
|
</div>
|
||||||
<div id="fullname"></div>
|
<div id="display">
|
||||||
</div>
|
<div id="work">
|
||||||
<div id="userbio"></div>
|
<h1>Work.</h1>
|
||||||
<div id="about"></div>
|
<div class="projects"
|
||||||
|
id="work_section"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="display">
|
<div id="forks"
|
||||||
<div id="work">
|
style="display:none;">
|
||||||
<h1>Work.</h1>
|
<h1>Forks.</h1>
|
||||||
<div class="projects" id="work_section"></div>
|
<div class="projects"
|
||||||
</div>
|
id="forks_section"></div>
|
||||||
<div id="forks" style="display:none;">
|
|
||||||
<h1>Forks.</h1>
|
|
||||||
<div class="projects" id="forks_section"></div>
|
|
||||||
</div>
|
|
||||||
<div id="blog_section">
|
|
||||||
<h1>Blog.</h1>
|
|
||||||
<div id="blogs"></div>
|
|
||||||
</div>
|
|
||||||
<div id="footer">
|
|
||||||
<a href="https://github.com/imfunniee" target="_blank"
|
|
||||||
>made on earth by a human</a
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<div id="blog_section">
|
||||||
setTimeout(function() {
|
<h1>Blog.</h1>
|
||||||
document.getElementById("loading").classList.add("animated");
|
<div id="blogs"></div>
|
||||||
document.getElementById("loading").classList.add("fadeOut");
|
</div>
|
||||||
setTimeout(function() {
|
<div id="footer">
|
||||||
document.getElementById("loading").classList.remove("animated");
|
<a href="https://github.com/imfunniee"
|
||||||
document.getElementById("loading").classList.remove("fadeOut");
|
target="_blank">made on earth by a human</a>
|
||||||
document.getElementById("loading").style.display = "none";
|
</div>
|
||||||
}, 800);
|
</div>
|
||||||
}, 1500);
|
<script type="text/javascript">
|
||||||
$.getJSON("blog.json", function(blog) {
|
$.getJSON("blog.json", function(blog)
|
||||||
blog = blog || [];
|
{
|
||||||
if (blog.length == 0) {
|
blog = blog || [];
|
||||||
return (document.getElementById("blog_section").style.display =
|
if (blog.length == 0)
|
||||||
"none");
|
{
|
||||||
}
|
return (document.getElementById("blog_section").style.display =
|
||||||
for (var i = 0; i < blog.length; i++) {
|
"none");
|
||||||
$("#blogs").append(`
|
}
|
||||||
|
for (var i = 0; i < blog.length; i++)
|
||||||
|
{
|
||||||
|
$("#blogs").append(`
|
||||||
<a href="./blog/${blog[i].url_title}/" target="_blank">
|
<a href="./blog/${blog[i].url_title}/" target="_blank">
|
||||||
<section>
|
<section>
|
||||||
<img src="./blog/${blog[i].url_title}/${blog[i].top_image}">
|
<img src="./blog/${blog[i].url_title}/${blog[i].top_image}">
|
||||||
|
@ -85,37 +74,42 @@
|
||||||
</section>
|
</section>
|
||||||
</a>
|
</a>
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
}).fail(function() {
|
}).fail(function()
|
||||||
return (document.getElementById("blog_section").style.display = "none");
|
{
|
||||||
});
|
return (document.getElementById("blog_section").style.display = "none");
|
||||||
</script>
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const magicProjectsGrid = new MagicGrid({
|
const magicProjectsGrid = new MagicGrid(
|
||||||
container: "#work_section",
|
{
|
||||||
animate: false,
|
container: "#work_section",
|
||||||
gutter: 30, // default gutter size
|
animate: false,
|
||||||
static: true,
|
gutter: 30, // default gutter size
|
||||||
useMin: false,
|
static: true,
|
||||||
maxColumns: 2,
|
useMin: false,
|
||||||
useTransform: true
|
maxColumns: 2,
|
||||||
});
|
useTransform: true
|
||||||
|
});
|
||||||
|
|
||||||
const magicForksGrid = new MagicGrid({
|
const magicForksGrid = new MagicGrid(
|
||||||
container: "#forks_section",
|
{
|
||||||
animate: false,
|
container: "#forks_section",
|
||||||
gutter: 30, // default gutter size
|
animate: false,
|
||||||
static: true,
|
gutter: 30, // default gutter size
|
||||||
useMin: false,
|
static: true,
|
||||||
maxColumns: 2,
|
useMin: false,
|
||||||
useTransform: true
|
maxColumns: 2,
|
||||||
});
|
useTransform: true
|
||||||
|
});
|
||||||
|
|
||||||
$("document").ready(() => {
|
$("document").ready(() =>
|
||||||
magicProjectsGrid.listen();
|
{
|
||||||
magicForksGrid.listen();
|
magicProjectsGrid.listen();
|
||||||
});
|
magicForksGrid.listen();
|
||||||
</script>
|
});
|
||||||
</body>
|
</script>
|
||||||
</html>
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue