Skip to content
Merged
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
2 changes: 1 addition & 1 deletion _posts/2020-07-16-bvu+ilc.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
tag: works
tag: blog
featured: "False"
title: Corridor joins forces with Buena Vista University in winning Google grant
img: ilc+bvu.jpg
Expand Down
2 changes: 1 addition & 1 deletion _posts/2020-07-16-mll-app.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
featured: "False"
tag: blog
tag: works
title: Levity team creates app for Match. Learn. Launch.
img: match_learn_launch.jpg
excerpt: BVU computer science seniors have created a mobile app to match existing business owners with up-and-coming entrepreneurs, part of a joint effort with the Iowa Great Lakes Corridor Development Corporation.
Expand Down
8 changes: 6 additions & 2 deletions _sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,8 @@
height: 70%;
img {
border-radius: 200px;
display: block;
width: 100%;
display: inline-block;
width: 85%;
}
}

Expand Down Expand Up @@ -2119,3 +2119,7 @@
.card-btn{
padding: 10px;
}

.myBtnContainer{

}
105 changes: 54 additions & 51 deletions allPosts.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,6 @@
<!--
Temporary
-->
<script>
function filterSelection(tag){
var x, i;
x = document.getElementByClassName("card");
if (C == "all") c = "";
for(i = 0; i < x.length; i++){
hide(x[i], "show");
if (x[i].className.indexOf(tag) > -1) add(x[i], "show")
}
}

function add(element, name){
var i, arr1, arr2;
arr1 = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i < arr2.length; i++){
if (arr1.indexOf(arr[2]) == -1) {
element.className += " " + arr[i];
}
}
}

function remove(element, name){
var i, arr1, arr2;
arr1 = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i<arr2.length; i++){
while (arr1.indexOf(arr2[i]) > -1){
arr1.splice(arr1.indexOf(arr2[i]), 1);
}
}
element.className = arr1.join();
}

var btnContainer = document.getElementById("myBtnContainer");
var btns = btnContaine.getElementsByClassName("btn");
for(var i = 0; i < btns.length; i++){
btns[i].addEventListener("click", function(){
var current = document.getElementsByClassName("active");
current[0].className = current[0].className.replace(" active", "");
this.className += " active";
});
}

</script>

<body>
<div class="loader">
Expand All @@ -68,28 +23,76 @@
</script>

<!-- All posts -->
<!-- <div id="myBtnContainer">
<div id="myBtnContainer">
<button class="btn" onclick="filterSelection('blog')">Blog</button>
<button class="btn" onclick="filterSelection('works')">Works</button>
<button class="btn active" onclick="filterSelection('all')">Show all</button>
</div> -->
</div>

<h3 style="padding-left: 20px">All Posts</h3>
<ul style="list-style-type: none">
{% for post in site.posts %}
<li>
<div class="card-btn">
<div class="card {{post.tag}}" style="padding: 10px 10px 10px 10px; width: 130%">
<a href="{{ post.url }}" style="display: flex; justify-content: center; font_size: 25px;">{{ post.title }}</a>
<div class="imgae_box" style="display: inline-flex; padding: 10px">
<img src="{{base.url}}/images/posts/{{post.img}}" style="width:8%">
<p style="margin-bottom: auto">{{ post.excerpt }}</p>
<img src="{{base.url}}/images/posts/{{post.img}}" style="width:8%; min-width: 150px">
<p style="margin-bottom: auto; padding: inherit">{{ post.excerpt }}</p>
</div>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
</body>

<script>

filterSelection("all")

function filterSelection(c){
var i, x;
x = document.getElementsByClassName("card");
if (c == "all") c = "";
for(i = 0; i < x.length; i++){
remove(x[i], "show");
if (x[i].className.indexOf(c) > -1) add(x[i], "show")
}
}

function add(element, name){
var i, arr2;
var arr;
arr = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i < arr2.length; i++){
if (arr.indexOf(arr[2]) == -1) {
element.className += " " + arr[i];
}
}
}

function remove(element, name){
var i, arr1, arr2;
arr1 = element.className.split(" ");
arr2 = name.split(" ");
for (i = 0; i<arr2.length; i++){
while (arr1.indexOf(arr2[i]) > -1){
arr1.splice(arr1.indexOf(arr2[i]), 1);
}
}
element.className = arr1.join();
}

var btnContainer = document.getElementById("myBtnContainer");
var btns = btnContainer.getElementsByClassName("btn");
for(var i = 0; i < btns.length; i++){
btns[i].addEventListener("click", function(){
var current = document.getElementsByClassName("active");
current[0].className = current[0].className.replace(" active", "");
this.className += " active";
});
}

</script>
4 changes: 2 additions & 2 deletions assets/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/main.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tags
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ e.fn.scrolly _site/assets/js/jquery.scrolly.min.js /^(function(e){function u(s,o
e.fn.scrolly assets/js/jquery.scrolly.min.js /^(function(e){function u(s,o){var u,a,f;if((u=e(s))[t]==0)return n;a=u[i]()[r];switch(o.anchor){case"middle":f=a-(e(window).height()-u.outerHeight())\/2;break;default:case r:f=Math.max(a,0)}return typeof o[i]=="function"?f-=o[i]():f-=o[i],f}var t="length",n=null,r="top",i="offset",s="click.scrolly",o=e(window);e.fn.scrolly=function(i){var o,a,f,l,c=e(this);if(this[t]==0)return c;if(this[t]>1){for(o=0;o<this[t];o++)e(this[o]).scrolly(i);return c}l=n,f=c.attr("href");if(f.charAt(0)!="#"||f[t]<2)return c;a=jQuery.extend({anchor:r,easing:"swing",offset:0,parent:e("body,html"),pollOnce:!1,speed:1e3},i),a.pollOnce&&(l=u(f,a)),c.off(s).on(s,function(e){var t=l!==n?l:u(f,a);t!==n&&(e.preventDefault(),a.parent.stop().animate({scrollTop:t},a.speed,a.easing))})}})(jQuery);/;" f
element _site/assets/js/jquery.scrollex.min.js /^!function(t){function e(t,e,n){return"string"==typeof t&&("%"==t.slice(-1)?t=parseInt(t.substring(0,t.length-1))\/100*e:"vh"==t.slice(-2)?t=parseInt(t.substring(0,t.length-2))\/100*n:"px"==t.slice(-2)&&(t=parseInt(t.substring(0,t.length-2)))),t}var n=t(window),i=1,o={};n.on("scroll",function(){var e=n.scrollTop();t.map(o,function(t){window.clearTimeout(t.timeoutId),t.timeoutId=window.setTimeout(function(){t.handler(e)},t.options.delay)})}).on("load",function(){n.trigger("scroll")}),jQuery.fn.scrollex=function(l){var s=t(this);if(0==this.length)return s;if(this.length>1){for(var r=0;r<this.length;r++)t(this[r]).scrollex(l);return s}if(s.data("_scrollexId"))return s;var a,u,h,c,p;switch(a=i++,u=jQuery.extend({top:0,bottom:0,delay:0,mode:"default",enter:null,leave:null,initialize:null,terminate:null,scroll:null},l),u.mode){case"top":h=function(t,e,n,i,o){return t>=i&&o>=t};break;case"bottom":h=function(t,e,n,i,o){return n>=i&&o>=n};break;case"middle":h=function(t,e,n,i,o){return e>=i&&o>=e};break;case"top-only":h=function(t,e,n,i,o){return i>=t&&n>=i};break;case"bottom-only":h=function(t,e,n,i,o){return n>=o&&o>=t};break;default:case"default":h=function(t,e,n,i,o){return n>=i&&o>=t}}return c=function(t){var i,o,l,s,r,a,u=this.state,h=!1,c=this.$element.offset();i=n.height(),o=t+i\/2,l=t+i,s=this.$element.outerHeight(),r=c.top+e(this.options.top,s,i),a=c.top+s-e(this.options.bottom,s,i),h=this.test(t,o,l,r,a),h!=u&&(this.state=h,h?this.options.enter&&this.options.enter.apply(this.element):this.options.leave&&this.options.leave.apply(this.element)),this.options.scroll&&this.options.scroll.apply(this.element,[(o-r)\/(a-r)])},p={id:a,options:u,test:h,handler:c,state:null,element:this,$element:s,timeoutId:null},o[a]=p,s.data("_scrollexId",p.id),p.options.initialize&&p.options.initialize.apply(this),s},jQuery.fn.unscrollex=function(){var e=t(this);if(0==this.length)return e;if(this.length>1){for(var n=0;n<this.length;n++)t(this[n]).unscrollex();return e}var i,l;return(i=e.data("_scrollexId"))?(l=o[i],window.clearTimeout(l.timeoutId),delete o[i],e.removeData("_scrollexId"),l.options.terminate&&l.options.terminate.apply(this),e):e}}(jQuery);/;" p
element assets/js/jquery.scrollex.min.js /^!function(t){function e(t,e,n){return"string"==typeof t&&("%"==t.slice(-1)?t=parseInt(t.substring(0,t.length-1))\/100*e:"vh"==t.slice(-2)?t=parseInt(t.substring(0,t.length-2))\/100*n:"px"==t.slice(-2)&&(t=parseInt(t.substring(0,t.length-2)))),t}var n=t(window),i=1,o={};n.on("scroll",function(){var e=n.scrollTop();t.map(o,function(t){window.clearTimeout(t.timeoutId),t.timeoutId=window.setTimeout(function(){t.handler(e)},t.options.delay)})}).on("load",function(){n.trigger("scroll")}),jQuery.fn.scrollex=function(l){var s=t(this);if(0==this.length)return s;if(this.length>1){for(var r=0;r<this.length;r++)t(this[r]).scrollex(l);return s}if(s.data("_scrollexId"))return s;var a,u,h,c,p;switch(a=i++,u=jQuery.extend({top:0,bottom:0,delay:0,mode:"default",enter:null,leave:null,initialize:null,terminate:null,scroll:null},l),u.mode){case"top":h=function(t,e,n,i,o){return t>=i&&o>=t};break;case"bottom":h=function(t,e,n,i,o){return n>=i&&o>=n};break;case"middle":h=function(t,e,n,i,o){return e>=i&&o>=e};break;case"top-only":h=function(t,e,n,i,o){return i>=t&&n>=i};break;case"bottom-only":h=function(t,e,n,i,o){return n>=o&&o>=t};break;default:case"default":h=function(t,e,n,i,o){return n>=i&&o>=t}}return c=function(t){var i,o,l,s,r,a,u=this.state,h=!1,c=this.$element.offset();i=n.height(),o=t+i\/2,l=t+i,s=this.$element.outerHeight(),r=c.top+e(this.options.top,s,i),a=c.top+s-e(this.options.bottom,s,i),h=this.test(t,o,l,r,a),h!=u&&(this.state=h,h?this.options.enter&&this.options.enter.apply(this.element):this.options.leave&&this.options.leave.apply(this.element)),this.options.scroll&&this.options.scroll.apply(this.element,[(o-r)\/(a-r)])},p={id:a,options:u,test:h,handler:c,state:null,element:this,$element:s,timeoutId:null},o[a]=p,s.data("_scrollexId",p.id),p.options.initialize&&p.options.initialize.apply(this),s},jQuery.fn.unscrollex=function(){var e=t(this);if(0==this.length)return e;if(this.length>1){for(var n=0;n<this.length;n++)t(this[n]).unscrollex();return e}var i,l;return(i=e.data("_scrollexId"))?(l=o[i],window.clearTimeout(l.timeoutId),delete o[i],e.removeData("_scrollexId"),l.options.terminate&&l.options.terminate.apply(this),e):e}}(jQuery);/;" p
filterSelection _site/allPosts.html /^function filterSelection(tag){$/;" f
filterSelection allPosts.html /^function filterSelection(tag){$/;" f
filterSelection _site/allPosts.html /^function filterSelection(c){$/;" f
filterSelection allPosts.html /^function filterSelection(c){$/;" f
fn.navList _site/assets/js/util.js /^(function($) {$/;" f
fn.navList assets/js/util.js /^(function($) {$/;" f
fn.unscrollex _site/assets/js/jquery.scrollex.min.js /^!function(t){function e(t,e,n){return"string"==typeof t&&("%"==t.slice(-1)?t=parseInt(t.substring(0,t.length-1))\/100*e:"vh"==t.slice(-2)?t=parseInt(t.substring(0,t.length-2))\/100*n:"px"==t.slice(-2)&&(t=parseInt(t.substring(0,t.length-2)))),t}var n=t(window),i=1,o={};n.on("scroll",function(){var e=n.scrollTop();t.map(o,function(t){window.clearTimeout(t.timeoutId),t.timeoutId=window.setTimeout(function(){t.handler(e)},t.options.delay)})}).on("load",function(){n.trigger("scroll")}),jQuery.fn.scrollex=function(l){var s=t(this);if(0==this.length)return s;if(this.length>1){for(var r=0;r<this.length;r++)t(this[r]).scrollex(l);return s}if(s.data("_scrollexId"))return s;var a,u,h,c,p;switch(a=i++,u=jQuery.extend({top:0,bottom:0,delay:0,mode:"default",enter:null,leave:null,initialize:null,terminate:null,scroll:null},l),u.mode){case"top":h=function(t,e,n,i,o){return t>=i&&o>=t};break;case"bottom":h=function(t,e,n,i,o){return n>=i&&o>=n};break;case"middle":h=function(t,e,n,i,o){return e>=i&&o>=e};break;case"top-only":h=function(t,e,n,i,o){return i>=t&&n>=i};break;case"bottom-only":h=function(t,e,n,i,o){return n>=o&&o>=t};break;default:case"default":h=function(t,e,n,i,o){return n>=i&&o>=t}}return c=function(t){var i,o,l,s,r,a,u=this.state,h=!1,c=this.$element.offset();i=n.height(),o=t+i\/2,l=t+i,s=this.$element.outerHeight(),r=c.top+e(this.options.top,s,i),a=c.top+s-e(this.options.bottom,s,i),h=this.test(t,o,l,r,a),h!=u&&(this.state=h,h?this.options.enter&&this.options.enter.apply(this.element):this.options.leave&&this.options.leave.apply(this.element)),this.options.scroll&&this.options.scroll.apply(this.element,[(o-r)\/(a-r)])},p={id:a,options:u,test:h,handler:c,state:null,element:this,$element:s,timeoutId:null},o[a]=p,s.data("_scrollexId",p.id),p.options.initialize&&p.options.initialize.apply(this),s},jQuery.fn.unscrollex=function(){var e=t(this);if(0==this.length)return e;if(this.length>1){for(var n=0;n<this.length;n++)t(this[n]).unscrollex();return e}var i,l;return(i=e.data("_scrollexId"))?(l=o[i],window.clearTimeout(l.timeoutId),delete o[i],e.removeData("_scrollexId"),l.options.terminate&&l.options.terminate.apply(this),e):e}}(jQuery);/;" f
Expand Down