Skip to content
This repository was archived by the owner on Jan 11, 2020. It is now read-only.

Prefetch participant images fixes #311 #351

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ input:checked + .slider:before {


/* hover effect to footer icons */

.footer-hover:hover {
transform: scale(1.2);
transition-duration: 0.5s;
Expand All @@ -805,9 +806,6 @@ input:checked + .slider:before {
transition-duration: 0.4s;
}




/* sticky github */
.sticky-container{
padding: 0px;
Expand Down Expand Up @@ -869,4 +867,4 @@ input:checked + .slider:before {
.border-heading {
display: block;
border-bottom: 2px solid gray;
}
}
25 changes: 22 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,28 @@
<meta name="description" content="Opencode Collaborative website">
<meta name="author" content="">

<title>Opencode 2019 Collaborative</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<title>Opencode 2019 Collaborative</title>
<!-- images prefetch -->
<script src="js/prefetch.js"></script>
<link rel="prefetch" href="js/prefetch.js">
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

<!-- Font Awesome Icon pack for icons used in project -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">

<!-- fork me on github ribbon cdn -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.2/gh-fork-ribbon.min.css" />

<!-- Custom styles for this template -->
<link href="css/main.css" rel="stylesheet">
<link rel="icon" href="assets/img/opencode_logo_61n_icon.ico">

<!-- Animate css -->
<link rel="stylesheet" type="text/css" media="all" href="css/animate.css">

<!-- Font for countdown -->
<link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>

<!-- Font Awesome Icon pack for icons used in project -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
Expand Down
15 changes: 15 additions & 0 deletions js/prefetch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$(document).ready(function() {

var folder = "../assets/img/participants/";

$.ajax({
url : folder,
success: function (data) {
$(data).find("img").attr("href", function (i, val) {
if( val.match(/\.(jpe?g|png|gif)$/) ) {
$("body").append( "<img src='"+ folder + val +"'>" );
}
});
}
});
});