Skip to content

Commit

Permalink
update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
warpedwood committed Nov 18, 2024
1 parent 59c56ce commit dc32247
Show file tree
Hide file tree
Showing 37 changed files with 6,465 additions and 43 deletions.
1 change: 0 additions & 1 deletion assets/css/collapse.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@
.container .content {
display: none;
padding : 5px;
}
Empty file modified assets/fonts/academicons.eot
100755 → 100644
Empty file.
Empty file modified assets/fonts/academicons.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/fonts/academicons.ttf
100755 → 100644
Empty file.
Empty file modified assets/fonts/academicons.woff
100755 → 100644
Empty file.
Binary file added assets/fonts/fa-brands-400.eot
Binary file not shown.
1,184 changes: 1,184 additions & 0 deletions assets/fonts/fa-brands-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/fa-brands-400.ttf
Binary file not shown.
Binary file added assets/fonts/fa-brands-400.woff
Binary file not shown.
Binary file added assets/fonts/fa-brands-400.woff2
Binary file not shown.
Binary file added assets/fonts/fa-regular-400.eot
Binary file not shown.
467 changes: 467 additions & 0 deletions assets/fonts/fa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/fa-regular-400.ttf
Binary file not shown.
Binary file added assets/fonts/fa-regular-400.woff
Binary file not shown.
Binary file added assets/fonts/fa-regular-400.woff2
Binary file not shown.
Binary file added assets/fonts/fa-solid-900.eot
Binary file not shown.
2,618 changes: 2,618 additions & 0 deletions assets/fonts/fa-solid-900.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/fa-solid-900.ttf
Binary file not shown.
Binary file added assets/fonts/fa-solid-900.woff
Binary file not shown.
Binary file added assets/fonts/fa-solid-900.woff2
Binary file not shown.
43 changes: 38 additions & 5 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
========================================================================== */

$(document).ready(function(){
// Sticky footer
// Sticky footer
var bumpIt = function() {
$("body").css("margin-bottom", $(".page__footer").outerHeight(true));
},
Expand All @@ -20,24 +20,57 @@ $(document).ready(function(){
bumpIt();
}
}, 250);

// FitVids init
fitvids();
$("#main").fitVids();

// init sticky sidebar
$(".sticky").Stickyfill();

var stickySideBar = function(){
var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : !$(".author__urls-wrapper button").is(":visible");
// console.log("has button: " + $(".author__urls-wrapper button").length === 0);
// console.log("Window Width: " + windowWidth);
// console.log("show: " + show);
//old code was if($(window).width() > 1024)
if (show) {
// fix
Stickyfill.rebuild();
Stickyfill.init();
$(".author__urls").show();
} else {
// unfix
Stickyfill.stop();
$(".author__urls").hide();
}
};

stickySideBar();

$(window).resize(function(){
stickySideBar();
});

// Follow menu drop down

$(".author__urls-wrapper button").on("click", function() {
$(".author__urls").fadeToggle("fast", function() {});
$(".author__urls-wrapper button").toggleClass("open");
});

// init smooth scroll, this needs to be slightly more than then fixed masthead height
$("a").smoothScroll({offset: -65});
// init smooth scroll
$("a").smoothScroll({offset: -20});

// add lightbox class to all image links
$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup");

// Magnific-Popup options
$(".image-popup").magnificPopup({
// disableOn: function() {
// if( $(window).width() < 500 ) {
// return false;
// }
// return true;
// },
type: 'image',
tLoading: 'Loading image #%curr%...',
gallery: {
Expand Down
6 changes: 5 additions & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions assets/js/plugins/jquery.fitvids.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*jshint browser:true */
/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
*/

;(function( $ ){

'use strict';

$.fn.fitVids = function( options ) {
var settings = {
customSelector: null,
ignore: null
};

if(!document.getElementById('fit-vids-style')) {
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
var head = document.head || document.getElementsByTagName('head')[0];
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
var div = document.createElement("div");
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
head.appendChild(div.childNodes[1]);
}

if ( options ) {
$.extend( settings, options );
}

return this.each(function(){
var selectors = [
'iframe[src*="player.vimeo.com"]',
'iframe[src*="youtube.com"]',
'iframe[src*="youtube-nocookie.com"]',
'iframe[src*="kickstarter.com"][src*="video.html"]',
'object',
'embed'
];

if (settings.customSelector) {
selectors.push(settings.customSelector);
}

var ignoreList = '.fitvidsignore';

if(settings.ignore) {
ignoreList = ignoreList + ', ' + settings.ignore;
}

var $allVideos = $(this).find(selectors.join(','));
$allVideos = $allVideos.not('object object'); // SwfObj conflict patch
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.

$allVideos.each(function(count){
var $this = $(this);
if($this.parents(ignoreList).length > 0) {
return; // Disable FitVids on this video.
}
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
{
$this.attr('height', 9);
$this.attr('width', 16);
}
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
aspectRatio = height / width;
if(!$this.attr('id')){
var videoID = 'fitvid' + count;
$this.attr('id', videoID);
}
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
$this.removeAttr('height').removeAttr('width');
});
});
};
// Works with either jQuery or Zepto
})( window.jQuery || window.Zepto );
2 changes: 1 addition & 1 deletion assets/js/plugins/jquery.greedy-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function updateNav() {
breaks.push($vlinks.width());

// Move item to the hidden list
$vlinks.children('*:not(.masthead__menu-item--lg)').last().prependTo($hlinks);
$vlinks.children().last().prependTo($hlinks);

// Show the dropdown btn
if($btn.hasClass('hidden')) {
Expand Down
Loading

0 comments on commit dc32247

Please sign in to comment.