1
0
mirror of https://gitlab.com/Anson-Projects/projects.git synced 2025-08-02 03:21:32 +00:00

twal suggestions

This commit is contained in:
2021-09-16 12:38:09 -07:00
parent d8b71f451a
commit 4d15759212
11 changed files with 266 additions and 255 deletions

View File

@@ -24,6 +24,7 @@
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@@ -2070,6 +2071,9 @@ code span.wa { color: #5e5e5e; font-style: italic; } /* Warning */
<a href="https://gitlab.com/MisterBiggs/projects">
<i class="fa fa-gitlab" aria-hidden="true"></i>
</a>
<a href="https://gitlab.com/lander-team">
<i class="fa fa-rocket" aria-hidden="true"></i>
</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
</nav>
@@ -2077,234 +2081,234 @@ code span.wa { color: #5e5e5e; font-style: italic; } /* Warning */
<!--/radix_placeholder_navigation_before_body-->
<!--radix_placeholder_site_before_body-->
<!--/radix_placeholder_site_before_body-->
<!--radix_placeholder_article_listing-->
<script type="application/javascript">
function init_posts_list() {
function load_image(img) {
var src = $(img).attr('data-src');
if (src) {
$(img).attr('src', src);
$(img).load(function() {
img.removeAttribute('data-src');
});
}
}
function set_posts_visible(posts, visible) {
if (visible) {
// show bottom border by default
$(posts).removeClass('post-preview-last');
// apply limits if need be
var max_posts = 25;
var apply_limits = $('.posts-container').hasClass('posts-apply-limit');
if (apply_limits && posts.length > max_posts) {
posts = $(posts).slice(0, max_posts);
} else {
$('.posts-more a').addClass('hidden');
}
// apply last style
$(posts.slice(-1)[0]).addClass('post-preview-last');
$(posts).removeClass('hidden');
$(posts).find('img[data-src]').each(function(i, img) {
load_image(img);
});
} else {
$(posts).addClass('hidden');
}
}
function apply_hash_filter() {
// clear active state
$('.categories .active').removeClass('active');
// mark all posts invisible to start
set_posts_visible($('.posts-list').children('a'), false);
// if we have a hash filter
if (window.location.hash && window.location.hash.startsWith("#category:")) {
// mark posts that match the category visible
var page_category = window.location.hash.replace(/^#category:/, "");
var posts = $('.post-metadata').map(function(idx, script) {
var metadata = $.parseJSON($(script).html());
var post = null;
$.each(metadata.categories, function(idx, category) {
category = category.replace(/ /g,"_");
if ((page_category || '').toLowerCase() === "articles" || category === page_category) {
post = $(script).parent().get();
return false;
}
});
return post;
});
set_posts_visible(posts, true);
// mark the hash active
$('.categories li>a[href="' + window.location.hash + '"]').addClass('active');
// update the list_caption
var list_caption = $('.posts-list-caption');
var caption = (page_category || '').toLowerCase() === "articles"
? list_caption.attr('data-caption')
: ('Category: ' + page_category.replace(/_/g," "));
list_caption.text(caption);
} else {
// no hash filter, make all posts visible (subject to max display)
set_posts_visible($('.posts-list').children(), true);
// reset list caption
var list_caption = $('.posts-list-caption');
list_caption.text(list_caption.attr('data-caption'));
}
}
// more articles
function apply_post_limits(apply) {
if (apply) {
$('.posts-container').addClass('posts-apply-limit');
$('.posts-more a').removeClass('hidden');
} else {
$('.posts-container').removeClass('posts-apply-limit');
$('.posts-more a').addClass('hidden');
}
}
// click handling for tags
$('.dt-tag').click(function(ev) {
window.location.hash = '#category:' + $(this).text().replace(/ /g, "_");
return false;
})
// hash filter handling
apply_hash_filter();
$(window).on('hashchange',function() {
apply_post_limits(true);
apply_hash_filter();
});
// more articles link
$('.posts-more a').click(function(e) {
e.preventDefault();
apply_post_limits(false);
apply_hash_filter();
return false;
});
}
</script>
<div class="posts-container posts-with-sidebar posts-apply-limit l-screen-inset">
<div class="posts-list">
<h1 class="posts-list-caption" data-caption="Anson&#39;s Projects">Anson's Projects</h1>
<a href="posts/2021-08-24-julia-for-matlabbers/" class="post-preview">
<script class="post-metadata" type="text/json">{"categories":["Julia","Matlab"]}</script>
<div class="metadata">
<div class="publishedDate">Aug. 24, 2021</div>
<div class="dt-authors">
<div class="dt-author">Anson Biggs</div>
</div>
</div>
<div class="thumbnail">
<img src="posts/2021-08-24-julia-for-matlabbers/preview.png"/>
</div>
<div class="description">
<h2>Julia for Matlabbers</h2>
<div class="dt-tags">
<div class="dt-tag">Julia</div>
<div class="dt-tag">Matlab</div>
</div>
<p>Everything a Matlab programmer needs to know to get started with Julia.</p>
</div>
</a>
<a href="posts/2021-04-14-iss-eclipse-determination/" class="post-preview">
<script class="post-metadata" type="text/json">{"categories":["Julia","Astrodynamics"]}</script>
<div class="metadata">
<div class="publishedDate">May 1, 2021</div>
<div class="dt-authors">
<div class="dt-author">Anson Biggs</div>
</div>
</div>
<div class="thumbnail">
<img src="posts/2021-04-14-iss-eclipse-determination/preview.png"/>
</div>
<div class="description">
<h2>ISS Eclipse Determination</h2>
<div class="dt-tags">
<div class="dt-tag">Julia</div>
<div class="dt-tag">Astrodynamics</div>
</div>
<p>Determining how much sunlight a body orbiting a planet is receiving.</p>
</div>
</a>
<a href="posts/2021-04-01-air-propulsion-simulation/" class="post-preview">
<script class="post-metadata" type="text/json">{"categories":["Julia","Capstone"]}</script>
<div class="metadata">
<div class="publishedDate">April 1, 2021</div>
<div class="dt-authors">
<div class="dt-author">Anson Biggs</div>
</div>
</div>
<div class="thumbnail">
<img src="posts/2021-04-01-air-propulsion-simulation/air-propulsion-simulation_files/figure-html5/unnamed-chunk-7-J1.png"/>
</div>
<div class="description">
<h2>Air Propulsion Simulation</h2>
<div class="dt-tags">
<div class="dt-tag">Julia</div>
<div class="dt-tag">Capstone</div>
</div>
<p>Simulating the performance of an air propulsion system as an alternative to solid rocket motors.</p>
</div>
</a>
</div>
<div class="posts-sidebar">
<div class="sidebar-section categories">
<h3>Categories</h3>
<ul>
<li>
<a href="#category:Articles">Articles</a>
<span class="category-count">(3)</span>
</li>
<li>
<a href="#category:Astrodynamics">Astrodynamics</a>
<span class="category-count">(1)</span>
</li>
<li>
<a href="#category:Capstone">Capstone</a>
<span class="category-count">(1)</span>
</li>
<li>
<a href="#category:Julia">Julia</a>
<span class="category-count">(3)</span>
</li>
<li>
<a href="#category:Matlab">Matlab</a>
<span class="category-count">(1)</span>
</li>
</ul>
</div>
</div>
<div class="posts-more">
<a href="#">More articles &raquo;</a>
</div>
</div>
<!--/radix_placeholder_article_listing-->
<!--radix_placeholder_article_listing-->
<script type="application/javascript">
function init_posts_list() {
function load_image(img) {
var src = $(img).attr('data-src');
if (src) {
$(img).attr('src', src);
$(img).load(function() {
img.removeAttribute('data-src');
});
}
}
function set_posts_visible(posts, visible) {
if (visible) {
// show bottom border by default
$(posts).removeClass('post-preview-last');
// apply limits if need be
var max_posts = 25;
var apply_limits = $('.posts-container').hasClass('posts-apply-limit');
if (apply_limits && posts.length > max_posts) {
posts = $(posts).slice(0, max_posts);
} else {
$('.posts-more a').addClass('hidden');
}
// apply last style
$(posts.slice(-1)[0]).addClass('post-preview-last');
$(posts).removeClass('hidden');
$(posts).find('img[data-src]').each(function(i, img) {
load_image(img);
});
} else {
$(posts).addClass('hidden');
}
}
function apply_hash_filter() {
// clear active state
$('.categories .active').removeClass('active');
// mark all posts invisible to start
set_posts_visible($('.posts-list').children('a'), false);
// if we have a hash filter
if (window.location.hash && window.location.hash.startsWith("#category:")) {
// mark posts that match the category visible
var page_category = window.location.hash.replace(/^#category:/, "");
var posts = $('.post-metadata').map(function(idx, script) {
var metadata = $.parseJSON($(script).html());
var post = null;
$.each(metadata.categories, function(idx, category) {
category = category.replace(/ /g,"_");
if ((page_category || '').toLowerCase() === "articles" || category === page_category) {
post = $(script).parent().get();
return false;
}
});
return post;
});
set_posts_visible(posts, true);
// mark the hash active
$('.categories li>a[href="' + window.location.hash + '"]').addClass('active');
// update the list_caption
var list_caption = $('.posts-list-caption');
var caption = (page_category || '').toLowerCase() === "articles"
? list_caption.attr('data-caption')
: ('Category: ' + page_category.replace(/_/g," "));
list_caption.text(caption);
} else {
// no hash filter, make all posts visible (subject to max display)
set_posts_visible($('.posts-list').children(), true);
// reset list caption
var list_caption = $('.posts-list-caption');
list_caption.text(list_caption.attr('data-caption'));
}
}
// more articles
function apply_post_limits(apply) {
if (apply) {
$('.posts-container').addClass('posts-apply-limit');
$('.posts-more a').removeClass('hidden');
} else {
$('.posts-container').removeClass('posts-apply-limit');
$('.posts-more a').addClass('hidden');
}
}
// click handling for tags
$('.dt-tag').click(function(ev) {
window.location.hash = '#category:' + $(this).text().replace(/ /g, "_");
return false;
})
// hash filter handling
apply_hash_filter();
$(window).on('hashchange',function() {
apply_post_limits(true);
apply_hash_filter();
});
// more articles link
$('.posts-more a').click(function(e) {
e.preventDefault();
apply_post_limits(false);
apply_hash_filter();
return false;
});
}
</script>
<div class="posts-container posts-with-sidebar posts-apply-limit l-screen-inset">
<div class="posts-list">
<h1 class="posts-list-caption" data-caption="Anson&#39;s Projects">Anson's Projects</h1>
<a href="posts/2021-08-24-julia-for-matlabbers/" class="post-preview">
<script class="post-metadata" type="text/json">{"categories":["Julia","Matlab"]}</script>
<div class="metadata">
<div class="publishedDate">Aug. 24, 2021</div>
<div class="dt-authors">
<div class="dt-author">Anson Biggs</div>
</div>
</div>
<div class="thumbnail">
<img src="posts/2021-08-24-julia-for-matlabbers/preview.png"/>
</div>
<div class="description">
<h2>Julia for Matlabbers</h2>
<div class="dt-tags">
<div class="dt-tag">Julia</div>
<div class="dt-tag">Matlab</div>
</div>
<p>Everything a Matlab programmer needs to know to get started with Julia.</p>
</div>
</a>
<a href="posts/2021-04-14-iss-eclipse-determination/" class="post-preview">
<script class="post-metadata" type="text/json">{"categories":["Julia","Astrodynamics"]}</script>
<div class="metadata">
<div class="publishedDate">May 1, 2021</div>
<div class="dt-authors">
<div class="dt-author">Anson Biggs</div>
</div>
</div>
<div class="thumbnail">
<img src="posts/2021-04-14-iss-eclipse-determination/preview.png"/>
</div>
<div class="description">
<h2>ISS Eclipse Determination</h2>
<div class="dt-tags">
<div class="dt-tag">Julia</div>
<div class="dt-tag">Astrodynamics</div>
</div>
<p>Determining how much sunlight a body orbiting a planet is receiving.</p>
</div>
</a>
<a href="posts/2021-04-01-air-propulsion-simulation/" class="post-preview">
<script class="post-metadata" type="text/json">{"categories":["Julia","Capstone"]}</script>
<div class="metadata">
<div class="publishedDate">April 1, 2021</div>
<div class="dt-authors">
<div class="dt-author">Anson Biggs</div>
</div>
</div>
<div class="thumbnail">
<img/>
</div>
<div class="description">
<h2>Air Propulsion Simulation</h2>
<div class="dt-tags">
<div class="dt-tag">Julia</div>
<div class="dt-tag">Capstone</div>
</div>
<p>Simulating the performance of an air propulsion system as an alternative to solid rocket motors.</p>
</div>
</a>
</div>
<div class="posts-sidebar">
<div class="sidebar-section categories">
<h3>Categories</h3>
<ul>
<li>
<a href="#category:Articles">Articles</a>
<span class="category-count">(3)</span>
</li>
<li>
<a href="#category:Astrodynamics">Astrodynamics</a>
<span class="category-count">(1)</span>
</li>
<li>
<a href="#category:Capstone">Capstone</a>
<span class="category-count">(1)</span>
</li>
<li>
<a href="#category:Julia">Julia</a>
<span class="category-count">(3)</span>
</li>
<li>
<a href="#category:Matlab">Matlab</a>
<span class="category-count">(1)</span>
</li>
</ul>
</div>
</div>
<div class="posts-more">
<a href="#">More articles &raquo;</a>
</div>
</div>
<!--/radix_placeholder_article_listing-->
<div class="d-title">
<h1>Ansons Projects</h1>